spi with GPS NEO-5Q (u-blox)

Guest #1543590
The problem is that I don't know how to get NMEA data with SPI.
The gps is the slave so it doesnt send the data alone.

That's why i think the master must send the good message to the gps.

And i already read the doc, but I didn't find it :s

Thank you.
#1543605
"By default, all ports are configured for UBX and
NMEA protocol so in most cases, it’s not necessary to change the port 
settings at all."

So just send 0xFF and read in data... (Altough I'm not sure that you 
will get NMEA and not UBX data)

If you need to configure NMEA only, see page 97 and following, 
especially field 'outProtoMask' in the document I've posted before.


"The baud rate clock provided by the master must not exceed 25kHz"

I'm not sure if this is a typo (not rather MHz?) or if they are really 
telling you to use 25 kHz max., but I would give it a try.
Guest #1543686
Okay!
In my doc (which is a bit different than yours (mine must be older)) 
there is : "The baud rate clock provided by the master must not exceed 
250kHz".

And my baudrate is 166KHz.

So the problem may be here.
I'll try to reduce the baudrate under 25KHz.

Reply

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.