This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: Reading data from USB port

Part Number: AM3358


Tool/software: Linux

I am using Beagle Bone Black (BBB) with Wi-Fi cape and booted from SD card (Linux Platform). I connected the external sensor using UART cable (UART port is connected with external Sensor and USB cable is connected with Beagle bone black).I want to read the data from the sensor. When I use the lsusb command, I got the following output:

root@beagleboneblack:~# 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


How to detect the external sensor in BBB and How to read the sensor data from BBB?

Could you please suggest the answer?

Thanks & Regards,

Manimekala Rajendran

  • What Linux version is this?
  • Hi,

    I used cat /proc/version command to find the Linux version. The following is the output

    root@beagleboneblack:~# cat /proc/version

    Linux version 4.9.28-geed43d1050 (gcc version 6.2.1 20161016  Linaro GCC 6.2-2016.11) )

    So, the Linux version is 4.9.28

  • What is the chipset of the external sensor?
    Please connect the sensor to a Linux PC host port and provide the host kernel enumeration log (the last portion of dmesg log in the PC).

    (Sorry I missed that the log in your first post shows it is FTDI chip.)

    The Processor SDK kernel binary doesn't enable FTDI serial driver by default, you have to rebuild the kernel with FTDI driver enabled.

  • Hi,

    • Is there any possibility to enable FTDI driver without rebuild the kernel?
    • If not, could you please provide me the steps to rebuild the kernel to enable FTDI driver?

    Thank you in advance.

    Regards,

    Manimekala Rajendran

  • Part Number: AM3358

    Hi,

    I am using Beagle Bone Black (BBB) for communicating with the external sensor via USB.

    Is there any connection between USB to UART in Beagle Bone Black?

    If it is, How can I read the sensor data from UART? 

    If not, Is there any possibility to read the sensor data from the USB host port of BBB

  • Hello Manimekala,

    Please, copy the attached https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/ftdi_5F00_sio.ko to lib/modules/4.9.28-geed43d1050/kernel/drivers/usb/serial/ then type depmod -a and modprobe ftdi_sio
    If the above procedure fails with "kernel disagrees about version of symbol" error you will need to rebuild the kernel and modules.

    cd board-support/linux-4.9.28+gitAUTOINC+eed43d1050-geed43d1050/
    cp arch/arm/configs/tisdk_am335x-evm_defconfig .config
    ARCH=arm make menuconfig
    # Enable FTDI serial driver in kernel menuconfig, save and exit.
    Device Drivers  ---> [*] USB support  ---> <M>   USB Serial Converter support  ---> USB FTDI Single Port Serial Driver <M>  ---> USB FTDI Single Port Serial Driver
    cp .config arch/arm/configs/tisdk_am335x-evm_defconfig
    cd ../../
    make linux
    make linux_install
    copy the targetNFS/boot/zImage and targetNFS/lib/modules/4.9.28-geed43d1050 to your BBB and repeat the first procedure again.

    Best regards,
    Kemal