Skip to content
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

Succesfully flashed Panamalar NX-SM200 #131

Closed
eelcohn opened this issue Mar 11, 2019 · 11 comments
Closed

Succesfully flashed Panamalar NX-SM200 #131

eelcohn opened this issue Mar 11, 2019 · 11 comments
Labels
new device A confirmation for a new device

Comments

@eelcohn
Copy link

eelcohn commented Mar 11, 2019

Successfully flashed Panamalar NX-SM200
Amazon link: https://www.amazon.de/gp/product/B07JBRRW1M/

As described in this issue the procedure for flashing the Panamalar devices is a bit different. After starting the start_flash.sh do NOT connect any laptops/smartphones etc to the vtrust-flash Wifi network. Instead just skip step 1 and start with step 2 to connect the Panamalar device to the Wifi network.

Template
I slightly modified the known user template because the Panamalar device does not have any user defined GPIO's available. The Panamalar device also has 2 LED's, a blue one and a red one:

Blue flashing: not connected to WiFi and/or MQTT broker
Blue continuous: connected to WiFi and MQTT broker; device is switched off
Red continuous: device is switched on

I'm not sure how the LED's are connected to the GPIO's. Using GPIO4 as shown below seems to work, but two LED's connected to one GPIO seems strange to me.

{"NAME":"NX-SM200","GPIO":[0,0,0,0,52,134,0,0,131,17,132,21,0],"FLAG":0,"BASE":45}

GPIO's

GPIO0 : None (0)
GPIO1 : None (0)
GPIO2 : None (0)
GPIO3 : None (0)
GPIO4 : Led1 (52)
GPIO5 : BL0937 CF (134)
GPIO9 : None (0)
GPIO10: None (0)
GPIO12: HLWBL SELi (131)
GPIO13: Button1 (17)
GPIO14: NLWBL CF1 (132)
GPIO15: Relay1 (21)
GPIO16: None (0)

Device info

ChipID: xxxxxx
MAC: 84:0D:8E:xx:xx:xx
SdkVersion: 1.5.3(aec24ac9)
BootVersion: 4
BootMode: 1
FlashMode: 1M DOUT @ 40MHz
FlashChipId: 144068
FlashChipRealSize: 1048576
FlashChipSize: 1048576
FlashChipMode: 3
system_upgrade_userbin_check: user2 0x81000
@kueblc kueblc added the new device A confirmation for a new device label Mar 11, 2019
@lug-gh
Copy link

lug-gh commented Mar 19, 2019

For me it worked exactly like documented in tuya-convert, no need to skip steps...
Red LED is probably attached to the relay port or sth. so when relay is true red led is automatically on.

@kueblc
Copy link
Collaborator

kueblc commented Mar 23, 2019

Thanks for the contribution, did you add it to the wiki?

@kueblc kueblc closed this as completed Mar 23, 2019
@eelcohn
Copy link
Author

eelcohn commented Mar 25, 2019

@kueblc : I just added the device to the wiki

@kueblc
Copy link
Collaborator

kueblc commented Mar 25, 2019

Thank you very much!

@eelcohn
Copy link
Author

eelcohn commented Apr 17, 2019

It looks like Panamalar re-designed this smart plug circuitry and used different GPIOs. I just received a new batch of the Panamalar SM-SX200 smart plugs and the Template above doesn't work with the new plugs anymore.

My preliminary result for a new template is:

{"NAME":"NX-SM200","GPIO":[17,0,0,0,52,132,0,0,0,130,21,134,0],"FLAG":0,"BASE":45}

GPIO's

GPIO0 : Button1 (17)
GPIO1 : None (0)
GPIO2 : None (0)
GPIO3 : None (0)
GPIO4 : Led1 (52)
GPIO5 : NLWBL CF1 (132)
GPIO9 : None (0)
GPIO10: None (0)
GPIO12: None (0)
GPIO13: HLWBL SELi (131)
GPIO14: Relay1 (21)
GPIO15: BL0937 CF (134)
GPIO16: None (0)

Device info on the new plugs:

ChipID: xxxxxx
MAC: B4:E6:2D:xx:xx:xx
SdkVersion: 1.5.3(aec24ac9)
BootVersion: 4
BootMode: 1
FlashMode: 1M DOUT @ 40MHz
FlashChipId: 146085
FlashChipRealSize: 1048576
FlashChipSize: 1048576
FlashChipMode: 0
system_upgrade_userbin_check: user2 0x81000

Notice the different MAC, FlashChipId and FlashChipMode.

@LukeAQ
Copy link

LukeAQ commented Apr 22, 2019

I have two Panamalar from the new batch. Your template doesn't work.

  • the button is ok
  • the red led is ok but the blue one continue to blink
  • the reported voltage is ok but the power of any load is reported as always 0

Moreover your template sets GPIO13=(130) but your GPIO list sets GPIO13=(131)

@wecl
Copy link

wecl commented May 14, 2019

Same issue here. Current (ampere) is always 0.
The blue LED is at GPIO13

MAC-Adresse | B4:E6:2D:61:1D:A2
ESP Chip ID | 6364578

@kueblc
Copy link
Collaborator

kueblc commented May 14, 2019

You are more likely to get help with Sonoff-Tasmota at their project page

@eelcohn
Copy link
Author

eelcohn commented May 15, 2019

Thanks for all the feedback. Unfortunately I haven't had much time lately to dive into this issue. I hope to do this before the end of may.
The cause of this problem is due to an incorrect assignment of BL0937CF, HLWBL CF1, HLWBL SEL and/or HLWBL SELi. These are the pins connected to the BL0937 chip, which manages the voltage, current and power measurements.
If you're feeling adventurous you can help by trying different combinations yourself as described here: https://github.com/arendst/Sonoff-Tasmota/wiki/Configuration-Procedure-for-New-Devices

@wecl
Copy link

wecl commented May 17, 2019

I've found a working combination for my device:

{"NAME":"NX-SM200","GPIO":[17,0,0,0,134,132,0,0,0,52,21,130,0],"FLAG":0,"BASE":45}

@tacruc
Copy link

tacruc commented Nov 24, 2019

What worked for me:
{"NAME":"NX-SM200","GPIO":[158,0,0,131,0,134,0,0,0,17,132,21,0],"FLAG":0,"BASE":18}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device A confirmation for a new device
Projects
None yet
Development

No branches or pull requests

6 participants