OpHaCo / smart_coffee_machine

49 stars 7 forks source link

How did you decode the control code? #6

Closed DivanX10 closed 1 year ago

DivanX10 commented 1 year ago

I am trying to decipher the code for the philips 5400 coffee machine and look at various projects as an example. I noticed that you use patterns. Tell me, why do you use patterns and not HEX format? What data did you receive when you decrypted it? What did your bytes look like? I'm not a programmer and I don't know how to write programs, but a simple user who looks at a lot of examples and tries to repeat them. Looking at the projects, I am trying to do some things that I have described in detail here. Since you have come all this way and know what and how, could you help in deciphering? For example, say find the right command to turn on the coffee machine.

Looking at your code where you specified patterns, how did you determine that the code is {OFF, POWER_OFF , {.pattern32 =PATTERN_32(128, 128, 128, 0)}, UINT32, "OFF"}, turns off the coffee machine? I also have frequently repeated 170:170:170 in the logs, but I can't turn the coffee machine on and off

[01:45:57][D][uart_debug:176]: <<< 170:170:170:254:0:0:200:135:27:64:85:170:170:170:255:1:1:1:13:178:159:144:85:170:170:170:176:0:7:5:0:0:192:0:0:0:247:43:204:67:85:170:170:170:181:1:6:0:0:0:0:0:0:216:164:128:75:85:170:170:170:186:2:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:0:0:0:0:0:168:32:154:211:85:170:170:170:176:3:7:5:0:0:192:0:0:0:50:23:65:122:85:170:170:170:181:4:6:0:0:0:0:0:0:188:170:96:3:85:170:170:170:186:5:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4
[01:45:57][D][uart_debug:176]: <<< 3:6:0:0:0:0:0:0:142:91:89:11:85:170:170:170:176:6:7:5:0:0:64:0:0:0:70:228:143:221:85:170:170:170:181:7:6:0:0:0:0:0:0:95:173:239:141:85:170:170:170:186:8:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:203:111:153:174:85:170:170:170:176:9:7:5:0:0:0:0:0:0:170:115:34:153:85:170:170:170:181:10:6:0:0:0:0:0:0:142:184:234:22:85:170:170:170:186:11:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:51:130
[01:45:57][D][uart_debug:176]: <<< 206:92:85:170:170:170:255:2:1:2:238:93:208:11:85:170:170:170:176:12:7:5:0:0:0:0:0:0:229:54:181:211:85:170:170:170:181:13:6:0:0:0:0:0:0:151:177:47:28:85:170:170:170:186:14:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:122:178:71:145:85:170:170:170:176:15:7:1:0:0:0:0:0:0:51:46:119:30:85:170:170:170:181:16:6:0:0:0:0:0:0:109:149:145:251:85:170:170:170:186:17:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0
[01:45:57][D][uart_debug:176]: <<< 152:191:255:182:85:170:170:170:176:18:7:2:0:0:0:0:0:0:136:145:16:114:85:170:170:170:181:19:6:0:0:0:0:0:0:142:146:30:117:85:170:170:170:186:20:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:209:143:118:123:85:170:170:170:176:21:7:2:0:0:0:0:0:0:65:252:113:22:85:170:170:170:186:20:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:209:143:118:123:85:170:170:170:181:22:6:0:0:0:0:0:0:234:156:254:61:85:170:170:170:176:21
[01:45:57][D][uart_debug:176]: <<< 7:2:0:0:0:0:0:0:65:252:113:22:85:170:170:170:186:20:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:209:143:118:123:85:170:170:170:186:23:24:48:99:1:0:155:129:2:0:3:0:222:38:232:3:1:4:3:6:0:1:0:0:0:0:41:98:33:137:85:170:170:170:181:22:6:0:0:0:0:0:0:234:156:254:61:85:170:170:170:176:21:7:2:0:0:0:0:0:0:65:252:113:22:85:170:170:170:176:24:7:2:0:0:0:0:0:0:22:27:62:231:85:170:170:170:186:23:24:48:99:1:0:155:129:2:0
DivanX10 commented 1 year ago

The issue is resolved. All details can be read here