Pitmairen / bryton-gps-linux

An attempt to read Bryton GPS devices on Linux
GNU General Public License v3.0
29 stars 14 forks source link

--gpx works but then I get "Error: Unknown logpoint format" with --gpxx, --tcx, --json options #20

Closed alessandro-gentilini closed 10 years ago

alessandro-gentilini commented 10 years ago

Hello, first of all, thank you very much for your work on this project!

I would like to submit you a problem; this command works well:

python brytongps.py --tracks 0 --gpx > giro_test_bryton_2.gpx

but when I try the following ones:

python brytongps.py --tracks 0 --gpxx > giro_test_bryton_gpxx.gpx

python brytongps.py --tracks 0 --json > giro_test_bryton.json

python brytongps.py --tracks 0 --tcx > giro_test_bryton.tcx

I always get this error:

Error: Unknown logpoint format. You are probably using a sensor that has not been tested during development. Maybe a powermeter.It can probably easily be fixed if test data is provided.

I uploaded the dump I got with this command:

python dump.py output

the dump is at https://docs.google.com/file/d/0B2HvVDtF3ohZQUZVMEJ2RWFKSG8/edit

I will update the bdx as soon as possible.

My device is the Rider 40; I cloned your repository today.

Thank you.

Happy new year.

Alessandro Gentilini

Pitmairen commented 10 years ago

Hi!

I need the bdx file to fix this. If you have access to a windows pc or mac to create the bdx file and upload it that would be great.

It should be easy to fix once i have the bdx.

-Per

alessandro-gentilini commented 10 years ago

Hello Per, thank you for your reply. The bdx is here: https://docs.google.com/file/d/0B4ubfQih9SrBc2RFams3VWs4ZEE/edit

Pitmairen commented 10 years ago

I have update the code and i think it should be working now. But if you have a heart rate monitor it will fail again because there was no hr data in your track so i couldn't confirm where the hr is stored. But if it happens it is easy to fix if you send me a new dump/bdx.

Also it would be nice if you could send me the tcx file generated by the bryton software, because the timestamps in your track was a little different from what i have seen before so i just want to check if i generate the tcx correctly.

alessandro-gentilini commented 10 years ago

Thanks a lot!

Your commit https://github.com/Pitmairen/bryton-gps-linux/commit/aefa8a4cdef03dfc6c9b1df179e76d51ace709d2 fixed my problem.

I have the heart rate monitor but I did not use it in the test ride of yesterday.

The tcx is here https://drive.google.com/file/d/0B2HvVDtF3ohZb1FsOWdadWdyZEVzMHFRZzh4UE9lRk1ady1N/edit?usp=sharing

Please tell me whether I have to close the issue.

Pitmairen commented 10 years ago

The tcx seems to be correct, but there is a new value "DistanceMeters" in the trackpoints that i have not seen in the tcx files create by brytonbridge before. But i think this value is just calculated from the gps coordinates, so i will add this later.

You can wait to close the issue until you use the heart rate monitor, it will probably fail when you use it, unless the device changes the format.

alessandro-gentilini commented 10 years ago

OK, I will wait to close the issue.

In the "About" menu the device says its "Version" is RR30.

pstasek commented 10 years ago

Could it be a distance measured by Speed/Cadence sensor? It should be more acurate, than distance measured by GPS in winding tracks, as we discused before.

alessandro-gentilini commented 10 years ago

I had the speed sensor on the rear wheel. I had the cadence sensor on the chain stays.

Pitmairen commented 10 years ago

It could be from the sensors, but if you look at the tcx file above the distance is only added to the trackpoints which have gps coordinates, if it was recorded by the sensors every trackpoint would probably have the distance added. And also i can't find these distance values in the data dump from the device, so it think they are calculated from the gps coordinates. But i will have a closer look once i get to my other computer next week.

alessandro-gentilini commented 10 years ago

Hello Pitmairen, I have a new track with the heart monitor. As you wrote in your comment https://github.com/Pitmairen/bryton-gps-linux/issues/20#issuecomment-31525687 I got the error

Error: Data needed (bdx, data dump) to confirm logpoint format.

Here it is the dump

https://drive.google.com/file/d/0B2HvVDtF3ohZVzR3V250cW1WdnM/edit?usp=sharing

and the .bdx

https://drive.google.com/file/d/0B2HvVDtF3ohZNzAwU1pwU0MzNUU/edit?usp=sharing

Thank you. Bye, Alessandro

Pitmairen commented 10 years ago

The hear rate data should be read correctly now. :)

alessandro-gentilini commented 10 years ago

Thank you very much. All the formats (--gpx, --gpxx, --tcx, --json) are now working without error.