|
JP1 Remotes
|
View previous topic :: View next topic |
Author |
Message |
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Sat Sep 18, 2021 9:57 pm Post subject: What is this IR signal format? |
|
|
I have a very old MegaPilot LPT device and software.
The program saves the recorded IR codes in ASCII format in the Windows registry. In hex it looks like this:
Code: | 8583F2F6828580F68088F3F682F0F68886F682F2F68388F682F0F683F3F682F0F683F5F682F0F683F3
F682F0F683F5F682F5F68388F682F0F683F3F682F0F683F5F682F0F68884F682F0F68886F682F2F688
82F682F0F68884F682F0F68886F682F0F68884F682F0F68886F682F2F68388F682F0F68884F682F0F6
83F5F682F0F68884F682F0F683F5F682F5F68388F682F0F683F3F682F0F683F5F682F0F68884F682F0
F683F5F682F5F68882F682F0F683F2F682F0F68886F682F0F68884F682F0F68886F682F0F68884F682
F0F6F48782 |
Is it some known format that can be converted with some program e.g. IrScrutinizer or IRScope? |
|
Back to top |
|
|
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Tue Sep 21, 2021 10:33 am Post subject: |
|
|
This is IR code from POWER button NEC Addr=01 Cmd=01
Maybe someone knows how to convert Addr, Cmd to this format - 210 bytes HEX ? |
|
Back to top |
|
|
3FG Expert
Joined: 19 May 2009 Posts: 3367
|
Posted: Tue Sep 21, 2021 12:04 pm Post subject: |
|
|
The string can be split up in the following way: Code: | 85 83 F2 F6 82
85 80 F6 80 88 F3 F6 82
F0 F6 88 86 F6 82
F2 F6 83 88 F6 82
F0 F6 83 F3 F6 82
F0 F6 83 F5 F6 82
F0 F6 83 F3 F6 82
F0 F6 83 F5 F6 82
F5 F6 83 88 F6 82
F0 F6 83 F3 F6 82
F0 F6 83 F5 F6 82
F0 F6 88 84 F6 82
F0 F6 88 86 F6 82
F2 F6 88 82 F6 82
F0 F6 88 84 F6 82
F0 F6 88 86 F6 82
F0 F6 88 84 F6 82
F0 F6 88 86 F6 82
F2 F6 83 88 F6 82
F0 F6 88 84 F6 82
F0 F6 83 F5 F6 82
F0 F6 88 84 F6 82
F0 F6 83 F5 F6 82
F5 F6 83 88 F6 82
F0 F6 83 F3 F6 82
F0 F6 83 F5 F6 82
F0 F6 88 84 F6 82
F0 F6 83 F5 F6 82
F5 F6 88 82 F6 82
F0 F6 83 F2 F6 82
F0 F6 88 86 F6 82
F0 F6 88 84 F6 82
F0 F6 88 86 F6 82
F0 F6 88 84 F6 82
F0 F6 F4 87 82 | where the last two bytes of each line is F6 82. Skipping the first two and the last lines, there are 4 sections of 8 lines each, apparently corresponding to the 32 bit format of NEC. Note that in the 32 bits, the third column is made up of either 88 or 83, and the values for the second byte are the complement of the first. Similarly for 3rd and 4th. Just looking at the third column bytes, I would guess this signal is device 1 and command 10.
Every byte begins with either 0xF or 0x8, so that nibble must be a flag of some kind.
If the 4th byte is 88, then the third byte is 83.
As a general comment, it is helpful to have more than one known signal, and also to have the command value different than the device number. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21238 Location: Chicago, IL |
Posted: Tue Sep 21, 2021 12:42 pm Post subject: |
|
|
It's very difficult with just one sample to work with. Ideally, you'd want to see the same signal learned several different times, so we can see what sort of variance to expect in identical signals (ie, learning error tolerance). Then we'd want to see several different samples, like CMDs 2,3,4,5 or maybe Addr 2,3,4,5.
To help you try to solve this yourself, here's the binary string that you should try to find in that hex:
10000000 01111111 10000000 01111111
From a timing point of view, the 1's and 0's are like this:
1 = +550 -1650
0 = +550 -550 _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Tue Sep 21, 2021 2:18 pm Post subject: |
|
|
3FG wrote: | The string can be split up in the following way |
Very thx
Yes, now this look clearly. Probably the first two sections are the encoded device address Addr and the next two are the command Cmd (button address)
3FG wrote: | Every byte begins with either 0xF or 0x8, so that nibble must be a flag of some kind.
If the 4th byte is 88, then the third byte is 83. |
Yes, in fact you are right - it shows now.
3FG wrote: | As a general comment, it is helpful to have more than one known signal, and also to have the command value different than the device number. |
OK, I'll teach the MegaPilot two other buttons a couple of times and I'll post the results here. |
|
Back to top |
|
|
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Tue Sep 21, 2021 3:44 pm Post subject: |
|
|
OK, these are three instances of the same button Addr = 01 Cmd = 08 (EPG):
P.S. I arranged it by hand
Maybe I can somehow automate in linux terminal with awk, cut ??? |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21238 Location: Chicago, IL |
Posted: Tue Sep 21, 2021 10:17 pm Post subject: |
|
|
At first glance, it looks like all the data in the 32-bit portion is identical, meaning that every bit must be important. Normally, when we "raw data" for learns, there's a lot of variation between captures because timings are approximate. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Wed Sep 22, 2021 12:32 am Post subject: |
|
|
This is menu button 01 0a:
Code: | F3 F7 F2 F6 82
89 F5 F6 80 F3 F4 F6 85
83 F6 F0 80 F6 82
F7 F6 82 81 F6 85
83 F6 83 F5 F6 85
83 F6 83 F4 F6 85
83 F6 83 F5 F6 85
83 F6 83 F4 F6 82
F7 F6 82 81 F6 85
83 F6 83 F5 F6 85
83 F6 83 F4 F6 85
83 F6 F0 81 F6 85
83 F6 F0 80 F6 82
F7 F6 F0 82 F6 85
83 F6 F0 81 F6 85
83 F6 F0 80 F6 85
83 F6 F0 81 F6 85
83 F6 F0 83 F6 82
F7 F6 82 81 F6 85
83 F6 83 F5 F6 85
83 F6 83 F4 F6 85
83 F6 F0 80 F6 85
83 F6 83 F4 F6 82
F7 F6 82 81 F6 85
83 F6 83 F5 F6 85
83 F6 83 F4 F6 85
83 F6 F0 81 F6 85
83 F6 F0 80 F6 82
F7 F6 F0 82 F6 85
83 F6 83 F5 F6 85
83 F6 F0 80 F6 85
83 F6 F0 81 F6 85
83 F6 F0 83 F6 85
83 F6 F0 81 F6 85
83 F6 F7 F3 81 |
|
|
Back to top |
|
|
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Sun Sep 26, 2021 6:01 am Post subject: |
|
|
I recorded more buttons and made a bash script displaying the data as it showed 3FG:
Code: | hexdump -C button.bin | awk '{
if(NR ==1) {printf "%s %s %s %s %s\n%s %s %s %s %s %s %s %s\n\n%s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==2) {printf "%s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n%s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==3) {printf "%s %s %s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==4) {printf "%s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n\n%s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==5) {printf "%s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n%s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==6) {printf "%s %s %s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==7) {printf "%s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n\n%s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==8) {printf "%s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n%s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==9) {printf "%s %s %s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==10) {printf "%s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n\n%s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==11) {printf "%s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n%s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==12) {printf "%s %s %s %s %s\n%s %s %s %s %s %s\n%s %s %s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==13) {printf "%s\n%s %s %s %s %s %s\n%s %s %s %s %s %s\n\n%s %s %s ", $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17}
if(NR ==14) {printf "%s %s\n", $2, $3}
}' |
buttons.zip |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21238 Location: Chicago, IL |
Posted: Sun Sep 26, 2021 9:47 am Post subject: |
|
|
When I click on that click it takes me to some scary site which requires registration, etc. Please load a copy to our Diagnosis Area instead.
http://www.hifi-remote.com/forums/viewtopic.php?t=102759 _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
jzef
Joined: 14 Sep 2021 Posts: 20
|
Posted: Sun Sep 26, 2021 12:20 pm Post subject: |
|
|
OK, sorry. Here is the file: buttons.zip
Log files are in Linux format, so under Windows it is best to open them in WordPad. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|