Subversion Repositories HomeAutomation

Rev

Rev 1847 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1847 Rev 1852
Line 162... Line 162...
162
    msg.setData("Repeat", repeatCount);
162
    msg.setData("Repeat", repeatCount);
163
    sendMessage(msg);
163
    sendMessage(msg);
164
    sleep(10);
164
    sleep(10);
165
}
165
}
166
 
166
 
-
 
167
irTransceive.prototype.sendProntoStop = function(channel)
-
 
168
{
-
 
169
    var msg = new CanMessage("sns", "To_Owner", this.myName, this.myId, "IrProntoStop");
-
 
170
    msg.setData("Channel", channel);
-
 
171
    sendMessage(msg);
-
 
172
}
-
 
173
 
-
 
174
irTransceive.prototype.sendProntoContinue = function(channel)
-
 
175
{
-
 
176
    var msg = new CanMessage("sns", "To_Owner", this.myName, this.myId, "IrProntoContinue");
-
 
177
    msg.setData("Channel", channel);
-
 
178
    sendMessage(msg);
-
 
179
}
-
 
180
 
167
function sendProntoTest()
181
function prontoTest()
168
{
182
{
169
    var ir = ServiceManager.getService("Can","irTransceive",1);
183
    var ir = ServiceManager.getService("Can","irTransceive",1);
170
    ir.sendProntoHex(1, 255, "0000 006d 0022 0002 0156 00ad 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 05ed 0156 0056 0016 0e62");
184
    ir.sendProntoHex(1, 10, "0000 006d 0022 0002 0156 00ad 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 05ed 0156 0056 0016 0e62");
171
    //ir.sendProntoHex(1, "0000 006d 0022 0000 0156 00A9 0015 0014 0015 003D 0016 003D 0015 003F 0015 0015 0015 003E 0015 003D 0016 003D 0016 003E 0015 003E 0016 003E 0015 0014 0016 0014 0017 0013 0017 0013 0017 003C 0016 0014 0017 003C 0017 0013 0016 003D 0017 0013 0016 0014 0017 0013 0017 0013 0016 0014 0017 003C 0017 0013 0017 0013 0016 003D 0018 003B 0017 003C 0017 003D 0017 01CD");
185
    //ir.sendProntoHex(1, "0000 006d 0022 0000 0156 00A9 0015 0014 0015 003D 0016 003D 0015 003F 0015 0015 0015 003E 0015 003D 0016 003D 0016 003E 0015 003E 0016 003E 0015 0014 0016 0014 0017 0013 0017 0013 0017 003C 0016 0014 0017 003C 0017 0013 0016 003D 0017 0013 0016 0014 0017 0013 0017 0013 0016 0014 0017 003C 0017 0013 0017 0013 0016 003D 0018 003B 0017 003C 0017 003D 0017 01CD");
-
 
186
   
-
 
187
    //ir.sendProntoContinue(1);
-
 
188
   
-
 
189
    //ir.sendProntoStop(1);
172
}
190
}