PDA

View Full Version : SquawkBox XPDR/Cockpit question...



tunatuk
03-26-2007, 11:17 PM
..........

Trevor Hale
03-26-2007, 11:25 PM
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

tunatuk
03-31-2007, 11:15 PM
..........

RalphW
04-06-2007, 04:02 PM
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

Bob Reed
04-06-2007, 04:43 PM
Maybe a bug in the software no one has found until now? Has anyone asked them? (SB)

tunatuk
04-07-2007, 08:45 AM
..........

bindook
04-09-2007, 05:11 AM
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

NigelD
01-29-2009, 04:46 AM
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.

kiek
01-29-2009, 05:42 AM
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

Peter Dowson
01-29-2009, 08:33 AM
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

JBaymore
01-29-2009, 08:48 PM
......... nor mice in the cockpit! ;-)

Pete,

I use peanut butter on the traps to keep the mice out of my cockpit. ;)

Works great.

best,

................john