Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SIOC, O/C Cards, FSUIPC and 737NGX Offsets

Featured Replies

Hi folks,

 

Trying to wrap my head around SIOC scripts but having a little trouble and looking for a little guidance. My goal is to have the PMDG 737NGX light up some LEDs on a panel via FSUIPC offsets.

 

I have a O/C Usb Expansion Card > Master Card > Outputs Breakout Card > LED

 

Using the SIOC test panel, the LED works as expected when output 18 is on/off. So connection wise to the hardware we look good.

 

I also have the [sDK] EnableDataBroadcast=1 in the 737NGX_Options.ini file.

 

So I thought I'd start simple and get the parking brake light to turn on/off (output 18). The 737NGX offset PDF list the parking brake as:

 

Offset: 65A7

Length: 1

Date Type: BYTE

Name: PED_annunParkingBrake

Notes: Boolean

 

So here's the script I put together:

 

var 9010 name pb_state LINK FSUIPC_IN Offset $65A7 Length 1
 {
   IF &pb_state = 0
   {
  &pb_led = 0
   }
   ELSE
   {
  &pb_led = 1
   }
 }

var 9011 name pb_led Link IOCARD_OUT Output 18 // LED

 

And my sioc.ini (this is the OCP4NGX ini file, I just point the config to my script. Should that be ok?)

 


[sIOC]
IOCP_port=8092
IOCP_timeout=4000
Minimized=No
toggle_delay=20

CONFIG_FILE=.\Parking_Brake_Light.ssi
[CONFIG_FILE=.\OCP4NGX_MCP-EFIS_PP v1.05 - custom.ssi]

[iOCARDS MODULE]
IOCard_disable=No
IOCard_LPT=No

[MASTERS]
MASTER=0,5,1,41
MASTER=1,4,1,62

[FSUIPC MODULE]
FSUipcdisable=No
FSUipcRefresh=60

[iOCP CLIENTS MODULES]
IOCPini_delay= 3000
IOCPclient0_disable=no
IOCPclient0_host=localhost
IOCPclient0_port=8099
IOCPclient1_disable=yes
IOCPclient1_host=localhost
IOCPclient1_port=8092

[sOUND MODULE]
Sound_disable=Yes
Volume=100

 

Master 0 is a O/C P&P MCP and 1 is the USB/Master Card.

 

I noticed if I open the IOCP Console in SIOC, the two variables are both listed as "1" regardless if the parking brake is on or off. But I also figured if the PB_LED var is 1, it should at least turn the LED on.

 

So that's why I'm not sure what I'm missing at this point.

 

Any suggestions?

 

Thanks!

Shaun Ortolano
TronAviation.com

  • Author

A mycockpit.org user showed me what I was missing. I needed to add "device 1" to my output string and voila, it worked.

Shaun Ortolano
TronAviation.com

  • 5 months later...

Hello, can you please clarify how the final code looks like then? I will be soon starting my on LEDs and annunciators with the OC card and all help I can get is apriciated since I have nver done much in SIOC before.

Thank you!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.