Szabolcs,
According to the Connected Devices documentation.
The Wolfram Language provides a streamlined framework for connecting to external devices. Many classes of devices listed in the Wolfram Connected Devices Project are immediately supported within the Wolfram Language.
I have not tried the devices from that website but I have connected custom devices in various ways.
Tsai,
I think the connection method depends on OS. I am familiar with Mac/Linux but not Windows. If your device acts like a serial device then the method to connect is to find the name of the serial port in the OS and open it with DeviceOpen (with the correct parameters). On the Mac, disconnect the device, do an "ls /dev" in terminal and then connect the device and do the "ls /dev" again and see what device was added. What OS are you using?
I have connected to devices in several ways from the Mac:
- you can open a serial port if the device acts as a serial device (and then you must know its communication details)
- you can write some C code that talks to the device from the command prompt and then use "RunProcess" to run it from MMA and get the results back.
- You can convert the same C code to WSTP function and directly call it from MMA (although the benefit from this over #2 is small, it is cleaner looking code in MMA)
- you can make your own device driver following these instructions (While I know this is the cleanest way, I have not done this because our connections have been for "internal use" and I did not see the benefit of doing the extra work to fully integrate it.
Regards,
Neil