2016-07-01 02:38 AM
Working with the SPWF01SA.11 module. In an attempt to make my program event based, I was trying to utilize the indications for reading data received from a socket. But I am not getting the +WIND:55 indication although data is received:
1. Open a socket to a MQTT server (test.mosquitto.org) -> OK2. Send a MQTT CONNECT packet -> OK3. Wait for +WIND:55:Pending Data10 seconds goes by with nothing at all received from the WiFi module4. Close the socket -> ERROR: Pending data5. Query pending data -> DATALEN: 46. Read four bytes -> Get exactly the response I was waiting for.Same as a communication log:AT+S.SOCKON=test.mosquitto.org,1883,t ID: 00OKAT+S.SOCKW=01,36Send 36 bytes of socket data.OKAT+S.SOCKC=00ERROR: Pending dataAT+S.SOCKQ=00 DATALEN: 4OKAT+S.SOCKR=00,4Read 4 bytes of socket dataOKWhy am I not getting the indication? None of the indications is disabled.The version date of the module was 150410, and since the ST website has a newer version 160129, I decided to update. The batch file in the update packet - after inputting the .bin file path and the serial port number - takes about an eyeblink to run to 'Press a key to exit...'. It gives no error messages, but obviously does not update the firmware either.It does print a web address which lead me to Sourceforge stm32flash page. I downloaded that program and ran it instead of 1203flash.exe used by the batch file. I used exactly the same command line arguments, and this time the binary file was programmed to the module. Only, now the module is dead. How do I recover it?The new version would be useful also because it supports error numbering in the ERROR response. Parsing the error code form the description string is unnecessarily tedious.2016-07-04 02:14 AM
If you need the indication, turn the indication on.
AT+S.SOCKON=test.mosquitto.org,1883,t,indAbout the stm32flash, I think you deleted the bootloader. Module is lost. Contact your direct support/distributor to get a recover image...2016-07-04 04:41 AM
Ahh, I somehow managed to miss that ind. I didn't realize that you can control it by socket.
About the recovery image.. Should I program it with stm32flash? And why didn't 1203flash work? Do I ever again dare to try update the module firmware?2016-07-05 04:43 AM
You can use stm32flash (the one given by ST, not the standard one from Google code) or STM32 Flash Loader Demonstrator. Contact ST to recover dead module