t-oster / LibLaserCut

a platform independant library to control Lasercutters. This is the base library for VisiCut
http://visicut.org
Other
59 stars 55 forks source link

GRBL over IP (LaserGRBL) #133

Open vitoller opened 5 years ago

vitoller commented 5 years ago

I would like to use Visicut with a laser plotter connected via IP, as described in: http://lasergrbl.com/en/usage/wifi-with-esp8266/

Procedure: Visicut -> Options -> Lasercutter

Choose "GRBL Gcode Driver" --> Upload method: "IP"

When I try to start the laser, i get the following error message: IOException: IP/Hostename must be setup to upload via IP method

However, I did not find a way to setup the IP (or port)

Visicut 1.8-51-gf22be37d

t-oster commented 5 years ago

Hi, the GRBL driver uses the "Generic Gcode driver", but removes the settings for host and port. Please try the Generic Gcode driver. If that doesn't work, maybe @madleech can make the Grbl driver also allow IP

tatarize commented 4 years ago

While you can set the hostname you still cannot set the port. It's hardcoded as 23.

socket.connect(new InetSocketAddress(getHost(), 23), 1000);

I'm writing a GRBL emulator for Meerk40t to masquerade as a GRBL but stream commands to the M2 Nano. And didn't have any idea what port to be on. Hard coding that to 23 limits it to exactly 1 machine and can't let you move it etc.