{"id":26,"date":"2017-03-10T19:13:06","date_gmt":"2017-03-10T18:13:06","guid":{"rendered":"http:\/\/wp.bizoir.dk\/?p=26"},"modified":"2025-06-16T18:02:31","modified_gmt":"2025-06-16T17:02:31","slug":"maginon-sp-2-smart-plug-part-ii","status":"publish","type":"post","link":"https:\/\/wp.bizoir.dk\/?p=26","title":{"rendered":"Maginon SP-2 Smart Plug &#8211; Part 2"},"content":{"rendered":"<p><a href=\"http:\/\/wp.bizoir.dk\/?p=9\">Go to part 1<\/a>\u00a0&#8211; <a href=\"http:\/\/wp.bizoir.dk\/?p=34\"><u><span style=\"color: #0066cc;\">Go to part 3<\/span><\/u><\/a><\/p>\n<p>It is now necessary to gather as much information about the plug as possible.<\/p>\n<p>If you plug it into a power socket and power it on, you will see a new WIFI network SSID available. In my case, it was called &#8220;<span style=\"color: #0000ff;\">Reco900000621<\/span>&#8220;. If you try to connect to it, you will be asked for a network WPA key. If you look at the backside of the plug, you will find the WPA key.<\/p>\n<p style=\"padding-left: 30px;\">BTW, the &#8220;<span style=\"color: #0000ff;\">Reco<\/span>&#8221; part turns out to point to the real producer of this plug &#8211; apparantly &#8220;<span style=\"color: #0000ff;\">Reco4Life.com<\/span>&#8220;. Their homepage <a href=\"http:\/\/www.reco4life.com\">Reco4Life <\/a>is sadly in chinese &#8211; at least the forum, where a little bit of usable information (the AT commands) can be found using Google Translate if you are patient. I have not been able to find this exact plug on their website.<\/p>\n<p>Now you should be connected to the socket. You will see, that you have been assigned the ip-address <span style=\"color: #0000ff;\">10.10.100.150<\/span> and that the gateway (the socket) is assigned the ip-address <span style=\"color: #0000ff;\">10.10.100.254<\/span><\/p>\n<p>Next task. Which ports are open on the device. If you run a nmap scan from a linux box, you will find these TCP ports open<\/p>\n<pre>nmap -p1-10000 10.10.100.254<\/pre>\n<p>PORT\u00a0\u00a0\u00a0\u00a0 STATE SERVICE<br \/>\n80\/tcp\u00a0\u00a0 open\u00a0 http<br \/>\n8899\/tcp open\u00a0 ospf-lite<\/p>\n<p>and these UDP ports.<\/p>\n<p>PORT\u00a0\u00a0 STATE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SERVICE<br \/>\n53\/udp open|filtered domain<br \/>\n67\/udp open|filtered dhcps<br \/>\n48899\/udp open|filtered unknown<br \/>\nMAC Address: AC:CF:23:XX:XX:XX (Hi-flying electronics technology Co.)<\/p>\n<p>We can also note, that the MAC belongs to &#8220;<span style=\"color: #0000ff;\">Hi-flying electronics<\/span>&#8230;..&#8221;. This points to the producer of the WIFI chip in the socket.<\/p>\n<p>Since the HTTP port is open, the next obvious step, is to try to connect to it using a browser. If you try, you will be asked to provide a username and password. Since none are available, random guesses will show that <span style=\"color: #0000ff;\">ADMIN<\/span>\/<span style=\"color: #0000ff;\">ADMIN<\/span> works. Sadly though, all you get for your troubles is a &#8220;<span style=\"color: #0000ff;\">ERROR:404 Not Found<\/span>&#8221; message. No matter what I have tried, I have not been able to find an URL that returns anything else than this error-message. If you find any that works, please let me know.<\/p>\n<p>Afterwards (unfortunately I cannot remember where) I have found mentioning of other smart plugs which provides this apparantly dummy http-server which is not meant to be used.<\/p>\n<p>Next possible target is the open TCP port 8899. If you telnet to it<\/p>\n<pre>telnet 10.10.100.254 8899\r\nTrying 10.10.100.254...\r\nConnected to xxxxxxxx.\r\nEscape character is '^]'.<\/pre>\n<p>nothing happens. Whatever you type, you are treated with a &#8220;+ERROR&#8221; message. This looked to me like a response to a AT command (like in the good old modem days). Hence I tried many-many AT commands, but I only ever got the +ERROR message.<\/p>\n<p>As it turns out, at this point already, one can actually control the socket, if you know or guess the exact AT commands to send (<a href=\"http:\/\/wp.bizoir.dk\/?p=34#on\">on<\/a> \/ <a href=\"http:\/\/wp.bizoir.dk\/?p=34#off\">off<\/a>). I have only found 4 commands that give a response on this port.<\/p>\n<p>The downside to issuing the commands here, is that you need to be directly connect to the WIFI network on the socket and cannot access it through your normal network. This makes this solution unusable for most purposes.<\/p>\n<p>As socket setup is not yet clear, it might be an idea to take a quick look inside the plug &#8211; it might be possible to see which IC&#8217;s the socket uses<\/p>\n<figure id=\"attachment_22\" aria-describedby=\"caption-attachment-22\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/wp.bizoir.dk\/wp-content\/uploads\/2017\/02\/SA551515.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-22 size-medium\" src=\"http:\/\/wp.bizoir.dk\/wp-content\/uploads\/2017\/02\/SA551515-300x225.jpg\" alt=\"Maginon SP-2 plug\" width=\"300\" height=\"225\" srcset=\"https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2017\/02\/SA551515-300x225.jpg 300w, https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2017\/02\/SA551515-768x576.jpg 768w, https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2017\/02\/SA551515-1024x768.jpg 1024w, https:\/\/wp.bizoir.dk\/wp-content\/uploads\/2017\/02\/SA551515-1200x900.jpg 1200w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-22\" class=\"wp-caption-text\">Maginon SP-2 plug<\/figcaption><\/figure>\n<p>Sadly, apart from the relay itself, not much important is visible from this side. All the important stuff is apparantly mounted on the reverse side. And it is soldered VERY well to the socket legs, and I do not want to possibly ruin the plug by de-soldering it.<\/p>\n<p>The only other interesting thing which is visible, is that the socket has a serial interface on the bottom right in the picture. You can use a standard 3V3 serial USB interface to communicate with the socket.<\/p>\n<p>While it was easy to get the serial communication up and running, I was not able to learn anything relevant from it. I did not investigate it much. On the surface it looks very similar to what you get when you connect to TCP port 8899.<\/p>\n<p>To connect to the serial interface on the socket, connect the GND, TX og RX pins on the socket to the 3V3 USB interface and use connection settings<\/p>\n<p>115200 8\/N\/1<\/p>\n<p>in eg. <a href=\"https:\/\/wiki.emacinc.com\/wiki\/Getting_Started_With_Minicom\">minicom<\/a> (linux), HyperTerminal (Windows) or similar<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go to part 1\u00a0&#8211; Go to part 3 It is now necessary to gather as much information about the plug as possible. If you plug it into a power socket and power it on, you will see a new WIFI network SSID available. In my case, it was called &#8220;Reco900000621&#8220;. If you try to connect &hellip; <a href=\"https:\/\/wp.bizoir.dk\/?p=26\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Maginon SP-2 Smart Plug &#8211; Part 2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-hardware"],"_links":{"self":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":12,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":1158,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/1158"}],"wp:attachment":[{"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.bizoir.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}