Increasing GPS device (EM 406a) baudrate

Default baudrate of EM406a GPS device is 4800 baud. Then this baud rate dictates entire communication of serial port on ArduPilot - also those for Serial OUT (telemetry).

Here's simple way how to permanently increase baud rate of EM 406. Once done, the device will remember the baudrate, and you can increase serial speed in ArduPilot code.

1) Temporarily connect your GPS directly to FTDI cable:

Pin connection:
FDTI GPS
black <-> 5 (from right)
red <-> 1
orange <-> 3
yellow <-> 4
Note: I used original half-cut cable + connector left by this cable modification. No soldering, just careful wire plugging into FTDI connector.

2) Connect FTDI cable, and check if GPS works in RealTerm using default baudrate 4800:


3) Switch to Send tab in RealTerm:

and
1) type command $PSRF100,1,19200,8,1,0*38 in marked field
2) check +CR +LF line-ending
3) click "Send ASCII
This will configure your GPS device for 19200 baud rate.
I didn't test with higher baud rates, but if you change it, you'll need to recalculate command checksum (*38 at end), otherwise GPS won't accept the command.

4) Now GPS start to send at 19200 baud, so you'll see some garbage in RealTerm. Go to Port tab, close link (untick Open button), change baudrate to 19200, and Open link again. If you see valid GPS data, then all is OK:


5) In ArduPilot code, search for line Serial.begin(4800);
and change it to Serial.begin(19200);
Done! You have now faster serial communication in your ArduPilot code. GPS device will remember the baud speed as it has internal battery and memory and keeps the setting.
You're now prepared for more data to be sent by telemetry link.

Views: 2961


Moderator
Comment by Morli on December 13, 2009 at 2:33pm
@ dinesh, read from start of this thread , I think some one mentioned another way to do it and seems was permanent
Comment by Ken on December 13, 2009 at 5:44pm
@Danish, just have your ArduPilot / Arduino configure it in setup. 2 lines of code.
@Morli, "permanent" to an EM-406A is 4-6 days after power removed.
@all who have a 406 stuck in sirf binary and don't want to wait, I previously posted code to get your 406 into NMEA

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service