Home AMX User Forum AMX Technical Discussion

IRS4 not emitting with MIO commands?

I have an IRS4 configured as IDs 132,133,134,and 135. I have programmed a touchpanel to send commands to the IRS4, emitting directv codes:
Line      1 (15:29:13):: Command To [132:1:1]-[CTON$01]
Line      2 (15:29:13):: Command To [132:1:1]-[CP$0A]
The above displays when I press a button on my touchpanel. The IR code emits, the LED on the IRS4 flashes, and the directv box responds with the number 0.
I took the same code and copied it to an AXR-RF button event, and I see the following when I press 0 on the MIO R2:
Line      1 (15:31:50):: Input Status:Pushed [129:1:1] - Channel 10 
Line      2 (15:31:50):: Command To [132:1:1]-[CTON$01]
Line      3 (15:31:50):: Command To [132:1:1]-[CP$0A]
Line      4 (15:31:50):: Input Status:Released [129:1:1] - Channel 10 
Line      5 (15:31:56):: Command To [132:1:1]-[CTON$0A]
I see the LED indicator on the AXR-RF light up, and my variable changes in my code, but the IR never emits. No LED on the IRS, no flashing on the emitter, and no response from the sat receiver. Has anyone seen this? Here is the relevant code:
non_volatile integer nSatGuest [] = 
{
10,  //0
11,
12,
13,
14,
15,
16,
17,
18,
19,
21,  //enter
22,  //ch up
23,  //ch dn
24,  //vol up
25,  //vol dn
26,  //mute
44,  //menu
45,  //up
46,  //down
47,  //left
48,  //right
49,  //select
50,  //exit
56,  //guide
65,   //info
55    //prev channel

}
BUTTON_EVENT[dvTPMB_Sat2,nSatGuest]
{
    PUSH:
    {
	local_var integer nBtnSat
	nBtnSat = GET_LAST(nSatGuest)
	//SEND_COMMAND SAT_4,"'CP',itoa(nBtnSat+9)"
	SEND_COMMAND SAT_4,"'CTON',1"
	
	SWITCH(nBtnSat)
	{
	    CASE 1:
	    {
		SEND_COMMAND SAT_4,"'CP',10"
		//TO[SAT_4,10]
	    }
	    CASE 2:
	    {
		SEND_COMMAND SAT_4,"'CP',11"
		//TO[SAT_4,11]
	    }
	    CASE 3:
	    {
		SEND_COMMAND SAT_4,"'CP',12"
		//TO[SAT_4,12]
	    }
	    CASE 4:
	    {
		SEND_COMMAND SAT_4,"'CP',13"
		//TO[SAT_4,13]
	    }
	    CASE 5:
	    {
		SEND_COMMAND SAT_4,"'CP',14"
		//TO[SAT_4,14]
	    }
	    CASE 6:
	    {
		SEND_COMMAND SAT_4,"'CP',15"
		//TO[SAT_4,15]
	    }
	    CASE 7:
	    {
		SEND_COMMAND SAT_4,"'CP',16"
		//TO[SAT_4,16]
	    }
	    CASE 8:
	    {
		SEND_COMMAND SAT_4,"'CP',17"
		//TO[SAT_4,17]
	    }
	    CASE 9:
	    {
		SEND_COMMAND SAT_4,"'CP',18"
		//TO[SAT_4,18]
	    }
	    CASE 10:
	    {
		SEND_COMMAND SAT_4,"'CP',19"
		//TO[SAT_4,19]
	    }
	    CASE 11:
	    {
		SEND_COMMAND SAT_4,"'CP',21"
		//TO[SAT_4,21]
	    }
	    CASE 12:
	    {
		SEND_COMMAND SAT_4,"'CP',22"
		//TO[SAT_4,22]
	    }
	    CASE 13:
	    {
		SEND_COMMAND SAT_4,"'CP',23"
		//TO[SAT_4,23]
	    }
	    CASE 14:
	    {
		TO[TV_GUEST1,24]  //TV Volume Up
	    }
	    CASE 15:
	    {
		TO[TV_GUEST1,25]  //TV Volume Down
	    }
	    CASE 16:
	    {
		TO[TV_GUEST1,26]  //TV Mute
	    }
	    CASE 17:  //Menu
	    {
		SEND_COMMAND SAT_4,"'CP',44"
		//TO[SAT_4,44]
	    }
	    CASE 18:  //Up
	    {
		SEND_COMMAND SAT_4,"'CP',45"
		//TO[SAT_4,45]
	    }
	    CASE 19:  //Down
	    {
		SEND_COMMAND SAT_4,"'CP',46"
		//TO[SAT_4,46]
	    }
	    CASE 20:  //Left
	    {
		SEND_COMMAND SAT_4,"'CP',47"
		//TO[SAT_4,47]
	    }
	    CASE 21:  //Right
	    {
		SEND_COMMAND SAT_4,"'CP',48"
		//TO[SAT_4,48]
	    }
	    CASE 22:  //Select
	    {
		SEND_COMMAND SAT_4,"'CP',49"
		//TO[SAT_4,49]
	    }
	    CASE 23:  //Exit
	    {
		SEND_COMMAND SAT_4,"'CP',50"
		//TO[SAT_4,50]
	    }
	    CASE 24:  //Guide
	    {
		SEND_COMMAND SAT_4,"'CP',56"
		//TO[SAT_4,56]
	    }
	    CASE 25:  //Info
	    {
		SEND_COMMAND SAT_4,"'CP',65"
		//TO[SAT_4,65]
	    }
	    CASE 26:  //prev chan
	    {
		SEND_COMMAND SAT_4,"'CP',55"
		//TO[SAT_4,55]
	    }
	}
    }
}
Again, the above works PERFECTLY Here is the event for the MIO R2:
BUTTON_EVENT[RFGUEST418,nSatGuest]  //Guest 1 Sat4 &TV Controls

{
    PUSH:
    {
	local_var integer nBtnSat
	nBtnSat = GET_LAST(nSatGuest)
	//SEND_COMMAND SAT_4,"'CP',itoa(nBtnSat+9)"
	SEND_COMMAND SAT_4,"'CTON',1"
	
	SWITCH(nBtnSat)
	{
	    CASE 1:
	    {
		SEND_COMMAND SAT_4,"'CP',10"
		//TO[SAT_4,10]
	    }
	    CASE 2:
	    {
		SEND_COMMAND SAT_4,"'CP',11"
		//TO[SAT_4,11]
	    }
	    CASE 3:
	    {
		SEND_COMMAND SAT_4,"'CP',12"
		//TO[SAT_4,12]
	    }
	    CASE 4:
	    {
		SEND_COMMAND SAT_4,"'CP',13"
		//TO[SAT_4,13]
	    }
	    CASE 5:
	    {
		SEND_COMMAND SAT_4,"'CP',14"
		//TO[SAT_4,14]
	    }
	    CASE 6:
	    {
		SEND_COMMAND SAT_4,"'CP',15"
		//TO[SAT_4,15]
	    }
	    CASE 7:
	    {
		SEND_COMMAND SAT_4,"'CP',16"
		//TO[SAT_4,16]
	    }
	    CASE 8:
	    {
		SEND_COMMAND SAT_4,"'CP',17"
		//TO[SAT_4,17]
	    }
	    CASE 9:
	    {
		SEND_COMMAND SAT_4,"'CP',18"
		//TO[SAT_4,18]
	    }
	    CASE 10:
	    {
		SEND_COMMAND SAT_4,"'CP',19"
		//TO[SAT_4,19]
	    }
	    CASE 11:
	    {
		SEND_COMMAND SAT_4,"'CP',21"
		//TO[SAT_4,21]
	    }
	    CASE 12:
	    {
		SEND_COMMAND SAT_4,"'CP',22"
		//TO[SAT_4,22]
	    }
	    CASE 13:
	    {
		SEND_COMMAND SAT_4,"'CP',23"
		//TO[SAT_4,23]
	    }
	    CASE 14:
	    {
		TO[TV_GUEST1,24]  //TV Volume Up
	    }
	    CASE 15:
	    {
		TO[TV_GUEST1,25]  //TV Volume Down
	    }
	    CASE 16:
	    {
		TO[TV_GUEST1,26]  //TV Mute
	    }
	    CASE 17:  //Menu
	    {
		SEND_COMMAND SAT_4,"'CP',44"
		//TO[SAT_4,44]
	    }
	    CASE 18:  //Up
	    {
		SEND_COMMAND SAT_4,"'CP',45"
		//TO[SAT_4,45]
	    }
	    CASE 19:  //Down
	    {
		SEND_COMMAND SAT_4,"'CP',46"
		//TO[SAT_4,46]
	    }
	    CASE 20:  //Left
	    {
		SEND_COMMAND SAT_4,"'CP',47"
		//TO[SAT_4,47]
	    }
	    CASE 21:  //Right
	    {
		SEND_COMMAND SAT_4,"'CP',48"
		//TO[SAT_4,48]
	    }
	    CASE 22:  //Select
	    {
		SEND_COMMAND SAT_4,"'CP',49"
		//TO[SAT_4,49]
	    }
	    CASE 23:  //Exit
	    {
		SEND_COMMAND SAT_4,"'CP',50"
		//TO[SAT_4,50]
	    }
	    CASE 24:  //Guide
	    {
		SEND_COMMAND SAT_4,"'CP',56"
		//TO[SAT_4,56]
	    }
	    CASE 25:  //Info
	    {
		SEND_COMMAND SAT_4,"'CP',65"
		//TO[SAT_4,65]
	    }
	    CASE 26:  //prev chan
	    {
		SEND_COMMAND SAT_4,"'CP',55"
		//TO[SAT_4,55]
	    }
	}
    }
}
I understand that the R2 has button #s that are not reassignable, which is why my variable skips numbers from one item to the next. I just don't see why the IRS4 won't emit the code, when it seems that it is getting the identical command either way.

Comments

  • vegastechvegastech Posts: 369
    So can I assume that based on the # of views on this post, that my programming seems to be correct? I was thinking about getting an NXC-IRS4 with case and installing this in place of the NXB-IRS4, as I already have an NXC onsite that is working fine with similar code, just with different IR devices(projector, tv, identical sat box). Also, I was thinking about swapping the IR devices on the two boxes - putting the devices that don't work onto the NXC, and putting the devices that DO work on the NXB.
  • John NagyJohn Nagy Posts: 1,742
    The devices are command compatible, substitution is the best test. You may have a bad box... reassign each to the other address, and see if the problem moves with the address or with the hardware.
    And be sure your IRL's loaded properly. Test with the PULSE command from NetLinx Studio and/or IREDIT.
Sign In or Register to comment.