This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
sdk:gps2serial [2015/05/15 13:30] juraschek |
sdk:gps2serial [2020/03/25 08:40] fachet |
||
---|---|---|---|
Line 7: | Line 7: | ||
This Script connects to the GPS server via tcp. The NMEA Frames will be startet by the request "R" and will be then written to the serial interface. | This Script connects to the GPS server via tcp. The NMEA Frames will be startet by the request "R" and will be then written to the serial interface. | ||
- | The default serial parameter are 115200 8N1 (8 databit, no parity, 1 stop bit, no flow controll). This parameter can be configured at the begining of the script. | + | The default serial parameters for GPS are 4800 8N1 (8 databit, no parity, 1 stop bit, no flow controll). This parameter can be configured at the begining of the script. |
+ | Please use if possible a higher data rate e.g. 115200. | ||
===== Pre Requierments ===== | ===== Pre Requierments ===== | ||
Line 30: | Line 31: | ||
<code c> | <code c> | ||
- | /* Serial Baud Rate 9600, 19200, 38400, 57600, 115200 */ | + | /* Serial Baud Rate 4800, 9600, 19200, 38400, 57600, 115200 */ |
- | SER_SPEED=115200; | + | SER_SPEED=4800; |
/* number of data bits (5, 6, 7, 8) */ | /* number of data bits (5, 6, 7, 8) */ | ||
SER_DATABIT=8; | SER_DATABIT=8; | ||
Line 75: | Line 76: | ||
/* Options to configure by user*/ | /* Options to configure by user*/ | ||
- | /* Serial Baud Rate 9600, 19200, 38400, 57600, 115200 */ | + | /* Serial Baud Rate 4800, 9600, 19200, 38400, 57600, 115200 */ |
- | SER_SPEED=115200; | + | SER_SPEED=4800; |
/* number of data bits (5, 6, 7, 8) */ | /* number of data bits (5, 6, 7, 8) */ | ||
SER_DATABIT=8; | SER_DATABIT=8; |