I have an application that needs to communicate between an Arduino Due and a USB device that is used to sample RF power when queried. (Telemakus TED6000-50)
The USB device came with a Visual Basic program to run on a PC, a .dll file and a couple of other files related to the menu/display.
I've looked at the keyboard and mouse examples but they don't seem to be amenable to the interface I would need to develop. I've also looked at USB.Task(), but again there seems to be a giant step to get to the next level.
Has anyone developed any drivers for the USB interface, and if so could you share some example code?
The USB device came with a Visual Basic program to run on a PC, a .dll file and a couple of other files related to the menu/display.
This tells me that software copy-protected, and if you don't have full API specification of the driver - you can't communicate. Hacking USB interface isn't easy task, though possible via USB intercepting software.
Other option is writing your own application, with hardware supporting set of features.
I do have some documentation for the driver.
There are 4 routines that are available:
Public Function Load_drv(ByVal mySN As String) As Boolean
Public Sub Get_Det_Reading(ByVal Freq_GHz As Double, ByRef Det_dB As Double, ByRef success As Boolean)
Public Function Unload_drv() As Boolean
Public Function Check_Status() as Boolean
There is a brief description of what each routine does.
I'm thinking that the details that I really need are coded into the .dll file that gets called when I use any of those functions.