UxDIL Software Collection

Example: Serial

This folder contains the example source and compiled files for a Communication Device Class (CDC) device. After programming the UxDIL device with the demo firmware, it will announce as CDC device. You will find a new port in the list of COM ports. You have to find out, which is accompanying to the device (this is the disadvantage of this solution). For communication with the device, an ordinary terminal program (such as “Terminal” or “Hterm”) will be used (this is the advantage of this solution). Any communication parameter settings (baudrate, data bits, parity bit, stop bits) are allowed, because there is only communication via USB. Open the serial port, you found out, in the terminal program and simply transfer a question mark (“?”) to the device. It will respond with a small help, which contains a list of supported commands. Note: This is only a demo!

The commands to the device consists of only one letter. The device will answer with one or more text lines. The following commands are supported:

For demonstration you can close the communication, change the communication parameter settings and reopen the communication. The device will return the new settings (after command “p”), but of course, they doesn't have any effect, because we don't have any real serial data transmission!

Special hints for “Windows Vista” and later versions

If the automatic installation doesn't work properly, you need a suitable inf/cat file pair. Open the device manager and select the unusable CDC device. Actualize the driver installation manually. For this purpose, choose the inf/cat file pair, you will find in the sub directory “Examples\Serial\Windows\drivers”.

You can use this file pair for your application. But note, you have to adopt vendor and product ID in the inf file to your application.