|
JP1 Remotes
|
View previous topic :: View next topic |
Author |
Message |
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Mon May 07, 2007 12:50 pm Post subject: |
|
|
yesok wrote: | 45 7F 84 C7 D8 0F - Is this a typo? Please confirm the codes in my records.
temp 30 - 49 7F 84 C7 D8 2F
Fan - High - 49 7F 8D 47 D8 0F
mode - cool - 49 7F 8D 47 D8 0F
Cool Mode - Normal - 49 7F 8D 47 D8 0F |
As you may recall, I have been generating quite a few experimental codes for you to try out, and apart from the ones with typos, they've all worked, so I now have up to 4 working codes for each function. Regarding the 4 functions mentioned in this example, I have the following codes listed as working...
temp 30
45 7F 84 C7 D8 0F
49 7F 8E C7 D8 0F
49 7F 84 C7 D8 2F
41 7F 8E 47 D8 2F
Fan - High
45 7F 84 C7 D8 0F
49 7F 8D 47 D8 0F
mode - cool
45 7F 84 C7 D8 0F
49 7F 8D 47 D8 0F
Cool Mode - Normal
45 7F 84 C7 D8 0F
49 7F 8D 47 D8 0F
so, if you were to re-test the 45 7F 84 C7 D8 0F code, I think you'll find that it performs all 4 functions listed above. In fact, you could try each of the 4 codes listed for "temp 30" and you'll probably find that they will perform each of the 4 functions listed.
I have updated the spreadsheet that I have been compiling of all of these codes here...
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=4390
The codes shown in red are new experimental codes that I have generated but have not asked you to test yet. It's not essential that I know if these work, but if you are so inclined, you can test them. _________________ 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 |
|
|
yesok
Joined: 25 Aug 2006 Posts: 136
|
Posted: Tue May 08, 2007 2:45 am Post subject: New code |
|
|
Hello Robman,
The Robman wrote: | As you may recall, I have been generating quite a few experimental codes for you to try out, and apart from the ones with typos, they've all worked, so I now have up to 4 working codes for each function. Regarding the 4 functions mentioned in this example, I have the following codes listed as working...
temp 30
45 7F 84 C7 D8 0F
49 7F 8E C7 D8 0F
49 7F 84 C7 D8 2F
41 7F 8E 47 D8 2F
Fan - High
45 7F 84 C7 D8 0F
49 7F 8D 47 D8 0F
mode - cool
45 7F 84 C7 D8 0F
49 7F 8D 47 D8 0F
Cool Mode - Normal
45 7F 84 C7 D8 0F
49 7F 8D 47 D8 0F
so, if you were to re-test the 45 7F 84 C7 D8 0F code, I think you'll find that it performs all 4 functions listed above. In fact, you could try each of the 4 codes listed for "temp 30" and you'll probably find that they will perform each of the 4 functions listed. |
Thanks for your tremendous efforts.
The Robman wrote: | I have updated the spreadsheet that I have been compiling of all of these codes here...
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=4390
The codes shown in red are new experimental codes that I have generated but have not asked you to test yet. It's not essential that I know if these work, but if you are so inclined, you can test them. |
I will test the new code and let you know the result.
Yesok |
|
Back to top |
|
|
shineangelic
Joined: 08 Aug 2012 Posts: 2
|
Posted: Wed Aug 08, 2012 5:31 am Post subject: |
|
|
This thread was somehow useful to start peeking into Samsung IR Codes. I'm generating IR codes for Samsung AirCon Model FBMH026FB with Arduino, so I had to decode and understand commands first.
The results of my work is located at:
https://docs.google.com/spreadsheet/ccc?key=0Aupzmp8AqC8JdGtNOXhUc0R0WC1hbVdRa0p3aDVxdFE#gid=0
it is a spreasheet with all dumped values and the interpretation of results. AFAIK, aircon unit sends out 2 or 3 "bursts" of 56bit data, depending on command. Each single burst is very similar to ones described on this old thread.
The problem I have is related to checksum.
Since I have to re-generate the IR codes wayback (not only storing them and resending them as they are) I do have to understand every single byte. I succesfully decoded all, but I can't figure out how to generate the 2bytes checksum.
Anyone figured out Samsung checksum algorithm?
Thank you |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Wed Aug 08, 2012 10:19 pm Post subject: |
|
|
I've got the first bit of the checksum, it's an XOR of the 6 nibbles in the 4th, 5th and 6th bytes.
The 4th bit is the complement of the first bit from 3rd byte.
Still working on the other 2 bits. _________________ 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 |
|
|
vickyg2003 Site Admin
Joined: 20 Mar 2004 Posts: 7073 Location: Florida |
Posted: Thu Aug 09, 2012 8:13 am Post subject: |
|
|
Wow Rob, you are amazing. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Sat Aug 11, 2012 2:33 pm Post subject: |
|
|
Here's the spreadsheet where I've been trying to calculate the checksum:
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=11192
The columns over to the right (AH thru AO) are where it happens. The 1c/2c/etc columns are the real checksum and the columns to the right are generated using code. If the result is correct, the font will stay black, if the result is wrong, the font will turn red. As you can see, the code for the 2nd and 3rd bits isn't correct yet, I'm posting this in case anyone else wants to take a stab at it.
Btw, I moved the Power Off code to the 2nd tab temporarily, as it's the only code where the 5th nibble (column W) isn't '8' (or '1000') _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Last edited by The Robman on Fri Aug 17, 2012 5:10 pm; edited 1 time in total |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
|
Back to top |
|
|
shineangelic
Joined: 08 Aug 2012 Posts: 2
|
Posted: Fri Aug 17, 2012 4:28 pm Post subject: |
|
|
Ok let me clarify this since I ended taking too many people's time.
I was really upset by that algorithm, having spent more than what was deserved to an air-conditioner checksum algorithm. So I started some discussions on related forums:
-Arduino, because Ken shirriff's library is based on that
-Stackoverflow, since it's a great place
-This forum, because the topic was strictly related to my issue
As for the third, I didn't believe I would had received an answer, 'cause last post was quite dated.
I's sorry I didn't notice the replies after second one, so I didn't notify of solution sent to me by epic Ken Shirriff some day ago.
The algorithm is as follow (credits to Ken):
1. Count the number of 1 bits in all the bytes except #2 (checksum)
2. Compute count mod 15. If the value is 0, use 15 instead.
3. Take the value from 2, flip the 4 bits, and reverse the 4 bits.
4. The checksum is Bn where n is the value from the previous step.
Note that step 2 is mod 15, not mod 16 (which you might expect). I
don't know why 15 is used as a special case instead of 0.
The implementation of this is still temporary and I can't post it. I'll come back when it's ready to be shown.
Thank you very much for your time and efforts. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Fri Aug 17, 2012 9:37 pm Post subject: |
|
|
Back to the original A/C learns (ie, the ones from 2007), I have updated the spreadsheet to reflect how the checksum is calculated:
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=4390
For this one, you do the following:
1. sum the bits
2. do a MOD 16
3. subtract the result from 16
4. reverse the binary _________________ 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 |
|
|
|
|
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
|