Hello everyone,
I have a Beaglebone with Debian 4.6.3 and kernel 3.8 and I require to use an usb serial converter with a FT232RL chip, I can see the converter on the Beaglebone, the problem is when I try to open the serial port I got an error like the serial cable is not connected.
When I write lsusb command I got this:
root@beaglebone:/# lsusb
Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
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
root@beaglebone:/#
When I check the beaglebone devices I can see the port ttyUSB0.
crw-rw---- 1 root tty 248, 0 May 14 2014 ttyO0
crw-rw—T 1 root dialout 4, 64 Dec 31 1999 ttyS0
crw-rw—T 1 root dialout 4, 65 Dec 31 1999 ttyS1
crw-rw—T 1 root dialout 4, 66 Dec 31 1999 ttyS2
crw-rw—T 1 root dialout 4, 67 Dec 31 1999 ttyS3
crw-rw—T 1 root dialout 188, 0 Dec 31 1999 ttyUSB0
If I check on serial folder I can see the next information:
root@beaglebone:/# ls -ls dev/serial/by-id/
total 0
0 lrwxrwxrwx 1 root root 13 Dec 31 1999 usb-FTDI_FT232R_USB_UART_AH03BEEU-if00-port0 → …/…/ttyUSB0
root@beaglebone:/#
And when I write dmesg I got the next
root@beaglebone:/# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.8.13-bone50 (root@imx6q-wandboard-2gb-0) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Tue May 13 13:24:52 UTC 2014
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Generic AM33XX (Flattened Device Tree), model: TI AM335x BeagleBone
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 130816
[ 0.000000] free_area_init_node: node 0, pgdat c08a85c0, node_mem_map c0923000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 129792 pages, LIFO batch:31
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] PERCPU: Embedded 9 pages/cpu @c0d33000 s14080 r8192 d14592 u36864
[ 0.000000] pcpu-alloc: s14080 r8192 d14592 u36864 alloc=9*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129792
[ 0.000000] Kernel command line: console=tty0 console=ttyO0,115200n8 capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait fixrtc quiet init=/lib/systemd/systemd
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] allocated 1048576 bytes of page_cgroup
[ 0.000000] please try ‘cgroup_disable=memory’ option if you don’t want memory cgroups
[ 0.000000] Memory: 511MB = 511MB total
[ 0.000000] Memory: 505364k/505364k available, 18924k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf800000 - 0xbfe00000 ( 6 MB)
[ 0.000000] .text : 0xc0008000 - 0xc07e4770 (8050 kB)
[ 0.000000] .init : 0xc07e5000 - 0xc0822700 ( 246 kB)
[ 0.000000] .data : 0xc0824000 - 0xc08ab580 ( 542 kB)
[ 0.000000] .bss : 0xc08ab580 - 0xc0922d00 ( 478 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] NR_IRQS:0 nr_irqs:0 0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER1 at 24000000 Hz
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] OMAP clocksource: GPTIMER2 at 24000000 Hz
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty0] enabled
[ 0.000363] Calibrating delay loop… 993.47 BogoMIPS (lpj=969728)
[ 0.029193] pid_max: default: 32768 minimum: 301
[ 0.029332] Security Framework initialized
[ 0.029387] Mount-cache hash table entries: 512
[ 0.035009] Initializing cgroup subsys cpuacct
[ 0.035068] Initializing cgroup subsys memory
[ 0.035113] Initializing cgroup subsys blkio
…
[ 0.968401] udevd[95]: starting version 175
[ 0.997609] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[ 0.997665] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[ 1.103078] usb 1-1: new full-speed USB device number 2 using musb-hdrc
[ 1.222164] usb 1-1: ep0 maxpacket = 8
[ 1.223386] usb 1-1: default language 0x0409
[ 1.227685] usb 1-1: udev 2, busnum 1, minor = 1
[ 1.227709] usb 1-1: New USB device found, idVendor=0403, idProduct=6001
[ 1.227720] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1.227730] usb 1-1: Product: FT232R USB UART
[ 1.227740] usb 1-1: Manufacturer: FTDI
[ 1.227749] usb 1-1: SerialNumber: AH03BEEU
[ 1.228266] usb 1-1: usb_probe_device
[ 1.228285] usb 1-1: configuration #1 chosen from 1 choice
[ 1.228457] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 1.231118] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[ 1.231160] hub 1-0:1.0: port 1 enable change, status 00000103
[ 2.182601] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.456041] rtusb init rt2870 —>
[ 3.456195] usbcore: registered new interface driver rt2870
[ 3.639614] udevd[234]: starting version 175
[ 4.493266] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 5.165065] net eth0: initializing cpsw version 1.12 (0)
[ 5.173306] net eth0: phy found : id is : 0x7c0f1
[ 5.177497] libphy: PHY 4a101000.mdio:01 not found
[ 5.182613] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 5.244204] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.365401] usbcore: registered new interface driver usbserial
[ 5.365474] usbcore: registered new interface driver usbserial_generic
[ 5.365536] usbserial: USB Serial support registered for generic
[ 5.384031] usbcore: registered new interface driver ftdi_sio
[ 5.384125] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 5.404193] ftdi_sio 1-1:1.0: usb_probe_interface
[ 5.404225] ftdi_sio 1-1:1.0: usb_probe_interface - got id
[ 5.404259] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
[ 5.404433] usb 1-1: Detected FT232RL
[ 5.404445] usb 1-1: Number of endpoints 2
[ 5.404455] usb 1-1: Endpoint 1 MaxPacketSize 64
[ 5.404465] usb 1-1: Endpoint 2 MaxPacketSize 64
[ 5.404474] usb 1-1: Setting MaxPacketSize 64
[ 5.408030] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 8.251969] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
[ 8.252028] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 12.027347] gadget: using random self ethernet address
[ 12.031634] usb0: MAC 7e:1d:26:0f:c6:a9
[ 12.031653] usb0: HOST MAC ec:24:b8:6f:c6:8f
[ 12.037606] gadget: Mass Storage Function, version: 2009/09/11
[ 12.037629] gadget: Number of LUNs=1
[ 12.037649] lun0: LUN: removable file: /dev/mmcblk0p1
[ 12.037757] gadget: Multifunction Composite Gadget
[ 12.037782] gadget: g_multi ready
[ 12.037825] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 12.038143] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 2
[ 12.038172] musb-hdrc musb-hdrc.0.auto: supports USB remote wakeup
[ 12.038239] usb usb2: default language 0x0409
[ 12.038270] usb usb2: udev 1, busnum 2, minor = 128
[ 12.038282] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 12.038293] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 12.038303] usb usb2: Product: MUSB HDRC host driver
[ 12.038313] usb usb2: Manufacturer: Linux 3.8.13-bone50 musb-hcd
[ 12.038322] usb usb2: SerialNumber: musb-hdrc.0.auto
[ 12.039951] usb usb2: usb_probe_device
[ 12.039969] usb usb2: configuration #1 chosen from 1 choice
[ 12.040021] usb usb2: adding 2-0:1.0 (config #1, interface 0)
[ 12.040140] hub 2-0:1.0: usb_probe_interface
[ 12.040153] hub 2-0:1.0: usb_probe_interface - got id
[ 12.040171] hub 2-0:1.0: USB hub found
[ 12.040195] hub 2-0:1.0: 1 port detected
[ 12.040205] hub 2-0:1.0: standalone hub
[ 12.040213] hub 2-0:1.0: individual port power switching
[ 12.040222] hub 2-0:1.0: no over-current protection
[ 12.040231] hub 2-0:1.0: Single TT
[ 12.040242] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
[ 12.040251] hub 2-0:1.0: power on to power good time: 10ms
[ 12.040272] hub 2-0:1.0: local power source is good
[ 12.040333] hub 2-0:1.0: enabling power on all ports
[ 12.140209] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
[ 12.140270] hub 2-0:1.0: hub_suspend
[ 12.140299] usb usb2: bus auto-suspend, wakeup 1
[ 12.265086] CAUTION: musb: Babble Interrupt Occurred
[ 12.304629] gadget: high-speed config #1: Multifunction with RNDIS
[ 14.607842] bone-capemgr bone_capemgr.9: part_number ‘BB-I2C1’, version ‘N/A’
[ 14.607920] bone-capemgr bone_capemgr.9: slot #7: generic override
…
[ 3344.012418] CAUTION: musb: Babble Interrupt Occurred
[ 3345.295775] CAUTION: musb: Babble Interrupt Occurred
[ 3345.318977] gadget: high-speed config #1: Multifunction with RNDIS
[ 3369.729871] CAUTION: musb: Babble Interrupt Occurred
[ 3371.846976] CAUTION: musb: Babble Interrupt Occurred
[ 3371.952067] gadget: high-speed config #1: Multifunction with RNDIS
[ 3752.481024] CAUTION: musb: Babble Interrupt Occurred
[ 3753.761619] CAUTION: musb: Babble Interrupt Occurred
[ 3753.784830] gadget: high-speed config #1: Multifunction with RNDIS
[ 3774.067764] CAUTION: musb: Babble Interrupt Occurred
[ 3775.853438] CAUTION: musb: Babble Interrupt Occurred
[ 3786.660657] CAUTION: musb: Babble Interrupt Occurred
[ 3786.688194] CAUTION: musb: Babble Interrupt Occurred
I am using a java code for open a send information throught the serial port. Also I had used this code on Beagle bone with an Adafruit cable and It is working very well. Only when I try to open the serial port with this FT232RL chip I got an error like
Port name - ttyUSB0; Method name - openPort(); Exception type - Port not found.
With java I am using jssc libraries, and I don’t have problems using this code and cable on my computer, the funcionality its perfect. Only when I try to use on BeagleBone I have problems.
Anyone has an idea how to solve this problem?