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

cardio35 #10

Closed frasanz closed 11 years ago

frasanz commented 11 years ago

It seems that cardio35 is diferent model than rider 35 (althought the output of lsusb -v is the same).

The dev_id = 1403, so doing:

if dev_id == '1504': return rider40, rider40.Rider40(dev) elif dev_id == '1403': return rider35, rider35.Rider35(dev) elif dev_id == '1000': return rider35, rider35.Rider35(dev) else:

Then home/spac/rider35/code# time python ./brytongps.py -L 1403 Traceback (most recent call last): File "./brytongps.py", line 397, in sys.exit(main()) File "./brytongps.py", line 324, in main history = list(reversed(module.read_history(device))) File "/home/spac/rider35/code/rider35.py", line 140, in read_history timestamp = buf.uint32_from(0x00) File "/home/spac/rider35/code/common.py", line 116, in uint32_from return struct.unpack('I', self.read_from(offset, 4))[0] File "/home/spac/rider35/code/common.py", line 106, in read_from self.data.extend(self.device.read_block(block_addr)) File "/home/spac/rider35/code/rider40.py", line 71, in read_block raise IOError('Reading past end of device.') IOError: Reading past end of device.

real 0m5.755s

Un saludo

Pitmairen commented 11 years ago

I think the cardio35 is more similar to the rider20. Can you try the rider20 branch?

frasanz commented 11 years ago

You're it works with the rider20 branch. Thanks for your great work.