RaceChrono for Android
It looks like you're new here. If you want to get involved, click one of these buttons!
RaceChrono for Android
User videos etc
$RC and NMEA mixed input questions
This discussion was created from comments split from:
RaceLogger bluetooth input format
Another bump to an old thread...
I'm building some hardware that will be sending NMEA and RaceDAC style mixed output. I have a few questions after reading this thread.
1) What NMEA sentences does RaceChrono accept? There's a bunch of them the GPS module I'm using can send but I'm not sure if RaceChrono uses them all, so I'd like to filter the unnecessary ones out to help limit the bandwidth over the bluetooth connection since I'll be using a 10Hz update rate.
2) An RC3 format was mentioned. What's that look like and is it available for use in the current version of RaceChrono?
3) When NMEA is mixed with RC2, the RC2 must include a timestamp. Why is that necessary if it's not used when the GPS is not mixed in? Is it satisfactory to just repeat the timestamp of the last NMEA sentence that included a timestamp?
1) RMC + GGA and RMC + VTG + ZDA combinations will work. GSA and GSV are used only for satellite azimuth display.
2) RC3 is coming very soon, on next update. It will have at least 12 analog channels and gyroscopes input. Rest of details are still to-be-decided.
3) As the GPS and other data is coming from the same device, the device should determine the timestamps for the other data too. It's much more exact to determine the timestamps on the sending device, rather than at the receiving device after Bluetooth transmission. If the device sending the other data is separate, it doesn't know the GPS time.
Thanks for the info!
For the GPS data, what sentence prefix is required? I found this:
and it indicates they all start with $GP, but the GPS module I'm using uses $GN for the sentences you mentioned. Is that a problem? Or does RaceChrono ignore the third character?
$GPxxx sentences only are currently supported. Although if you need $GNxxx I could look in to that if you provide me a good sample data.
describes the formats output by all the devices from the manufacture of the GPS product I'm using. The document describes sentences for all the devices from the manufacturer, but I believe the only differences are which sentences are output, not the sentence formats. Specifically, I'm using a NavSpark-GL device (GPS and Glonass). It doesn't appear the $GN formats are that different from the $GP formats but I don't claim to have done a close examination.
I don't actually have the device in hand yet, but I expect it next week. I'll be able to provide some real data then.
Took a little longer than expected, but I have sample output now. I don't see a way to attach a file, so here's a snippet:
Here's a larger sample file (823 lines):
I'm using the default settings on the device right now. Update rate is 1 Hz, but it goes to 10 Hz (and even 20 Hz for some models), which is what I'll be using eventually.
Contrary to what the docs for the device indicate, it appears the prefix for most of the sentence types you need is $GP, so perhaps you don't need to make any changes. For the satellite fix sentences, the device uses $GL as well because of GLONASS support. I suppose it's not required, but if RaceChrono could count those satellites as well as the GPS satellites, that would be cool.
Looks like valid NMEA to me. Should work with RC. As stated before RMC + GGA and RMC + VTG + ZDA combinations will work, and GSV/GSA is used for lock status (only the $GPxxx currently, $GLxxx maybe later). You can filter out or turn off anything else.
Greetings. Bumping this thread back up. I'm working with a couple different hardware GPS solutions and was hoping there was a specification for messages supported over bluetooth. My current understanding is that the software only supports Bluetooth using the Serial Port Protocol (SPP) profile. NMEA sentences ($GPxxx) specifically GPRMC, GPGGA, GPGSV, GPGSA
Your custom messaging protocols are described here -
Is any of this captured in a document/wiki etc? Or is this information only provided on these forums?
Is there any interest in using BLE Devices (GATT Services)? You could still send NMEA sentences, but using the built in data structures from BLE one could alleviate your need to parse and decode long strings in the APP. Regardless this would be a code change for RC.
What about a binary coded message set to reduce the load on the wireless links, optimize performance?
Only SPP is currently supported currently. In theory I could create a support for BLE, but I always need a working product to test against. I don't know of any NMEA BLE device so it's hard to test currently. I will be looking at BLE soon, so I might have some more insight on it later.
Ideally binary would be best solution, agreed. Also no wiki/documentation other than the forum.
I'm glad to hear you have been looking into BLE, and certainly understand that you will need hardware to test against. I don't know of anything off the shelf that you can use. However it seems that the implementation would be very well standardized in BLE:
I've now implemented support for one BLE device (an OBD-II reader). It's not a GPS device, so cannot comment on location characteristic implementation, but BLE in general seems straight forward.
I think BLE GPS + data logger implementation should implement a standard location characteristic, as well as a one or more data logger characteristics. That way the GPS could be used directly by any other app or OS that supports the standard location. I'm not sure how good throughput we could get through BLE, but worth trying anyways.
I have a BLE GPS that can give you a test
Forum Software Powered by Vanilla