LIFX Developer Zone

Using Windows "UDP Sender / Receiver" just to get started


#1

I’ve installed the 'UDP Sender / Receiver" Windows 10 Universal app.

I’ve used it to (apparently successfully) connect to my LIFX Tile set.

I used ports 56700 as the “Remote Port” and 56701 as the “Local Port”

I was able to connect, and there is now a “Message” text box into which I expect I could paste properly-composed packets one by one.

Has anyone used this? Is it a viable method for sending packets?

I’m not a linux developer, and don’t want to run a web server on my network: my intention is to write a Web app that you can use controls to configure things, which would assemble the packet, that could be cut and pasted into the UDP Sender / Receiver manually… does this sound like a cockamamie idea?


#2

I don’t know about that particular tool but I found a program called “Packet Sender” that absolutely works. https://packetsender.com/
It’s multi-platform too!
I also tried the Unix/Linux bash command line sending but could never get that working.

You can save each message you craft and replay them any time you want. I use it to reset my bulb to a sane state when I don’t know what I’ve done to it with my PHP code and I don’t want to dig my phone out, enter my password, open an app, navigate down a couple levels and then find out what my bulb thinks it’s doing and figure out how to make it right again.

As I’m learning the API I have written several hand made packets. Here are a few to get you started.
Turn On
2a 00 00 34 b4 3c f0 84 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 0d 00 00 00 00 00 00 00 00 75 00 00 00 ff ff e8 03 00 00

Turn Off
2a 00 00 34 b4 3c f0 84 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 0b 00 00 00 00 00 00 00 00 75 00 00 00 00 00 e8 03 00 00

Once it’s on…
Turn red
31 00 00 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 00 00 00 00 00 00 ff ff ff ff ac 0d 00 04 00 00

Turn green
31 00 00 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 00 00 00 00 55 55 ff ff ff ff ac 0d 00 04 00 00

Turn blue
31 00 00 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 00 00 00 00 aa aa ff ff ff ff ac 0d 00 04 00 00

Turn white
31 00 00 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 66 00 00 00 00 00 00 00 00 ff ff ac 0d 00 04 00 00