Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPG mode switching and grblHAL #2693

Open
stevempotter opened this issue Feb 10, 2025 · 2 comments
Open

MPG mode switching and grblHAL #2693

stevempotter opened this issue Feb 10, 2025 · 2 comments

Comments

@stevempotter
Copy link

Description

I am new to UGS, so don't assume I know much here. I previously used IOsender for my MPCNC that is running on a Teensy 4.1 MCU. I would like to use UGS along with my home-made wireless pendant. The pendant is described in this YouTube vid.
The CNC is running grblHAL firmware, which has an MPG signal using an RX/TX UART line on the Teensy to ensure that only one thing is controlling the machine at a time, either the pendant or UGS on a laptop.

Can UGS make use of this MPG flag functionality, described here?

One of the benefits of grblHAL is it can go faster when a 32-bit processor like the Teensy is being used.
Does UGS work natively for 32 bit-processing?

Maybe I just need to configure UGS differently to get my pendant to play nice with it?

@breiler
Copy link
Collaborator

breiler commented Feb 15, 2025

UGS will work with grblHAL for things that are compatible with the GRBL 1.1 protocol. Any extra stuff that grblHAL has implemented will probably not work. See https://github.com/grblHAL/core/wiki/Compatibility-level#compatibility-levels

UGS does not care if the controller is running on 8-bit or 32-bit, it is communicating with it through a serial connection. So this does not matter.

UGS does not read the MPG flag at this moment. If UGS receives the responses made by another device/connection it will confuse the internal work queue in UGS. I don't have a MPG capable grblHAL device available at the moment, so I can not test the behaviour myself.

@stevempotter
Copy link
Author

As I am eager to be able to use my pendant while UGS is running, I would be happy to test things for you to get an MPG flag reading functionality working in UGS. But I would need you (or anyone) to tell me what to test and how. The way I bench test things is to have a Teensy running grblHAL firmware but not connected to a CNC machine. (I have to spoof the endstops with jumpers). Maybe you could set up such a tester there?

The desired behavior is to use the MPG line to decide which of the two has control of the machine, UGS vs pendant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants