Running - modmaker/BeBoPr GitHub Wiki
Remote GUI via socket connection
For printer programs like repsnapper and pronterface, that expect a serial-like device for communication, use 'socat' to generate a virtual serial port and connect to the application on the BeagleBone:
- Make sure the directory $HOME/dev exists and is accessible
- The target here is named 'beaglebone', replace it with the proper name or IP address.
socat -d -t5 -T20 PTY,link=$HOME/dev/tty3D,wait-slave EXEC:'"ssh -l root beaglebone ./mendel.elf"'
Now you can connect to the printer by opening the device '$HOME/dev/tty3D' (or whatever you named it) in your printing application.
Local, interactive
In a shell on the beaglebone, just start the application:
./mendel.elf
and type commands. Exit with control-C.
Local, from file
In a shell on the beaglebone, run all the commands from a file by starting the application with input redirection:
./mendel.elf < gcode_file
or via a pipe:
cat gcode_file | ./mendel.elf
.
Other ways
Of course, since this is unix, there are various other ways to issue commands:
echo "g1 x100 y100 z100 e100 f600" | ssh -l root beaglebone ./mendel.elf
or all lines that start with a G1 command from a local file:
cat gcode_file | grep -i "^g1[^0-9]" | ssh -l root beaglebone ./mendel.elf
Use your imagination!