Hardware
The user can realize specific functionality by software for the TR module. Application for TR module inside can also
be developed using the CK USB 04 development kit. For detailed information refer to CK USB 04 User's guide.
Power supply
GW USB 04 is intended to be supplied via USB connector from PC.
Reset
Reset can be invoked by connecting a disconnected GW to USB or by the Reset USB Device command in CDC
mode. Actual reset is executed ~5 s after the command is issued. This delay allows to disconnect USB
communication on PC side in time.
USB
The device supports two USB modes:
•Custom Device mode
Full communication with the IQRF IDE is enabled in this mode. The GW uses identical USB driver like e.g. CK
USB 04. It is possible to upload the application into internal TR module, display data received from SPI interface of
the TR in IQRF IDE Terminal etc. The user can easily create his own PC program using the mpusbapi.dll
library. See USB Custom Device Example on IQRF website.
•CDC mode
After connecting to PC a virtual serial port is created in this mode. The user can create his own PC program and
communicate via this port using the protocol described in document CDC implementation in IQRF platform.
Switching between the modes:
•From Custom Device to CDC:
Using IQRF IDE v2.08 or higher:
Help → Show IQRF USB Device Info → Switch to CDC mode.
•From CDC to Custom Device:
Using the Switch to USB Custom Class command in CDC protocol.
Current mode indication see chapter LED. The last selected mode is restored after start up or reset.
Tip
For testing a communication in CDC mode various SW terminals operating with PC serial ports are available. Select
a terminal enabling to issue direct byte commands and data. Refer to the communication protocol described in CDC
Implementation in IQRF USB devices User's guide.
Recommended terminal: Docklight, www.docklight.de. There is a project containing all supported commands for
this terminal available at www.iqrf.org/218. It is necessary just to select the COM port used.
Unsuitable terminal: Windows Hyperterminal, Tera Term.
© 2011 MICRORISC s.r.o. www.iqrf.org MNGWUSB04_ 110929 Page 4