Hello,
I am trying to emulate a USB Hid device on the Teensy LC.
It is a Handwheel for a CNC machine. It features an LCD Display (not important for me), some buttons and an encoder wheel.
You can buy this Product from china. It is the XHC4 Pendant for Mach 3.
I don't have the Product or the Mach 3 Software. I use a different software which support this Handwheel. But i neet some custom Buttons and other features and there is no suitable Pendant for my software on the marktet.
I found an STM32 project on Github what does exactly what I want, but I am not comfortable with stm32. I have a Teensy LC laying around and thouht I give it a try.
I got some basic coding knowledge, mainly Arduino from many different small projects.
But i have no clue of USB or HID. I am reading all day long on the Internet and try to figure it out, but i can't get it together.
The github project is here: https://github.com/moonglow/openxhc/tree/master
There is descriped what the host is needing for commands and how the data packet is beeing structured.
I also find this Video where someone did something similar.
My Problem is I am unable to create the new Device for teensy. I am quite unshure how to set the HID Device- Config an Report descriptor for the teensy, according to the Information given on the github page.
In the Video they use the original Product to sniff that data. But for me it is not an Option to buy the wheel to read out the data, because I cant use it later.
Is there someone who can give me some hints or maybe help me to get the initial device Setup?
I hope really hope someone can help me and i don't neet to buy a complete new CNC Control Unit to use a custom handwheel
I am trying to emulate a USB Hid device on the Teensy LC.
It is a Handwheel for a CNC machine. It features an LCD Display (not important for me), some buttons and an encoder wheel.
You can buy this Product from china. It is the XHC4 Pendant for Mach 3.
I don't have the Product or the Mach 3 Software. I use a different software which support this Handwheel. But i neet some custom Buttons and other features and there is no suitable Pendant for my software on the marktet.
I found an STM32 project on Github what does exactly what I want, but I am not comfortable with stm32. I have a Teensy LC laying around and thouht I give it a try.
I got some basic coding knowledge, mainly Arduino from many different small projects.
But i have no clue of USB or HID. I am reading all day long on the Internet and try to figure it out, but i can't get it together.
The github project is here: https://github.com/moonglow/openxhc/tree/master
There is descriped what the host is needing for commands and how the data packet is beeing structured.
I also find this Video where someone did something similar.
My Problem is I am unable to create the new Device for teensy. I am quite unshure how to set the HID Device- Config an Report descriptor for the teensy, according to the Information given on the github page.
In the Video they use the original Product to sniff that data. But for me it is not an Option to buy the wheel to read out the data, because I cant use it later.
Is there someone who can give me some hints or maybe help me to get the initial device Setup?
I hope really hope someone can help me and i don't neet to buy a complete new CNC Control Unit to use a custom handwheel