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.

TMDS273GPEVM: TMDS273GPEVM ethernet port configuration

Part Number: TMDS273GPEVM

We could make a communication between the ECU and the PC by configuring the IP statically.

Does anyone know how to configure the PORT??

  • Hi Cl Xu,

    Can you please elaborate what exact configuration or changes do you want in the Port? I see you are able to communicate between ECU and the PC, right?

    Regards,
    Shaunak

  • Yes,We could be able to make a communication between the ECU and the PC by configuring the IP statically.

    If I would like to config the port number of AM2732 to be 8000, how to configure the PORT number?

  • Hi Cl Xu,

    In case of TCP Client example, in app_tcpclient.c there will be a MACRO HOST_SERVER_PORT which defines the host server port number, by default it is set to 8888.

    Similarly, if you are using UDP Client example, there will be a MACRO SOCK_HOST_SERVER_PORT in app_udpclient.c 

    Please modify it as per your requirement, save the file, rebuild the example and test the new binary. Do let me know if you face any issues,

    Regards,
    Shaunak

  • I'm sorry.

    The SOCK_HOST_SERVER_PORT defines the host server port number, that is destination port number.

    I would like to config the source port number of the AM2732.

    Does anyone know????

  • Hi Cl Xu,

    You can use the netconn_bind() API, although we have not tested it for Client-side applications to set a port number to Client. But it should work, we can give it a try.

    You can pass the desired port you want for client in this function.

    Regards,
    Shaunak