Monday, February 23, 2015

Pokeys: Interface Prosim737 and "PoExtBus"

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.
 

Note that I recommend to use TPIC6B595 chip instead of standard 74HC595 as it allows to drive high-current (brightness) LEDs.

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>
2. Go to Prosim and configure outputs
    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.

6 comments:

  1. This is very neat! Thank you very much!
    Do you know if there are any similar shift register that can handle common cathode setup?
    Volante

    ReplyDelete
  2. Any updates for this genius app?

    ReplyDelete
  3. no not really, no time for dev of cockpit...do you need anything specific to be changed?

    ReplyDelete
  4. I saw that it was just Beta.
    I 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!

    ReplyDelete
    Replies
    1. 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 :(

      Delete
    2. I hopr your house project is not taking all your time... :-)
      I would really appreciate you took the time to recompiling the code for Win10 64bit.

      Delete