Comments (8)
From Emil:
Thanks for the feedback.
The ownership issue is a known issue, for 0.1 it was documented in the wiki (and how to solve it), and for 0.2 it should be solved when installing the application (installs a udev.rules file in */lib/udev/rules.d). Have you tried making an install?
Anyhow, the hanging in 0.2 is not good, it should be fixed.
from openambit.
From T.M.:
(I don't know why my postings disappear here ... Try it again and again.)
I got it! Your rules file works great, my rule which was exactly (!) the same did not work. OK, now I made a step forward. I could load up several moves to Movescount.
from openambit.
From Olaf Meeuwissen:
Emil suggested in private communication I take a look at this. Having done so, I am not sure that the problem still exists.
Using 47fa66f on Debian wheezy and an Ambit with an as of yet unsupported firmware version, I am not able to reproduce hanging. With all debugging output enabled I ran the ambitconsole example application with and without the udev rules in effect. Without, I get:
libambit INFO: /path-to/libambit.c:78 libambit_detect(): Searching devices
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:86 libambit_detect(): match!
libambit INFO: /path-to/libambit.c:101 libambit_detect(): Trying to open device
No clock found, exiting
With udev rules in effect I see:
libambit INFO: /path-to/libambit.c:78 libambit_detect(): Searching devices
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:84 libambit_detect(): vendor_id=1493, product_id=0010
libambit INFO: /path-to/libambit.c:86 libambit_detect(): match!
libambit INFO: /path-to/libambit.c:101 libambit_detect(): Trying to open device
libambit INFO: /path-to/libambit.c:500 device_info_get(): Reading device info
libambit INFO: /path-to/libambit.c:138 libambit_detect(): Successfully opened device "Suunto Ambit (Bluebird)" SW: 2.0.6, Supported: NO
Device: Suunto Ambit (fw_version: 2.0.6) is not supported yet!
libambit INFO: /path-to/libambit.c:156 libambit_close(): Closing
In either case, the feedback is immediate for me.
I agree that the feedback could be a bit more informative and the detection a little smarter (there's little point in looping over the same device seven times!) but I cannot reproduce the hanging behaviour.
@T.M.> Can you still reproduce the hanging with the latest code?
I will have a go at improving libambit_detect() and see if I can come up with a patch.
from openambit.
@paddy-hack: Did you investigate the possibility to make it "smart" enough to detect permission errors? I think that is the single most important error message we can give the user...
from openambit.
4799eab at least logs the reason why libambit cannot hid_open()
the device but this information is not available yet to library users like openambit
. I'd like to get that done as well and refactor the clock detection code a bit, maybe even move some of the udevmonitor
stuff from openambit
to libambit
. As that is a bit bigger and more speculative, I'll do that on a separate branch.
from openambit.
using the packaged version or running directli the build binary I get:
libambit_detect(): Reason: Permission denied
sudo make install is the only way to make it work
from openambit.
my comment was actually to say that there is something going on wrong with the packages :)
from openambit.
Improvements in the device detection now lead to messages in the GUI that try to indicate why things went wrong.
from openambit.
Related Issues (20)
- strava_uploader.py HOT 6
- Maybe it depends on what you are using to sync your moves. My latest move (~8km walk) appears in MovesCount. HOT 1
- Not able to connect to movescount on fresh install HOT 9
- wrong read if memory is near limit HOT 10
- Some specs for the "custom JSON config file"? HOT 2
- Add a option to totally skip any try to communicate with movescount.
- Upload a GPX to a Suunto watch directly?
- Compilation issue on master: this_thread::sleep_for HOT 2
- suuntolink HOT 3
- No instructions for updating tools/stravauploader/config.py
- double free or corruption HOT 1
- Suuntolink working with Wine HOT 15
- Wireshark dissector usage HOT 1
- ambit_device_driver_ambit3: ambit_navigation_read / write HOT 8
- Sample files with USB HID report descriptor
- Add a license file to the project
- Convert GPX to JSON route HOT 3
- suunto apps support HOT 2
- suunto ambit 3 sport not updating firmware
- Installation problem Xubuntu 22.04 - problem with cmake
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openambit.