views:

532

answers:

1

We designed a special communication tool for use on a wheelchair to control lights etc. We use Z-wave. We have app for control of these devices via PC.

Unfortunately, the app expects a USB stick. Our design does not allow a USB connected stick. Instead we use serial interface module that links to the pc via Bluetooth and a virtual comport. We know that the application uses HID standard windriver. (no third party driver involved)

We were wondering if we could use a HID "wrapper" driver that simulates the USB identifiers and PnP in a way that the application thinks that a stick is connected, and then links the Bluetooth virtual comport data to the app.

+7  A: 

Yes, I believe it is possible, could be quite interesting, never thought of simulating a HID device with a PC. Does anyone in your group have any driver development experience? If not, prepare for a steep learning curve.

Question: by "USB stick" do you mean a USB flash drive that contains a file with the instructions, or some type of HID device, like a mouse or a joystick, as the title suggests?

It doesn't really matter though, in either case it is certainly possible to write a driver to simulate it with a PC. Whether it is economical for your shop/project to upskill you to the point where you can do that is the main question. This would definitely not be code you can cut out in a weekend.

Dale Halliwell
Dear Dale, no experience in our group that's why we are calling.The USB stick is in fact a radio-transceiver and all it needs is a serial connection with the app at 9600 bd. Because it is packaged as a USB stick, the app looks for the serial link thru a USB (HID) driver.
jacob
Ok, so if you replace the transciever with a generic USB HID device such as a mouse, does it work? Can you also use the transciever on a PC to control the mouse/kbd?
Dale Halliwell
The transceiver is acting as interface between pc app and a Z-wave home network. It has a serial link while the app is expecting USB. We can not modify the app, so we look for an intermediate solution.Thanks, Jacob
jacob