09-18-2009 04:22 PM
Hi all,
I'm trying to interface My laminary Board with U-Blox NEO-5Q using an I2C connection.
I'm not able to recieve Data fromGPS module.
here is my VI, and the board connection:
Thanks
09-21-2009 08:26 AM
It seems you don't like UART anymore.
You forgot to specify the address. (It's hard to call someone without dialing a number : ).
Also, wire bytes to read input.
09-22-2009 11:36 AM
Hi Nic,
The UART is not for the GPS. I need the 2 UARTs, one for communication with PC (thru Bluetooth), the second to acquire data froman IMU.
I will test you recommands and answer afer that.
Further question: what represents "read data"? as it's not a string or a boolean but an array of integer, I don't really know how to exploit it.
09-22-2009 04:09 PM
LabVIEW is very intuitive but it is recommended to become familiar with protocols before using them.
For example to access the data from your GPS, it must be addressed first (0x42, according to protocol specification), send a byte (so write input is not always empty) to access a register. The output byte array could be anything (e.g. currently available number of bytes in the message stream, for registers 0xFD/0xFE).
It appears you have an ineteresting project.
09-24-2009 02:51 PM
According to the "protocol specification", I andersand that I will specify 0x42 as wright Adress,Am I correct?
But what to write?
I tried this but it doesn't work:
09-26-2009 09:11 AM
I am hopping you veryfied yourself the address in the above link.
What to write: are you familiar with this image:
(page 16)
That predictive control will be done with Stellaris?
Regards
10-03-2009 02:30 AM
Hi Nic,
I understand that firt I will specify the adress from what I will read, so i should wright 0xFF to 0x42. after that, I will specify FF as the read adress, and the reading can begin.
Am I correct?
10-06-2009 01:58 PM
To read UBX or NMEA messages I would do something like this:
1. Select number of bytes register (write 0xFD)
2. Read the number of bytes available in buffer (read two bytes: high and low registers)
3. Select the buffer register (write 0xFF) - this could be skipped because the register counter is incremented automatically (0xFD+2 = 0xFF);
4. Read the reported number of available bytes
Notice that there will be no messages if the port is not configured (see "How to change between protocols" section)
10-06-2009 03:57 PM
Hi,
Is the right way to do that?


10-07-2009 07:02 AM
Your snippet reads bytes without knowing if they are available or not.
To read the currently available bytes try this:
Again, this will not solve all your problems because there could be more protocol issues:
1.configure the port to send some messages by writing CFG-PRT and CFG-MSG packets (note that you have to handle acknowledge responses as well)
2.decide when you have to process messages (by polling, or using TIMEPULSE signal to trigger a GPIO interrupt, etc.)
3.all multibyte fields in UBX protocol are little endian (you cannot use simple Type Cast)
4.etc?
Are you planning to use NMEA or UBX?