urh
urh copied to clipboard
Demodulation is significantly slower via `urh_cli`
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
- OS: Kali Linux
- URH version: 2.9.3
- Python version: 3.10.4
- Installed via pip
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.