P2P broadcast package size watchdog when also connected to crtp

Firmware/software/electronics/mechanics
Post Reply
Kaiser1401
Beginner
Posts: 11
Joined: Tue Apr 21, 2020 11:36 am

P2P broadcast package size watchdog when also connected to crtp

Post by Kaiser1401 »

Hi,

I implemented some P2P swarm protocoll and realised after quite a while that when I use a data size of P2P_MAX_DATA_SIZE (60), the propability of the watchdog kicking in is quite high. Especially when als connectetd to the client via crtp-radio.

Everything works fine now if I lower the data size in the P2PPacket to maximum 57 bytes.

I am not quite sure what causes it, and it is not completely deterministic. Maybe someone else has more insight.
Until then, this is for the people who might run into the same trouble.

-Klaus
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: P2P broadcast package size watchdog when also connected to crtp

Post by kimberly »

Hi!

Thanks for letting us know. We haven't seen this ourselves back then but maybe some recent changes to the firmware has affected this somehow. I will create an issue on github repo to make people aware there and to remind us to investigate this.
Post Reply