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.

network terminal例程下udp client 如何接收数据

Other Parts Discussed in Thread: CC3120

你好,我在测试CC3120模块的network terminal例程时有个问题不太明白。

我使用udp client模式下的发送,pc机用网络调试助手接收数据,pc的端口号是5556,这样做没有问题。

但用pc向cc3120发送数据时,cc3120的端口号应该是多少?我使用的命令是“recv -u -p 5556  -n 1”,但是pc向5556这个端口发数据cc3120是收不到的。所以我该用哪个端口向cc3120发数据呢??????

另外我看udp client模式发送时使用的是随机端口,例程在发送后调用了sl_Close,那么这个端口在发送完后就不能使用了吧?