Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites".
Test de l'ISO d'Ubuntu francophone : nous avons besoin de testeurs pour la version francophone d'Ubuntu 14.04. Liens et informations ici.

#1 Le 09/03/2013, à 19:02

JOUAS.JACK

Installation du cable FTDI USB/UART AXE027 PICAXE

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
JOUAS .JACK  LINUX 3.2.9 / UBUNTU 12.04 LTS 32 /64- AXE027 PICAXE INSTALLATION
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1-  follow axe027 documentation picaxe

# the axe027 cable is supply by FTDI USB/Serial/TTL 5v,  with id product specific 0403:bd90
# it's overwrited original FTDI 0403:6001
# linux provided all ready installed the drivers for so, but the id is not defined for Axe027.
# the Picaxe documentation required :

/etc/udev/rules.d/
create file :  99-axe027.rules
contains :

# /etc/udev/rules.d/99-axe027.rules
# contains axe027 udev rule to patch default
# FTDI product id to AXE027 product id (0xbd90)
SYSFS{idProduct}=="bd90", SYSFS{idVendor}=="0403", RUN+="/sbin/modprobe -q ftdi_sio product=0xbd90 vendor=0x0403"

after reebot linux the get this in terminal :

~$ sudo udevcontrol_reload rules    //WRONG ---->  not available

# !!! check it what's appen

~$ lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
++++++> Bus 001 Device 003: ID 0403:bd90 Future Technology Devices International, Ltd <++++++++++++++++
Bus 002 Device 003: ID 0483:7554 SGS Thomson Microelectronics 56k SoftModem
Bus 002 Device 004: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 002 Device 005: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 006: ID 0bda:0152 Realtek Semiconductor Corp. Mass Storage Device
Bus 002 Device 007: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 002 Device 008: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 002 Device 009: ID 050d:016a Belkin Components Bluetooth Mini Dongle

~$ dmesg | tail
[   14.347783] [fglrx] Reserved FB block: Unshared offset:fbfd000, size:403000
[   14.347784] [fglrx] Reserved FB block: Unshared offset:3fff4000, size:c000
[   14.396862] sd 6:0:0:2: [sde] Attached SCSI removable disk
[   14.402105] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[   14.404773] sd 6:0:0:4: [sdg] Attached SCSI removable disk
[   24.842744] wlan1: no IPv6 routers present
[  696.524104] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 1735.589254] usb 1-1.4: USB disconnect, device number 4
++++++>[ 1735.589457] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0  <+++BAD++++
[ 1735.589474] ftdi_sio 1-1.4:1.0: device disconnected

you cannot use :
      ttyUSB0 dosen't stay ( connected and disconnected ) !

  AxePad do not found ttyUSB0 because do not exist.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
              ---------------------METHODS----------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
STEP 1:
-----------
/etc/udev/rules.d/99-axe027.rules
mode permission superuser
open file
overwrite SYSFS by ATTR
ATTR{idProduct}=="bd90", ATTR{idVendor}=="0403", RUN+="/sbin/modprobe -q ftdi_sio product=0xbd90 vendor=0x0403"
save file
reebot linux

~$ lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 003: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 002 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 002 Device 005: ID 0bda:0152 Realtek Semiconductor Corp. Mass Storage Device
Bus 002 Device 006: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 002 Device 007: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 002 Device 008: ID 050d:016a Belkin Components Bluetooth Mini Dongle
++++++> Bus 001 Device 003: ID 0403:bd90 Future Technology Devices International, Ltd <++++++++++++

~$ dmesg | tail
[  239.491246] USB Serial support registered for FTDI USB Serial Device
[  239.491536] ftdi_sio 1-1.3:1.0: FTDI USB Serial Device converter detected
[  239.491588] usb 1-1.3: Detected FT232RL
[  239.491597] usb 1-1.3: Number of endpoints 2
[  239.491599] usb 1-1.3: Endpoint 1 MaxPacketSize 64
[  239.491601] usb 1-1.3: Endpoint 2 MaxPacketSize 64
[  239.491602] usb 1-1.3: Setting MaxPacketSize 64
+++++++++++>[  239.492096] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0 <+++++++++++++++
[  239.492116] usbcore: registered new interface driver ftdi_sio
[  239.492118] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

good : ttyUSB0 stay
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
STEP 2:
-------
the ttyUSBO dynamic created by linux at moment of plug in cable, and stayed during SESSION.
without permission enough for use with AxePad (error 13 : acces denied)

because the permission of ttyUSBO is by default user: root and group: dialout

you should gived permissions curent user by add in this group.

~$ sudo adduser jouas dialout

and restart ubuntu

-------RUN FINE ----------

smile

Hors ligne

Haut de page ↑