Code Monkey home page Code Monkey logo

Comments (8)

mbernasocchi avatar mbernasocchi commented on August 22, 2024

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.

mbernasocchi avatar mbernasocchi commented on August 22, 2024

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.

mbernasocchi avatar mbernasocchi commented on August 22, 2024

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.

svenstorp avatar svenstorp commented on August 22, 2024

@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.

paddy-hack avatar paddy-hack commented on August 22, 2024

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.

mbernasocchi avatar mbernasocchi commented on August 22, 2024

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.

mbernasocchi avatar mbernasocchi commented on August 22, 2024

my comment was actually to say that there is something going on wrong with the packages :)

from openambit.

paddy-hack avatar paddy-hack commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.