744 Forum

Apron => Accessories => Topic started by: noo on Wed, 5 Jun 2019 08:34

Title: psxseecon with radio com opencockpits
Post by: noo on Wed, 5 Jun 2019 08:34
Problem with digit display radio COM module opencockpits

psxseecon v1.7.3 display ok
but with v3.16 display (digit) no fonctinal.
why this does not work anymore with v 64 bit?

Title: Re: psxseecon with radio com opencockpits
Post by: asboyd on Wed, 5 Jun 2019 12:01
Are you using plug and play modules?
I use the PSXseecon to control the radios using inputs and outputs and display card without problems.

Regards,
Alex B
Title: Re: psxseecon with radio com opencockpits
Post by: noo on Wed, 5 Jun 2019 13:17
Yes i use plug and play (usb)
Where is the problem with this module?
Because with xpdr module, digit it's ok
Title: Re: psxseecon with radio com opencockpits
Post by: asboyd on Wed, 5 Jun 2019 21:08
I do not have the plug and play modules. I am making my own modules from scratch so am using only scripting to get them to work.
Have you used the OCM program? Based on the OCM manual info the unit should work with VHF_L or VHF_R and the first unit detected is setup as RCP_L initially.
Maybe Nico can advise further....

Regards,
Alex B
Title: Re: psxseecon with radio com opencockpits
Post by: noo on Thu, 6 Jun 2019 13:14
problem resolved

Var 9010 name DecBCD2 link SUBRUTINE

i change with DecBCDb2 and it's ok
Title: Re: psxseecon with radio com opencockpits
Post by: Greg Hateley on Thu, 27 Jun 2019 13:52
Hey Noo,
I have have same problem trying to run OC modules with 64bit PSXseecon, IE, blank displays.
Can you advise me of exactly what to change, in what file?
"Var 9010 name DecBCD2 link SUBRUTINE"

Regards
Greg
Title: Re: psxseecon with radio com opencockpits
Post by: noo on Fri, 28 Jun 2019 14:37
Hello Greg, copy this with the note pad. Put this in the folder SIOC.
After run SIOC , open Multiple Scripts (below) and found your script and select in the list on the left side , after Load Script and Save & Exit.

///////////////////////////////////////////////////////////////////////////

Var 0001 name Digit

Var 0002 name CalcDigit link SUBRUTINE

L0 = &CalcDigit
IF L0 = 6
  {
L0 = -999997 // 6 with horizontal dash please also read above
  }
  ELSE
  {
IF L0 >= 10
    {
IF L0 = 10 // A
      {
L0 = -999999 // blank
      }
      ELSE
      {
IF L0 = 11 // minus
        {
L0 = -999998 // -
        }
        ELSE
        {
          // should not happen ...
L0 = 9
        }
      }
    }
  }
&Digit = L0
}

Var 0003 name Digit0
Var 0004 name Digit1
Var 0005 name Digit2
Var 0006 name Digit3
Var 0007 name Digit4
Var 0008 name Digit5

// Decode Digits routines:

Var 0009 name DecBCDb2 link SUBRUTINE
{
L0 = &DecBCDb2
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit0 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit1 = &Digit
}
Var 0010 name DecBCDb3 link SUBRUTINE
{
L0 = &DecBCDb3
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit0 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit1 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit2 = &Digit
}
Var 0011 name DecBCDb4 link SUBRUTINE
{
L0 = &DecBCDb4
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit0 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit1 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit2 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit3 = &Digit
}
Var 0012 name DecBCDb5 link SUBRUTINE
{
L0 = &DecBCDb5
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit0 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit1 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit2 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit3 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit4 = &Digit
}
Var 0013 name DecBCD6 link SUBRUTINE
{
L0 = &DecBCD6
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit0 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit1 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit2 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit3 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit4 = &Digit

L0 = DIV L0 16
L1 = MOD L0 16
CALL &CalcDigit L1
&Digit5 = &Digit
}
Var 3022 Static name RcpLa
{
  CALL &DecBCD6 &RcpLa
  &D_COM1L0 = &Digit0   
  &D_COM1L1 = &Digit1
  &D_COM1L2 = &Digit2
  &D_COM1L3 = &Digit3
  &D_COM1L4 = &Digit4
  L0 = TESTBIT &RcpLa 24   // VHF DP
  IF L0 = 1
  {
    &D_COM1L5 = &Digit5
    &O_DPCOM1L = 1
  }
  ELSE
  {
    L0 = TESTBIT &RcpLa 25  // HF DP
    IF L0 = 1
    {
      &D_COM1L5 = -999999  // blank
      &O_DPCOM1L = 1      // same DP as for VHF
    }
    ELSE
    {
      &D_COM1L5 = &Digit5
      &O_DPCOM1L = 0       
    }
  }
}
Var 3023 Static name RcpLs
{
  CALL &DecBCD6 &RcpLs
  &D_COM1R0 = &Digit0 
  &D_COM1R1 = &Digit1
  &D_COM1R2 = &Digit2
  &D_COM1R3 = &Digit3
  &D_COM1R4 = &Digit4
  L0 = TESTBIT &RcpLs 24   // VHF DP
  IF L0 = 1
  {
    &D_COM1R5 = &Digit5
    &O_DPCOM1R = 1
  }
  ELSE
  {
    L0 = TESTBIT &RcpLs 25  // HF DP
    IF L0 = 1
    {
      &D_COM1R5 = -999999   // blank
      &O_DPCOM1R = 1       // same DP as for VHF
    }
    ELSE
    {
      &D_COM1R5 = &Digit5
      &O_DPCOM1R = 0
    }
  }
}
// active standby toggle

Var 3607 Static Link IOCARD_SW Device 8 Input 6 Type P   

// rotary encoders

Var 3691 Static name BigFreqL Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2     
Var 3692 Static name SmaFreqL Link IOCARD_ENCODER Device 8 Input 4 Aceleration 1 Type 2     

// ACTIVE display in COM747
Var 9008 name D_COM1L0 Link IOCARD_DISPLAY Device 8 Digit 0 Numbers 1 
Var 9009 name D_COM1L1 Link IOCARD_DISPLAY Device 8 Digit 1 Numbers 1
Var 9010 name D_COM1L2 Link IOCARD_DISPLAY Device 8 Digit 2 Numbers 1
Var 9011 name D_COM1L3 Link IOCARD_DISPLAY Device 8 Digit 3 Numbers 1
Var 9012 name D_COM1L4 Link IOCARD_DISPLAY Device 8 Digit 4 Numbers 1
Var 9013 name D_COM1L5 Link IOCARD_DISPLAY Device 8 Digit 5 Numbers 1

// STANDBY display in COM747
Var 9014 name D_COM1R0 Link IOCARD_DISPLAY Device 8 Digit 6 Numbers 1
Var 9015 name D_COM1R1 Link IOCARD_DISPLAY Device 8 Digit 7 Numbers 1
Var 9016 name D_COM1R2 Link IOCARD_DISPLAY Device 8 Digit 8 Numbers 1
Var 9017 name D_COM1R3 Link IOCARD_DISPLAY Device 8 Digit 9 Numbers 1
Var 9018 name D_COM1R4 Link IOCARD_DISPLAY Device 8 Digit 10 Numbers 1
Var 9019 name D_COM1R5 Link IOCARD_DISPLAY Device 8 Digit 11 Numbers 1
   
Var 9020 name O_DPCOM1L Link IOCARD_OUT Device 8 Output 20     
Var 9021 name O_DPCOM1R Link IOCARD_OUT Device 8 Output 21     


///////////////////////////////////////////////////////////////////////////



It's OK for you?
Title: Re: psxseecon with radio com opencockpits
Post by: Greg Hateley on Fri, 28 Jun 2019 14:56
Thank you noo, I will do that.
I am very grateful for the info. Cheers.
Title: Re: psxseecon with radio com opencockpits
Post by: Wardie on Sat, 14 Sep 2019 17:18
Hi Noo, I have Opencockpits plug and play NAV1, NAV2 and ADF radios. I know you got the COM radios working, did you ever have any success in making these one's work with PSXSeecon?
Title: Re: psxseecon with radio com opencockpits
Post by: RogerH on Sun, 15 Sep 2019 21:09
Hi Wardie.

Since the NAV1, NAV2 and ADF radios are tuned by the MCDU, I don't think there's a way to get them to work. The 747-400 doesn't have these radios in the pedestal anyway so you don't really need them - just an MCDU (can get software versions for iPad or Android tablet for this - iPad version at  https://apps.apple.com/us/app/psx-remote/id917931055).

Cheers,

Roger.
Title: Re: psxseecon with radio com opencockpits
Post by: Wardie on Mon, 16 Sep 2019 06:22
Hi Roger,

Thanks for your reply, that must be it. I already have the Nav and ADF radios configured for the B737-800 and was using this setup for PSX with PSXSeecon which all works well. Having the radios anyway, I wondered if they could be made to work, but you have summed it up! It would have been nice but it seems not to be.......

Thanks for the tip regarding the MCDU, much appreciated!

All the best,

Brian

Title: Re: psxseecon with radio com opencockpits
Post by: noo on Mon, 16 Sep 2019 11:44
yes with a script
Title: Re: psxseecon with radio com opencockpits
Post by: kiek on Tue, 17 Sep 2019 15:58
Quote from: noo on Mon, 16 Sep 2019 11:44
Wardie, it's not possible nav and adf modules for psx  ;)
That's not true, NAV module it is possible.
Nico Kaan
Title: Re: psxseecon with radio com opencockpits
Post by: Wardie on Wed, 18 Sep 2019 11:53
Please tell me how to make it work Nico, please. If you give me the script I know how to compile it..... I would be so grateful!
Title: Re: psxseecon with radio com opencockpits
Post by: RogerH on Wed, 2 Oct 2019 10:17
Wardie - I have a couple of encoders and a button rigged up to change the freq of RCP Left at the moment. Work well through PSXeecon.

I intend to expand the use of these to control RCP right in the near future by having a selector switch which determines which freq gets changed depending on its position.

I'll have a look at controlling the NAV radios through this - not sure about how this might work.

In the MCDU, one can override the automatic frequency tuning by simply typing the appropriate data into the scratchpad e.g. 110.90/258 and then hitting LSK 4 while on the NAV RAD page. So I know the frequency can be set automatically, and then overridden by typing in the data.

An assumption to work from would be that this can be arranged using external units and PSXeecon. Whether or not this can be achieved with a Plug and Play like the OC Modules is another matter. If I get the chance in the next couple of days I'll see if the NAV freq. can be changed manually using external hardware and get back to you.

Of course, someone else reading may be able to confirm this out of their experience.

Cheers,

Roger.

EDIT: Not possible to use my encoders to change NAV freg=qs because they're not available as a PSXeecon variable (at least, I can't _see_ them?).

I have however managed to get my setup to act a bit like the old OC Multiradio - using a rotary selector switch I can now use the same two encoders and button to change RcpL, RcpC and RcpR values. With the roary switch in position 1, it affects the RcpL, position 2 = RcpR and position 3 = RcpC.
Title: Re: psxseecon with radio com opencockpits
Post by: Wardie on Sat, 5 Oct 2019 07:39
Thanks for trying Roger, much appreciated!