AMB82-Mini Arduino monitor filled with unwanted debug messages

Hello,

Im trying to debug my own code, but i cant print anything out because some code inside WiFiClient class is constantly printing thousands of debug messages.

There are other classes that are doing the same thing, taking over the debug monitor by filling it with unwanted internal debug messages, making debugging impossible.

Anybody knows how to stop those?

See below for an example from WiFIClient class

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed
[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed
[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed
[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed
[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed
[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed
[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connectionYOLOv4t tick[52]

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

[ERROR] get_available Accept connection failed

Hi @nsmith1024,

In order to remove the debug messages of “[ERROR] get_available Accept connection failed”, you may comment off the print error message in line 350 of ard_socket.c.

Thank you.

Thanks for the comment. Im using it with arduino,

  1. how do i access or compile that file? where is it located?
  2. How do i compile it after changing it
  3. How do i put that on arduino?

Thanks

Dear @nsmith1024,

  1. To comment off the print statement, you may proceed to the directory on your pc path C:\Users{uesername}\AppData\Local\Arduino15\packages\realtek\hardware\AmebaPro2\4.0.8-build20241008\cores\ambpro2, then find file name ard_socket.c.

  2. Open up the file and go to line 350 you will saw this line printf(“\r\n[ERROR] %s Accept connection failed\n”, FUNCTION); and and comment off by adding //. eg. //printf(“\r\n[ERROR] %s Accept connection failed\n”, FUNCTION);

  3. Save and close the file, no compile is needed.

  4. Re-run your arduino code on arduino IDE.

Thank you.

Thanks,

How do i get rid of these other debug messages that are filling the screen with junk. I cant debug my own program because of all this junk flooding the screen.

I tried searching for the string but it doesnt show up anywhere.

Is there a way to block the internal libraries print statement from reaching the serial port?

09:11:00.393 →
CH 0 MMF ENC Queue full
09:11:00.426 →
YOLOv4t tick[61]
09:11:00.426 →

09:11:00.426 →
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]
YOLOv4t tick[61]
09:10:58.228 →
YOLOv4t tick[61]

[VID Wrn]
09:11:00.426 →
CH 0 MMF ENC Queue full
09:11:00.460 →
09:11:00.460 →

[VID Wrn]
09:11:00.460 →
CH 0 MMF ENC Queue full
09:11:00.496 →
09:11:00.496 →

[VID Wrn]
09:11:00.496 →
CH 0 MMF ENC Queue full
09:11:00.496 →
09:11:00.529 →

[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →

[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →
[VID Wrn]
09:11:00.530 →
CH 0 MMF ENC Queue full
09:11:00.530 →
09:11:00.562 →

Hi @nsmith1024 , to remove the print statement line of YOLOv4t tick[61] , you may disable the nn print log at Arduino ide. Please refer to this document. Thank you.

Hello,

Im using Arduino IDE 2.3.6 and it does not have that selection in the menu to disable it.

Can i disable it from the code, because its wasting CPU time printing out data to the serial port that is not necessary.

Can you please tell me how to delete the print in the code itself?

Thanks

A quick glance:
https://github.com/Ameba-AIoT/ameba-arduino-pro2/blob/18f4f5f8e737983ce4b54d54fdcf48edffc78bcb/Arduino_package/hardware/boards.txt#L107-L110

You just need to add this to cores/ambpro2/Arduino.h (above #ifndef Arduino_h):

#undef Arduino_SHOW_NN_LOGS

You can refer to Is it possible to disable the continuously looping logs (e.g. YOLOv4t tick) in Neural Network examples? — Ameba Arduino AIoT Documentation v1.1 documentation