ambiot / ambpro2_arduino

AmebaPro2 Arduino third-party package SDK
https://www.amebaiot.com/en/ameba-arduino-summary/
MIT License
45 stars 20 forks source link

Inquiry about changing wifi udp video streaming buffer #146

Closed qkrwogur closed 8 months ago

qkrwogur commented 10 months ago

I am streaming video in real time using Wi-Fi UDP. There is a phenomenon in which the video stops while the log below continues to be displayed. Please let me know if I can fix the udp buffer or what exactly this log means.

[Driver]: skb_unavailable=15 in last 2 seconds

github-actions[bot] commented 10 months ago

Hello, hope this message finds you well. Congrats to your first Issue! We will review it as soon as possiable. Feel free to have a look at https://www.amebaiot.com/en/ameba-arduino-summary/ for more information

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 14 days with no activity.

S10143806H commented 9 months ago

Hi @qkrwogur ,

This log is used as a dynamic check_timer handler in Wi-Fi core functions. This handler is used to check watchdog, interface status, lps and Wi-Fi traffic. It will be set during the mlme (Media Access Control (MAC) Sublayer Management Entity) init stage and will be triggered when skb packet fails to be transmitted.

While skb is a control structure used for sending and receiving data packets. Some fields point to allocated memory to store the packets. When transferring to the protocol stack, the pointer is moved to obtain information such as Ethernet header, network header, transport header, and so on.

I am doubting that you are not deinit your video, rtsp and camera related objects correctly after the video transmitting. Which casuing skb being jammed since camera sensor is still sending data to the transmission queue which causing buffer full and triggers the dynamic_check_timer timeout.

Please try to use the methods here to deinit the objects in your code accordingly and try again. https://github.com/ambiot/ambpro2_arduino/blob/3e3ca18cf1c304d944b9fa0e6f7f27bf5ddce03e/Arduino_package/hardware/libraries/Multimedia/examples/MotionDetection/MotionDetectGoogleLineNotify/MotionDetectGoogleLineNotify.ino#L318-L326

Thanks

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 14 days with no activity.