BBB Error to Open Serial Port (FT232)

Hello,

I have a problem to open the serial port on my Beagle Bone. I am using a cable with a FT232 chip.

First when the I check with the command lsusb 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

If I check my devices I have the port ttyUSB0

root@beaglebone:/# ls /dev/
alarm cpu_dma_latency kmem loop0 mmcblk0 ppp ram14 random tty tty17 tty26 tty35 tty44 tty53 tty62 ttyS3 vcs2 vcsa4
ashmem disk kmsg loop1 mmcblk0boot0 psaux ram15 root tty0 tty18 tty27 tty36 tty45 tty54 tty63 ttyUSB0 vcs3 vcsa5
autofs fd log loop2 mmcblk0boot1 ptmx ram2 rtc0 tty1 tty19 tty28 tty37 tty46 tty55 tty7 ubi_ctrl vcs4 vcsa6
binder full log_events loop3 mmcblk0p1 pts ram3 serial tty10 tty2 tty29 tty38 tty47 tty56 tty8 uinput vcs5 vcsa7
block fuse log_main loop4 mmcblk0p2 ram0 ram4 shm tty11 tty20 tty3 tty39 tty48 tty57 tty9 urandom vcs6 watchdog
btrfs-control i2c-0 log_radio loop5 mqueue ram1 ram5 snd tty12 tty21 tty30 tty4 tty49 tty58 ttyGS0 usbmon0 vcs7 watchdog0
bus i2c-1 log_system loop6 net ram10 ram6 sndstat tty13 tty22 tty31 tty40 tty5 tty59 ttyO0 usbmon1 vcsa xconsole
char i2c-2 logibone loop7 network_latency ram11 ram7 stderr tty14 tty23 tty32 tty41 tty50 tty6 ttyS0 usbmon2 vcsa1 zero
console initctl logibone_mem mapper network_throughput ram12 ram8 stdin tty15 tty24 tty33 tty42 tty51 tty60 ttyS1 vcs vcsa2
core input loop-control mem null ram13 ram9 stdout tty16 tty25 tty34 tty43 tty52 tty61 ttyS2 vcs1 vcsa3
root@beaglebone:/#

if I check on serial folder I have next information

root@beaglebone:/# ls -la /dev/serial/by-id/
total 0
drwxr-xr-x 2 root root 60 Dec 31 1999 .
drwxr-xr-x 4 root root 80 Dec 31 1999 …
lrwxrwxrwx 1 root root 13 Dec 31 1999 usb-FTDI_FT232R_USB_UART_AH03BEEU-if00-port0 → …/…/ttyUSB0
root@beaglebone:/#

And when I try to open port ttyUSB0 using my java code I got the next error

Port Handle -2
Exception in thread “main” jssc.SerialPortException: Port name - ttyUSB0; Method name - openPort(); Exception type - Port not found.

I am using the same code to open the serial port on my computer and I don´t have problems only Ihave problems when I try to open the serial port using any serial cable with the FT232 chip.

I try to fix the error using the next guide:

http://www.ftdichip.com/Support/Documents/AppNotes/AN_220_FTDI_Drivers_Installation_Guide_for_Linux.pdf

But the error but the error continues.

If I check the Beagle Bone with dmesg I got the next

root@beaglebone:/dev# 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.035206] CPU: Testing write buffer coherency: ok
[ 0.035592] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.035646] Setting up static identity map for 0x804d2348 - 0x804d2394
[ 0.036577] Brought up 1 CPUs
[ 0.036591] SMP: Total of 1 processors activated (993.47 BogoMIPS).
[ 0.037371] devtmpfs: initialized
[ 0.045824] omap_hwmod: wd_timer2: _wait_target_disable failed
[ 0.097934] pinctrl core: initialized pinctrl subsystem
[ 0.098071] rstctl core: initialized rstctl subsystem
[ 0.098366] regulator-dummy: no parameters
[ 0.098681] NET: Registered protocol family 16
[ 0.099241] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.104887] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
[ 0.105484] platform 49000000.edma: alias fck already exists
[ 0.105500] platform 49000000.edma: alias fck already exists
[ 0.105513] platform 49000000.edma: alias fck already exists
[ 0.106111] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
[ 0.106205] OMAP GPIO hardware version 0.1
[ 0.107008] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
[ 0.107731] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
[ 0.108425] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
[ 0.108677] of_get_named_gpio_flags exited with status 52
[ 0.108693] gpio-rctrl rstctl.4: loaded OK
[ 0.111824] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.113045] cpsw.0: No hwaddr in dt. Using ec:24:b8:6f:c6:8d from efuse
[ 0.113063] cpsw.1: No hwaddr in dt. Using ec:24:b8:6f:c6:8f from efuse
[ 0.121270] bio: create slab at 0
[ 0.127568] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
[ 0.127712] of_get_named_gpio_flags: can’t parse gpios property
[ 0.127834] vmmcsd_fixed: 3300 mV
[ 0.129347] SCSI subsystem initialized
[ 0.129577] usbcore: registered new interface driver usbfs
[ 0.129636] usbcore: registered new interface driver hub
[ 0.129837] usbcore: registered new device driver usb
[ 0.131052] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 0.131956] input: tps65217_pwr_but as /devices/ocp.3/44e0b000.i2c/i2c-0/0-0024/input/input0
[ 0.133560] DCDC1: at 1500 mV
[ 0.134386] vdd_mpu: 925 <–> 1325 mV at 1325 mV
[ 0.135245] vdd_core: 925 <–> 1150 mV at 1125 mV
[ 0.136048] LDO1: at 1800 mV
[ 0.136886] LDO2: at 3300 mV
[ 0.138370] LDO3: 1800 mV
[ 0.139220] LDO4: at 3300 mV
[ 0.139932] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 0.140383] omap_i2c 44e0b000.i2c: unable to select pin group
[ 0.140907] omap_i2c 4819c000.i2c: bus 1 rev0.11 at 100 kHz
[ 0.142238] omap_i2c 4819c000.i2c: unable to select pin group
[ 0.142382] media: Linux media interface: v0.10
[ 0.142443] Linux video capture interface: v2.00
[ 0.142587] pps_core: LinuxPPS API ver. 1 registered