Can't install PICAXE USB Cable in Lubuntu

coparu67

Senior Member
Hi
I've installed PE6 in Lubuntu 14.04 (Wine + Winetricks)
I think it runs fine (very good new!!).

Now I try to install AXE027 PICAXE USB Cable folowing the Option 2 (recommended) in the manual.

This is not in manual (I found it in Google-forums).
I tried:
> lsmod | grep ftdi_sio
and I didn't get nothing. So I tried:
> sudo modprobe ftdi_sio
and after than, the lsmod command wrote:
> ftdi_sio 39986 0
> usbserial 38902 1 ftdi_sio
So I think the driver is now installed (reboot).

Afterthat. I've created the file mentioned in the manual with
sudo nano /etc/udev/rules.d/99-axe027.rules
I have checked the file many times.


- if I reboot now I didn't get /dev/ttyUSB0

- The command udevcontrol doesn't exists.
So I've tried too (Google - forums)
> sudo udevadm control --reload-rules
and
> sudo udevadm trigger
without success.

Could anybody help me?
Thanks
 

geoff07

Senior Member
I use Ubuntu/Virtualbox/XP/PE, and I have installed the XP driver but nothing else, as Ubuntu just sees the usb. I use lsusb to list what is there, and I get

Bus 003 Device 005: ID 05a4:1700 Ortek Technology, Inc.
Bus 003 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 003 Device 002: ID 04cc:1521 ST-Ericsson USB 2.0 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 04f2:0718 Chicony Electronics Co., Ltd
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 0bda:0151 Realtek Semiconductor Corp. Mass Storage Device (Multicard Reader)
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

You probably have to do something in Wine so the windows app can see the usb, but I don't know what that is (yet). But I'm not sure why you would need anything in Linux.

It would be good to get a clear answer, so then I can get Wine going!
 

hippy

Technical Support
Staff member
It may be that Lubuntu has changed udev and related items so the commands and rules used may equally need to change.
 

Technical

Technical Support
Staff member
You probably have to do something in Wine so the windows app can see the usb, but I don't know what that is (yet). But I'm not sure why you would need anything in Linux.
In PE6 just add /dev/ttyUSB0 via using File>Options>Diagnostics>WINE
You then use that as your port in PE6
 

Technical

Technical Support
Staff member
It may be that Lubuntu has changed udev and related items so the commands and rules used may equally need to change.
Try this, revised method for for later Ubuntu based builds:

1) Remove AXE027 from computer
2) Type following (you may sudo prefix on each line)
Code:
modprobe ftdi_sio
echo 0403 bd90 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
3) Plug cable in again
 

coparu67

Senior Member
1.
I tried Technical instructions and they didn't work.
After:
sudo echo 0403 bd90 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
I get this error:
bash: /sys/bus/usb-serial/drivers/ftdi_sio/new_id: Permiso denegado (denied)

2.
bpowell instructions works fine
Now, when I plug AXE027, /devttyUSB0 appears. When I unplug it disappears.

3.
But now there is another problem.
When I try to load a program from PE6(.0.7.5) into a PICAXE I get this error:
Can't open port /dev/ttyUSB0.
Options-Diagnostics-WINE mark is checked.
I've tried Options-COM Port-Refresh list without success.
After Test Download Cable-Next-Next-Refresh nothing appears.
Do I have to install Windows drivers in Wine (like in WinXP or Win7)?
What can I do now?

Thanks !!
 

bpowell

Senior Member
I seem to recall you had to add your user to the 'dialout' group as well...

Also, I did the following before pe had the wine option... This maps ttyusb0 to com1...

Also, you'll have to do a little hack to the registry file in your win32 directory to force the hardware to be available...so...in your win32/dosdevices directory, create a symbolic link to /dev/ttyUSB0 (or whatever your system assigns to the AXE027 cable).
e.g.
ln -s /dev/ttyUSB0 ~/win32/dosdevices/COM1

Then, edit your system.reg file in the win32 directory and add the following at the top or bottom:

[HARDWARE\\DEVICEMAP\\SERIALCOMM]
"COM1"="COM1"
 

Technical

Technical Support
Staff member
yes, make sure you are in the dialout group, /dev/ttyUSB0 should then work directly

Code:
sudo adduser your_user_name dialout
sudo reboot
 

coparu67

Senior Member
After adduser to dialout group and reboot all is fine (by the moment). No needed more steps.

PICAXE Editor 6.0.7.5 + AXE027 PICAXE USB Cable is working in Lubuntu 14.04 LTS (32bits) + Wine 1.7.31 + WineTricks

Thanks Technical, thanks bpowell
Now my students will have some more computers (old laptops) to work with PICAXE. :)


yes, make sure you are in the dialout group, /dev/ttyUSB0 should then work directly

Code:
sudo adduser your_user_name dialout
sudo reboot
 
Top