question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Succesfully flashed Panamalar NX-SM200

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
eelcohncommented, 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.

0reactions
tacruccommented, 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}

Read more comments on GitHub >

github_iconTop Results From Across the Web

Panamalar NX-SM200 Power Monitoring Plug
Configure your smart plug to work with Tasmota open source firmware.
Read more >
Compatible devices (HTTP firmware) - ct-Open-Source/tuya ...
The following devices are produced by Tuya and can be flashed with third-party ... EU, Panamalar, NX-SM200, Smart WLAN Socket, GPIO4: Led1, ...
Read more >
Untitled
Kill a watt unusual effect, How fast is the flash on tv. ... Everquest battle worn seal of brell, Beginner cross stitch kits...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found