Home AMX User Forum AMX Technical Discussion

XDD File Issue

Hello everyone,

I encountered an issue while loading the XDD file. I downloaded the corresponding file for the model from AMX's developer support. Following the example provided at the end of the document, I wrote a small program. I hope to turn on the TV by pressing a button. However, I am not sure if the command I wrote is correct. I have set all devices to IP addresses in the 192.168.0.X range, but the TV still cannot turn on properly.

Could anyone advise me on what might be wrong?
Thank you all, and have a great day!

Here is the program:
PROGRAM_NAME='Technical_Test_4'

DEFINE_DEVICE
Touch_Panels = 10001:1:0
dvSerialPort = 5001:1:0
dvIpPort = 0:4:0
vdvMyDevice = 41001:1:0

DEFINE_VARIABLE
integer bottons[100] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100}
CHAR MyXDDFile[] = 'Sony_TV_XRM-65A80L-IP_1.0.0.xdd'

DEFINE_START
set_pulse_time(2)
send_command 10001:1:0,"'ADBEEP'"
DEFINE_MODULE 'DeviceDriverEngine' MyDevice(vdvMyDevice, dvIpPort, MyXDDFile)

DEFINE_EVENT
button_event[Touch_Panels, bottons]
{
push:
{
switch (get_last(bottons))
{
CASE 91:
{
SEND_STRING dvSerialPort, "'POWER'"
}
CASE 92:
{
SEND_STRING dvSerialPort, "'POWER 9'"
}
CASE 93:
{
SEND_STRING dvSerialPort, "'POWER9'"
}
CASE 94:
{
SEND_STRING dvSerialPort, "'9'"
}
}
}
}

Comments

  • Didn't you already asked this same question (and got an answer) two days ago?

  • John NagyJohn Nagy Posts: 1,744

    I'd also point out that the TV IP address is set to the same IP address as the GATEWAY. The Gateway is the address of the modem for the internet, and cannot be the same as the TV. As was posted in your older message, the code that sets the IP address for the tv is an example, you need to set the tv addess to a valid network address (not the same as any other device or the modem!) and then use that TV address in your AMX code.

  • tp821215tp821215 Posts: 9

    @richardherman said:
    Didn't you already asked this same question (and got an answer) two days ago?

    I sincerely apologize for any inconvenience caused.

    This post was originally written before I submitted my previous one, but an error occurred during the submission process. After waiting for approximately twelve hours and noticing the issue persisted, I decided to rewrite and post a new one. However, a few days after receiving answers to my new post, this original post unexpectedly appeared.

    Unfortunately, I am unable to delete this post myself and may need to seek assistance from the administrators.

    Once again, I deeply apologize for the disruption caused and appreciate everyone's understanding.

  • tp821215tp821215 Posts: 9
    edited January 20

    @John Nagy said:
    I'd also point out that the TV IP address is set to the same IP address as the GATEWAY. The Gateway is the address of the modem for the internet, and cannot be the same as the TV. As was posted in your older message, the code that sets the IP address for the tv is an example, you need to set the tv addess to a valid network address (not the same as any other device or the modem!) and then use that TV address in your AMX code.

    I also noticed this issue during the process. Subsequently, after Marc Scheibein (Mr./Ms.) responded to my answer, I redefined the IP to the required subnet and made the necessary modifications. It is now functioning as needed within the desired IP range. Thank you for your reminder.

Sign In or Register to comment.