cancel
Showing results for 
Search instead for 
Did you mean: 

Python on SPWF04S

Lorenzo Pecci
Associate II
Posted on June 28, 2017 at 17:12

Hi, I have a problem with SPWF04S.

When send command 'AT+S.PYTHON' the answer is 'AT-S.ERROR:16:Cannot switch to Python shell'

I tried to look something in datasheet, but nothing. I dont know how go over. Any idea?

#python #spwf04sa
3 REPLIES 3
Elio Cometti
Senior II
Posted on June 29, 2017 at 09:06

Hi,

please check the value of 'console_enabled' configuration variable. It must be '2' to enable uPython and '3' to boot from the python script specified in the 'python_script' configuration variable.

You can find these and more details in the application note 'AN4964: MicroPython scripting language over SPWF04S'

Posted on July 03, 2017 at 09:43

As I said, I followed the istructions in the application note. Therefore, I set 'console_enabled' to '2' but the answer is like this:

0690X00000603s6QAA.jpg

And I checked the value of 'console_enabled':

0690X00000603vJQAQ.jpg
Posted on July 03, 2017 at 10:01

I found a solution. After change 'console_enabled' to 2, I need to save the configuration variable to no volatile storage (AT&W).

Restart the module and now shell started.

Thanks for the support.