User Tools

Site Tools


cfnet:cfheader:connecting_to_usb_host:index

Connecting to a USB Host

Connect a USB cable between the USB host and either the USB Type B connector or the USB Molex connector of the CFHEADER module.

There is no need to hassle with baud rates, parity, and other serial communication settings, or worry about whether to cross TX and RX pins. Once connected via USB, if the device appears in Windows Device Manager, or in the output of lsusb on Linux, it's immediately ready to use.

Up to 8 CFHEADER modules can be connected to a single USB host as long as each is assigned a unique address using the ADDR DIP switches.

IMPORTANT: 12~24VDC power must be supplied for proper operation. Although the USB Type B connector provides sufficient power for USB communication, it does not provide sufficient power for the IO modules to operate correctly. For the USB Molex connector, 12~24VDC power is required even for USB communication.

Windows

For a Windows host, the CFHEADER should immediately appear in device manager.

Linux

For a Linux host, check connectivity using lsusb from a terminal window.

Linux Permissions

By default, Linux does not give ordinary users direct access to USB devices. That will result in errors when attempting to communicate with the CFHEADER module without elevated privileges. To give access to USB devices for ordinary users, create a file named /etc/udev/rules.d/99-usb.rules with the following contents:

SUBSYSTEM=="usb", GROUP="plugdev", MODE="0666"

Then reboot.

CFHEADER - USB Interface to CFNET IO Modules

cfnet/cfheader/connecting_to_usb_host/index.txt · Last modified: by admin