Giter VIP home page Giter VIP logo

linux-polar-gps-rc3-usb's Introduction

linux-polar-gps-rc3-usb

Polar RC3 GPS device driver for linux. Try to make it working

http://desowin.org/usbpcap/

this is for capturing USB traffic between my RC3 and windows driver, while uploading to polarpersonaltrainer.com website.

Polar RC3 USB Identifier is 0da4:0006 (idVendor:idProduct)

Howto?

usbpcap Terminal application let me choose one USB interface from which capture all traffic, and store it in a .pcap file. Then I can open it in wireshark ( https://www.wireshark.org/ ) to analyze it.

All traffic means ALL traffic. First I have to filter it. To do so I follow this steps:

  1. find bus_id and device address. How? filter by usb.idVendor == 0x0da4 (at least one time the OS must ask DEVICE Descriptor, and the device must reply with its identifiers)
  2. filter by device_address. (it is the stricter option, of course)

So. I upload the .pcap file. device_address is 5

rc3polar.pcap

Analyze

Device identification is almost standard, what has to be guessed is the protocoll

Device -> Host direction:

tshark -nr rc3polar.pcap -Y "usb.device_address == 5 and usb.endpoint_number.direction == 1" -Tfields -e usb.capdata >out1.hex

sed -e 's/://g' out1.hex >device2host.hex

Host -> Device direction: tshark -nr rc3polar.pcap -Y "usb.device_address == 5 and usb.endpoint_number.direction == 0" -Tfields -e usb.capdata >out2.hex sed -e 's/://g' out2.hex >host2device.hex

Related

https://github.com/samop/Polar-Flowlink-linux/ here there is a project for understanding the polar format for workouts

here https://code.google.com/archive/p/polarhrm/ are some other references

linux-polar-gps-rc3-usb's People

Contributors

danielecr avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.