First Real Project Help
no1tmorrow
Junior Member
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
}
}
}
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 -
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....
-
And,
"I'm sorry officer, I forgot to have them put the alarm system in test mode..." -
Thank goodness we only do Commercial!!! :-)
-
Screw ups in commercial are much more fun. Usually something along the lines of...no1tmorrow wrote: »Thank goodness we only do Commercial!!! :-)
"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". -
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
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums