jopohl / urh

Universal Radio Hacker: Investigate Wireless Protocols Like A Boss
GNU General Public License v3.0
10.99k stars 874 forks source link

Demodulation is significantly slower via `urh_cli` #992

Open braedinski opened 2 years ago

braedinski commented 2 years ago
Expected Behavior

Messages should be appended to the ProtocolSniffer.messages list as soon as they are available.

Actual Behavior

There is a significant lag when using urh_cli compared to the URH GUI. It's almost as if messages are being polled for every 5 seconds (not saying this is the case but for explanation's sake), compared to URH where - when a signal is demodulated, it appears almost instantly.

Steps To Reproduce

Compare the delay between urh_cli and URH GUI when demodulating any signal. In my case, it was FSK using default settings, obviously the frequency has been changed.

Platform Specifications
braedinski commented 2 years ago

Evidently ProtocolSniffer only attempts to run __demodulate_data once the buffer exceeds ProtocolSniffer.BUFFER_SIZE_MB. Reducing the size of this buffer to say 1 MB will increase the "reaction time" but it's still not as fast as the URH GUI.