davorf / BlackBeanControl

BlackBeanControl - Broadlink RM 3 Mini (aka Black Bean) control script
230 stars 55 forks source link

Can't send IR command #1

Closed chatainsim closed 8 years ago

chatainsim commented 8 years ago

Hello, I've tried your script but I can't make it work. I've got the HexDump of dummy command set and one to turn on my TV. But when I launch the script nothing happen. No error either. Current version of my BlackBean is: v20027 Android App version is: v3.7.1-1.1.9

I've used tPacketCapture on my phone to get UDP trame then open on my laptop with Wireshark. Filter on ip.dst == MyBroadLinkIP Get the Payload line and right click -> Copy -> As Hex stream Store them in config file. Launch the script:

python BlackBeanControl.py -c TVOnOff

My config file:

[General]
IPAddress: 192.168.1.33
Port: 80
DummyCommand: 55000000000000000000000000000000000000000000000000c3f6000037276a00f981b223cc0d43b4010000009ac700009e377af457090de5cf45632a221b56b340f2efea2586cec30b352f04
2d4e1e4c58742449b3a2c5763b4fdcdeb906774db6bc37e35f395423feade09951a4475823253976cac26e78c27cdd9c6099edff6fa1c0efded4cfb0a04a2f130f481346

[Commands]
TVOnOff: 55000000000000000000000000000000000000000000000000471c000037276a003980b223cc0d43b401000000cecf00003ecf1a1d530171c910f60ccf365b0479dfc6006e829d2a6d870ea51b3bd04
60a7a2e2da9dc37f60a65b6e76c8c33dc42958b6733215b88382b08aa51154b9f071f67d424a5aa9f52f962adf666cf922469d8dab253c6ad9600b176bf6dab9a9efbe48cd57a25a13fc6c91e85c1a0726873140
c336bd4033a4f791dc8a3bd6f80444728137fde20958e1f066652dd73b345fef0bc36a58f9f4dae819f75815eebb62a54db65d7e4bdb63f56eac186da4e

Thank you.

chatainsim commented 8 years ago

Ok, I found out how to solve this issue. For those who want to know how:

When you open the dump with Wireshark, click on the QUIC packet sent to the BlackBean: image

And right click on the QUIC (Quick UDP Internet Connections) below and Copy -> ... as a Hex Stream image