These are the Support Forums for FSUIPC and related products.

These forums replace the old support forums which have been running for 20+ years. The old forums contain a wealth of information on all FSUIPC products, but are now no longer available.

Please note that you will need to Register and Login to post for support, and also to download attachments. You can view these forums without registering.

Support is also available via Discord. Please use the following invite link to join the FSUIPC Discord server:
https://discord.gg/zjwUTrxmmE

FSUIPC does not rec...
 
Notifications
Clear all

[Solved] FSUIPC does not recognize all 64 buttons

Posts: 5
Registered
Topic starter
(@bigbird)
Joined: 4 weeks ago

I added a Button Box Interface BBI-64  to my iFly Pro 737 hardware setup and I need to access these 64 switches via FSUIPC4 and the iFly tp FSUIUPC interface.  I have read that it should work however only buttons 1-32 show up in the "Button & Switch" dialogue.  I have attached the.ini and .log files.  What am I missing?

Best Regards, Bob

 


8 Replies
Posts: 271
Moderator
(@fsuipc-support)
Joined: 8 months ago

Native support for > 32 buttons is only available in FSUIPC6 and FSUIPC7. In FSUIPC4, to support more than 32 buttons you need to use a lua script to convert the physical button presses/releases to virtual button presses/releases. There is an example script provided (in the Example Lua plugins.zip file in your modules\FSUIPC Documents folder) called HidDemo.lua that you can use to do this. Update the script to use your devices VID and PID, and make sure the script is running (usually achieved via having it auto-started via the FSUIPC4.ini [Auto] section).

John


Reply
Posts: 5
Registered
Topic starter
(@bigbird)
Joined: 4 weeks ago

I was concerned that might be the case.  But I have a solution and will learn about lua.  Thank you so much for the support and all that you guys have given to the community.  

Bob


Reply
Posts: 5
Registered
Topic starter
(@bigbird)
Joined: 4 weeks ago

I have attached the .ini, .log and .Lua files.  I read about Lua and updated the Hiddemo.lua scropt with my device info yet had no success implementing all buttons on the Button Box card.  I tried adding 1 line of code at a time from the script using the online interpreter which always led to a syntax error.  I can not understand what I am doing wrong.

Bob


Reply
Posts: 320
Admin
(@fsuipc)
Joined: 11 months ago
Vendor = Leo Bodnar
Product = Button Box Interface BBI-64

Try

Vendor = 0x1DD2
Product = 0x2020

Its easier to use the hex VID and PID values. If you want to use the device names, you need to put them in quotes, e.g.

Vendor = "Leo Bodnar"
Product = "Button Box Interface BBI-64"

The error you are getting is because the Vendor will be set to "Leo" (as you had no quotes to enclose the string), then the interpreter see 'Bodnar Product' which makes no sense - an '=' is expected to make that valid.

If you are starting with Lua, probably a good idea to do a short on-line tutorial on the lua basics to get you started...

Cheers,

John


Reply
Page 1 / 2