Hi
I know only a little about modbus - so bear with me. I've got a chunk of C++ code that talks modbus via UBS-HID interface using Qt/C++ code to an iCharger 4010 DUO charger. FYI, the charger is used to charge my LIPO battery packs for the Rc Helicopter hobby.
The creators of this iCharger decided to implement modbus over USB-HID as opposed to RTU/TCP.
I want to first create a read-only interface to obtain the status of the charger. Right now I have a Pi3 plugged into the iCharger unit - and I want to replace the C++ code with Python.
My first simple question (yes indeed, just one!):
1. Where best to start in order to write a USB-HID facade/wrapper such that I can take advantage of modbus_tk? I'm not asking how to use libusb here - I know that already, I'm more asking for guidance on what I would need to implement in order to interface the USB-HID read/write routines with modbus_tk.
Thanks - looking forward to writing this wrapper and I'm OK to open source it as well if anyone else may find it useful.
--
John Clayton