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.

IWR6843ISK-ODS: How to distinguish config and data serial ports among various serial ports in Linux?

Part Number: IWR6843ISK-ODS

Hi,

I am now trying to use IWR6843ISK-ODS radar device on Linux PC.

However, every time I connect it to the PC, Linux changes its device file names, for example, "/dev/ttyACM0", "/dev/ttyACM1", "/dev/ttyACM2" and so on, depending on the other usb devices connected.

I would like to distinguish its config and data ports among the other usb devices.

Is there any way to do that?

I expect that there must be some kind of  HW specific number written in these two ports that Linux can read.

Best regards,

Fields

  • Hi, Nitin.

    Thank you for telling me about the thread.

    The thread was concluded that Chris's method is correct. Let me confirm if my summary below is correct or not.

    Summary

    --------------------

    [Assumption]

    Two IWR6843ISK-ODS radar devices(radar 1 & radar 2) are connected to Linux PC.

    -> I want to distinguish the 4 ports below.

        - radar 1 config port

        - radar 1 data port

        - radar 2 config port

        - radar 2 data port

    [Steps to distinguish 4 ports]

    Step 1.

     Search XDS110 devices with the following parameters in UDEV.

    • ATTRS{idVendor}=="0451"
    • ATTRS{manufacturer}=="Texas Instruments"

     -> I get 4 ports among the other non-XDS110 devices.

    Step 2.

     Distinguish radar 1 from radar 2 with the following parameters in UDEV.

    • ATTRS{serial}=="R0031206"        (R0031206 :serial number of radar 1. Every radar has an unique and never-changing serial number.)

     -> I get radar 1 config port and radar 1 data port.

    Step 3.

     Distinguish radar 1 config port from radar 1 data port with the following parameters in UDEV.

     (Only one of the check 1 and 2 is enough though.)

    • SUBSYSTEM=="tty"
    • ATTRS{bInterfaceNumber}=="00"        // where "00" refers to config port and "03" refers to data port --- check 1
    • ATTRS{iad_bFirstInterface}=="00"       // where "00" refers to config port and "03" refers to data port --- check 2

    -> I get radar 1 config port when "00", and radar 1 data port when "03".

    Am I correct?

    Best regards,

    Fields

  • Hi Fields,

    Your understanding is correct. However, the absolute post numbers for the control and data port may be different depending upon other devices connected to the system. The important point is that the first port (i.e. the port with the lower value) is the config port.

    Regards

    -Nitin