EXB-IRS4 and XCH issues
RicardoSiqueira
Posts: 373
in AMX Hardware
Today as I was updating a project which has a NI-3100 and an EXB-IRS4, I noticed that my favorite cable box channels, which use the send command and XCH do not work well on the EXB-IRS4. It looks like that the EXB-IRS4 is buffering the commands to memory and flashing the previous preset or not working. The same code and presets calling from the same structure works flawless on the NI-3100 and have been working for years. I updated the firmware but the problem still occurs. I look at the cable box and I see the incorrect numbers hitting it as I send a preset, but the preset sent from Netlinx Studio Device Notifications is correct and works well out of the NI-3100. Anybody experiencing problems with the EXB-IRS4 and the XCH commands?
Here is part of my code:
Here is part of my code:
//Device Initialization DATA_EVENT[dvCABLE_Playroom] { ONLINE: //IR device comes ONLINE { SEND_COMMAND dvCABLE_Playroom,'SET MODE IR' SEND_COMMAND dvCABLE_Playroom,'CARON' SEND_COMMAND dvCABLE_Playroom,"'CTON',5" SEND_COMMAND dvCABLE_Playroom,"'CTOF',5" SEND_COMMAND dvCABLE_Playroom,'XCHM-1' // I tried the 'XCHM-0' first, but it was worse SEND_COMMAND dvCABLE_Playroom,'SET INPUT LINK' } } //Handle CABLE Favorite Channels///////////////////// BUTTON_EVENT[vTPPlayroomiPad,1091] //Favorites BUTTON_EVENT[vTPPlayroomiPad,1092] //Music { PUSH: { nPlayroomiPadCableFavoriteType = (BUTTON.INPUT.CHANNEL - 1090) } } BUTTON_EVENT[vTPPlayroomiPad,1101] BUTTON_EVENT[vTPPlayroomiPad,1102] BUTTON_EVENT[vTPPlayroomiPad,1103] BUTTON_EVENT[vTPPlayroomiPad,1104] BUTTON_EVENT[vTPPlayroomiPad,1105] BUTTON_EVENT[vTPPlayroomiPad,1106] BUTTON_EVENT[vTPPlayroomiPad,1107] BUTTON_EVENT[vTPPlayroomiPad,1108] BUTTON_EVENT[vTPPlayroomiPad,1109] BUTTON_EVENT[vTPPlayroomiPad,1110] BUTTON_EVENT[vTPPlayroomiPad,1111] BUTTON_EVENT[vTPPlayroomiPad,1112] BUTTON_EVENT[vTPPlayroomiPad,1113] BUTTON_EVENT[vTPPlayroomiPad,1114] BUTTON_EVENT[vTPPlayroomiPad,1115] BUTTON_EVENT[vTPPlayroomiPad,1116] BUTTON_EVENT[vTPPlayroomiPad,1117] BUTTON_EVENT[vTPPlayroomiPad,1118] BUTTON_EVENT[vTPPlayroomiPad,1119] BUTTON_EVENT[vTPPlayroomiPad,1120] { PUSH: { SWITCH(nPlayroomiPadCableFavoriteType) { CASE 1: { SEND_COMMAND CABLE_ForFav_PlayroomiPad, "'XCH ', ITOA(uFavoritesCH[BUTTON.INPUT.CHANNEL-1100].FavoritesCH)" } CASE 2: { SEND_COMMAND CABLE_ForFav_PlayroomiPad, "'XCH ', ITOA(uFavoritesCH[BUTTON.INPUT.CHANNEL-1100].MusicCH)" } } } }
0
Comments
Paul
XCH has had issues for many years, so I wouldn't hold your breath waiting for AMX to fix it. I don't really see the need anyway, its just a syntactic shortcut from the old days, and the exact same thing can be accomplished with send_commands. The individual IR codes have to get sent anyway, so why bother with XCH when its so buggy? It will probably take you all of 5 minutes to change the code to not use XCH and accomplish the same thing reliably.
Paul
Just write a quick for loop to run through your channel favorites array cells and send SP commands.
Just remember to send the CTON and CTOF prior to the SPs and it'll work like a champ.