I get a constant stream of nulls and gibberish and what appears to be an NMEA string fragment every 30 seconds or so. The GPS is setup at 4800, no flow control, 8 data bits, no parity, and one stop bit. I have verified its operation and proper output using both the SiRF Demo program and the X-CTU (Digi) terminal. When I used the terminal I went through the ZX-28 adaptor board on pin 3. I have spent nearly 40 hours on this issue and am no farther than I was when I started. Any help would be appreciated. Thanks.
Code: Select all
Sub Main()
Const qsize as Byte = 400
Dim oq(1 to qsize) as Byte
Dim iq(1 to qsize) as Byte
dim NMEA as string
Call DefineCom(3, 6, 5, &H08, 01)
Call OpenQueue(iq, SizeOf(iq))
Call OpenQueue(oq, SizeOf(oq))
Call OpenCom(3, 4800, iq, oq)
do
Call getqueue(iq,NMEA,75)
debug.print (NMEA)
call delay(0.1)
loop
End Sub
ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
[admin edit: added code tags to the code]