Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an Omron M10-IT blood pressure monitor (which is an USB HID). Currently, I upload the results to the Omron site, then download the data as a csv file, and, finally read the data into an Access file. Unfortunately, Omron will shortly cease support.

I use VB NET Framework 4.8 on Visual Studio 2022 on a Windows 11 PC. For a couple of weeks, I have been searching the internet in an attempt to interface with the device with a view to downloading the raw data to my PC.

Any help or pointers would be appreciated, especially if the sample code was also available. For instance, is the HidDeviceObject available in VB or is it only exposed in a version of C? It seems to be defined in "hidsdi.h" for C, so what assembly reference and import do I require for VB? Links to any tutorial material or articles would be most welcome.

What I have tried:

I have attempted to base my VB solution on the article "How to Communicate with its USB Devices using HID Protocol" which is for C# with no success.

On another site, I found "USB HID Template for Visual Basic" which dates back to 2010 and is targeted at x32 cpus.

Thanks in advance for any help or suggestions.
Posted
Updated 6-Sep-23 8:11am
v2

1 solution

If you have a (probably working) solution in C#, then I'd go with that: either compile it to an ass3mbly and reference it in your VB code to use the classes and methods as if they were written in VB, or use one of the many C# to VB converters available online.

But ... I'd start by talking to Omron support before they stop (i.e. quickly) as there may be tips or tricks (or even code) they can help you with - and they will know there own device better than anyone. It's quite likely that you need to know what kind of HID it shows up to the system as in order to use it, or get a driver compatible with your system that exposes it as something you can use - we don;t know, and only you have the hardware to even start looking at the problem!

Do bear in mind that this is a ten year old device (at least!) as it was reviewed on Amazon in 2012 ... actual info may not be easily available. You may have to bite the bullet and buy a newer model to get the functionality you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900