Skip to content

Connect Genmitsu GGW-UART module with UGS or Candle running on a PC

License

Notifications You must be signed in to change notification settings

sun2sirius/Genmitsu-WiFi-Module-PC-Connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genmitsu-WiFi-Module-PC-Connect

Connect Genmitsu GGW-UART module with UGS or Candle running on a PC

The Genmitsu CNC machines utilize GRBL firmware, with G-code instructions transmitted over a serial interface. Typically, the machine's GRBL controller connects to a PC via a USB cable, which appears as a COM port on the system. CNC software, such as UGS (https://winder.github.io/ugs_website), communicates with the machine through this COM port to send G-code commands. While the USB connection provides a fast and reliable link to the machine, having a computer physically tethered to the machine in a shop environment can be inconvenient. A wireless connection would be a more practical solution.

In addition to the USB interface, Genmitsu machines typically feature a connector for an Offline Control Module or a Wireless Wi-Fi Module. This connector is a simple UART interface with RX, TX, GND, and +5 VCC pins. The Genmitsu GGW-U232 Wireless Wi-Fi Module Kit enables a wireless connection to the machine via an app (available for iOS or Android). The app provides a clean and intuitive interface, allowing users to upload G-code, jog the machine, and more. However, it lacks features such as design creation and visual monitoring that UGS offers. This project aims to connect the Genmitsu PROVerXL 4030 with the GGW-U232 Wireless Wi-Fi Module to a PC running UGS.

Connect over TCP

Follow the steps to set up the GGW-U232 module with the Genmitsu app normally, as described in its documentation and also in YouTube videos, such as this one. Make sure everything works and you can jog the machine with the app. Then disconnect and close the app, keep the CNC and Wi-Fi module powered on, and open your PC or laptop connected to the same Wi-Fi network. Run the simple Python script, DiscGenm.py, provided here to discover the Genmitsu module and retrieve its information. After being configured with the app, the module broadcasts its info on the network every 1 seconds in the following format:

{"ip":"192.168.1.x","port":"10086","name":"Gmt_Grbl_xxxx","uuid":"xx:xx:xx:xx:xx:xx"} 

Note the IP address and port number as we need those when connecting with UGS. Open UGS, go to Tools -> Options and select the TCP driver as described here: (https://github.com/winder/Universal-G-Code-Sender/wiki/Connecting-the-Controller#grbl-over-the-network). Then type the host and port information into the “Host” and “Baud” fields in the UGS connection bar, like this:

qwe

Then go ahead and select GRBL from the Firmware list even if it is already selected. Then click the connect icon and see if you can successfully connect to the module and control the machine. You may get an error message, like "ensure that port number is between 1 and 65535" - just go to the Firmware list and select GRBL again.

Technical details

The module creates a Wi-Fi access point with a name like Gmt_Grbl_xxxx for the initial setup. The module's server is at address 192.168.4.1 so the app can connect and set up credentials to the local Wi-Fi network. After the module is successfully connected to the local Wi-Fi it starts broadcasting a UDP packet with its network info in JSON format as shown above. The UDP packet source port is 1233, destination port is 1234, so the DiscGenm.py script is listening on port 1234. The module simply implements a TCP-to-UART service - data sent to the TCP socket is translated to serial protocol and sent to the CNC via the ribbon cable.

About

Connect Genmitsu GGW-UART module with UGS or Candle running on a PC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages