grblHAL / core

grblHAL core code and master Wiki
Other
304 stars 73 forks source link

Need Help to set up grblHAL #487

Closed timeO25 closed 2 months ago

timeO25 commented 2 months ago

Hello, I have an Teensy 4.1 and like to run grblHAL on it with ethernet. Can someone tell me what all the $$ configurations do and maybe give me an example how to send a G-Code with python to the T41U5XBB via ethernet and give me the correct hex file for that to load on the Teensy 4.1. Thank you very much. Best regards.

terjeio commented 2 months ago

Build your hex with the Web Builder. Enable networking and telnet server in the Network/WebUI tab. Default is that the IP address will be assigned with DHCP, $I output (in a terminal) will contain the address.

Somebody else has to provide you with python code - or you have to change the code provided in the Grbl repo.

ioSender (or the config app) has a config UI with description of all settings. Or see the Wiki.

timeO25 commented 2 months ago

Thanks for your fast help. When I typed $I in the terminal there was no IP in the output only IP: And do you have a list of all "$..." when using the "$$" command so that I know what they do/change.

Nick507 commented 2 months ago

And do you have a list of all "$..." when using the "$$" command so that I know what they do/change.

type : $E* in console, it will enumerate all settings, alarms and error codes

terjeio commented 2 months ago

Reset the settings with $RST=* and turn the board off and on again. Working now?

And do you have a list of all "$..." when using the "$$" command so that I know what they do/change.

Yes that is build into the controller, in a terminal send $help settings to get the full list. Or just $help to get the topics you can use with the $help command. Again, this is described in the Wiki page linked above.

Some things to check:

Is there light in the green LED in the ethernet socket? Blinking occasionally? Does the router you are connected to support DHCP? If not you need to change to a static IP address, change $301 - $304 to match your network. Is the 6 pin ethernet header soldered in the Teensy board?.

timeO25 commented 2 months ago

Does the T41U5XBB need an external power suply for the ethernet adapter, because der is no light blinking.

And what do you mean with "Is the 6 pin ethernet header soldered in the Teensy board?" ?

terjeio commented 2 months ago

No external supply is needed for ethernet. The 6-pin header is to be soldered in the red rectangle:

image

and a matching socket has to be added to the breakout board if not present. See the User Manual for details.

timeO25 commented 2 months ago

Thank you very much these pins where missing now it works thanks.

timeO25 commented 2 months ago

Do you know where I can ask to get code to send the G-Code via Network by my own with Java?

karoria commented 2 months ago

The readily available senders/webUI for grblHAL:

  1. IO Sender (C#)
  2. G-Sender (JS)
  3. Standard webui by Luc (JS)
  4. GrblTouch webui by me (JS)

There might be others too but not known to me for compatibility with grblHAL.

If you want to send gcode by your own java code, just open websocket port or telnet port and send gcode stream over it. You need to take care of "ok" responses to send them line by line.

timeO25 commented 2 months ago

Thank you very much I'll try that. How do I write an Java program which opens an port is there any example?

terjeio commented 2 months ago

Do you know where I can ask to get code to send the G-Code via Network by my own with Java?

Search internet for "java telnet client" - that may give you some pointers.

FYI UGS is a sender that is written in java, bCNC is written in python.

timeO25 commented 2 months ago

Thank you very much for your help I'll try that.