ioSender icon indicating copy to clipboard operation
ioSender copied to clipboard

Running IOSender without a controller

Open raenji-sk opened this issue 4 years ago • 7 comments

IOSender (latest edge release) crashes when opening any gcode and no controller is attached. Is that supposed to work like that? I think most senders work without a controller....

raenji-sk avatar May 18 '21 14:05 raenji-sk

ioSender does not work without a controller - it reads settings etc. from the controller on connect so it can configure itself accordingly. I might change this later but I do not regard this as a high priority issue.

terjeio avatar May 18 '21 14:05 terjeio

Ok, no problem. It just would make some testing and debugging more convenient if it would work without a controller and perhaps act as if a proper grblHAL controller was connected. If a thing like that is possible of course.

raenji-sk avatar May 18 '21 15:05 raenji-sk

... act as if a proper grblHAL controller was connected. If a thing like that is possible of course.

The simulator could be an option then? I have compiled and run it under Linux and connected to it via a network connection. Note that it is quite resource hungry...

It should be possible to compile it for Windows but I have not tried that.

terjeio avatar May 18 '21 18:05 terjeio

That might work. Could it be an option to run it without a controller at all with all tabs active - independent from the controller?

I tried the simulator, compiles fine in wsl2, but the comcat fake tty is not working properly. Don't have any Linux installed... When compiling for windows it asks for a bunch of windows ".h" files. Got some from the wine repo, but it still wants more.

Sorry for the bad description, I am not really good with Linux... Can you maybe try windows compile when you have time for it?

raenji-sk avatar May 19 '21 10:05 raenji-sk

Could it be an option to run it without a controller at all with all tabs active - independent from the controller?

Then I have to add a grblHAL simulator to the sender...

I tried the simulator, compiles fine in wsl2, but the comcat fake tty is not working properly.

Try with a network connection instead. I start with ./grbl_sim.exe -n -p 23 23 is the port number, use another if a telnet server is already running.

Can you maybe try windows compile when you have time for it?

Yes, or perhaps better to set up github to generate the executables automatically on changes.

terjeio avatar May 19 '21 14:05 terjeio

Can't get it to run even with network. Maybe WSL does not allow it... Always says that it can not bind socket. And if I input some crazy high number like 25639 then it does not complain about the socket but the simulator does not start. BTW, It works OK without any connection (network or tty) and I can access the GRBL commands in terminal, but of course there is no way to connect the sender to it then.

raenji-sk avatar May 20 '21 07:05 raenji-sk

I managed to get this to work on a Windows machine in case anyone wants to try this. Download the grblhal sim for windows using the webbuilder. Open a terminal window in the folder containing the sim exe. Then run the command ./grblHAL_sim.exe -n -p 23
Launch iosneder. In the Network tab, enter port 23, and then the ip address of the machine that the sim is running on (can be same machine that is running Iosender). Iosender will launch properly.

axg20202 avatar Nov 09 '23 12:11 axg20202