In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ricardo_alonso wrote: Good afternoon: Recently i purchased a GPS Receiver Module that uses the SX microprocesor. My idea was to use it for a mobile robot that use an existing ATOM 28 from MBASIC. The GPS module blink as expected until light remain fixed, indicating it obtained all the sat data necessary for calculating position. But when i tried to obtain the information, i only receive zeros (no data) Attached i will put a copy of the Basic program. I tried all combination and found equivalence from BS2 to MBasic, but unsucesfully. Could any of you have ideas that will help me? Regards Ricardo Alonso [url=ricardo_alonso@yahoo.com]ricardo_alonso@yahoo.com[/url] Sio con P1 T4800 con 188 Open con $8000 Baud con Open|T4800 GetTime con $03 GetLat con $05 GetLong con $06 GetAlt con $07 GetSpeed con $08 GetHead con $09 Baud var byte tmHRS var byte tmMIN var byte tmSEC var byte degrLAT var byte minLAT var byte secLAT var byte degrLONG var byte minLONG var byte secLONG var byte Heading var word alt var word speed var word clear ' servo p2,0,2 ' servo p3,0,2 ciclo: SerDetect Sio,nmode,Baud SEROUT Sio,Baud, ["!GPS" ,GetTime] SERIN Sio,Baud,3000,No_response, [tmHRS,tmMIN,tmSEC] debug [dec tmHRS," ", dec tmMIN, " " , dec tmSEC,13] SEROUT Sio,Baud, ["!GPS",GetLat] SERIN Sio,Baud,3000,No_response, [degrLAT,minLAT,secLAT] debug [dec degrLAT," ", dec minLAT, " " , dec secLAT,13] SEROUT Sio,Baud, ["!GPS",GetLong] SERIN Sio,Baud,3000,No_response, [degrLONG,minLONG,secLONG] debug [dec degrLONG," ", dec minLONG, " " , dec secLONG,13] SEROUT Sio,Baud, ["!GPS",GetHead] SERIN Sio,Baud,3000,No_response, [Heading] debug [dec Heading,13] SEROUT Sio,Baud, ["!GPS",GetAlt] SERIN Sio,Baud,3000,No_response, [alt] debug [dec alt,13] SEROUT Sio,Baud, ["!GPS",GetSpeed] SERIN Sio,Baud,3000,No_response, [speed] debug [dec speed,13] pause 1000 goto ciclo No_response: debug ["No response",13] return ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=162451 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)