how to communicate with HIDDEV0 and HIDRAW0 devices. Blood Glucose Meter (Abbott FREESTYLE OPTIUM NEO)
I have a Abbotts Optimum Neo Glucose Meter. Which I wish to connect to my computer --ubuntu (wheezy). All I wish to do is to extract the data that is collected on the device so that I can provided it to my doctor. The simple straight forward task of just connecting it a USB port and thinking it was going to mount as a usb drive was a grave misconception.
I tried run the Abbotts proprietary software for windows through wine and just wouldn't load. I haven't a copy of windows to set up a vmware environment. I tried some programs that are meant to interface with the glucose meter. All failed. I tried glucometerutils : python3 ./glucometer.py --driver freestyle_optium --device /dev/usb info FAIL I tried Glucose : FAIL How do you communicate with hiddev0 & hidraw0? All i want to do is dump the data to a readable file. [/QUOTE] when the device is connected via USB cable. It am presuming it registers itself as a hiddev0 (/dev/usb/hidev0). At least that is what I was lead to believe from the dmesg output. Quote:
Quote:
Quote:
|
Quote:
Did you try this? https://blogs.gnome.org/xclaesse/201...t-openglucose/ |
unfortunately -Yes. But I have a newer version webkit2gtk and the source will not compile. :-(
|
The format of the data in the meter could be literally anything. You can try
Code:
$ dd if=/dev/hidraw0 |
That is closer than I have come to connecting to this device. Can I pass a command via DD?
Quote:
|
Some devices connect as usb-storage. But a lot of others speak some sort of protocol. PTP or otherwise, gphoto2 is kind of nice for interacting with devices like that. I've seen hidraw type things in packages and kernel stuffs, so there probably is a way. I just never had a need myself.
According to /var/lib/dpkg/available in debian testing: python-hidapi - depends on libhidapi-hidraw0 python-hid - also depends on that lib (cython interface to hidapi) usbrelay openocd ----- Seems like most of those are programming type interfaces. Seems like hidraw0 is a usb HID thing (human interface device, like a keyboard / mouse). Google seems to suggest that it creates a /dev/hidraw0 device. https://github.com/thingtrack/glukose-service Seems to be a start at least. Other things also use the hidraw0 dev thing too, like the ubikey. But that github project mentions your device specifically. At least the google hit did. |
Thank you Shadow 7, Ironically just prior to reading your post I was actually at the point of delving into exactly the same information that you have iterated in your post. It seems there is more to this process that is ABOVE and beyond just simply running a command.
Very frustrating ...... |
Could it be the case that my Linux system has recognized the Blood Glucose device incorrectly AS hiddraw0. Is that possible ?
|
SOLVED IT - Had to set the permissions correctly on /dev/hidraw*
How I came about working it out was the through the most excellent AwesomeMachine who gave me a great diagnostic tool" dd if=/dev/hidraw0 * ". I just couldn't get the glucose meter to send any data. So I grabbed a Usb Mouse which should of worked. Yet it failed. Which made me think it was a permission issue. It was..... Quote:
Quote:
|
Give it six months or two years. It'll be just an apt-get away at that point. YMMV depending on distro.
|
Now, if you just redirect the dd output to file, you can parse it to some usable form with awk or PERL.
|
Quote:
The proprietary Free Style software which specifically supports Neo, installs and runs in Wine (permission 666 set on all hidraws), yet it can't recognise my connected Neo meter; it always displays a message "meter not connected". What have you done to run it ? Or, if you are no longer fan of FS Neo, can you recommend a glucometer which you've been able to run, and actually works as expected in Wine ? Thank you. |
Solved using Wine and Setting Permissions
Hi,
I solved this way. I'm using Ubuntu 18.04.5 LTS x86_64 with kernel 5.4.0-81-generic 1) connect the device and check $ lsusb2) Set permission right 3) Verify $ ls -l /dev/hidraw*4) Install software using wine 5) Launch |
Quote:
Andy |
All times are GMT -5. The time now is 09:01 AM. |