43438 about tcp_client demo

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Leo_Liu
Level 2
Level 2
10 replies posted 10 sign-ins 5 replies posted

Hi Sir,

我目前打算搭建环境测试同一个AP下两个STA之间TCP收发包时间及丢包率,数据包会自定义大小,不考虑使用第三方工具如iperf,使用的是psoc6+43438。

我在wiced里面有找到demo:tcp_client比较适合,目前有两个问题,比较疑惑,请帮忙解答下,谢谢。

1.wifi_config_dct.h这个文件在该demo里面没有找到,是在哪里配置SSID等信息,default_wifi_config_dct.h下面有相关的宏,是在这里修改吗,还是说需要自己新建?

2.demo发送的数据是Hello from WICED,tx_data这个数据最大可以配置为多少?

0 Likes
1 Solution
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

Hi,

① 该demo没有设计wifi_config_dct.h,您可以从其他demo中复制该文件到这个demo目录中使用。当然,您也可以修改default_wifi_config_dct.h,但不推荐这么做。

② 如注释所注,“Memory for the tx_data is automatically allocated”,并且其数据类型是char*,所以:

  1. 您不能够配置它的大小;
  2. 它的实际容量将视栈空间或系统剩余内存空间而定;
  3. 您只需要把它当做可信任的写入入口来引用即可。

Best regards

View solution in original post

0 Likes
1 Reply
Charles_Lai
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 sign-ins

Hi,

① 该demo没有设计wifi_config_dct.h,您可以从其他demo中复制该文件到这个demo目录中使用。当然,您也可以修改default_wifi_config_dct.h,但不推荐这么做。

② 如注释所注,“Memory for the tx_data is automatically allocated”,并且其数据类型是char*,所以:

  1. 您不能够配置它的大小;
  2. 它的实际容量将视栈空间或系统剩余内存空间而定;
  3. 您只需要把它当做可信任的写入入口来引用即可。

Best regards

0 Likes