LASER-Yi / homebridge-mi-acpartner

XiaoMi AC Partner plugins for HomeBridge(https://github.com/nfarina/homebridge).
MIT License
263 stars 36 forks source link

米家app松下2号抓的包,大神能帮忙添加到presets中吗? #43

Open yeefanwong opened 6 years ago

yeefanwong commented 6 years ago

"customize": {

"off": "010000258701201c01000220E004000000060220E00400302080AF00000660000080000671", "on": "010000258711201c01000220E004000000060220E004003138807F0000066000008000065A", "auto": "010000258712301111000220E004000000060220E0040001E280A1000006600000800006F6", "cool": { "30": "010000258711201e11000220E004000000060220E00400313C807F0000066000008000065E", "29": "010000258711201d11000220E004000000060220E00400313A807F0000066000008000065C", "28": "010000258711201c01000220E004000000060220E004003138807F0000066000008000065A", "27": "010000258711201b11000220E004000000060220E004003136807F00000660000080000658", "26": "010000258711201a11000220E004000000060220E004003134807F00000660000080000656", "25": "010000258711201911000220E004000000060220E004003132807F00000660000080000654", "24": "010000258711201811000220E004000000060220E004003130807F00000660000080000652", "23": "010000258711201711000220E004000000060220E00400312E807F00000660000080000650", "22": "010000258711201611000220E004000000060220E00400312C807F0000066000008000064E", "21": "010000258711201511000220E004000000060220E00400312A807F0000066000008000064C", "20": "010000258711201411000220E004000000060220E004003128807F0000066000008000064A", "19": "010000258711201311000220E004000000060220E004003126807F00000660000080000648", "18": "010000258711201211000220E004000000060220E004003124807F00000660000080000646", "17": "010000258711201111000220E004000000060220E004003122807F00000660000080000644"

CaptainBott commented 6 years ago

估计大神应该不会加到预设中去。不过,特别想问一下@yeefanwong是怎么抓成功的包?我所有环境都配好了,就是抓包这儿卡了很久,按照大神发的filter条件(udp.dstport == 54321 or udp.srcport == 54321)只能看到极少数的UDP请求,根本看不到TCP请求。环境:Win10 1803、Wireshark 2.6.2、网易MUMU安卓模拟器。Wireshark 是不是需要特别设置一下?

yeefanwong commented 6 years ago

你有装杀毒软件吗?有卸载后试试,我见过因为装了杀毒软件而抓不到包的。

CaptainBott commented 6 years ago

关了Windows Defender的主动防护和Windws防火墙,依然如故。

LASER-Yi commented 6 years ago

保存好了,分析需要一段时间。现在的计划是把出现的BUG修正,修改学习红外码的功能,才能添加进去

d4ni37 commented 6 years ago

Hi @yeefanwong You wouldn't possibly know the heating codes would you? For example: "heat":{ "30": "(可不填写)", "29": "", "17": "" }

yeefanwong commented 6 years ago

@d4ni37

Sorry,My AC only has cooling mode.

d4ni37 commented 6 years ago

Hi @yeefanwong. Thank you for the quick response. If you are using wireshark, can you capture it even though your AC won’t respond to the command?

d4ni37 commented 6 years ago

With a bit of extra reverse engineering and hacking the heating codes are as follows: "heat" : { "25" : "010000258710201911000220E004000000060220E004004132807F00000660000080000664", "21" : "010000258710201511000220E004000000060220E00400412A807F0000066000008000065C", "26" : "010000258710201a11000220E004000000060220E004004134807F00000660000080000666", "22" : "010000258710201611000220E004000000060220E00400412C807F0000066000008000065E", "27" : "010000258710201b11000220E004000000060220E004004136807F00000660000080000668", "17" : "010000258710201111000220E004000000060220E004004122807F00000660000080000654", "23" : "010000258710201711000220E004000000060220E00400412E807F00000660000080000660", "28" : "010000258710201c01000220E004000000060220E004004138807F0000066000008000066A", "24" : "010000258710201811000220E004000000060220E004004130807F00000660000080000662", "18" : "010000258710201211000220E004000000060220E004004124807F00000660000080000656", "29" : "010000258710201d11000220E004000000060220E00400413A807F0000066000008000066C", "20" : "010000258710201411000220E004000000060220E004004128807F0000066000008000065A", "30" : "010000258710201e11000220E004000000060220E00400413C807F0000066000008000066E", "19" : "010000258710201311000220E004000000060220E004004126807F00000660000080000658" }