From JP1 to Pronto hex

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

From JP1 to Pronto hex

Post by Nigel »

I am trying to learn key codes for a remote app on my tablet.

Due to a limitation in the system of most Android devices, they are unable to learn IR codes themselves.

So I have learnt a code into my UFC-6562{B01}.

The learned function works correctly when using the UFC.

I have then downloaded the remote into ir.exe (v8.02 / DecodeIR v2.39).

I can see the learned code is:
IR5 / Dev 10 / OBC 21 / Hex A8 or A9 or AA / EFC 079 or 071 or 079 / Misc T=0

I have used MakeHex. Used rc5.irp, I altered device etc:

Device=10
Function=21
Define T=0
Protocol=RC5
Frequency=36000
Time Base=889 '888.89 = 32 cycles at 36Khz
Message Time=128 '128 times TimeBase
Zero=1,-1
One=-1,1
Prefix=1 'Officially -1,1 but starting with off is silly
First Bit=MSB
Form=;*,~F:1:6,T:1,D:5,F:6

This gave me a Pronto hex code of:
0000 0073 0000 0009 0020 0020 0040 0020 0020 0040 0040 0040 0040 0020 0020 0040 0040 0040 0040 0040 0020 0CA4

I decoded this hex in IRTool.exe, the pop up shows protocol/device/OBC as correct.

I am using an app on the Tablet called Anymote: Smart IR Remote. It provides a utility to convert to an .amsr file. This .amsr file can then be imported into the app.

Did all that, doesn't work!

I would appreciate any help anyone would be kind enough to provide. I think what I am doing is correct, just can't get it to work.

Nigel
Regards
Nigel
bellyshelly
Posts: 11
Joined: Sun Oct 27, 2013 12:45 pm

Post by bellyshelly »

can you provide that .amsr file ?
Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

Post by Nigel »

.amsr was created using a webpage which is provided by the App writers:
http://colortiger.com/pronto2amsr.php

This is the file contents:


{"name":"tivo-myshows0","all_codes":[{"function":"0000 0073","code1":"40000,64,32,32,64,64,64,64,32,32,64,64,64,64,64,32,3236,"}]}
Regards
Nigel
3FG
Expert
Posts: 3436
Joined: Mon May 18, 2009 11:48 pm

Post by 3FG »

I would also learn the output of your tablet using this amsr file, and see what it is actually sending. That way we have a better chance of identifying the source of the problem.
bellyshelly
Posts: 11
Joined: Sun Oct 27, 2013 12:45 pm

Post by bellyshelly »

Here you go:

{"name":"tivo-myshows0","all_codes":[{"function":"BUTTON NAME","code1":"36044,32,32,64,32,32,64,64,64,64,32,32,64,64,64,64,64,32,3236,"}]}

On that page you have to enter the [BUTTON NAME] followed by the pronto code. Entering just the code generates commands missing the first pair in the code.
Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

Post by Nigel »

My thanks to 3FG and BellyShelly, I was not using the .amsr webpage properly.

I didn't notice the [button]<tab><hex> format required.

One last question if I may, do you recognise the format of .amsr files? Is it a known way to encode signals?
Regards
Nigel
bellyshelly
Posts: 11
Joined: Sun Oct 27, 2013 12:45 pm

Post by bellyshelly »

The .amsr files themselves are just JSON-formatted data structures. Paste that content into http://jsonlint.com to view it nicely formatted.

As for the actual code, it's frequency followed by array of pulses - one of the simplest methods of representing a raw IR code.
Excepting for the frequency, all the other numbers are just the decimal representations of the ones in your pronto hex code, starting with the 4th number.
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

I would like to add a few comments here,

I suggest that you use IrScrutinizer instead of the programs Makehex and Irtool.

I looked a bit at the format, and wrote a new export format for IrScrutinizer to generate that format directly. This is the new exportformats.xml, just download and replace the existing file with the new one, and there will be an export format "AnyMote". Just around 30 lines of XSLT code...

For this, I reverse engineered the output of http://colortiger.com/pronto2amsr.php . But either the format is flawed, or the converter is buggy, since it does not respect the repeat portion of the input signal, just tosses them together in one long signal. (Likely the second alternative). My exporter has the same flaw, since I do not know the correct format.

Since I do not have the product, I have not been able to test. Let me know if there are any problems (other than the one already mentioned).
Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

Post by Nigel »

Thank you BellyShelly for your new message concerning the format of .amsr files. I took another look and see that yes, simple really!

And Barf, thank you for providing the IrScrutinizer import.

I think IrScruinizer is the way to go but can you please advise on the best format to import in.

At present I have learnt all the functions from the source remote, they are all RC5. I have them in a spreadsheet at present:

Tivo Function Protocol Device OBC Hex Cmd EFC Misc
Play RC5 10 48 3C or 3D or 3E 179 or 171 or 195 T=1

What would be the best method to import the protocol/Device/OBC into the program? Hopefully to keep the source remote function name with each?

Thank you in advance.

Nigel
Regards
Nigel
Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

Post by Nigel »

Last message not required!

Have worked it out, Import -> Text -> Setup columns of text file, noting that s column not needed for IR5 protocol.

So will organise spreadsheet columns accordingly and then should import OK and then export in .amsr format.

Hmm, bit clever that IrScrutinizer!
Regards
Nigel
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Nigel, bellyshelly:

I would be very interested to know if my exportformat works, i.e. produces usable files for Anymote. In particular, can someone clear up the issue with the repeats? If there is a "code1", possibly there should be a "code2", too?
Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

Post by Nigel »

The Export worked perfectly - Thank you!

Repeats:
There is a limitation with Android devices. This is a bit from the FAQ for the app:
Android doesn't support continuously sending commands, but instead it just accepts short bursts. We have built workarounds to send commands continuously as you hold buttons pressed, and most of the times the equipments accepts them as a single command being sent continuously.

So maybe AnyMote have not included repeated commands in their .AMSR files as would be of no use.
Regards
Nigel
Nigel
Posts: 7
Joined: Wed Jan 25, 2006 9:26 am
Location: Brighton, East Sussex, UK

Post by Nigel »

Just in case anyone reading this is interested. The app on Google Play is here:
https://play.google.com/store/apps/deta ... emotefairy
Regards
Nigel
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Thanx Nigel for the report. That is good news and it is bad news. 8-) :(

Unfortunately, the Android devices I own are not supported.
shanx_verma
Posts: 1
Joined: Sun May 20, 2018 10:10 am

Post by shanx_verma »

Barf
Respected Sir,
I'm including the text from my Android-based Smart TV remote configuration files (all from the same Smart TV), as I want to convert it to AnyMote usable format but don't have the required harware to enable me to do that.
I'd be deeply grateful if you, or someone, anyone can assist me with this.

Thank You so very much in advance!!!! :)

https://www.hifi-remote.com/forums/dload ... e_id=25224
Proper Noob to the world of remotes and IR codes
Post Reply