Home AMX User Forum NetLinx Studio

First Real Project Help

I went to Programmer 1 months ago and have slept many times since. So my knowledge has rusted shut. So I am trying to interact with a dvx and serial port 4 on it. I am controlling a Denon DN-500BD. I can't find a module so was planning on writing controls for it. My problem is I can't seem to get it to respond. Below is some information I have setup. I have even shorted pins 2 and 3 to see if I could get any information back from the port and have had zero luck. I am guessing I am missing something obvious but tired of pulling out what little hair I have. Any help would be appreciated.

Thanks
Thom

DEFINE_DEVICE
dvMaster = 0:1:0 //DVX-3255HD Master
dvTP_Main = 10010:1:0 //Touch Panel
dvTP_Bluray_Serial = 10010:5:0 //Blu-ray Page
dvBluray_Serial= 5001:4:0 // This serial device

DATA_EVENT[dvBluray_Serial]
{
ONLINE:
{
SEND_COMMAND dvBluray_Serial,"'SET BAUD 9600,N,8,1'"
}

STRING:
{
LOCAL_VAR CHAR nString[25]
nString = DATA.TEXT
SEND_STRING 0, nString //sends command to telnet for debugging
}
}

BUTTON_EVENT[dvTP_Bluray_Serial,0]//This is the Touch panel push
{
PUSH:
{
//SWITCH(BUTTON.INPUT.CHANNEL)
IF(BUTTON.INPUT.CHANNEL==162)
{
idebug = 1

//SEND_COMMAND dvBluray_Serial, "'@0PCDTRYOP'"
SEND_STRING dvBluray_Serial, "'@0PCDTRYOP'"
wait(500)
send_string dvBluray_Serial, "'@0?PW'"
//trying different things but no luck
}

}

}

Comments

  • Hi Thom,

    I think you forgot $0D at the end of the string.

    Try this:
    SEND_STRING dvBluray_Serial,"'@023PW',$0D" // power on
    SEND_STRING dvBluray_Serial,"'@02312',$0D" // power off

    Watch the Tx led on your serial port-4, does it blink? (transmit from AMX).
    Watch the Rx led on your serial port-4, does it blink? (answer from Denon).

    No, be sure you use a 1:1 cable (pin 2,3,5)

    Also if there is a "power save on" in the Denon menu, switch it off (if so power off command will always work, power on not).

    Goodluck.

    Toon.



  • AWESOME!!!! I never thought I would be excited about opening a cd tray.. LOL

    Now I will search the forum on creating modules so I can build all the code for feedback....

    Thanks
    Thom
  • ericmedleyericmedley Posts: 4,177
    no1tmorrow wrote: »
    I never thought I would be excited about opening a cd tray.. LOL

    Oh, there are lots of exciting moments coming to you - like...

    "The Lights Came ON!!!"
    "The Pool temp incremented!"
    "The CODEC Dialed OUT!!!"
    etc....

    :)
  • GregGGregG Posts: 251
    And,

    "I'm sorry officer, I forgot to have them put the alarm system in test mode..."
  • Thank goodness we only do Commercial!!! :-)
  • PhreaKPhreaK Posts: 966
    no1tmorrow wrote: »
    Thank goodness we only do Commercial!!! :-)
    Screw ups in commercial are much more fun. Usually something along the lines of...

    "I'm sorry Mr Client, I know you're trying to run a busy venue / building / Casino, that latest code dump that turned off lighting across the entire premises was unintended".
  • ericmedleyericmedley Posts: 4,177
    no1tmorrow wrote: »
    Thank goodness we only do Commercial!!! :-)


    The only major difference between resi and commercial is the number of phone calls and emails you get from the client per issue.
  • LOL... Thanks guys. You make me feel so much more comfortable. HAHA
Sign In or Register to comment.