Hi, I tried to record using pyjoulescope_driver on RPi, but it gives warnings and it doesn’t finish so that I need to kill process.
It generates jls file, but it’s slightly shorter than expected duration (ex. 28.8 sec, expected 30 sec).
The warning seems to occur at the end of recording. (it’s same with different duration setting).
And it seems to depend on number of signals setting.
On Windows, it completes successfully without any warning using same versions of Python and joulescope modules.
Any limitation on RPi?
With setting three signals, get warnings for each signals and doesn’t finish. Generated jls file has shorter (28.8 sec) than expected.
(myenv) test@raspberrypi:~/test_js $ python -m pyjoulescope_driver record --set "s/i/range/select=128" --duration 30 --frequency 1000000 --signals current,voltage,power ./test.jls
Start recording. Press CTRL-C to stop.
WARNING:2024-02-29 09:32:48,169:record.py:231:pyjoulescope_driver.record:Timed out in publish: s/i/ctrl <= 0
WARNING:2024-02-29 09:32:48,420:record.py:231:pyjoulescope_driver.record:Timed out in publish: s/v/ctrl <= 0
WARNING:2024-02-29 09:32:48,671:record.py:231:pyjoulescope_driver.record:Timed out in publish: s/p/ctrl <= 0
With setting two signals, it works with different warning and generated jls file has 29.95 sec data (expected).
(myenv) test@raspberrypi:~/test_js $ python -m pyjoulescope_driver record --set "s/i/range/select=128" --duration 30 --frequency 1000000 --signals current,power ./test.jls
Start recording. Press CTRL-C to stop.
WARNING:2024-02-29 10:32:04,049:threaded_writer.c:186:pyjls.c:thread msg 3:fsr took 678 ms
(myenv) test@raspberrypi:~/test_js $
With setting one signal, it works without any warning and generated jls file has 29.94 sec data (expected).
(myenv) test@raspberrypi:~/test_js $ python -m pyjoulescope_driver record --set "s/i/range/select=128" --duration 30 --frequency 1000000 --signals power ./test.jls
Start recording. Press CTRL-C to stop.
(myenv) test@raspberrypi:~/test_js $
Note: I checked duration in jls file using vertical annotation on joulescope UI on Windows.
environment:
- JouleScope JS110
- Raspberry Pi 4B (1.5GHz-64bit quad-core CPU, 8GB RAM)
- Raspberry Pi OS 12 (bookworm), Linux 6.1.0-rpi8-rpi-v8 aarch64
- Python 3.11.2
- joulescope 1.1.12
- pyjoulescope_driver 1.4.8
- pyjls 0.9.2