Skip to content
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

newbie linux person with port error #24

Open
mchartman opened this issue Dec 27, 2012 · 3 comments
Open

newbie linux person with port error #24

mchartman opened this issue Dec 27, 2012 · 3 comments

Comments

@mchartman
Copy link

Based on what I have read online about linux, I think I installed schwinn810 properly. I typed in "schwinn810" from the terminal and got the port and permission denied errors talked about on another thread. However, I don't know my way around Linux very well. Can you walk me through step-by-step on how to run the software?

@mlt
Copy link
Owner

mlt commented Dec 27, 2012

In theory, once installed and configured, you are not supposed to run anything manually but just connect watch. However things may go wrong that is when you should run schwinn810 script manually.

First of all, make sure that D-Bus listening applet is not active as it is supposed to autostart upon login. Look over icons on your panel nearby the clock. If there is D-Bus monitor running, right click on it and close it.

What port is it configured to use? And what are actual permissions? Default installation shall install udev rule to map serial port on USB with proper IDs to /dev/schwinn810 and have proper permissions. postinst script called by dpkg package manager is supposed to restart udev so changes should take effect right away upon installation. I assume you are using Ubuntu GNU/Linux, right?

Could you check by connecting just a cable without watch whether that device appear? ls -l /dev/schwinn810 should tell you if there is one. If it is not there while cable is connected, perhaps ls -l /dev/ttyUSB0 should report something.

@mchartman
Copy link
Author

When I plug in the watch, nothing happens.

I'm using Ubuntu version 12.04 inside the Oracle VM virtualbox within Windows 7.

I don't think the D-Bus monitor is running--the only icons I see near my clock are the networking, sound, battery, and mail (as well as the the settings icon). I was able to find the ttyUSB0 file (after I selected the correct USB device in the lower right corner of the window), but not the schwinn810 file.

@mlt
Copy link
Owner

mlt commented Jan 2, 2013

I'm using Ubuntu version 12.04 inside the Oracle VM virtualbox within Windows 7.

Perhaps I'm missing something, but isn't it better to run the software as is under Windows instead of using lots of virtualization?

I was able to find the ttyUSB0 file

Good! Thought it usually allows writing for dialout group members only. You could add yourself to that group if you don't want to bother with /dev/schwinn810.

(after I selected the correct USB device in the lower right corner of the window)

I believe it is something Oracle VM specific... otherwise I'm not sure what is supposed to be in "lower right corner" of some window.

, but not the schwinn810 file.

It is likely that for some reasons udev was not restarted after installation of the package. If that is the case, a separate issue shall be filed. Could you try to reboot the VM with Ubuntu (though sudo service udev restart should do the trick)?

Once again I recommend just to use the code under MS Windows as is. AFAIK the only major packages one should install on top of default Windows installation of python are pyserial and, probably, pytz. You may need more if you want to be able to upload things to MapMyRun and alike.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants