-
Notifications
You must be signed in to change notification settings - Fork 639
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
Digoo NX-SP202 smart wifi socket support possible? #1502
Comments
Upon further investigation, it looks like a "Blitzwolf" variant with 2 relays and utilizing a single BL0937 which already has support. It requires desoldering the plug pins from the board (a very stupid but somewhat sturdy choice) so I'll leave it for later but I think it's supportable. |
I think you'll need to disassemble further to identify the vertical module, and maybe see if there are any easily accessible solder points for flashing. I don't think it'll use boards anything like their IP cameras (Linux based), so it'll hopefully be esp based. The BL0937 is supported, so seems plausible. |
Yeah, I plan to fully disassemble it later. The MAC address starts with ce:50:e3 which is a locally administered one, according to the RFC. They're not using an official MAC allotted for Espressif. Fishy, though it works. |
I thought that address looked familiar, but it's not in my collection (from dhcpd.conf): class "iot1" { match if substring (hardware,1,3) = 18:fe:34; } It might be used on one of the splashproof sockets I bought from AliExpress that I've never used yet, or some bulbs that got too hot to use in an enclosed fitting... Nothing in the logs either. It'll bug me... Anyways, if it's based on a blitzwolf you'll likely be in luck. |
I also have one of these partially disassembled and I'm facing the same problem. I have not yet dared to desolder the plug pins, but it looks like the only way to reach the uC... |
By the way, mine comes under the brand Oxaoxe, same model NX-SP202. Amazon [ES]: https://www.amazon.es/gp/product/B07G2JGYND |
Yeah, it looks the same model under different branding on the outside. I think I'll take the plunge tomorrow and desolder the pins. |
Alright. Using the right soldering iron and the right temperature solved it. Images attached of the bare board. What's next? |
Some further investigation revealed a few pins (see the top of this image). The wifi board has 2x7 pins of which the leftmost 2 aren't connected to the main board but present. Top row, pin 6 - Vcc That's what simple DMM probing has shown. I don't know about the rest but since the number of pins is the same, the Vcc/GND is in the same position, I think for now it's possible to assume the layout is the same as for a Blitzwolf type socket so a reflash is likely possible. If it indeed can be reflashed, OTA would be available for later updates, right? |
@gn0st1c: Thanks. Is it from the same model or some module from another smart socket? If I reflash it, OTA would be available for later updates, right? |
Yes, you will be able to flash it OTA after. |
Actually it has 2 buttons, 2 2-color (red/blue) LEDs, the BL0937 and the 2 relays. A lot of IO is needed. I used 350°C and a solder suction tool. There're 3 blobs to take care of: line, null and ground. The latter is a flat pin between the relays. |
Does anyone have more info on the KP3210SG high voltage buck converter IC? I don't want to fiddle with this board plugged in the mains and I don't have an isolation transformer. My hunch is the IC can take lower voltages like 24VAC and that would make further testing possible. Sadly I haven't found anything more than this pdf with basic information, it's more like the intro page of the full specs. |
@xoseperez: since the support of this socket has a deadline in 1.13.5, does that mean there's some progress in hacking it? Is there any more info on that? |
I will first close 1.13.4 and then start working on the new device... |
did anyone find out the GPIOs for BL0937? I just managed to flash Slitinto NX-SP202 OTA using tuya-convert and now searching for the right template values... assume that the layout is similar/equal. see also [https://github.com/arendst/Tasmota/issues/3950] for OTA flashing of TUYA-based devices. |
perhaps found it out by my own with Trial&Error GPIO0: Button1 (17) Had to adjust Voltage with Command: |
Nice. My NX-SP202 has 2 programmable LEDs, too, did you find the GPIO for those? |
It seems the Tasmota guys are taking care of this device too, also see image. The Vcc/GND/button pins are matching my findings. |
Have to correct myself. My configuration was not completely correct according the metering functionality. |
@evaluationevaluation: but you're actually using Sonoff-Tasmota, right? Since they do support the device since a recent commit. I think info exchange is good between teams of OSS, but this is the ESPurna issue list, and ESPurna doesn't support it yet. |
oh, sorry about the confusion. |
Finally flashed it using tuya-convert project with no problems. Only changed the current, voltage and power ratios to match those I use with testing resistive loads. |
@xoseperez: great news! I haven't used tuya-convert yet, the small army of various firmware (yours, tasmota, espeasy, etc.) are pretty new to me. It's capable of flashing alternate firmware to tuya-originated devices without opening them - do I get that right? So it's best I solder everything back in place and do the reflash using tuya-convert via wifi instead? |
Yes, so far I have been able to flash all the devices based on Tuya modules: the Oxaoxe NX-SP202 (also branded Digoo), the Blitzwolf BW-SHP6 and the GBLife RGBW Socket. Best way is to do it from a Raspberry Pi following the instructions in the README of the tuya-converter, project. Then I just upload the custom ESPurna image to the device:
|
Thanks. Looking at the tuya-convert repo it doesn't seem to require anything specific to the Pi series, so I'll attempt it from a Debian VM first. |
I reflashed my device using tuya-convert. I'm using tasmota for now. I'll try espurna later. Just 2 questions. How are the following constants determined, manual calibration? How accurate is the meter chip?
|
I use manual procedure to define those constants using two different restive loads (an incandescent 60W light bulbs and a 900W heater) and using a (cheap) current clamp as a reference. But I don't have a systematic procedure to define how accurate the readings are. |
I've purchased a "Digoo NX-SP202" dual smart socket with power metering capability which is most probably using a ESP8266 module variant. I've made a few photos and there are a few interesting chips on the board. I didn't take it apart more as I was afraid of breaking it. If hints of support are positive, I'll take an attempt at complete disassembly. In general, I'm reluctant in giving out my WiFi password to a cloud-only device which controls any mains outlet so I bought it with the anticipation of being able to apply a 3rd-party OSS firmware.
Chips are (first image, from left to right):
For the metering IC, there's a Chinese PDF available. It apparently uses a fixed pulse width frequency-modulated scheme for U/I/P sensing output.
On the second image, at the top, the WiFi board is clearly visible. It reads KZL827VA and a (manufacturing?) date. Looks very much like the other WiFi boards seen in other espurna compatible devices.
Outside image:
The text was updated successfully, but these errors were encountered: