background image

10

revolution

(c) Revolution Education Ltd.    Email: [email protected]   Web: www.picaxe.co.uk  V2.2 02/09

AXE027.PMD

PICAXE USB CABLE

4.0) Linux Installation

The AXE027 cable contains an internal electronic circuit,

based upon an FTDI USB<>serial converter chip. This chip is

already supported by the default Linux installation, via the

kernel driver named ‘

ftdi_sio’ 

(kernel 2.4.20 and later).

Therefore no driver download is required.

However, as many different products from many different companies all use the same FTDI chip,

each product is given a unique ‘product id’ number for identification purposes. This unique product

id is programmed into the chip inside the cable, so that when the cable is connected to the

computer it can be uniquely identified.

The unique product id for the AXE027 USB cable is 0xbd90. The vendor id is 0x0403.

However the default driver ftdi_sio, as installed by most Linux distributions, only recognises a

couple of (default) product ids for the FTDI chip (e.g. 0x6001). Therefore it is required to ‘patch’ the

driver so that it correctly supports the AXE027’s 0xbd90 product id.

There are 3 different ways to do this, depending on user expertise with using the Linux operating

system.

Option 1 is to simply patch (“modprobe”) the driver details every time the cable is used. This is very

simple, but needs to be carried out every time the computer is restarted (before the AXE027 cable is

inserted).  This method also works when running Linux from a Live CD (without installation).

Option 2 (recommended) is also fairly straight forward, and permanent as it involves adding a new

‘udev rule’ file to the operating system. The rule runs automatically each time the computer boots.

Option 3 is advanced and only for those familiar with kernel module recompiling. It involves

modifying the original driver source code and recompiling.

All 3 options are checked for correct operation in the same simple way – after inserting the AXE027

cable into the USB port the symbolic link file called

/dev/ttyUSB0

should automatically appear within the operating system.

Note that any application using the AXE027 cable needs to address this USB symbolic link

/dev/ttyUSB0

which is not the same as the traditional serial (e.g. “COM1”) port link

/dev/ttyS0

Remember the Linux operating system is case sensitive - ‘ttyusb0’ is not the same as ‘ttyUSB0’. If you

have more than one similar USB device attached the name of the second device will be ttyUSB1 etc.

The following instructions were tested on an Asus eeePc 900, running the default Xandros (Debian

derived) distribution and on a PC booted with a Ubunto live CD (not installed).

Note that although the principles are the same for most Linux distributions, different distributions

will use different methods for becoming root (aka “superuser”) (e.g. use su -l rather than sudo) or

for opening a Console Terminal. See the online documenation for your distribution for more

specific details.

Содержание AXE027

Страница 1: ...connects via the computer s USB port However the cable contains a tiny circuit board moulded into the compact USB connector This circuit contains a USB to serial convertor chip and so the actual data...

Страница 2: ...number if necessary 3 01 Installing the AXE027 PICAXE USB Cable Driver The first time you connect the AXE027 PICAXE USB cable you will be automatically prompted to install the software driver files T...

Страница 3: ...a Windows logo testing warning is displayed click Continue Anyway Note that the generic FTDI software drivers to be installed during this process have already passed Windows logo testing However due t...

Страница 4: ...then click the Advanced button Step 4 The COM Port number currently allocated is shown on screen COM20 in this example From the COM port number list select the desired new COM port number and then cli...

Страница 5: ...visible Beside the AXE027 PICAXE USB entry will be the currently allocated COM port number 3 11 Installing the AXE027 PICAXE USB Cable Driver Due to the new way Windows 7 handles driver installation...

Страница 6: ...B CABLE Step 3 Manually Install AXE027 Driver Click Start Control Panel Click View Devices and Printers in the Hardware and Sound section Right Click over AXE027 PICAXE USB and select Properties Click...

Страница 7: ...wse button and select the downloaded drivers folder Click Next Select Install this driver software anyway on the Security warning When installation completes close all open windows This process MUST n...

Страница 8: ...2 02 09 AXE027 PMD PICAXE USB CABLE Right Click over AXE027 PICAXE USB and select Properties Click Hardware Tab Highlight click on USB Serial Port in the list instead of AXE027 PICAXE USB which was u...

Страница 9: ...ton and select the downloaded drivers folder Click Next Select Install this driver anyway on the Security warning When installation completes note the new COM port number in the title bar of the succe...

Страница 10: ...uter is restarted before the AXE027 cable is inserted This method also works when running Linux from a Live CD without installation Option 2 recommended is also fairly straight forward and permanent a...

Страница 11: ...hen enter the following text note the last 2 lines below should be entered as one long line and then save the file etc udev rules d 99 axe027 rules contains axe027 udev rule to patch default FTDI prod...

Страница 12: ...ROTEGO_SPECIAL_4 0x400 0xffff USB_DEVICE_VER FTDI_VID FTDI_ELV_UO100_PID 0x400 0xffff USB_DEVICE_VER FTDI_VID FTDI_AXE027_PID 0x400 0xffff USB_DEVICE FTDI_VID FTDI_CCSICDU20_0_PID USB_DEVICE FTDI_VID...

Страница 13: ...Driver dmg icon Click Continue to proceed with the installation and follow the instructions on screen When the installation is complete reboot the computer When the computer has rebooted plug in the A...

Страница 14: ...this point it is possible to exit Network and use the AXE027 cable referenced by the system unique dev tty usbserial xxxxxxxx name 5 1 Trouble shooting If the AXE027 cable cannot be accessed an owners...

Страница 15: ...vers for the required PDA processor model from the software pages at www picaxe co uk and unzip them The two files in the driver package are ftdi_ser dll FTDIPORT inf Step 2 If the PDA requires a host...

Страница 16: ...cally permissible to reduce the value of the 22k resistor e g to 1k but only if a AXE026 serial cable is never to be used However for maximum versatility it is recommended to leave the circuit unchang...

Отзывы: