2015-07-01 01:00 AM
2015-07-03 02:12 AM
OK, thanks but I gave up waiting and managed to read the flash from another module so my test module is up and running again. But I still have the original problem which is when it tries to associate with an AP it fails with:
+WIND:45:Dot11 AuthIllegal 0/2 +WIND:75:Rejected Association (0xD) I am using WPA/WPA2 and the text key is getting crunched. The AP is a TP-LINK TL-WA701N and works with all other WIFI devices I have. Could you give any more info about what is wrong here? Thanks2015-07-03 02:27 AM
Please share AT&V dump
2015-07-03 02:41 AM
# Dumping All Configuration Keys:
# nv_manuf = ST
# nv_model = SPWF01SA1
# nv_serial = 2914D13607
# nv_wifi_macaddr = 00:80:E1:FF:D2:0C
# 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
# 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 = 43:4C:46:32: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_ssid_len = 4
# 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_auth_type = 1
# 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 = 2
# 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 = 0A:C9:1E:70:69:21:CE:16:3D:D4:F9:AE:DE:96:95:05:6D:B6:30:06:53:CF:47:6C:9A:C7:F0:A8:F3:D1:FB:73
# wifi_wpa_psk_text = plasmagun
# ip_use_dhcp = 1
# ip_use_httpd = 1
# ip_mtu = 1500
# ip_hostname = iwm-FF-D2-0C
# ip_apdomainname = captiveportal.net
# ip_apredirect = firstset.html
# ip_ipaddr = 0.50
# ip_netmask = 0
# ip_gw = 0.1
# ip_dns = 0.1
# ip_http_get_recv_timeout = 3000
# ip_wait_timeout = 12000
# ip_dhcp_timeout = 20
# ip_sockd_timeout = 250
# Status & Statistics:
# version = 150410-c2e37a3-SPWF01S
# reset_reason = 2
# conf_flag = 5
# system_uptime = 799
# system_sleeptime = 0
# gpio_enable = 0
# captiveportal = 0
# wifi_state = 7
# wifi_bssid = 74:EA:3A:BA:89:67
# wifi_aid = 0
# wifi_channelnum = 5
# wifi_sup_rate_mask = 0x003FFFCF
# wifi_bas_rate_mask = 0x0000000F
# wifi_chan_activity2 = 0x00000000
# wifi_max_tx_power = 18
# wifi_gf_mode = 0
# wifi_reg_country =
# wifi_dtim_period = 1
# 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 = 20992
# min_heap = 20848
# current_time = 3615
2015-07-03 03:21 AM
I saw TL-WA701N is an N (B/G compatible) Access Point.
Module, on the other hand, is configured as B/G only.I don't know where is the problem, and I have no that AP.Try this way:- at+s.scfg=wifi_ht_mode,1
- at+s.scfg=wifi_opr_rate_mask,0x3FFCF
- at&w- reboot (SW or HW)Helps?2015-07-07 12:06 AM
2015-07-07 01:15 AM
Problem is that AP doesn't like authentication type requested by module.
0 refers to authentication alghorithm received from AP.OPEN is 0; SHARED is 1.Module receives 0, while configuration variable is set to 1.2 refers to ''challenge'' steps received from AP.Big info is taken from next WIND:75. 0x0D, 13, Means: ''Responding station does not support the specified authentication algorithm
''Double check: are you sure your AP is configured in WPA? It seems that it's configured in WEP mode (open/shared mismatch means something only in WEP mode).Try to set wifi_auth_type = 0 on module. What does it happen?Can you share a sniff? Use wireshark, for example.Thanksjerry2015-07-07 01:47 AM
2015-07-07 02:21 AM
Hi Mark,
From Google:Open System and Shared KeyThe Open System and Shared Key authentication methods use WEP encryption. WEP is not as secure as WPA2 and WPA (Wi-Fi Protected Access). We recommend you do not use these less secure methods unless your wireless clients do not support WPA or WPA2.
Shared Key authentication can be used only with WEP encryption
''.AP gives a status error (0x0D), and module aborts the authentication process at the beginning.I'll give this feedback to the right people for updating User Manuals, and highlight that WPA+SharedAuth=Rejection!Thanks for your feedback.Ciaojerry2015-07-07 05:18 AM
2015-07-07 05:32 AM
Use variable ip_use_dhcp.
Default, 172.31.12.1 when ip_use_dhcp is 1, is self-generated, based on MAC address.Set ip_use_dhcp to 2, for custom address, based on ip_ipaddr & Co. variables.0=off (in STA mode: the variables ip_ipaddr, ip_netmask and ip_gw must be properly set to connect to the AP),1=on (in STA mode: the ipaddr, netmask and gw will be provided by the AP),2=on&customize (in MiniAP mode: user can customize the ip_ipaddr of the MiniAP, the ip_address of the client is automatically assigned by the MiniAP)