Your Universal Remote Control Center
RemoteCentral.com
Discrete Code Hunter Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Transformin Lego IR codes to Pronto HEX
This thread has 3 replies. Displaying all posts.
Post 1 made on Wednesday March 13, 2019 at 09:46
Psuch
Lurking Member
Joined:
Posts:
November 2018
2
I was trying to transform the Lego PF codes, which are shown in this document, to pronto HEX, but I wasn't able to do that. Does anyone have any idea how to transform this short IR code sequence, shown in that document to Pronto hex?

This an example of a Lego code:
0100 0101 0011 1101

(I am completly new in this topic)

Here the link if the underlined shown doesn t work: [Link: philohome.com]

Last edited by Psuch on March 13, 2019 11:12.
Post 2 made on Wednesday March 13, 2019 at 14:43
Barf
Long Time Member
Joined:
Posts:
August 2013
350
Hmm, the document says:

The payload is: 1 toggle bit, 1 escape bit, 2 bits for channel switch, 1 bit for address, 3 bits for mode and 4 bits for various data depending on mode.

so you should probably act on that. Or what do you mean by "this short IR code sequence"?

See this thread [Link: hifi-remote.com] where I show how to use IrScrutinizer to compute the Pronto Hex for particular values of the parameters.
OP | Post 3 made on Thursday March 14, 2019 at 10:06
Psuch
Lurking Member
Joined:
Posts:
November 2018
2
Hi,
so is it right that there is a file you have made for ir scrutnizer that generates IR codes for lego PF in Pronto HEX?If yes it would be very helpful how to insert that file that you discribed on hifi-remote inside IR scrutinizer. I was very suprised when I saw this short binary codes, because they re much more shorter than the Pronto HEX codes nad I don t have any idea, how this short IR code mind be convertable to Pronto HEX.
Post 4 made on Friday March 15, 2019 at 08:36
Barf
Long Time Member
Joined:
Posts:
August 2013
350
It is unclear what you mean by "short IR code". Where did you get it from? What are you trying to achieve?

Likely, your 8-bit number it is the parameter values. Their meaning is described in the document that you linked. A "protocol", like the one described, is simply a way to map parametervalues to an IR signal.

To use with IrScrutinizer, just append these lines



[protocol]
name=lego
irp={38k,1p,msb}<6,-10|6,-21>(6,-39,nibble_1:4,nibble_2:4,F:4,LRC:4,6,-39) \
{ nibble_1 = 8*T:1 | 4*E:1 | D:2, \
nibble_2 = 8*a:1 | mode:3, \
LRC = nibble_1 ^ nibble_2 ^ F:4, \
T = 1-T } \
[T@:0..1=0,a:0..1=0,E:0..1,D:0..3,mode:0..7,F:0..15]


to the end of its IrpProtocols.ini.

Then you just have to assign values to the parameters a, E, D, mode, and F, as per the document.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse