Polar RC3 GPS device driver for linux. Try to make it working
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)
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:
- 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)
- filter by device_address. (it is the stricter option, of course)
So. I upload the .pcap file. device_address is 5
rc3polar.pcap
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
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