cancel
Showing results for 
Search instead for 
Did you mean: 

spwf01 module Timing Issue

basavanagouda
Associate II
Posted on September 01, 2016 at 12:45

Hi,

I observed followings while communicating between two

spwf01

modules:

  • At the Client side when its try to connect to server I’m using AT+S.SOCKON command to connect.

  • In this command I can pass “ind�? parameter which can indicate data arrival at the client side with “+WIND:55:Pending Data�? on UART interrupt .

  • Client side it is taking 500ms to receive WIND:55:Pending Data: interrupt.

  • Server to client data transmission it takes only 5 to 6ms.

Please suggest how to solve this time delay at the client side.

Thank you

Basavanagouda

18 REPLIES 18
basavanagouda
Associate II
Posted on September 06, 2016 at 13:25

Could you please share me the link where I can download FW3.5  and share the firmware updating process from the UART.

Thanks

Basavanagouda.

Posted on September 06, 2016 at 13:32

http://www.st.com/content/st_com/en/products/embedded-software/wireless-connectivity-software/wireless-connectivity-software/stsw-wifi001.html

Here (http://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/stsw-idw002.html) an hands-on training

basavanagouda
Associate II
Posted on September 06, 2016 at 13:50

Thank you, I have downloaded the firmware. I saw the hands on document, its explaining using FOTA method to update the firmware I'm not understanding it.

Boot pin need to be high while updating?

I have downloaded ''Flash loader'' how I can use this application to update the firmware. I'm not getting procedure to update the firmware using UART.

Please help me,

Thanks

Basavanagouda.

basavanagouda
Associate II
Posted on September 06, 2016 at 13:59

Could you please share procedures to following using flash_loader_demo_v2.8.0, on the FW folder which file I need to select and which address I need to give for that particular one.

Could please share the steps need to be follow.

Thanks

Basavanagouda

Posted on September 06, 2016 at 14:01

There is a WIFI Firmware Upgrading Procedure_batch.pdf inside the STSW-WIFI001\BIN\ directory.

Unzip downloaded STSW-WIFI001 package

basavanagouda
Associate II
Posted on September 06, 2016 at 14:15

I don't have EVE modules, I have only spwf01 module, can I follow ''Upgrading with System Memory Bootloader – EVK Wifi Daughter board'' methods do it?

I scared if my module get corrupt my whole work will stop.

Thank

Basavanagouda

Posted on September 06, 2016 at 14:27

Use OTA update. It's the main advantage in using *.11 module in place of *.21...

Copy *.ota on local webserver, and run FWUPDATE AT command on module. You cannot broke the module this way.

basavanagouda
Associate II
Posted on September 17, 2016 at 14:31

Hi,

I have update the firmware.

# Status & Statistics:

#  version = 160129-c5bf5ce-SPWF01S

#  reset_reason = 0

#  conf_flag = 5

#  system_uptime = 112

#  system_sleeptime = 0

#  gpio_enable = 0

#  captiveportal = 0

#  wifi_state = 5

#  wifi_bssid = 00:00:00:00:00:00

#  wifi_aid = 0

#  wifi_channelnum = 0

#  wifi_sup_rate_mask = 0x003FFFCF

#  wifi_bas_rate_mask = 0x00000000

#  wifi_chan_activity2 = 0x00001FFF

#  wifi_max_tx_power = 18

#  wifi_gf_mode = 0

#  wifi_reg_country = IN

#  wifi_dtim_period = 0

#  wifi_sleeping = 0

#  wifi_num_assoc = 0

#  ip_ipaddr = 0.0.0.0

#  ip_netmask = 0.0.0.0

#  ip_gw = 0.0.0.0

#  ip_dns = 0.0.0.0

#  ip_sock_open = 0

#  ip_sockd_port = 0

#  free_heap = 20776

#  min_heap = 20024

#  current_time = 112

OK

# Dumping All Configuration Keys:

#  nv_manuf = ST

#  nv_model = SPWF01SA1

#  nv_serial = 2914D12683

#  nv_wifi_macaddr = 00:80:E1:B4:85:06

#  etf_mode = 0

#  blink_led = 0

#  wind_off_low = 0x00000000

#  wind_off_medium = 0x00000000

#  wind_off_high = 0x00000000

#  user_desc = anonymous

#  escape_seq = at+s.

#  localecho1 = 0

#  console1_speed = 115200

#  console1_hwfc = 0

#  console1_enabled = 1

#  console1_delimiter = 0x0000002C

#  console1_errs = 1

#  sleep_enabled = 0

#  standby_enabled = 0

#  standby_time = 10

#  wifi_tx_msdu_lifetime = 0

#  wifi_rx_msdu_lifetime = 0

#  wifi_operational_mode = 0x00000011

#  wifi_beacon_wakeup = 1

#  wifi_beacon_interval = 100

#  wifi_listen_interval = 0

#  wifi_rts_threshold = 3000

#  wifi_ssid = 4C:41:4E:44:44:4F:4F:52:31:41:50:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

#  wifi_ssid_len = 11

#  wifi_txfail_thresh = 5

#  wifi_ht_mode = 0

#  wifi_channelnum = 6

#  wifi_opr_rate_mask = 0x00003FCF

#  wifi_bas_rate_mask = 0x0000000F

#  wifi_mode = 1

#  wifi_region = 1

#  wifi_auth_type = 0

#  wifi_atim_window = 0

#  wifi_powersave = 0

#  wifi_tx_power = 18

#  wifi_rssi_thresh = 0

#  wifi_rssi_hyst = 0

#  wifi_ap_idle_timeout = 120

#  wifi_beacon_loss_thresh = 10

#  wifi_priv_mode = 0

#  wifi_wep_keys[0] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

#  wifi_wep_keys[1] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

#  wifi_wep_keys[2] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

#  wifi_wep_keys[3] = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

#  wifi_wep_key_lens = 00:00:00:00

#  wifi_wep_default_key = 0

#  wifi_wpa_psk_raw = 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00

#  wifi_wpa_psk_text = LANDDOOR1AP

#  ip_use_dhcp = 1

#  ip_use_httpd = 1

#  ip_mtu = 1500

#  ip_hostname = iwm-B4-85-06

#  ip_apdomainname = captiveportal.net

#  ip_apredirect = firstset.html

#  ip_ipaddr = 192.168.0.50

#  ip_netmask = 255.255.255.0

#  ip_gw = 192.168.0.1

#  ip_dns = 192.168.0.1

#  ip_http_get_recv_timeout = 3000

#  ip_wait_timeout = 12000

#  ip_dhcp_timeout = 20

#  ip_sockd_timeout = 250

#  ip_dhcp_lease_time = 120

#  ip_dns_mode = 0

#  ip_use_cgis = 0x0000000F

#  ip_use_ssis = 0x0000000F

#  ip_use_decoder = 0x00000000

OK

time taking for connectivity got reduced,  but at server side time to send data to client got not reduced, its taking 260 to 270ms sec to send data. i.e client getting Pending data interrupt after 260 to 270ms sec after data sent from server.

I observed if I tried to connect second time with server its showing error ''+WIND:41:WiFi Disassociation: 8''.

please suggest how to solve these issues.

Thank you

Basavanagouda.

Stuntman
Associate II
Posted on September 28, 2016 at 19:56

Basavanagouda,

I would expect the #  ip_sockd_timeout = 250 is the cause of your issue.  Set to something like 50 to see if your problem gets better.

I had a similar problem due to old firmware not supporting this parameter.