Parallax GPS Module (with SX) used with an ATOM28 microprocessor (MBasic)
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
ricardo_alonso@yahoo.com
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, [noparse][[/noparse]"!GPS" ,GetTime]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]tmHRS,tmMIN,tmSEC]
··debug [noparse][[/noparse]dec tmHRS," ", dec tmMIN, " " , dec tmSEC,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetLat]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]degrLAT,minLAT,secLAT]
··debug [noparse][[/noparse]dec degrLAT," ", dec minLAT, " " , dec secLAT,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetLong]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]degrLONG,minLONG,secLONG]
··debug [noparse][[/noparse]dec degrLONG," ", dec minLONG, " " , dec secLONG,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetHead]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]Heading]
··debug [noparse][[/noparse]dec Heading,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetAlt]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]alt]
··debug [noparse][[/noparse]dec alt,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetSpeed]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]speed]
··debug [noparse][[/noparse]dec speed,13]
·pause 1000
·goto ciclo
No_response:
··debug [noparse][[/noparse]"No response",13]
return
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
ricardo_alonso@yahoo.com
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, [noparse][[/noparse]"!GPS" ,GetTime]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]tmHRS,tmMIN,tmSEC]
··debug [noparse][[/noparse]dec tmHRS," ", dec tmMIN, " " , dec tmSEC,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetLat]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]degrLAT,minLAT,secLAT]
··debug [noparse][[/noparse]dec degrLAT," ", dec minLAT, " " , dec secLAT,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetLong]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]degrLONG,minLONG,secLONG]
··debug [noparse][[/noparse]dec degrLONG," ", dec minLONG, " " , dec secLONG,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetHead]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]Heading]
··debug [noparse][[/noparse]dec Heading,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetAlt]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]alt]
··debug [noparse][[/noparse]dec alt,13]
··SEROUT Sio,Baud, [noparse][[/noparse]"!GPS",GetSpeed]
··SERIN· Sio,Baud,3000,No_response, [noparse][[/noparse]speed]
··debug [noparse][[/noparse]dec speed,13]
·pause 1000
·goto ciclo
No_response:
··debug [noparse][[/noparse]"No response",13]
return
Comments
I am begining to think that SX interface is not working well
Do you know a parallax program that obtain the NMEA string of GPS.
Regards
Ricardo
I can assure you that the SX works fine, the Parallax GPS module works fine, and that the problems your experiencing have everything to do with your choice of compiler.
Today i went to my supplier and checked the module. Is not working for any reason. You were true, T4800 means IO4800 (inverted) for BM. Know, i have a module running ok. I will send the group the program that is, bassically the same as Parallax.
Best regards
Ricardo