当前位置:网站首页>Using tcp/udp tools to debug the yeelight ribbon
Using tcp/udp tools to debug the yeelight ribbon
2022-06-25 00:26:00 【a10615】
Use TCP/UDP Tool debugging Yeelight Lamp with
This article describes how to Windows Next , Use TCP/UDP Tool debugging Yeelight Lamp with
preparation
TCP/UDP Debugging tools
Yeelight WiFi Light Inter-Operation Specification
One 、 Search device
Search device , By sending multicast search commands to the LAN , The device will respond after receiving , Return the current status information of the device
1、 establish UDP Multicast connection
According to the document search command
M-SEARCH * HTTP/1.1
HOST: 239.255.255.250:1982
MAN: “ssdp:discover”
ST: wifi_bulb
- type : choose UDP Multicast
- The goal is IP: Keep multicast identity IP Group 239.255.255.250
- port :1982
- Local port :1982( The device response is this port , Can't change )
2、 Send multicast search command
After creating the connection , Copy the search command to the sending area ( Line break , use Ctrl+Enter)
then “ send out ”, Wait for device response
3、 Device response
After sending , If a device is online , Generally, the response can be received immediately . The receiving area is the response of the device
Two 、 Equipment online notification
If the equipment is equipped with network , When accessing the network, the online notification will be sent through multicast . It's the same as searching , Create the same connection , Wait for the device to go online .
In receiving area , Can receive the notification after the equipment goes online ( When the same device goes online , Maybe several times , I have received 3 Time . Different from the search response , See documentation )
3、 ... and 、 Control equipment
1、 establish TCP Connect
Based on search or online notification ip、port Information , establish tcp Connect
2、 dispatch orders
Input command in the sending area ( The command ends with a new line <Ctrl + Enter>)
Such as : Switch the switch state of the equipment
{
"id":1,"method":"toggle","params":[]}
3、 Device response
After the device receives the command , Will respond to the operation results of the command , If the operation is successful , Notification messages are also sent
# Operating results
{
"id":1, "result":["ok"]}
# Notice information
{
"method":"props","params":{
"power":"off"}}
If the Yeelight Interested in , You can contact us :[email protected]
边栏推荐
- After 5 years of software testing in didi and ByteDance, it's too real
- Dry and wet contacts
- [Solved] Public key for mysql-community-xxx. rpm is not installed
- 离散数学及其应用 2018-2019学年春夏学期期末考试 习题详解
- Several ways for wechat applet to jump to the page are worth collecting
- [proteus simulation] example of using timer 0 as a 16 bit counter
- iNFTnews | 国内NFT发展仅限于数字藏品吗?
- Alternative to log4j
- Investment analysis and prospect forecast report of global and Chinese triglycine sulfate industry from 2022 to 2028
- MySQL semi sync replication
猜你喜欢
C# Winform 最大化遮挡任务栏和全屏显示问题
百公里加速仅5.92秒,威兰达高性能版以高能产品实力领跑
不重要的token可以提前停止计算!英伟达提出自适应token的高效视觉Transformer网络A-ViT,提高模型的吞吐量!...
Outer screen and widescreen wasted? Harmonyos folding screen design specification teaches you to use it
ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
After 5 years of software testing in didi and ByteDance, it's too real
Why are life science enterprises on the cloud in succession?
2019 summary and 2020 outlook
Discrete mathematics and its application detailed explanation of exercises in the final exam of spring and summer semester of 2018-2019 academic year
ros(25):rqt_image_view报错Unable to load plugin for transport ‘compressed‘, error string
随机推荐
Requests Library
Custom animation (simulated win10 loading animation) - Optimization
C WinForm maximizes occlusion of the taskbar and full screen display
Encryption and encoding resolution
Difficult and miscellaneous problems: A Study on the phenomenon of text fuzziness caused by transform
【排行榜】Carla leaderboard 排行榜 运行与参与手把手教学
Hyperledger Fabric 2. X dynamic update smart contract
2021-04-18
ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
Registration method of native method in JNI
ros(24):error: invalid initialization of reference of type ‘xx’ from expression of type ‘xx’
MySQL日志管理
Adding, deleting, modifying and checking in low build code
软件测试与游戏测试文章合集录
C程序设计专题 18-19年期末考试习题解答(下)
Simple collation of Web cache
Uniapp encapsulated incentive advertisement, screen insert advertisement and banner advertisement
Wx applet jump page
VNC viewer remote connection raspberry pie without display
vim使用命令