ATWINC3400 UDP streaming problem

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello all,

 

I have a problem with bidirectional streaming from PC to/from custom board with ATWINC3400 module integrated.

The setup is:

1) send 1024 over UDP from PC (udp server) to ATWINC3400 (udp client)

2) when the frame is received on ATWINC3400 send a frame of 1024 bytes back. 

3) when PC received the frame go to 1, when no frame is received within 2 seconds go to 1 too

 

The effect is: I can receive between 2000 and 20000 frames, then a frame is not received on the ATWINC3400, the timeout is detected on the PC and a frame is resent. 

But after the first UDP frame lost incident the transmission get's much worse, the next timeout will occur much faster (< 100 frames), and then after ca. 10 timeouts the ATWINC3400 is not receiving data anymore.

I know that with UDP it's allowed to lose frames but as the PC and the ATWINC3400 are very close I think even the first UDP frame drop is caused by a problem on the ATWINC3400. 

 

Does anybody have any hint on how to read/check the status of the ATWINC3400? Check its buffer or something like that? 

 

Here's a log of the data received on the PC (I also attached the udp_client.c)

first column: timestamp

second column: frame counter Rx

timeout counter: timeout detection counter

...

[28.150541, 2559] bytes received: 46062, timeout counter 0
[28.163542, 2560] bytes received: 46080, timeout counter 0
[28.17554, 2561] bytes received: 46098, timeout counter 0
[28.192538, 2562] bytes received: 46116, timeout counter 0
[28.204537, 2563] bytes received: 46134, timeout counter 0
[28.216231, 2564] bytes received: 46152, timeout counter 0
Write timeout on socket
[30.217384, 2565] bytes received: 46170, timeout counter 1
[30.230687, 2566] bytes received: 46188, timeout counter 1
[30.245068, 2567] bytes received: 46206, timeout counter 1
[30.262075, 2568] bytes received: 46224, timeout counter 1
[30.27638, 2569] bytes received: 46242, timeout counter 1
[30.295378, 2570] bytes received: 46260, timeout counter 1
[30.311721, 2571] bytes received: 46278, timeout counter 1
[30.327725, 2572] bytes received: 46296, timeout counter 1
[30.341735, 2573] bytes received: 46314, timeout counter 1
[30.364502, 2574] bytes received: 46332, timeout counter 1
Write timeout on socket
[32.368118, 2575] bytes received: 46350, timeout counter 2
[32.414361, 2576] bytes received: 46368, timeout counter 2
[32.431708, 2577] bytes received: 46386, timeout counter 2
[32.448431, 2578] bytes received: 46404, timeout counter 2

 

best regards

Matthias

Attachment(s): 

Last Edited: Sat. Jan 15, 2022 - 08:11 PM