Succesfully flashed Panamalar NX-SM200
See original GitHub issueSuccessfully 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:
- Created 5 years ago
- Comments:11
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:
GPIO’s
Device info on the new plugs:
Notice the different MAC, FlashChipId and FlashChipMode.
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}