BU0836A HID devices

Announcements, questions
Post Reply
adrianp
Posts: 13
Joined: 03 Nov 2016, 14:26

BU0836A HID devices

Post by adrianp » 03 Nov 2016, 14:47

Hi, thanks for this great app !

My home cockpit uses 2 leoBodnar BU0836A devices but i have problems to assign logical device name.

In response to "lmc_print_devices()" command i get :

<unassigned> : BU0836A Interface [0] : game
<unassigned> : BU0836A Interface [0] : game
<unassigned> : \\?\HID#VID_1C4F&PID_0002&MI_00#9&826BD90&0&0000#{884B96C3-56EF-11D1-BC8C-00A0C91405DD} [327833] : keyboard

Problem is i cant tell how to identify each BU0836A as both shows same id.
So when i try to assign devices using "lmc_device_set_name" i can only assign logical name to the first one

so if i print devices again i get :

<unassigned> : BU0836A Interface [0] : game
LB1 : BU0836A Interface [0] : game
KBD1 : \\?\HID#VID_1C4F&PID_0002&MI_00#9&826BD90&0&0000#{884B96C3-56EF-11D1-BC8C-00A0C91405DD} [327833] : keyboard

Is this a bug or i am missing something ?. Same setup worked ok with Hidmacros.

Thanks

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: BU0836A HID devices

Post by admin » 04 Nov 2016, 08:16

Interesting :-)
I'll have a look if device iteration can provide more details to distinguish 2 devices with the same name.
Personally I use only 1 Leo's devices but have another one ready, not connected.
So I'll test with the second and figure it out somehow.
Feel free to remind me in a few days (or week)
Petr Medek
LUAmacros author

adrianp
Posts: 13
Joined: 03 Nov 2016, 14:26

Re: BU0836A HID devices

Post by adrianp » 04 Nov 2016, 13:59

Thanks for your support. I will do.

Regards

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: BU0836A HID devices

Post by admin » 08 Nov 2016, 23:06

Download new release (0.1.0.239, same link http://www.hidmacros.eu/luamacros.zip).
Now game device should include some windows GUID number - you should be able to distinguish 2 different borads.
But note the GUID may change if you plug the device to different USB port.
Please let me know if it solves your problem I didn't test with 2 boards.
Petr Medek
LUAmacros author

adrianp
Posts: 13
Joined: 03 Nov 2016, 14:26

Re: BU0836A HID devices

Post by adrianp » 09 Nov 2016, 14:16

Thank you for your time Petr, tonight i test, tomorrow i report results.

Regards

adrianp
Posts: 13
Joined: 03 Nov 2016, 14:26

Re: BU0836A HID devices

Post by adrianp » 10 Nov 2016, 21:37

Worked ! thanks again.

Just one more thing ... the HAT buttons are not being detected by

lmc_set_handler('LB', function(button, direction)
print('callback : ' .. button .. ', direction: ' .. direction)
end)

is something inherent to the BU0836 or LuaMAcros ?, would like to have it working as i have them already wired to some switches in my cpckpit.

Regards

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: BU0836A HID devices

Post by admin » 10 Nov 2016, 23:44

Hmm, I think now I detect just buttons and HAT switches will be part of different DirectX data structure.
So I would need to modify this code to read also HATs.
Maybe... in the future... maybe near fututre... I'll have a look... who knows :-)
Petr Medek
LUAmacros author

adrianp
Posts: 13
Joined: 03 Nov 2016, 14:26

Re: BU0836A HID devices

Post by adrianp » 11 Nov 2016, 14:33

Thanks ...

Regards

Post Reply