支付宝还原新增请nv逻辑
authorp15692025051 <846603105@qq.com>
Wed, 5 Jul 2023 08:59:24 +0000 (16:59 +0800)
committerp15692025051 <846603105@qq.com>
Wed, 5 Jul 2023 08:59:24 +0000 (16:59 +0800)
1.doc/sdk说明.doc
2.sdk/project/K5/sdk/services/microPython/ports/quectel/core/appFactoryMode.py

index 8c97f80..e554098 100644 (file)
Binary files "a/1.doc/sdk\350\257\264\346\230\216.doc" and "b/1.doc/sdk\350\257\264\346\230\216.doc" differ
index 566efd7..351ab1f 100644 (file)
@@ -98,6 +98,8 @@ FactoryModeLocation_WIFI_label.set_size(240, 100)
 FactoryModeLocation_WIFI_label.set_pos(50, 100)
 FactoryModeLocation_WIFI_label.set_style_text_color(lv.color_make(0xff, 0xff, 0xff), lv.STATE.DEFAULT)
 FactoryModeLocation_WIFI_label.add_style(style_font_youyuan_20, lv.PART.MAIN | lv.STATE.DEFAULT)
+import atcmd
+
 class FactoryModeAlipayInitScreen(Screen):
     NAME = "FactoryModeAlipayInit"
     def __init__(self):
@@ -109,7 +111,10 @@ class FactoryModeAlipayInitScreen(Screen):
         print("id2_clean_data:ret:{}".format(ret))
 
     def post_processor_after_initialization(self):
-        utime.sleep(3)
+        resp=bytearray(50)
+        atcmd.sendSync('AT+RSTSET\r\n',resp,'',200) #清nv
+        print("AT+RSTSET:{}".format(resp))
+        utime.sleep(5)
         Power.powerRestart()
     def Close(self):
         pass