Ajout FishPeper

This commit is contained in:
Serge NOEL
2026-04-21 12:19:15 +02:00
parent 6744da3f88
commit 0c361a2440
2160 changed files with 589301 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
{
"ports": [
{
"comName": "/dev/ttyFAKE",
"manufacturer": "grbl-sim"
}
]
}

View File

@@ -0,0 +1,32 @@
#!/bin/bash
FAKETTY=/dev/ttyFAKE
GRBLSIM="./grbl_sim.exe"
# Kill the socat process running in background
trap "ctrl_c" 2
ctrl_c() {
printf "\nTerminating grbl-sim.\n"
for child in $(jobs -p); do
sudo kill $child
done
exit
}
if [ ! -e $GRBLSIM ];then
printf "Build grbl-sim with 'make' first.\nIf the output is not named $GRBLSIM this script needs to be updated.\n"
exit
fi
sudo socat PTY,raw,link=$FAKETTY,echo=0 "EXEC:'$GRBLSIM -n -s step.out -b block.out',pty,raw,echo=0"&
# Wait for socat to setup the link then change permission
sleep 1
sudo chmod a+rw /dev/ttyFAKE
printf "grbl-sim running on $FAKETTY\n"
printf "Press [CTRL+C] to stop.\n"
while true
do
sleep 100
done