|
|
View previous topic :: View next topic |
Author |
Message |
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Fri Aug 05, 2016 8:03 am |
|
|
You don't get it, I don't change the baudrate to 115200bps, when I buy the GPS some of them come by default with that baudrate. _________________ Electric Blue |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19326
|
|
Posted: Fri Aug 05, 2016 8:15 am |
|
|
So add the code to switch them all to 19200 or 9600.
It's fairly basic. You set up a non-uart com port on the same pins, using a different stream. One at perhaps 115200, and one at 19200. Then as part of your initialisation code have it send the command to switch to 9600, with a pause at each baud rate. The ones already set to 9600, don't actually 'recognise' the commands at the higher rates, so all the units then operate at the same rate. That is standard code on a lot of instruments that use GPS units. |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
|
Posted: Fri Aug 05, 2016 7:06 pm |
|
|
Quote: | You don't get it, I don't change the baudrate to 115200bps |
I said than can be easily changed as Mr. T wrote.
Examle with SIRF machine:
Quote: | Example 1: Switch to SiRF Binary protocol at 9600,8,N,1
$PSRF100,0,9600,8,1,0*0C<CR><LF>
Example 2: Switch to User1 protocol at 38400,8,N,1
$PSRF100,4,38400,8,1,0*38<CR><LF> |
Best wishes
Joe |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19326
|
|
Posted: Sat Aug 06, 2016 1:30 am |
|
|
As a comment, the reason for the high baud rates as standard for some of these units, is that some chipsets have a habit when updating, of giving a spurious reading. When used for things like multi-copters, this can result in the copter suddenly deciding it is hundreds of feet from where it should be, and starting to move at high speed. The software authors of the location code in the copters, therefore now take multiple readings at high rates, and reject any that move more than a few feet from the previous reading. The high rate as standard, may suggest that the unit involved is one where this is a known problem..... |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|