Menu

Testing problem

Help
Anonymous
2010-07-25
2013-04-24
  • Anonymous

    Anonymous - 2010-07-25

    Hey,

    We were trying to test SweetGPS, without cross-compiling for Stargate or gumstix, by compiling it under Mac OS X on two Mac Pros that are connected by an ethernet switch on our LAN.  We have a couple of Novatel Superstar II's connected with Keyspan USB to Serial converters.  We changed to code to have the correct paths to the local serial ports that were connected to the Novatel receivers.

    We would try to run the programs with a command like "./RoverGPS 192.168.0.114 7000" but we kept getting an error.  Here is the output:

    $ ./RoverGPS 192.168.0.114 7000
    New Baseline: 0.425198 -0.356997 -0.181273
    Launching Comm thread with serial on port /dev/tty.usbserial-A700eE9H
    Launching GPS calc thread
    1
    GPS thread launches!
    Ready for connection from ground
    UDP socket now opened on stargate
    Port -- 7000
    open_port: Unable to open port : No such file or directory
    7000
    Entering Main Loop now

    - -

    Any idea why we are getting the error on opening port 7000? 

    Garry

     
  • Steven Waslander

    Hi Garry,

    This error occurs when the serial port can't be opened properly.  The error originates in the open_port function of comm.cpp.  This means that you have either not passed in a port name that is usable,

    Is this really the name of the port you want to open?
    /dev/tty.usbserial-A700eE9H

    The function uses standard linux syntax, and so may not jive with the Mac versions.  Best to check how to open serial ports on the Mac, and go from there.

    Cheers,
    Steve

     
  • Anonymous

    Anonymous - 2010-07-27

    Thanks for the quick reply!  It looks like we were using some code that someone had modified instead of your original code.  As soon as we re-downloaded the original code, the error went away.  That weird serial port name is created by a Kensington USB to Serial adapter.  The Mac OS is a "Certified Unix" these days, so everything should just work…famous last words, I know. 

    Garry

     
  • Steven Waslander

    Great to hear,

    Keep us posted of your progress, happy to see someone using the code.  What are you using it for?

    Cheers,
    Steve

     

Log in to post a comment.