Other Parts Discussed in Thread: AM2732
We could make a communication between the ECU and the PC by configuring the IP statically.
Does anyone know how to configure the PORT？？
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.
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,
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.