EM-408 GPS Interface (Sparkfun)
Posted: 20 June 2009, 12:01 PM
I am working on interfacing the EM-408 GPS module with the ZX-328n. I have connected the TX pin of the GPS to pin 6 of the ZX through the transistor level converter circuit shown in the applications files.
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.
I was going to paste a representative sample of the gibberish that shows up but when I cut and paste these are the only characters that show up both here and in notepad or Word.
ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
[admin edit: added code tags to the code]
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]