udp - How to control WIFI plug GWF-S171using Raspberry Pi -


i bought see-time gwf-s171 (wifi sockets) work raspberry pi. use raspberry pi home automation platform , managed connect kind of devices, smart meter, solar panels, orvibo s20 (also wifi socket).

now not able connect wifi socket. monitored traffic between iphone using wireshark , tcpdump (the socket using app – weconn) , managed find status using tcpdump, figured out traffic going udp port 9957.

easy way check if devices on running code: sudo tcpdump -xn port 9957 |grep 0x0050

0100 means on 0000 means off. making connection switch on or off did not manage. in appreciated.

i played around "ogemray s171". seems same model.

you can send different tcp packets port 9957 of socket:

set admin:

0101100148000000010000005c6c5c6c0000000000000000000000000000000000000000000000000000000000000000xxxxxxxxxxxx0000feff0000xxxxxxxxxxxx000000000100 

switch on:

0101010180000000010000005c6c5c6c0000000000000000000000000000000000000000000000000000000000000000xxxxxxxxxxxx0000000000000000000001000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 

switch off:

0101010180000000010000005c6c5c6c0000000000000000000000000000000000000000000000000000000000000000xxxxxxxxxxxx0000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 

get info:

0101030138000000010000005c6c5c6c0000000000000000000000000000000000000000000000000000000000000000xxxxxxxxxxxx0000 

where in examples above xxxxxxxxxxxx mac-address of device sending packets. tried using android app "tcp/udp terminal". sending packets windows notebook "packet sender portable" not successful.

there "internet-mode" app (i use android app) sends tcp packets external server (in case seems 52.28.78.96) port 9955. these packets bit different, think mode not interesting problem.


Comments

  1. Hi, I'm an absolute beginner. Could you copy me the code/commands to make it happen?

    ReplyDelete

Post a Comment

Popular posts from this blog

Upgrade php version of xampp not success -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -