lnls-dig / rffe-fw

Repository containing RFFE controller firmware
1 stars 0 forks source link

RFFE hangs waiting for message payload that never comes #9

Closed lerwys closed 7 years ago

lerwys commented 7 years ago

Problem: The current "devel" commit 90fbb29 only reads the correct ammount of payload messages according to the received header. See lines between 569 and 579.

However, there are some messages that do not have any payload (like query functions), so we call a "recv" with len = 0, which might be hanging the RFFE controller.

Also, it is probably better to use the recv_all () version of the function, so as to guarantee we receve all bytes we are waiting for.

Possible Solution: replace recv () by recv_all () and check for payload = 0. If it is, don't try to call recv and instead just proceed normally.