Page 1 of 1

UCCNC and Arduino

PostPosted: Mon Nov 13, 2023 3:54 pm
by camivic
Hi everyone, I programmed an Arduino micro as a USB keyboard, assigning a keyboard character to each pin. Then on UCCNC I configured the hotkeys with the characters transmitted by Arduino, but they don't work. If I try to write in the MDI the characters are received, but the commands are not executed.
Can anyone help me?

Thanks.

Re: UCCNC and Arduino

PostPosted: Tue Nov 14, 2023 4:17 pm
by cncdrive
Try to send an ENTER character after the command text.

Re: UCCNC and Arduino

PostPosted: Wed Nov 15, 2023 12:47 pm
by camivic
Tryed, but nothing!!!

Re: UCCNC and Arduino

PostPosted: Mon Nov 20, 2023 8:35 am
by A_Camera
Does it work if you are using a real USB keyboard? Perhaps it is a configuration issue.
If you start up Notepad or another text editor, can you see the characters in the editor? Perhaps it's your keyboard emulating firmware has some bugs.

Re: UCCNC and Arduino

PostPosted: Thu Nov 23, 2023 12:39 pm
by camivic
Yes, if I open Notepad or any other application, the keys are recognized correctly. I really don't understand!!!

Re: UCCNC and Arduino

PostPosted: Tue Dec 12, 2023 1:26 pm
by Ruslan
Is there are news about this problem? I just began to write code for STM32 for emulating usb keyboard for external control panel. I don't want to waste a time if it will not work.

Re: UCCNC and Arduino

PostPosted: Wed Dec 13, 2023 11:10 am
by cncdrive
UCCNC is handling the keyboard in the lowest Windows API level, so it should work without problems.
I have no idea why it does not work for the OP. :(

Re: UCCNC and Arduino

PostPosted: Sat Dec 16, 2023 1:05 pm
by dezsoe
Can you show a piece of code how you send the keys to the PC? I did some tests and it seems to work fine.