Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    25+ Posting Member
    Join Date
    Aug 2006
    Location
    Baton Rouge, LA
    Posts
    27
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    SquawkBox XPDR/Cockpit question...

    I am wanting to make a switch that will go between SQWK C and Standby, however there is currently no button to do it. You can do it in FSUIPC, and I read through some of the docs supporting it, but I have no clue whatsoever what it all meant.

    If anyone knows of a way to get this done, please let me know as I would appreciate it greatly

    Charles

  2. #2
    2000+ Poster - Never Leaves the Sim Trevor Hale's Avatar
    Join Date
    Nov 2005
    Location
    Ontario, Canada
    Posts
    2,432
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi Charles..

    You will find the answer to this question at the link below.

    http://mycockpit.org/forums/showthread.php?t=8323

    Best regards,

    Trev
    ________________________
    Trevor Hale

  3. #3
    25+ Posting Member
    Join Date
    Aug 2006
    Location
    Baton Rouge, LA
    Posts
    27
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    I will go ahead and post the specifics for any other newbie cockpit builders troubled by the same problem that plagued me:

    In FSUIPC in the key commands section, set the key or button you want to use, and then in the drop box for command to use when pressed, select offset byte set. Then put in your parameter and offset, and voila...it works. I just tried it and it worked without a hitch. You can find the offset values needed to modify the commands in the squawkbox SDK.

    Happy Flying!
    Charles

  4. #4
    75+ Posting Member RalphW's Avatar
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    79
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Squawkbox XPDR

    Hi

    This works for switching between Standby and Squawk mode Charlie but I cannot get it to work for Identing?

    Any help appreciated.

    Thanks

    Ralph
    Speedbird17

  5. #5
    1000+ Poster - Fantastic Contributor Bob Reed's Avatar
    Join Date
    Oct 2005
    Location
    Holley, New York U.S.A.
    Posts
    1,880
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Maybe a bug in the software no one has found until now? Has anyone asked them? (SB)
    Bob Reed

  6. #6
    25+ Posting Member
    Join Date
    Aug 2006
    Location
    Baton Rouge, LA
    Posts
    27
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by RalphW View Post
    Hi

    This works for switching between Standby and Squawk mode Charlie but I cannot get it to work for Identing?

    Any help appreciated.

    Thanks

    Ralph
    No, there is a separate offset to write for ident...

    On the 0x7b93 offset, have the parameter set to 1 on the key/button press. It will automatically return to 0 after it Idents.

    The way it is going to look in fsuipc is this:

    keypress: xxxxxx
    offset Byte Set (for your selection of what it will do)
    Offset x7b93
    Parameter 1
    Then confirm it.

    Fire up Squawkbox, and give it a shot.

  7. #7
    150+ Forum Groupie
    Join Date
    Oct 2006
    Location
    Perth, Australia
    Posts
    223
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    The ident actually does work but for some reason the light does not flash.

    I tried it out 1 night with atc & they confirmed ident working.....



    Michael
    A320 Home Simulator LHA435
    - FSX - i7 - GTX970 - Fly Elise - ASN -

  8. #8
    75+ Posting Member NigelD's Avatar
    Join Date
    Oct 2008
    Location
    Aylesbury, England
    Posts
    119
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Question Reset to zero...

    Quote Originally Posted by tunatuk View Post
    On the 0x7b93 offset, have the parameter set to 1 on the key/button press. It will automatically return to 0 after it Idents.
    Hi,
    Does that mean you have to reset it to x01 in FSUIPC after each ident? Not that we are asked to do it that often but it seems a moderate pain in the ***?? And can anyone else confirm it works in flight, even if the Ident does not flash on the gauge?

    Thanks for the help, guys. I love this forum!

    Nigel.
    I can't see the light but I think I found the tunnel...
    http://www.freewebs.com/shamrock075

  9. #9
    1000+ Poster - Fantastic Contributor kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    1,621
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by NigelD View Post
    Hi,
    Does that mean you have to reset it to x01 in FSUIPC after each ident? Not that we are asked to do it that often but it seems a moderate pain in the ***?? And can anyone else confirm it works in flight, even if the Ident does not flash on the gauge?
    Note that there are two offsets involved:
    http://squawkbox.ca/doc/sdk/fsuipc.php

    7b93, used to "push" ident, by setting it to 1 (as tunatuk described), no resetting needed (that is done by fsuipc).

    7b92, that becomes 1 if "ATC hits us", you have to set this back to 0 if you want to detect another hit...
    You can use this offset for a flashing led indicating ATC activity. I do it like this: if it becomes 1 I lit the led and I will let it go out after 0.2 seconds.

    I can confirm that the SB3 SDK in FS9 works perfect. I'm more worried about the still missing support for SB4 in FSX, no Simconnect interface yet.

    For SIOC users, attached is my FS9/SB3 code:

    regards,
    Nico Kaan


    // 10.3 Transponder, SB3 support
    // FS9 only

    Var 0000 Value 0
    {
    &Ident = 0
    &TxtMsgLed = 0
    }
    Var 1 name FI_VoiceRoom Link FSUIPC_IN Offset $7B94 Length 1
    {
    CALL &OutSB3Flags
    }
    Var 2 name FI_Rx Link FSUIPC_IN Offset $7B95 Length 1
    {
    CALL &OutSB3Flags
    }
    Var 3 name FI_Tx Link FSUIPC_IN Offset $7B96 Length 1
    {
    CALL &OutSB3Flags
    }
    Var 4 name FI_Connected Link FSUIPC_IN Offset $7B81 Length 1
    {
    CALL &OutSB3Flags
    }
    Var 5 name FI_TxtMsg Link FSUIPC_IN Offset $7B9C Length 1
    {
    IF &FI_TxtMsg <> 0
    {
    IF &FI_TxtMsg = 2
    {
    &TxtMsg = 1
    }
    IF &FI_TxtMsg = 5
    {
    &TxtMsg = 1
    }
    IF &FI_TxtMsg = 6
    {
    &TxtMsg = 1
    }
    IF &FI_TxtMsg = 8
    {
    &TxtMsg = 1
    }
    IF &FI_TxtMsg = 9
    {
    &TxtMsg = 1
    }
    }
    }
    Var 6 name FO_Ident Link FSUIPC_OUT Offset $7B93 Length 1
    Var 7 name FI_XPDRMode link FSUIPC_IN Offset $7B91 Length 1
    {
    CALL &OutXPDRMode
    }
    Var 8 name X_Ident Link FSUIPC_INOUT Offset $7B92 Length 1
    {
    IF &X_Ident = 1 // ATC = 1
    {
    IF &FI_XPDRMode = 0 // 0 = Transponder mode is Charley
    {
    IF &Ident = 0 // led not already on
    {
    &Ident = 1 // set ATC LED
    &ClearIdent = 0
    &ClearIdent = DELAY 1 2 // reset after delay of 0.2 secs
    }
    }
    ELSE
    {
    &X_Ident = 0
    }
    }
    }
    Var 9 name Txtmsg
    {
    IF &Txtmsg = 1
    {
    &TxtMsgBlink = 0 // startvalue of timer
    &TxtMsgBlink = TIMER 10000 1 50 // increase with 0,5 second interval, from 0 to 10000
    }
    ELSE
    {
    IF &TxtmsgBlink != 0 // suppress pushing the clear txt message button while timer is not running
    {
    &TxtMsgBlink = 9999 // force to stop (with led OFF)
    }
    }
    }
    Var 10 name TxtMsgBlink
    {
    IF &TxtMsgBlink >= 9999
    {
    &TxtMsgLed = 0
    }
    ELSE
    {
    L0 = MOD &TxtMsgBlink 2
    IF L0 = 0
    {
    &TxtMsgLed = 1
    }
    ELSE
    {
    &TxtMsgLed = 0
    }
    }
    }
    Var 11 name TxtMsgLed
    {
    CALL &OutSB3Flags
    }
    Var 12 name InitSB3Flags Link SUBRUTINE
    {
    &O_Connected = &InitSB3Flags
    &O_TxtMsg = &InitSB3Flags
    &O_VoiceRoom = &InitSB3Flags
    &O_Tx = &InitSB3Flags
    &O_Rx = &InitSB3Flags
    }
    Var 13 name OutSB3Flags Link SUBRUTINE
    {
    IF &LeftBusOff = 1
    {
    CALL &InitSB3Flags 0
    }
    ELSE
    {
    IF &TestPed = 1
    {
    CALL &InitSB3Flags 1
    }
    ELSE
    {
    &O_Connected = &FI_Connected
    &O_TxtMsg = &TxtMsgLed
    &O_VoiceRoom = &FI_VoiceRoom
    &O_Tx = &FI_Tx
    &O_Rx = &FI_Rx
    }
    }
    }
    Var 14 Link IOCARD_SW Device 1 Input 2 Type P // ident push button
    {
    &FO_Ident = 1
    }
    Var 15 Link IOCARD_SW Device 1 Input 4 Type P // Clear Txt message push button
    {
    &TxtMsg = 0
    }
    Var 16 name Ident // ATC = 1 and in Mode Charley
    {
    CALL &OutIdent
    }
    Var 17 name ClearIdent // 1 = clear
    {
    IF &ClearIdent = 1
    {
    &Ident = 0 // led off
    &X_Ident = 0 // and clear byte in FSUIPC interface
    }
    }
    Var 18 name OutXPDRMode Link SUBRUTINE
    {
    IF &LeftBusOff = 1
    {
    &O_ModeC = 0
    }
    ELSE
    {
    IF &TestPed = 1
    {
    &O_ModeC = 1
    }
    ELSE
    {
    IF &FI_XPDRMode = 0
    {
    IF &FI_Connected = 1
    {
    &O_ModeC = 1
    }
    ELSE
    {
    &O_ModeC = 0
    }
    }
    ELSE
    {
    &O_ModeC = 0
    }
    }
    }
    }
    Var 19 name OutIdent Link SUBRUTINE
    {
    IF &LeftBusOff = 1
    {
    &O_Ident = 0
    }
    ELSE
    {
    IF &TestPed = 1
    {
    &O_Ident = 1
    }
    ELSE
    {
    &O_Ident = &Ident
    }
    }
    }
    Var 20 name O_ModeC Link IOCARD_OUT Device 1 Output 93
    Var 21 name O_Ident Link IOCARD_OUT Device 1 Output 92
    Var 22 name O_VoiceRoom Link IOCARD_OUT Device 1 Output 90
    Var 23 name O_Tx Link IOCARD_OUT Device 1 Output 84
    Var 24 name O_Rx Link IOCARD_OUT Device 1 Output 85
    Var 25 name O_Connected Link IOCARD_OUT Device 1 Output 86
    Var 26 name O_TxtMsg Link IOCARD_OUT Device 1 Output 87

  10. #10
    500+ This must be a daytime job
    Join Date
    Jan 2007
    Posts
    564
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by kiek View Post
    I can confirm that the SB3 SDK in FS9 works perfect. I'm more worried about the still missing support for SB4 in FSX, no Simconnect interface yet.
    I've written to the SB4 authors asking for this to be resolved several times. Each time they apologise for not getting to it and promise to look at implementing a solution. All I am seeking is something along the same lines as the PTT (and PVT) implementation -- registered Windows messages, which can be sent from an assignment in FSUIPC locally or via WideFS.

    I hope to hear from them soon ... I was thinking of trying on-line ATC, and actually installed SB4 for use in my cockpit, but the transponder issue stopped it dead. I'm not about to have horrid gauges on my outside view, nor mice in the cockpit!

    Regards

    Pete

  11. Thanks Trevor Hale thanked for this post
Page 1 of 2 12 LastLast

Similar Threads

  1. OC RMP & XPDR
    By ANDYSMITH in forum OpenCockpits General Discussion
    Replies: 0
    Last Post: 01-20-2011, 10:49 AM
  2. SquawkBox question
    By PHLpilot in forum MyCockpit Online Flying Discussion
    Replies: 3
    Last Post: 06-08-2009, 07:53 AM