If so, I think you can simply do:
ON[vdvHDX, POWER_ON]; //Module does Send_String dvHDX, "'wake', $0D";
and
OFF[vdvHDX, POWER_ON];//Module does Send_String dvHDX, "'sleep', $0D";
If so, I think you can simply do:
ON[vdvHDX, POWER_ON]; //Module does Send_String dvHDX, "'wake', $0D";
and
OFF[vdvHDX, POWER_ON];//Module does Send_String dvHDX, "'sleep', $0D";
If so, I think you can simply do:
ON[vdvHDX, POWER_ON]; //Module does Send_String dvHDX, "'wake', $0D";
and
OFF[vdvHDX, POWER_ON];//Module does Send_String dvHDX, "'sleep', $0D";
If I am wrong, please correct me anyone.
DEFINE_DEVICE is
dvPolycomHDXSerial = 5001:1:0 // RS232 port 1 real device
vdvPolycomHDX1Serial = 41002:1:0 // Serial virtual device 1
vdvPolycomHDX2Serial = 41002:2:0 // Serial virtual device 2
vdvPolycomHDX3Serial = 41002:3:0 // Serial virtual device 3
vdvPolycomHDX4Serial = 41002:4:0 // Serial virtual device 4
vdvPolycomHDX5Serial = 41002:5:0 // Serial virtual device 5
vdvPolycomHDX6Serial = 41002:6:0 // Serial virtual device 6
vdvPolycomHDX7Serial = 41002:7:0 // Serial virtual device 7
vdvPolycomHDX8Serial = 41002:8:0 // Serial virtual device 8
For some reason (and this may have been the early revisions of the module), channel 27 and 28 didn't work very reliably to wake and sleep the codec. I've gotten into the habit of doing SEND_COMMAND vdvCodec,"'PASSTHRU-wake'" and 'sleep' for that particular function.
For some reason (and this may have been the early revisions of the module), channel 27 and 28 didn't work very reliably to wake and sleep the codec. I've gotten into the habit of doing SEND_COMMAND vdvCodec,"'PASSTHRU-wake'" and 'sleep' for that particular function.
I will agree with nickm.
Change the previous code to:
//When user selects VC Call:
Define_Function VCStartup()
{
//Wake up Codec, if it is not already Awake.
if ( !VCStarted )
{
Send_Command vdvPolycomHDX1Serial, "'PASSTHRU-wake'";
VCStarted = True;
}
//...Route VC to displays, etc...
}
//On System Shutdown Call:
Define_Function VCShutdown()
{
//Put Codec to Sleep, if it is Awake
if ( VCStarted )
{
Send_Command vdvPolycomHDX1Serial, "'PASSTHRU-sleep'";
VCStarted = False;
}
}
Comments
You have "wake" and "sleep"
Yes I checked, I have Wake and Sleep
SEND_STRING dvPolycom, "sleep register"
Is this ok?
If so, I think you can simply do:
ON[vdvHDX, POWER_ON]; //Module does Send_String dvHDX, "'wake', $0D";
and
OFF[vdvHDX, POWER_ON];//Module does Send_String dvHDX, "'sleep', $0D";
If I am wrong, please correct me anyone.
Yes I am using AMX Module for the HDX9002
Thanx for helping me
DEFINE_DEVICE is
dvPolycomHDXSerial = 5001:1:0 // RS232 port 1 real device
vdvPolycomHDX1Serial = 41002:1:0 // Serial virtual device 1
vdvPolycomHDX2Serial = 41002:2:0 // Serial virtual device 2
vdvPolycomHDX3Serial = 41002:3:0 // Serial virtual device 3
vdvPolycomHDX4Serial = 41002:4:0 // Serial virtual device 4
vdvPolycomHDX5Serial = 41002:5:0 // Serial virtual device 5
vdvPolycomHDX6Serial = 41002:6:0 // Serial virtual device 6
vdvPolycomHDX7Serial = 41002:7:0 // Serial virtual device 7
vdvPolycomHDX8Serial = 41002:8:0 // Serial virtual device 8
Wake up Codec, if it is not already Awake.
if ( !([vdvPolycomHDX1Serial, POWER_ON]) )
ON[vdvPolycomHDX1Serial, POWER_ON];
...Route VC to displays, etc...
On System Shutdown:
Put Codec to Sleep, if it is Awake
if ( ([vdvPolycomHDX1Serial, POWER_ON]) )
OFF[vdvPolycomHDX1Serial, POWER_ON];
I will agree with nickm.
Change the previous code to: