Problem with rshell running a series of commands
Posted: Sat Apr 03, 2021 4:15 am
I am using micropython v. 1.12 and PYB v1.1. connected via usb to raspberry pi 4B with latest version of Raspberry Pi OS.
I can manually enter rshell and then enter repl and then type import mm1 and get the simple program to run ok.
However, if I run the following code, it does'nt work:
$rshell repl ~ import mm1
The error message is: unable to find to find board 'home/pi'
I am using the default name of the board.
Also in the Readme, the code is given as 'rshell.py repl ~ some_command '. Please clarify the rshell.py versus rshell usage.
My ultimate goal is to run a python script on the host computer that will use the subprocess module to run a program on the pyboard that will return some data to the host computer.
Any help would be greatly appreciated!
lcleve
I can manually enter rshell and then enter repl and then type import mm1 and get the simple program to run ok.
However, if I run the following code, it does'nt work:
$rshell repl ~ import mm1
The error message is: unable to find to find board 'home/pi'
I am using the default name of the board.
Also in the Readme, the code is given as 'rshell.py repl ~ some_command '. Please clarify the rshell.py versus rshell usage.
My ultimate goal is to run a python script on the host computer that will use the subprocess module to run a program on the pyboard that will return some data to the host computer.
Any help would be greatly appreciated!
lcleve