UCCNC and Arduino

This Section is for users to discuss hardware

UCCNC and Arduino

Postby camivic » Mon Nov 13, 2023 3:54 pm

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.
camivic
 
Posts: 26
Joined: Thu Dec 08, 2016 10:32 pm

Re: UCCNC and Arduino

Postby cncdrive » Tue Nov 14, 2023 4:17 pm

Try to send an ENTER character after the command text.
cncdrive
Site Admin
 
Posts: 4727
Joined: Tue Aug 12, 2014 11:17 pm

Re: UCCNC and Arduino

Postby camivic » Wed Nov 15, 2023 12:47 pm

Tryed, but nothing!!!
camivic
 
Posts: 26
Joined: Thu Dec 08, 2016 10:32 pm

Re: UCCNC and Arduino

Postby A_Camera » Mon Nov 20, 2023 8:35 am

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.
A_Camera
 
Posts: 638
Joined: Tue Sep 20, 2016 11:37 am

Re: UCCNC and Arduino

Postby camivic » Thu Nov 23, 2023 12:39 pm

Yes, if I open Notepad or any other application, the keys are recognized correctly. I really don't understand!!!
camivic
 
Posts: 26
Joined: Thu Dec 08, 2016 10:32 pm

Re: UCCNC and Arduino

Postby Ruslan » Tue Dec 12, 2023 1:26 pm

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.
Ruslan
 
Posts: 22
Joined: Wed Jan 25, 2023 11:05 am

Re: UCCNC and Arduino

Postby cncdrive » Wed Dec 13, 2023 11:10 am

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. :(
cncdrive
Site Admin
 
Posts: 4727
Joined: Tue Aug 12, 2014 11:17 pm

Re: UCCNC and Arduino

Postby dezsoe » Sat Dec 16, 2023 1:05 pm

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.
dezsoe
 
Posts: 2068
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Hardware

Who is online

Users browsing this forum: No registered users and 4 guests