-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port can't be opened on Ubuntu 12.04 #18
Comments
There is no need to run it with Does The only purpose of udev rule is to map USB-UART converter to Remember to connect watch to the cord first, and then insert it into USB port.
You do not. Thanks to cp210x kernel module, watch is accessible as a serial device on |
Although the Also, if I try to run the command (download.py or schwinn810) without the sudo, I get a permission denied error. Mike |
It should appear once you plug the cable from your watch (even without watch connected). Try to connect just a cable without watch and see if it appears. Also note if
If you are not using udev rule and I'd recommend first to make sure that USB-serial converter in the cable from watch is properly recognized, and udev rule is working. |
OK, if I use /dev/ttyUSB0 instead of /dev/schwinn810, I get past that error but now I get the following error: schwinn810 Copyright (C) 2012 Mikhail Titov This program comes with ABSOLUTELY NO WARRANTY. /usr/bin/gpsbabel Mike Chrisman |
Unplugging and plugging in the cable does cause the /dev/ttyUSB0 to disappear/appear, however, /dev/schwinn810 never appears. For testing purposes right now I use using the sudo, so permissions are not an issue (I will work out the permissions issue once I can get it to sync). The rule is in the correct folder and should be working. Here is my output from dmesg:
Mike |
oops... I guess I didn't not test waypoints stuff after code re-organization :-) I'll investigate that. Meanwhile, you can adjust I wonder what are you getting in there... Just a reminder that one should attempt to extract data only when clock shows either connection screen or charging screen and NOT data transmission one.
Did you restart udev service? P.S. There was no need in the whole history for dmesg. I cut it. |
Also if you've installed the package make sure that schwinn810-tray.py is not running. |
We are making headway. I can now get the command to extract the data off the watch and generate the .points/.laps/.tracks files. However, once the data has been extracted, I get the following error:
The odd thing is if I then execute babelize.sh (passing in the name of the track to convert) it generates the .gpx and .tcx files without error. |
Great! What was the problem?
I confirm my words that waypoint extraction is broken in > 0.1.1 version. I'll commit working version this evening. For now, you can comment out the fragment that writes waypoints to file perhaps by inserting
This is expected. Waypoints (created when you click/hold EL(?)/light button) are not used in generation of those files. |
Not only did I have add the return as you stated above, but I also had to comment out line 133-135 in device.py. However, it now works (without the sudo command). The /dev/schwinn810 device port never did show up, but I am happy using /dev/ttyUSB0 (as long as it works). Thanks for writing this great tool. I have the Red Clover watch and the software that come with is less than desirable (and the .tcx export does not export the heart rate data). Plus not having to run a VM of windows just to sync the watch is a big bonus. Keep up the great work. |
I would comment only line 135. I think it still should read that data as watch unconditionally sends it anyway. As I said I'll fix it.
If it did not show up even after restart of udev provided the rule is there, then it is possible that different USB vendor/product ID is being used. Could you check using This is somewhat important as I bet Also would you mind sharing
Thanks! I will try:-) |
lsusb:
Looks like the vendor/product ID are the same. When I try to execute the download.py command without any data on the watch, it throws the following error:
When I have a short run, I will send you the debug dump. My PROD.ID is: E111014 000016 1105143 01-067 Mike Chrisman |
Check udev rule content. It should begin with
Wow... good to know. I'll fix it. |
This is what I have in the udev rule: SUBSYSTEMS=="usb", SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea61", SYMLINK+="schwinn810", MODE="0666" The file is called: /etc/udev/rules.d/40-schwinn810.rules |
I am using Ubuntu 12.04. I have used the PPA to successfully install the schwinn810 software and I have run the command to configure it (that all works). However, when I run the following command:
sudo ./download.py -port /dev/schwinn810 -dir /home/mike/GPSData >/home/mike/GPSData/schwinn810.log 2>&1
I get the following error:
CRITICAL:main:Port can't be opened :(
schwinn810 Copyright (C) 2012 Mikhail Titov
How do I configure the usb to be recognized as a port?
Mike Chrisman
The text was updated successfully, but these errors were encountered: