B4J Question Jshell linux command on Raspberrypi

Michael1968

Active Member
Licensed User
Longtime User
Hello,

I want to control my Raspberry Pi Camera with jshell.
when i use raspistill with this command:

shl.Initialize("shl","raspistill",Array As String( "-w","640","-h","480","-o","test.jpg"))

...it works fine.

if i want to control raspimjpeg, i have to write to the pipe like this: (shell: echo "ca 1" > /path/to/pipe)

pls see:
https://github.com/silvanmelchior/u...ions/linux/apps/raspicam/README_RaspiMJPEG.md
can someone help me pls.
thx
Michael
 

Michael1968

Active Member
Licensed User
Longtime User
Can't you add the above parameters?

Hi Erel,
i found out that "raspimjpeg" do not work with the parameters, it only works with a config file.(bug)

when raspimjpeg is running, i could control it with the shell command : echo "ca 1" > /home/pi/FIFO in a Terminal session.

with b4J:
B4X:
shl.Initialize("shl","echo",Array As String( "'ca 1'>/home/pi/FIFO"))
nothing happens.

best regards Michael
 
Upvote 0
Top