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/TUSB3410: Inquiry about error log

Part Number: TUSB3410

Tool/software: Linux

Hi team.

My customer configured to connect SoC USB and UART BLE using TUSB3410.

Currently, the following message is displayed in the linux kernel:

'ti_usb_3410_5052_1 ttyUSB0: ti_open - cannot clear output buffers, -104 (usb communication error)'

The meaning of the message is a USB communication error.

I suspect that the TUSB3410 will enter sleep mode. (If it occurs only once, normal operation will be done.)

1. In which case, check to see if the message is occurring.

2. And he asked if there is a way to prevent it from entering suspend. (WAKEUP, RI / CP pin ... etc)

Please refer to the detailed log below.

============================================< Output Log >=========================================================
# ./test_ttyUSB0
[AT+VER] Written = 8, Read = 31
 Data=  10020700,70:B7:96:CF:52:6E,-69

[AT+INFO] Written = 9, Read = 1
 Data=

# ./test_ttyUSB0
[AT+VER] Written = 8, Read = 18
 Data=  ▒:96:CF:52:6E,-75

[AT+INFO] Written = 9, Read = 1
 Data=

# ./test_ttyUSB0
[AT+VER] Written = 8, Read = 36
 Data=  22d4537313030,00:1B:C3:07:27:BA,-60

[AT+INFO] Written = 9, Read = 1
 Data=

# ./test_ttyUSB0
[AT+VER] Written = 8, Read = 41
 Data=  b2f45f5425a6af1904,2D:72:C7:81:32:FC,-78

[AT+INFO] Written = 9, Read = 1
 Data=

# ./test_ttyUSB0
[AT+VER] Written = 8, Read = 3
 Data=  OK

[AT+INFO] Written = 9, Read = 47
 Data= 74:F0:7D:C9:FB:DA,BoT,CLIENT[OBSERVER],ADV[ON]


# ./test_ttyUSB0
ti_usb_3410_5052_1 ttyUSB0: ti_open - cannot clear output buffers, -104
open error!!!

# [WN5 Event] wn5_event_notify_to_app : cmd (0x00000003), sub(0x00000000)
[event] USB device disconnect devnum=3, idVendor=0451, idProduct=3410
usb 1-1: USB disconnect, device number 3
ti_usb_3410_5052_1 ttyUSB0: TI USB 3410 1 port adapter converter now disconnected from ttyUSB0
ti_usb_3410_5052 1-1:2.0: device disconnected
usb 1-1: new full-speed USB device number 4 using dwc2
usb 1-1: New USB device found, idVendor=0451, idProduct=3410
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: TUSB3410 Boot Device
usb 1-1: Manufacturer: Texas Instruments
usb 1-1: SerialNumber: TUSB3410
[event] USB device connect
[WN5 Event] wn5_event_notify_to_app : cmd (0x00000003), sub(0x00000001)
ti_usb_3410_5052 1-1:1.0: TI USB 3410 1 port adapter converter detected
usb 1-1: Direct firmware load for ti_usb-v0451-p3410.fw failed with error -2
usb 1-1: reset full-speed USB device number 4 using dwc2
usb 1-1: device firmware changed
ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5
[WN5 Event] wn5_event_notify_to_app : cmd (0x00000003), sub(0x00000000)
[event] USB device disconnect devnum=4, idVendor=0451, idProduct=3410
usb 1-1: USB disconnect, device number 4
usb 1-1: new full-speed USB device number 5 using dwc2
usb 1-1: New USB device found, idVendor=0451, idProduct=3410
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: TUSB3410 Boot Device
usb 1-1: Manufacturer: Texas Instruments
usb 1-1: SerialNumber: TUSB3410
[event] USB device connect
[WN5 Event] wn5_event_notify_to_app : cmd (0x00000003), sub(0x00000001)
ti_usb_3410_5052 1-1:1.0: TI USB 3410 1 port adapter converter detected
ti_usb_3410_5052: probe of 1-1:1.0 failed with error -5
ti_usb_3410_5052 1-1:2.0: TI USB 3410 1 port adapter converter detected
usb 1-1: TI USB 3410 1 port adapter converter now attached to ttyUSB0
============================================================================================================

Thank you!

  • Hello Charles,

    Could you please verify SUSPEND signal when this occurs? if the signal is high it confirms the device is in suspend mode.

    Could you please send more details about the "./test_ttyUSB0" tool they are using? it seems that after running several times this tool the port is not responding (not exactly as a "suspend mode").

    From the failing log, it seems it is not cleaning correctly the buffer after using it so after using it several times the buffer getting an overflow.

    Regards,
    Roberto
  • Thank Roberto,

    Customer sent new log data.
    -------------------------------------------------------< log data>-------------------------------------------
    i_usb_3410_5052 1-1:2.0: ti_send_ctrl_data_urb - usb_control_msg failed: -104
    [WN5 Event] wn5_event_notify_to_app : cmd (0x00000003), sub(0x00000000)
    [event] USB device disconnect devnum=7, idVendor=0451, idProduct=3410
    usb 1-1: USB disconnect, device number 7
    ti_usb_3410_5052 1-1:2.0: ti_send_ctrl_data_urb - usb_control_msg failed: -19
    ti_usb_3410_5052_1 ttyUSB0: ti_set_termios - cannot set config on port 0, -19
    ti_usb_3410_5052 1-1:2.0: ti_send_ctrl_data_urb - usb_control_msg failed: -19
    ti_usb_3410_5052_1 ttyUSB0: ti_write_byte - failed, -19
    ti_usb_3410_5052_1 ttyUSB0: ti_set_termios - cannot set modem control on port 0, -19
    ti_usb_3410_5052 1-1:2.0: ti_send_ctrl_data_urb - usb_control_msg failed: -19
    ti_usb_3410_5052_1 ttyUSB0: ti_open - cannot send open command (2), -19
    ti_usb_3410_5052_1 ttyUSB0: TI USB 3410 1 port adapter converter now disconnected from ttyUSB0
    ti_usb_3410_5052 1-1:2.0: device disconnected
    usb 1-1: new full-speed USB device number 8 using dwc2
    usb 1-1: New USB device found, idVendor=0451, idProduct=3410
    usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    usb 1-1: Product: TUSB3410 Boot Device
    usb 1-1: Manufacturer: Texas Instruments
    usb 1-1: SerialNumber: TUSB3410
    [event] USB device connect
    -------------------------------------------------------< end >-------------------------------------------
    This error occurs when /dev/ttyUSB0 open, and it is an error that occurs when usb command TI_PURGE_PORT.
    If you have a recommended linux driver, please provide it.

    Thank you!
  • Hello Charles,

    Could you please send us the tool that you are using?

    Regards,
    Roberto
  • Hi Roberto,

    As customer company's security issue, cannot share tools or code.
    Instead, he shared information about the operation environment.
    He used TUSB3410 default driver in linux kernel version 4.4.1.
    And the '/ test ttyUSB0' driver contains only simple commands such as read, write, and erase.
    My customer asked me to send Linux TUSB3410 driver and firmware.
    I have to visit my client company tomorrow afternoon to solve this problem.
    Please answer as soon as possible.

    Thank you.
  • Hello Charles,

    Please note, this driver is included by default since kernel 2.6 so the driver is also included in the kernel source and the Linux community is the owner of this driver.

    Regards,
    Roberto