@irsend command-Repeat Parameter (Custom IR Remote)
I would like to know the syntax of the @irsend command with repeat parameter as I am using a custom IR remote based on the examples you have provided on your website. Your examples do not demonstrate the use of the Repeat Parameter.
Sometimes, some target IR devices need the same IR command to be sent twice or thrice in quick succession and if this is not done, they will not respond to the remote button pressed.
For example, iTach Global Cache IR blasters have the following syntax of their "irsend command" (which is sendir) as follows -
Example of sendir with repeat command - 4 times
Note = The "4" in the above syntax demonstrates that the same IR code is sent 4 times to the target IR device (TV, STB, etc.....)
How can the same functionality (repeat parameter) be achieved with your customized @irsend command?
UNIFIED REMOTE USES THE CUSTOMIZED @irsend command TO SEND IR CODES TO THE TARGET DEVICE (TV, STB, BLURAY PLAYER, ETC....)
You can chain the repeats up in the @irsend pronto code like this....... (3 repeats)...... the whole code including the 4 headers and the closing "2000" (in this case)... repeated 3 times....
This was "learned" (first header 0000) and though there are slight differences in the repeated code it is likely that they should be identical (IR noise)......
actions.vol_up = function () libs.server.run ("@irsend", "@irsend", "0000 0073 000d 0000 08FB 0295 022B 0297 047C 027A 022E 0294 022B 0297 047C 027D 0229 0297 0229 0297 047C 027D 0229 0297 0229 0297 022B 0294 022E 2000 0000 0073 000d 0000 08FB 0295 022B 0297 047C 027A 022E 0294 022B 0297 047C 027D 0229 0297 0229 0297 047C 027D 0229 0297 0229 0297 022B 0294 022E 2000 0000 0073 000d 0000 08FB 0295 022B 0297 047C 027A 022E 0294 022B 0297 047C 027D 0229 0297 0229 0297 047C 027D 0229 0297 0229 0297 022B 0294 022E 2000" ); end
Thank you, David.
Do I need to type the above syntax code exactly as you have given in the remote.lua file ?
Obviously, I will use my captured IR Code in Pronto Hex format to replace the IR code contained in your syntax.
Why have you used the "@irsend" command 2 times ? Does this mean the "@irsend" will be sent thrice to the target device becasue you have coded it twice in your syntax.
In my case, I need to send the same IR code twice to the Target IR Device --- does this mean that I will have to code the "@irsend" only once ?
Thanks, once, again......Savio
Sorry, I should have mentioned that I use "Keene" networked blasters which require the UR server to send them the data...... and the doubled @irsend was necessary a couple of years ago in the early V3 app and the V3 server libraries........
I went back to the older versions when none of my IR remotes would work with newer versions, and I really did not have the time to catch up. It looked like UR had changed from Pronto code as well, and the work to update thousands of captured codes was not welcome.
If you have the itach working with pronto code in the app then........
a)... you presumably do not need to double the @irsend.
b)... I would be very interested to see your working code, in case I feel like changing all of my remotes to take advantage of any new app features (one rainy day).
In that case, I come back to the code portion sent by you as above -
Do I need to code as below based on your code snippet (sent by you) as follows - (assuming that I want to send the same IR code) 3 times to the Target IR Device (TV, STB, Blu Ray Player...) ?
actions.vol_up = function ()
libs.server.run ("@irsend", "0000......................2000");
Please clarify the above whether my understanding is correct.
My setup is similar to yours except that I am using iTach GC Network based Transceiver (instead of Keene). I have heard of Keene Network Blasters, but, do not have much knowledge about Keene Network based IR Blasters. iTach GC IR Transceiver is also Network based and has the learning facility as well. As I have mentioned in another post, the learnt IR code captured by iTach GC IR Transreceiver is in iTach GC IR format and needs to be converted into Pronto Hex Format and this can be done via many of the IR code converters available online. Code conversion is necessary because as you know Unified Remote App will only work with IR codes in Pronto Hex Format. For your information , both the above IR code formats are internationally recognized.
I will send you a code snippet if you wish once I get Unified Remote App to work perfectly with iTach GC Network Blaster. Currently, I have achieved limited success in getting the integration with Unified Remote App and the iTach GC Network based IR Transreceiver Blaster
By the way, does the IR code captured by Keene Network IR Transreceiver also in iTach GC format [OR] Pronto Hex Format ?
I am very uncertain about the format that UR is now using.
(( The old UR app that I use returned Pronto code from an IR Learn, that could be sent back to the "Keene", even though the Keene does not use the same coding...... by using the doubled @irsend"........ If you wish then I can email or share with you that version of the app for Android. I also have older server builds for Windows and the Raspberry Pi....... that are portable so no installation required. If you get completely stuck then let me know and I will try to send them to you.
As I understand things...... the iTach, which UR recommended even before the Keene...... was catered for in the same way when the early V3 app/server builds were released))
The Keene is also a transceiver.
Using the older UR app and server a "learn" using the app returned a pronto code that I could use (such as the one that I posted above)
Using a later version of UR it returned code from the Keene that looked like this.......
<button text="Power OFF" ontap="@irsend,UIR.FREQ.40064.SEQ.22.214.171.124.126.96.36.199.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.24.922.214.171.124.126.96.36.199.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.24.24.922.214.171.124.126.96.36.199.188.8.131.52.184.108.40.206.220.127.116.11.18.104.22.168.24.24.5128"/>
all decimal......... and that I could not use with a double "@[email protected]"...
I tried conversion tools, a single "@irsend" and I don't remember what else, but to no avail and I gave up.
The Keene itself uses code like this.......
K 2422 2237 118D 0205 0274 0207 0274 01EF 028F 01EF 0278 0205 028F 01D5 028F 01EF 0274 01EF 028F 01EF 06D0 020D 06BB 0209 06CE 01F4 06CE 0210 06B8 0209 026F 01F4 028A 01F4 06CE 020E 026F 01F4 028D 01F2 026F 020D 0272 01F2 06CE 020E 026F 01F4 06CA 0212 026F 01F4 06CE 01F6 06D0 020A 06CE 01F4 06CA 01F7 0288 01F6 06CA 0210 0272 01F2 06CA 01F7 2000
But received the Pronto code from UR just fine using the doubled "@irsend".
The Keene Hex codes show absolutely no similarity to the Pronto Hex codes captured for the same "button press" of a remote.
People have posted success using "UIR.FREQ.40064.SEQ.96" style code using the inbuilt device blaster. (search this forum for that..... and someone else has been trying to use the iTach and has posted as well).
For doubling, tripling etc. the code I just string it all in the same function...... so like this.........
libs.server.run ("@irsend"(twice for me) , "0000............2000 0000..........2000 0000......... 2000");
As I do not use the Keene transreceiver product, I am unable to comment on it, but, understand that it also returns the code in Hex format which is native to the UR app.
In my case the latest version of UR works well with some of my IR remotes --- where the target IR device does not need the IR code to be sent more than once. I am only facing problems when I need to send the same IR code twice or thrice to the target IR device.
I use the iTach Capture Utility which captures the code from the physical remote via the iTach GC transreceiver over the LAN. This code is converted into Hex format via iTach Convert utility which I then cut and paste into the UR remote.lua file (based on the example given by the UR developer)
I have sent my request to the UR developer to get the correct repeat syntax for the "@irsend" utility ---- no response from the UR developer to my request for over 3 months. Fortunately, the support at iTach GC is good and they are very responsive -- but, unfortunately, they cannot support me with the UR app as this is not their product. The support from UR developer is very poor even though my request is just to get the repeat functionality of the "@irsend" command.
Because, of the poor support from the UR developer, I now use UR only as a Windows Remote Control and for my IR remote control needs - using another Android app called mbhRemote which meets all my IR requirements and works well with the iTach GC devices (with repeat functionality). I would recommend you to try out mbhRemote Android app -- though I may not be able to help you with mbhRemote-Keene integration (since I do not own the Keene product).
In the meantime, I will try to use the double @irsend in the command sent by you recently and see if it works.
Thanks for your support......Savio