CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB usage clarification
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

PostPosted: Fri Aug 05, 2016 8:03 am     Reply with quote

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: 19238

View user's profile Send private message

PostPosted: Fri Aug 05, 2016 8:15 am     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Fri Aug 05, 2016 7:06 pm     Reply with quote

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: 19238

View user's profile Send private message

PostPosted: Sat Aug 06, 2016 1:30 am     Reply with quote

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.....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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