axe027 and ttyusb0

friis

Senior Member
Hi,
I had the axe027 running under openmandriva but I recently installed the newest version and now I cant find ttyusb0 in /dev. I have done the udev thing, the modprobe thing. After plugging in the cable I get in dmesg.

[ 9545.048528] usb 1-1.6: new full-speed USB device number 6 using ehci-pci
[ 9545.140639] usb 1-1.6: New USB device found, idVendor=0403, idProduct=bd90
[ 9545.140647] usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9545.140653] usb 1-1.6: Product: AXE027 PICAXE USB
[ 9545.140657] usb 1-1.6: Manufacturer: Revolution

but I cant find ttyusb0 in /dev - and the program point in the editing software cant find the ttyusb0 - no such thing.
Can anybody tell me what is wrong?

Can anybody tell me how I indicate that I have finished a thread?
best regards
torben
 

Technical

Technical Support
Staff member
Try this:
1) Remove AXE027 from computer
2) Type following (you may need su or 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

You should be looking for ttyUSB0, not ttyusb0
 
Last edited:

friis

Senior Member
Hi Technical,
Thanks - it worked. At least I now have ttyUSB0 in /dev. but when I download the pgm:

main:
high 4
pause 1000
low 4
pause 1000
goto main

the red LED (4 in the MP and L3 by the light) shows a steady red light.

(You dont distinguish between - and _ in modprobe ftdi-(or_)sio?)

best regards
torben
 

Technical

Technical Support
Staff member
The program actually running/downloaded and ttyUSB0 recognition are probably unrelated.
Try writing a completely new program and see what happens when you download it.
 

friis

Senior Member
I had to repeat

echo 0403 bd90 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id (and do chmod 777 /dev/ttyUSB0).

because I had lost ttyUSB0

I still get a fixed red light in MP 4, but I get a flashing light in MP 7 (no 4 from 0V).with the program:

main:
high B.1
pause 1000
low B.1
pause 1000
goto main

and a flashing light in MP pin no. 10 with the pgm:
main:
high 4
pause 1000
low 4
pause 1000
goto main

Then I lost ttyUSB0 again

Have I got the pin numbering wrong? I am rather confused.

I lost the ttyUSB0 again.
Torben
 

hippy

Technical Support
Staff member
I still get a fixed red light in MP 4, but I get a flashing light in MP 7 (no 4 from 0V).with the program: ... and a flashing light in MP pin no. 10 with the pgm: ... Have I got the pin numbering wrong? I am rather confused.
I do not understand the terminology of what MP 4 or MP 7 mean, but if you look in PICAXE Manual 1 there are chip diagrams showing which legs the pins are on.

If you can let readers know which PICAXE chip you are someone will be able to tell you which leg B.1 and B.4 will affect.
 

friis

Senior Member
I am using the Experimenter Starter Pack with a 18M2 Microprocessor.
If I use high/low 4 in the pgm. the pin numbered 10 on the board makes LED/L1 flash
If I use high/low 1 in the pgm. the pin numbered 7 on the board makes LED/L1 flash
This is not what I would expect from reading the manual.
Incidentally, there are two more pins associated with 18M2 (0V and +V) not mentioned in the manual or the pin numbering scheme.
Torben
 

hippy

Technical Support
Staff member
High/Low 4 will control pin B.4, and that pin is on leg 10 on an 18M2.

High/Low 1 will control pin B.1, and that pin is on leg 7 on an 18M2.

That is exactly as expected so you are probably confusing pin numbers / pin names with leg numbers.

It is recommended to use full <port>.<pin> naming conventions rather than just pin <number>.
 
Top