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.

RTOS/TDA2P-ACD: EthernetRx Link Not Receivinf Data from Network_Tx PC tool

Part Number: TDA2P-ACD

Tool/software: TI-RTOS

Hello All,

I have created a EthernetRx link in Vision SDK for receiving some data over Ethernet using network_tx pc tool.

EthernetRx link similar to NullSrc link just that I am not notifying the output of this link to any of the next link. It is floating link. Also I have modified network_tx pc tool to send only 20 bytes of data.

My usecase is as below ,

Testlink is just for processing the data received over Ethernet.

When I send data from modified network_tx tool to my EthernetRx link (on port no. 29181), it receives data upto 5 times. When I send for the 6th time, Ethernet link hangs and does not receive anything.

Is there any such limitation in Vision SDK wherein we can receive data from network_tx tool only 5 times.

I am using PSDK 03.03 and I am using customized TDA2PX board.

Regards,

Abhay

  • Hello Abhay,

    There is no such limitation. As you can confirm from the default use-case, it can run for longer time.

    Please check your changes in the eth receive link and confirm if all data is processed correctly.

  • Hi Prasad,

    I checked my link but I am not able to find the issue. I will give you brief idea about what I am doing.
    Currently the PC side tool (which I have modified to send only 20 bytes of data), connects to the server then sends the 20 bytes of data and then close the connection. Below are the logs of Network_Tx PC tool,

    ""
    amol@amol-OptiPlex-3046:~/Desktop/NetworkTxPCTool/Network_Tx_Tool/bin$ ./NetworkTx.out --host_ip 10.20.2.100 --target_ip 10.20.2.65 --port 29181 --no_loop --files file.txt
    # Network Tx: Connecting to server 10.20.2.65:29181 ...
    # NETWORK: Connected to Server (10.20.2.65:29181)!!!
    ReadBytes: pHeader->dataSize = 20
    Wrote Cmd Header
    Wrote Data
    # INFO: Closing connection to Server
    ""

    My Ethernet link is in listening mode (executes the API "Network_waitConnect"), when I send the file using PC tool to my Ethernet link running on TDA2P, it receives the data and below are the logs from the UART console,

    """""""""""""""""""""""""""""""""""
    [HOST ] 25.400689 s: ETHERNETRXTX: NETWORK_RX: Connected to client (port=29181) !!!
    [HOST ] 25.400689 s:
    [IPU1-0] TESTLINK: Received data
    [IPU1-0] 25.401512 s: Received accelX & accelY
    [IPU1-0] 25.401604 s: Received accelX = 100
    [IPU1-0] 25.401665 s: Received accelY = 102
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.401207 s: ETHERNETRXTX: Reading payload !!!
    [HOST ] 25.401299 s:
    [HOST ] ETHERNETRXTX: Data parse complete
    [HOST ] 25.500701 s:
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.500732 s: ETHERNETRXTX: NETWORK_RX: Disconnected from client while reading header (port=29181)!!!
    [IPU1-0] 52.002043 s:

    [HOST ] 25.400689 s: ETHERNETRXTX: NETWORK_RX: Connected to client (port=29181) !!!
    [HOST ] 25.400689 s:
    [IPU1-0] TESTLINK: Received data
    [IPU1-0] 25.401512 s: Received accelX & accelY
    [IPU1-0] 25.401604 s: Received accelX = 100
    [IPU1-0] 25.401665 s: Received accelY = 102
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.401207 s: ETHERNETRXTX: Reading payload !!!
    [HOST ] 25.401299 s:
    [HOST ] ETHERNETRXTX: Data parse complete
    [HOST ] 25.500701 s:
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.500732 s: ETHERNETRXTX: NETWORK_RX: Disconnected from client while reading header (port=29181)!!!
    [IPU1-0] 52.002043 s:

    [HOST ] 25.400689 s: ETHERNETRXTX: NETWORK_RX: Connected to client (port=29181) !!!
    [HOST ] 25.400689 s:
    [IPU1-0] TESTLINK: Received data
    [IPU1-0] 25.401512 s: Received accelX & accelY
    [IPU1-0] 25.401604 s: Received accelX = 100
    [IPU1-0] 25.401665 s: Received accelY = 102
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.401207 s: ETHERNETRXTX: Reading payload !!!
    [HOST ] 25.401299 s:
    [HOST ] ETHERNETRXTX: Data parse complete
    [HOST ] 25.500701 s:
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.500732 s: ETHERNETRXTX: NETWORK_RX: Disconnected from client while reading header (port=29181)!!!
    [IPU1-0] 52.002043 s:
    """""""""""""""""""""""""""""""""""

    I can receive data from PC tool for 5 times. But on the 5th attempt, my ethernet link does not disconnect from client, Below are the logs for the same,

    """""""""""""""""""""""""""""""""""
    [HOST ] 25.400689 s: ETHERNETRXTX: NETWORK_RX: Connected to client (port=29181) !!!
    [HOST ] 25.400689 s:
    [IPU1-0] TESTLINK: Received data
    [IPU1-0] 25.401512 s: Received accelX & accelY
    [IPU1-0] 25.401604 s: Received accelX = 100
    [IPU1-0] 25.401665 s: Received accelY = 102
    [HOST ] Ethernet RxTx BITSTREAM
    [HOST ] 25.401207 s: ETHERNETRXTX: Reading payload !!!
    [HOST ] 25.401299 s:
    [HOST ] ETHERNETRXTX: Data parse complete
    [IPU1-0] 52.002043 s:
    """""""""""""""""""""""""""""""""""

    As you can see from the logs, I am not getting the print,
    "ETHERNETRXTX: NETWORK_RX: Disconnected from client while reading header (port=29181)!!!".

    And because it is not disconnected, for the next iteration the link is not able to connect to client again. I not able to find where exactly the issue is. Is it with the Ethernet link or the modified Network_Tx PC tool.

    Regards,
    Abhay
  • Hello Abhay,

    Issue seems to be from the client (network tool) side. I think it is not sending disconnect request or it is getting missed.

    Can you run wireshark on the PC and check if disconnection request is indeed sent in 6th time? Also make sure priority of new link is high enough so it does not miss any packets.

    Regards,

    Prasad

  • Hi Prasad,

    I have set the priority of my Ethernet link to 4,
    #define ETHERNETRXTX_LINK_TSK_PRI (4U)

    I will try again by increasing the priority. Can you point out to me the function call in the network_tx tool which sends the disconnection request.

    Thanks,
    Abhay
  •  Hi Prasad,

    I have attached the screenshot of wirshark logs. It seems for the 5th time some request between host and tda2p is missing.

    Can you suggest how do I approch this problem. Also with increased link priority the issue is still there.

    Regards,

    Abhay

  • Hello Abhay,

    Not sure why last reset is missing. You can check the default network tools flow and changes made by you to find any miss. Also put breakpoint in the network disconnect in VSDK and see it is hitting 5 times.

    Also I am wondering why you want to reset connection every time frame (20bytes) are sent. It can be kept opened for entire session.

    Regards,

    Prasad

  • Hi Prasad,

    I need to send different data files using network_tx tool every time. So that's why I am disconnecting at the end.

    Regards,
    Abhay
  • Hello Abhay,

    Can you add prints in the PC side tool and see why last reset not getting executed? Mostly I believe host app is waiting in receive when the reset happening.