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

Rider35 #3

Closed trsaunders closed 11 years ago

trsaunders commented 11 years ago

output of lsusb -v:


Bus 001 Device 003: ID 0483:5720 SGS Thomson Microelectronics 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0483 SGS Thomson Microelectronics
  idProduct          0x5720 
  bcdDevice            1.00
  iManufacturer           1 Bryton Incorporation
  iProduct                2 Rider Mass Storage
  iSerial                 3 000000000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              4 BB Mass
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0001
  Self Powered

dump: https://dl.dropboxusercontent.com/u/10453912/rider35-dump.bin

Thanks for starting this project!

trsaunders commented 11 years ago

I've just seen that there is a branch for the rider35 - doh!

It appears to work:

➜  code git:(rider35) ✗ python2 brytongps.py --tracks 0 --summary
===================================================
2013-04-14 08:23:44
2013-04-14 08:23:44 - 2013-04-14 09:57:27 (1:28:57)
 Dist: 35.82Km
  Cal: 1131
  Alt: 4m / 4m (gain/loss)
Speed: 24.3Kph / 31.5Kph (avg/max)
   Hr: 131bpm / 160bpm (avg/max)
  Cad: 85rpm / 112rpm (avg/max)

so great job!

trsaunders commented 11 years ago

Unfortunately strava upload does not work:

➜  code git:(rider35) ✗ python2 brytongps.py --tracks 0 --strava --strava-email trsaunders@gmail.com
Strava.com password:
Authenticating to strava.com
Uploading track: 2013/04/14 08:23
Error:  Unknown trackpoint format. It can probably easily be fixed if test data is provided.
trsaunders commented 11 years ago

It could be because the ride was a stationary trainer ride so there is no GPS data. I'll try again with a real ride once I've done one!

Pitmairen commented 11 years ago

I have update the rider35 branch, i think it should work now.

trsaunders commented 11 years ago

Thanks, it works now!