I am trying to execute commands using the -X switch on the Spike Prime Hub but all I get is either nothing, or unknown command errors. Here is what I tried so far:
screen /dev/ttyACM0 -X 'print("test")'
screen /dev/ttyACM0 -X $'print("test")/n'
screen /dev/ttyACM0 | 'print("test")'
screen /dev/ttyACM0 | $'print("test")/n'
The piped commands gave me unknown command errors. When I change the main.py and add some prints, they are shown even if printed before I login. So stream wise that is working no matter when I login.
Another issue occures with the rshell rsync. I had to add a switch to stop the sound files from syncing since they crash rshell. Also rshell stops the code execution on the hub. I tried the above commands before and after rshell rsync call. When I login the hub after rshell I can enter python commands without hitting ctrl+c. Before rsync I have to stop execution with ctrl+c before I am able to type.
But the screen command does not execute python in all cases. Any ideas ?
The main task I want to achieve is that the hub continues execution after rsync. I wanted that with a screen command. But the whole Spike Prime software seems buggy and sluggish from the open source point of view.