2017-06-06 12:51 AM
Hi!
I am using the SPWF04S module configured in MiniAP mode. I've created a file in RAM memory using the AT+S.FSC command.
I am reading the file using the AT+S.FSP command. After about 450-500 successfully readings, the module responds with Low Memory and resets itself (watchdog) after 20 seconds. Sometimes the respond is 'WIND:8:Hard Fault:ConUart:0002b290:20030000:07fd5003:08023588:47938cc4:fb3f49b6:080bb3e0:21000000' instead of Low Memory.
The same happens if I am creating the file using POST messages to the module. In this case I have the following steps:
1. I send this from client PC: curl -i -X POST -H 'Content-type: multipart/form-data' -F 'data=@FileSetX' 172.10.20.1
2. I read the module using 'AT+S.FSP=FileSetX,,'. The content of the file are read correctly.
3. Repeat 1 and 2. After about 400-500 success, the module is blocked (Low Memory / Hard Fault or maybe something else...)
Thanks.
Solved! Go to Solution.
2017-06-08 07:55 AM
Thanks Tarek, bug solved!
Fix will be part of FW1.1.0
2017-06-06 11:28 AM
Hi,
please attach here content of AT+S.GCFG command. RAM disk is static, so, cannot use more than that amount of RAM...
Thanks for 500 tests
Ciao
jerry
2017-06-06 11:21 PM
Hi!
Probably I was not clear enough. In the first case, I am sending AT+S.FSC command to create a file only ONCE. After that I am reading that file every second. After about 500 readings the issue appear. This should not be a RAM size problem, I am just reading a file containing 5 characters... This is a real situation, reading a file how many time you want should not be limited.
My purpose with 500 tests was to test my application not the module, but I found this issue on the module.
Here follows the AT+S.GCFG:
AT-S.List
AT-S.Var:nv_manuf=STAT-S.Var:nv_model=SPWF04SAAT-S.Var:nv_serial=0317<06103AT-S.Var:nv_wifi_macaddr=00:80:E1:BD:D5:40AT-S.Var:standby_time=10AT-S.Var:standby_enabled=0AT-S.Var:sleep_enabled=0AT-S.Var:etf_mode=0AT-S.Var:blink_led=1AT-S.Var:ext_volume=3AT-S.Var:aes128_key=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:user_desc=xxxAT-S.Var:python_script=3:/uPython_test.pyAT-S.Var:python_memsize=32AT-S.Var:console_enabled=1AT-S.Var:console_speed=115200AT-S.Var:console_hwfc=0AT-S.Var:console_echo=0AT-S.Var:console_errs=2AT-S.Var:console_winds=2AT-S.Var:console_verbose=1AT-S.Var:console_repeater=0x21AT-S.Var:console_delimiter=0x2CAT-S.Var:console_wind_off_low=0x00000000AT-S.Var:console_wind_off_medium=0x00000000AT-S.Var:console_wind_off_high=0x00000000AT-S.Var:wifi_tx_msdu_lifetime=0AT-S.Var:wifi_rx_msdu_lifetime=0AT-S.Var:wifi_operational_mode=0x00000011AT-S.Var:wifi_beacon_wakeup=1AT-S.Var:wifi_beacon_interval=100AT-S.Var:wifi_listen_interval=0AT-S.Var:wifi_rts_threshold=3000AT-S.Var:wifi_ssid=45:4C:45:4B:54:52:41:5F:44:45:46:41:55:4C:54:5F:41:50:5F:42:44:44:35:34:30:00:00:00:00:00:00:00AT-S.Var:wifi_ssid_len=25AT-S.Var:wifi_txfail_thresh=5AT-S.Var:wifi_dtim_period=1AT-S.Var:wifi_add_tim_ie=0AT-S.Var:wifi_region=1AT-S.Var:wifi_ht_mode=1AT-S.Var:wifi_channelnum=6AT-S.Var:wifi_opr_rate_mask=0x003FFFCFAT-S.Var:wifi_bas_rate_mask=0x0000000FAT-S.Var:wifi_mode=3AT-S.Var:wifi_auth_type=0AT-S.Var:wifi_atim_window=0AT-S.Var:wifi_powersave=0AT-S.Var:wifi_tx_power=18AT-S.Var:wifi_rssi_thresh=0AT-S.Var:wifi_rssi_hyst=0AT-S.Var:wifi_ap_idle_timeout=120AT-S.Var:wifi_beacon_loss_thresh=10AT-S.Var:wifi_priv_mode=0AT-S.Var:wifi_wep_keys[0]=31:32:33:34:35:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_keys[1]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_keys[2]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_keys[3]=00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00AT-S.Var:wifi_wep_key_lens=05:00:00:00AT-S.Var:wifi_wep_default_key=0AT-S.Var: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:00AT-S.Var:wifi_wpa_psk_text=AT-S.Var:wifi_eap_identity=identityAT-S.Var:
mailto:wifi_eap_anon_identity=anonymous@identity.org
AT-S.Var:wifi_eap_passwd=passwordAT-S.Var:wifi_eap_type=0AT-S.Var:wifi_eap_skip_datechecks=0AT-S.Var:wifi_wps_walk_time=120AT-S.Var:wifi_wps_pin=1234567AT-S.Var:ip_sock_memsize=1AT-S.Var:ip_sock_threshold=0AT-S.Var:ip_dhcp_lease_time=120AT-S.Var:ip_macfilter=00:00:00:00:00:00AT-S.Var:ip_num_clients=5AT-S.Var:ip_allow_port_scans=1AT-S.Var:ip_use_v6=1AT-S.Var:ip_use_dhcpd=1AT-S.Var:ip_use_httpd=1AT-S.Var:ip_use_tftpd=1AT-S.Var:ip_use_dhcpc=2AT-S.Var:ip_hostname=DEFAULT_AP_BDD540AT-S.Var:ip_apdomainname=captiveportal.netAT-S.Var:ip_apredirect=index.htmlAT-S.Var:ip_ipaddr=172.10.20.1AT-S.Var:ip_netmask=255.255.255.0AT-S.Var:ip_gw=192.168.0.1AT-S.Var:ip_dns1=208.67.222.222AT-S.Var:ip_dns2=208.67.220.220AT-S.Var:ip_local=0:0:0:0:0:0:0:0AT-S.Var:ip_dns1v6=0:0:0:0:0:0:0:0AT-S.Var:ip_dns2v6=0:0:0:0:0:0:0:0AT-S.Var:ip_dhcp_timeout=20AT-S.Var:ip_ntp_server1=ptbtime1.ptb.deAT-S.Var:ip_ntp_server2=ntp0.ipv6.fau.deAT-S.Var:ip_ntp_refresh=3600AT-S.Var:ip_ntp_startup=1AT-S.Var:ip_mdns_domain_name=SPWF04S-DefaultAT-S.Var:ip_mdns_device_name_ttl=120AT-S.Var:ip_mdns_services_name=SPWF04S-WebSrv SPWF04S-TFTPSrvAT-S.Var:ip_mdns_services_prot=_http._tcp _tftp._udpAT-S.Var:ip_mdns_services_keys=dev1 dev2AT-S.Var:ip_mdns_services_vals=number1 number2AT-S.Var:ip_mdns_services_port=80 69AT-S.Var:ip_mdns_services_ttl=120 60AT-S.Var:ip_mdns_startup=01:01AT-S.OKThanks
2017-06-08 07:55 AM
Thanks Tarek, bug solved!
Fix will be part of FW1.1.0