Python set baud not working

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Python set baud not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7247
    robertg
    Participant

    Hi,

    Trying to alter the baud rate on the BerryGPS module.

    Had successful set the baud rate via command line using:

    echo -e “\$PMTK251,38400*27\r\n” > /dev/ttyS0

    And now the module is running at 38400.

    But unable to set the baud rate back to 9600 using the following argument within python.

    Tried:

    setbaud=”$PMTK251,9600*27\r\n”

    tried:

    setbaud=’$PMTK251,9600*27\r\n’

     

    GPS.write(setbaud)

    But the module is still locked in at 38400 as NMEA data is still coming in at this rate.

    Ultimately trying to send other commands but need to get over this hurdle first…

    Rob.

    #7248
    robertg
    Participant

    Worked it out, found somewhere to set Baud rate to 9600 command is:

    ‘$PMTK251,9600*17\r\n’

    So since discovered the last two digits is a checksum #@#@!#@

     

    Rob.

     

     

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…