Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different packets for my controller. #4

Open
mcourteaux opened this issue Apr 29, 2021 · 3 comments
Open

Different packets for my controller. #4

mcourteaux opened this issue Apr 29, 2021 · 3 comments
Milestone

Comments

@mcourteaux
Copy link

I arpspoofed the phone app to intercept packages. I took a few notes:

power off:
0000   3b 24 00 00 00 00 00 00 00 00 00 00 5f

23 gray:
0000   31 17 17 17 00 00 0f 85

candle mode orange:
0000   39 d1 ff 2f 00 0a 32 03 77

candle mode blue:
0000   39 d1 04 00 ff 0a 32 03 4c

candle mode blue slow:
0000   39 d1 04 00 ff 1f 32 03 61

candle mode blue fast:
0000   39 d1 04 00 ff 01 32 03 43


red/green cross fade speed 77%:
0000   81 33 23 2d 23 01 81 00 00 00 0a 00 f0 a3
0000   38 2d 07 2f 9b

red/green cross fade speed 77%:
0000   38 2d 01 64 ca

The CLI tools says this for discovery:

Address    	| ID         	| Model
---------------------------------------
192.168.1.140	| B4E842996A9A	| AK001-ZJ2146
@MoonLiightz
Copy link
Owner

A big thanks for your notes. They will help me to add more improvements.
Additionally, can you send me the JSON return of the status command?

$ ./magic-home status --json 192.168.1.140

@mcourteaux
Copy link
Author

Here is the result:

{"DeviceType":51,"State":1,"LedVersionNumber":10,"Mode":97,"Slowness":10,"Color":{"R":199,"G":18,"B":0,"W":0}}

(yes, i'm on orange now 😛 )

@mcourteaux
Copy link
Author

Oh, btw, the 0000 in front was from the Wireshark hex copy paste tool. Those are not actual packet bytes.

@MoonLiightz MoonLiightz added this to the v2.0.0 milestone Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants