It is easy to extend number of outputs on a single Pokeys USB card by 80 using PoExtBus interface. All what you need to do is to chain up to 10 8-bit shift registers as per below diagram.
As Prosim737 doesn't support PoExtBus yet a simple interface is required. So, I have made very simple application called HPoExtBus which uses FSUIPC offset to exchange the data.
Download: http://chomikuj.pl/Elymaniac/sim737.pl (password: pokeys)
How to:
1. Open HPoExtBus.exe.config for editing and update the file as per below:
- your Pokeys card serial number e.g. 25123
<setting name="cardID" serializeAs="String">
<value>xxxxx</value>
</setting> - which PoExtBus connection is used: 0=dedicated socket, 1 = pins 35,36,37
<setting name="cardConnection" serializeAs="String">
<value>0</value>
</setting> - select up to 10 FSUIPC offsets you will be using to communicate with Prosim
<setting name="offset1" serializeAs="String">
<value>6740</>
</setting>
example: 0x6740.0 (bit 0) activates port no 7 in HPoExtBus - it is reversed
Remarks:
- HPoExtBus connects to FSUIPC and Pokeys card automatically, it also re-connects in case the card is unplugged or connectivity to FSUIPC is lost;
- it is not required to make any change to Pokeys configuration, this app will activate the PoExtBus;
- click on device\output number to activate it for a while e.g. when testing;
- if connection to FSUIPC is lost all outputs\leds starts blinking;
- FSUIPC offset refresh rate is 200ms, data to Pokeys is sent only when offset value changes.
FYI: It's still beta version and I don't expect further development as I wait for Prosim team adding native support for PoExtBus. However, if you have any questions use comments below this post.
This is very neat! Thank you very much!
ReplyDeleteDo you know if there are any similar shift register that can handle common cathode setup?
Volante
Any updates for this genius app?
ReplyDeleteno not really, no time for dev of cockpit...do you need anything specific to be changed?
ReplyDeleteI saw that it was just Beta.
ReplyDeleteI run P3D V4 and Prosim on Windows 10. It hangs up sometimes when quitting witch is a bit anoying. Else it makes things to work!
I't probably a matter of compiling this code for Windows 10. Unfortunately, I cannot do it now as my cockpit is packed for moving to a new house :(
DeleteI hopr your house project is not taking all your time... :-)
DeleteI would really appreciate you took the time to recompiling the code for Win10 64bit.