-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NX-SP201 #5215
Comments
|
What information is needed from status 0 |
All. Just copy paste from webconsole. |
|
Try precompiled version from http://thehackbox.org/tasmota/sonoff.bin |
I had the same problem with the precompiled dev tasmota on both devices,and the released version dose not have a template for the nx-sp201 dual plug switch. Also its a glued to together device. |
Try reset 2 Probably fragments left in flash from original firmware causes your issues |
After tasmota update and reset 2, I configured the device per (NX-SP201) |
"SP201", |
I dont see you have configured GPIO3 |
no good I tried multiple variations of the sensor pin settings and reset 2 the NX-SP201 with no improvement, I have two devices behaving exactly the same way. |
I am out of ideas. Since we (support team) dont own this device we cant help you further... |
Please, try http://thehackbox.org/tasmota/020500/sonoff.bin and then do a reset 5 |
no good ether, I just going to give up on power monitoring for now. |
Have you tried the preconfigured template for this model? |
I just flashed a couple of these and have the same issue when power monitoring is configured. |
Out of luck, since we dont have this device.. |
I'm digging into the code and will report back if I figure out the issue. |
Started up Syslog server and caught this. sonoff-7484 ESP-RSL: INFO3 = {"RestartReason":"Fatal exception:2 flag:2 (EXCEPTION) epc1:0x3ffff140 epc2:0x00000000 epc3:0x00000000 excvaddr:0x3ffff140 depc:0x00000000"} |
Not 100% sure yet, but the issue seems to be caused by running a status 0 command, perhaps while it's in the middle of taking a power reading. When I removed that command from my SmartThings device handler, the issue seems to have stopped. I need to let it run for a while to be sure. |
Ok, so when I disable the 200ms ticker for energy checking, I can run status 0 many times with no crashing. There's definitely something there. |
FYI, today I rebuilt from the latest dev branch and it all seems to be working. Using the following GPIO Pin arrangement (please note I prefer to control the blue LED as a separate relay instead of it being GPIO_LED1_INV since there is already a red led that turns on with the relays). { "SP201", // Orange Tech 2 in 1 Smart Socket Wifi Mini Outlet with Energy Monitoring |
Could you add your setup to the wiki with a template and close this issue? |
Sorry, I didn't open the issue. I'll get the template added shortly unless @balvant813 already did. I copied from his merge request. |
Ahh, yes. we will close. Thx for adding in wiki |
6.4.1.18 20191221 * Fix some exceptions and watchdogs due to lack of stack space - part 1 (#5215)
Caused by lack of stack space it might intermittent go in exception or watchdog. the latest dev frees some stack space and should be more stable. Give it a try and let me know if it fails again. |
I'll try it tonight. I didn't bring one to work with me today. |
Sorry for the slow reply. I had ordered a few more of these and they just came in today. That way I didn't have to mess with ones I already had in use. I just flashed with the latest dev build (6.4.1.18(41a342c-sonoff)). I am unable to make it crash by running a status. Looks like we're good now. Thanks for the fix. |
Hello, two days ago I installed version 6.4.1.19 on Blitzwolf smart sockets. The hardware and software watchdogs that caused the restart have disappeared. I often use TasmoAdmin and don't see any problems. |
@molpie Thanks for the feedback. The bug was isolated to around 6.4.1.15-6.4.1.16 and assumed stable from 6.4.1.18. Appreciate the feedback. |
@DavinKD From a mechanical side, how did you do your wiring for the SP201? I've got an SP201 that failed OTA conversion, and am trying to work out a reasonable wiring method to access the UART pins on the daughter board... At the moment I think I'll either need some very long probes, or to desolder the AC plug itself if I want to avoid permanently cutting away the back plastic housing. Any tips? |
I only used OTA. I've never tried to open these. |
Oops, I'm sorry about that, thanks for the heads up. I lost track of who was who during the thread. I actually meant to ask @awk2019 for physical access tips based on the comment about:
(FWIW, so far this does not look to be a very physical-modification-friendly device... have to break a glue seal to open it initially, and still TBD what the best serial access route is. OTA on my other one was vastly preferable :) ) |
Hi! Could't you tell me where I can find the pinouts (Rx,Tx, 3.3V) for flashing the NX-SP201? |
@ed-war-d if you provide photos probably yes |
A photo of the blue Module from the other side will give the needed infos |
Heh, you definitely took the smarter approach to this one @ed-war-d :) I struggled with desoldering the AC connector to free the PCB, so I ended up reprogramming mine with the assistance of a very long needle point logic probe reaching all the way under the PCB between the PCB and the back case plastic to reach the TX pin from behind, and used a GND connection at one of the small headers for the buttons and LEDs on either side. The pinout can be found on page 6 of this datasheet for the ESP8266-S3: https://fccid.io/2AKBPESP8266-S3/User-Manual/User-Manual-3594791 Overlaid on your image, it looks like this: Note that the signals are named here with respect to the ESP8266. Meaning: the TX pin here is ESP8266's transmit pin, and you'd want to connect it to your UART adapter's RX pin. |
Thanks |
Where is the GPIO0: Led1i ? |
Sorry about that... until I pulled out those photos I had forgotten this device didn't route it to a button and I had to solder directly to it. Updated the annotated photo above, or in my photos it's the brown wire.
|
I've done it! Thanks! |
What device I should select in Module type menu? |
I configured mine using an SP-201 template from here: https://blakadder.github.io/templates/sp201dual.html General instructions on templates here: https://github.com/arendst/Sonoff-Tasmota/wiki/Templates#importing-templates |
With the template {"NAME":"SP-201","GPIO":[31,0,0,131,17,134,0,0,21,18,132,22,0],"FLAG":0,"BASE":45} I have 3 switches (not 2). Is this OK? |
It seems I should to have got 2 switches |
The third "relay" is for the led. |
The new LedLink feature in 6.5.0.12 may allow removal of this virtual relay for the LED. If you have questions on its use, ping me over on Discord. P.S. @DavinKD I was able to clean up the KS-604S config using this new feature. |
Thanks |
For future reference for any others that need to manually-flash an "NX-SP201" Smart Plug 2-in-1, there are 2 versions that I have just flashed. The Type A version pictured above in this thread with the 14-pin ESP8266-S3 module (with metal shield as pictured) can most easily be flashed with these connections: The (newer or knock-off?) Type B version has a green module without metal shield (or onboard LED that the ESP8266-S3 has) labeled "E2S-B, 20XX.1X.17" on the back, with 15 staggered contacts (vs the 14 even contacts on the ESP8266-S3 module). And the header's on the left and right have very different pinout. Here's the comparison: The pinout on this module matches the 11-pad Tuya TYWE2S module except with 4 more pads on the left side (2 more on the front and back). Here's the full pinout of the "E2S-B": And the labels of the headers: To flash the Type B version, I had to chop some plastic to access the bottom of the module since 3 of the pads we need are on the back: |
The current Tasmota template for "Type A" is https://blakadder.github.io/templates/sp201dual.html The current template for "Type B" is https://blakadder.github.io/templates/dilisens_SP201.html but I'd update the Template from Oh, and the Type A uses a voltage divider (R_upstream + R_downstream) / R_downstream of (2.4Mohm x2 + 1Kohm) / 1Kohm = 2401 where the Type B uses (1Mohm x2 + 1Kohm)/1Kohm = 2001. They both use a 1ohm current sense resister. But I just used a Kill-a-watt type device to manually calibrate the voltage/current/power when running my window AC. |
I have flashed two NX-SP201 dual switch with Tasmota via tuya-convert on one and cracked on open for wired serial flash.
When I use power monitoring via a custom template(HLW8012) I get a software watchdog resets about every 40-60 minutes. Do any one have any ideas on this.
Pin out per tuya-convert compatible device list.
GPIO0: Led1i, GPIO4: Button1, GPIO5: HLW8012 CF, GPIO12: Relay1, GPIO13: Button2, GPIO14: HLWBL CF1, GPIO15: Relay2, GPIO16 HLWBL SEL
The text was updated successfully, but these errors were encountered: