From BTnodes - A Distributed Environment for Prototyping Ad Hoc Networks

Documentation: LinuxUSB

BTnut Development Tools - Linux USB Access

For 'recent' Linux distributions (e.g., anything with a kernel >= 2.6.12), the CP2101-drivers should already be included as a kernel module. For all other distros, you probably need hunt down a set of recent kernel modules that include cp2101.c and recompile your kernel.

Installation Steps

  1. Watch the output of var/log/messages, e.g., using tail -f /var/log/messages
  2. Connect the BTnode rev3 via the USB prog board to your computer
  3. In your message window, you should see something like this:
[4660266.083000] usb 5-3.1: new full speed USB device using ehci_hcd and address 5
[4660266.589000] usbcore: registered new driver usbserial
[4660266.593000] drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
[4660266.597000] usbcore: registered new driver usbserial_generic
[4660266.597000] drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
[4660266.612000] drivers/usb/serial/usb-serial.c: USB Serial support registered for CP2101
[4660266.616000] CP2101 5-3.1:1.0: CP2101 converter detected
[4660266.649000] usb 5-3.1: reset full speed USB device using ehci_hcd and address 5
[4660266.696000] usb 5-3.1: CP2101 converter now attached to ttyUSB0
[4660266.696000] usbcore: registered new driver CP2101
[4660266.696000] drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.04
usb.agent[10116]:      cp2101: loaded successfully
  1. Notice the line CP2101 converter now attached to COMPORT above (in our example: ttyUSB0). Remember this port (actually, prepend /dev/ in front, e.g., /dev/ttyUSB0), as it will be used to connect to the BTnode rev3 subsequently.
  2. PS: you can stop tailing /var/log/messages now :-)

You can now proceed to upload an application: See 3.3. Upload Sample Application (.hex file) next.

Retrieved from http://www.btnode.ethz.ch/Documentation/LinuxUSB
Page last modified on April 07, 2006, at 05:08 PM