Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Serial Port Interpretor for GPS

Serial Port Interpretor for GPS

Postby Snoid on Mon Feb 17, 2003 1:49 am

Hey yall, thanks for the last replies. Here's the big picture.

I'm a geographer and have been playing with palm GPS (geographic Positioning System) software. I now want to build relational data base programs and applications that aquire, store, and relate position data to field colection data. I.E at co-ordinate X, Y you can find a 360year old scotch pine in a cedar swamp with poor drainage. This program is going to have many stages to it, but first I need to positioning data. Any help, experience or resources with serial communication would help. Us beginers never learn to start small, so I'm forcing the tutorials but nothing about serial ports.

Synopsis:
I have a Garming Etrex Vista GPS and a Palm IIIC. They have no trouble talking. Now I want to build my own APPS. I'm not looking for others to build it. I would like to use this meaningful project to learn C (PocketC), some answers I will seek, but would like resources to track down answers. Any help or sugestions would be great

Known:
The GPS sends continuous sentences (or strings) to the serial port.
These sentences adhere to continous standards
The palm can comunicate with the port
programs have been built in the past to interpret these sentences
one sentence is sent every second
the sentences loop (eg bellow)
I'm learning quickly

Sample data sent to serial (captured using hyperterminal):
$PGRMM,NAD27 Canada*2F
$HCHDG,,,,14.0,W*20
$GPRTE,1,1,c,*37
$GPRMC,033008,A,4517.0377,N,07545.1971,W,0.0,0.0,170203,14.0,W,A*28
$GPRMB,A,0.04,L,,GC8CC8,4515.6977,N,07546.2853,W,1.546,209.8,,V,A*64
$GPGGA,033008,4517.0377,N,07545.1971,W,1,04,2.6,123.7,M,-34.0,M,,*7C
$GPGSA,A,2,,09,,15,17,,23,,,,,,2.8,2.6,1.0*36
$GPGSV,3,1,12,03,12,297,00,09,52,132,43,14,16,242,00,15,67,258,33*71
$GPGLL,4517.0377,N,07545.1971,W,033008,A,A*54
$GPBOD,211.3,T,225.3,M,GC8CC8,*44
$GPVTG,0.0,T,14.0,M,0.0,N,0.0,K*7B
$PGRME,13.2,M,45.1,M,47.0,M*1D
$PGRMZ,-324,f*2C
$PGRMM,NAD27 Canada*2F

Seprate Programming goals:
1. open serial port and print incomming data to output screen for at least one loop
2. divide input into seprate sentences
3. decode sentences (acording to NMEA 3.0 standards). Using coma separated values.
4. use data from $GPRMB to plot position on a graph using North, South, East, West
5. using graphics, draw a North arrow that moves when the GPS moves
6. build data base that can store selected data from selected sentences (I have no idea how C level D-Bases work).
7. Save d-bases as a file that can be dumped back to the PC on Hot Sync

These are just an overview of the project over the long term. I have to get past #1.

Progress to date
1. open serial port and have 0-255 value retunred (eg 236)
2. return succes on open serial
3. identify address of stored serial data

current code:
//GPS Monitor
/* ver 1.0
Dave Sampson
February, 2003
*/

main()
{
string gps_output;
seropen (4800, "8N1N", 4000);
gps_output = serrecv();
puts(gps_output); //returns 0 for success, other for fail
puts(!gps_output); //displays address of stored information
}
Snoid
 
Posts: 2
Joined: Wed Feb 12, 2003 3:04 pm
Location: Canada

Postby luisgarabo on Fri Mar 07, 2003 1:44 pm

Hola, mi nombre es Luis Enrique Garabito, soy de Mexico y yo estoy trabajando con una aplicacion muy parecida a la que intentas desarrollar, estoy en la etapa de comunicacion del GPS, yo tengo un Magellan, pero eso no tiene importancia. Lo que yo te aconsejo, es que utilices PToolboxLib, en esta libreria encontraras como construir, editar, consultar una base de datos, asemas que es muy sencillo de programas, y te aconsejo tambien que utilices Pilot-DB para crear tu base de datos y poder leerla en tu PC. Si tienes alguna duda, escribeme, posiblemente te pueda dar parte de mi codigo para que te ayudes un poco. mi correo es: luis_garabo@hotmail.com

Espero que te sirva de algo esta informacion, hasta luego, bye.
luisgarabo
 
Posts: 1
Joined: Wed Feb 19, 2003 8:58 pm


Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 0 guests

cron