cancel
Showing results for 
Search instead for 
Did you mean: 

Data mode on startup

nandyeezforu
Associate II
Posted on October 26, 2015 at 09:44

Hi,

I am using SPWF01SC.11 wifi module.

I have configured it as mini access point

I want the module to be in data mode on startup by default.

AT+S.SOCKD=8825 ( I want this to be loaded automatically on startup)

so when the module is reset i need to connect to it on the port 8825.

Is it possible ? if not give me some idea friends !!!
4 REPLIES 4
Posted on October 26, 2015 at 10:18

Hi John,

no external MCU...?

nandyeezforu
Associate II
Posted on October 26, 2015 at 10:48

Hi gerardo,

I did not understand your question but here is my entire setup.

My wifi module is connected with an external MCU and when I send the command AT+S.SOCKD=8825 the port is opened . 

when the port is opened it is possible for me to connect any wifi device to the module but there is no data transfer happening.

The data transfer is happening only when I do MCU reset but this time my MCU sends the same command again''AT+S.SOCKD=8825'' which is not good because wifi module is displaying 'error : already in data mode'.

So I want to save the command on the wifi module like we configure the ip address, password in the command mode and the module will take it automatically all the times.

sorry if I am explaining some irrelevant things... -;) 

Posted on October 26, 2015 at 11:32

Hi John,

>>> The data transfer is happening only when I do MCU reset

Why?

>>> wifi module is displaying 'error : already in data mode'.

I expect an ''error: Socket Server already up and running'' if trying to open an already opened sockd.

Anyway, you can handle this exception. It's not a real problem for the module itself.

>>> I want to save the command on the wifi module

Currently not available this feature.

PS: what kind of MCU are you using. If your MCU allows it, you can use backup registers. After reset, check the content of this registers to know if the module has already an opened port. Backup registers are lost only when power supply is disconnected.

nandyeezforu
Associate II
Posted on October 26, 2015 at 11:40

Hi gerardo,

I dont know why data transfer is happening only on MCU reset !!!

yes you are right the error is 'Socket Server already up and running'

MCU - STM32F756NG

I think the problem is with my skill on MCU management , I am new to MCU programming and I need to study and understand more.