Closed tradfursten closed 9 years ago
As far I know this client doesn't autodetect USB port. By default it uses the /dev/ttyUSB0 device, it is a common device for USB devices. You should find which device is created when you plug your watch and then use the option "--device" with the client.
Well... today I pushed a version that does implement the autodetection.
As a workaround, the device can be specified manually using the --device /dev/tty...
option. It is also possible the check out an older version, https://github.com/mru00/crane_gps_watch/tree/147635379c8cb44a1dad2e45d78270e0a422c9d6
Anyways I would be interested why the autodetection does not work. Could you please post (or email me) the output of the following:
ls -la /sys/class/tty/*/device/driver
and if you know the device file (dmesg
would tell you)
ls -la /sys/class/tty/$YOURDEVICEFILENAME
e.g. /sys/class/tty/ttyUSB0
BR
Oh, and make shure you have the rights to access the device. You have to be in the 'dialout' group.
@mru00: Perhaps you could support a (udev) symlink in addition. So users could bind their watches to the symlink no matter what the real ttyUSB* device is. This works for me: $cat /etc/udev/rules.d/41-crane-gps-watch.rules SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="00638C39", SYMLINK+="ttyUSB_crane_gps_watch"
It is not a bad idea to have separate udev's rules for all known "crane"-like watches. Something like android-udev package in Archlinux. It contains all udev rules for all known and supported android devices. On Dec 6, 2014 7:23 PM, "wer741" notifications@github.com wrote:
@mru00 https://github.com/mru00: Perhaps you could support a (udev) symlink in addition. So users could bind their watches to the symlink no matter what the real ttyUSB* device is. This works for me: $cat /etc/udev/rules.d/41-crane-gps-watch.rules SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", ATTRS{serial}=="00638C39", SYMLINK+="ttyUSB_crane_gps_watch"
— Reply to this email directly or view it on GitHub https://github.com/mru00/crane_gps_watch/issues/3#issuecomment-65908257.
I had the wrong permision on the device.
I have cloned the repository, built and installed every thing.
When I plug in my GPS watch (Runtastic) and run the application it fails to detect the usb port used.
Dell Precision M4700 ubuntu 14.04 3.13.0-40-generic #69-Ubuntu SMP Thu Nov 13 17:53:56 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux