cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF04S DHCP Server problem with static ip

Marco Giammarini
Associate II
Posted on November 07, 2017 at 11:14

Dear all,

I try to connectSPWF04S toa WPA2 network of my company and I have problem with static IP. The IT guys make a reservation for the module with a specific ip address based onSPWF04S MAC address. When I try to connect the server give to the module a different IP address every time because the MAC address that the module send to the server is very strange as you can see in the picture (the last column is the mac address):0690X00000608rlQAA.png

How I can fix this issue?

Usualy, the AT commands that I send is:

at+s.wifi=0
at+s.ssidtxt=networkname
at+s.scfg=wifi_wpa_psk_text,networkpassword
at+s.scfg=wifi_priv_mode,2
at+s.scfg=wifi_mode,1
at&w
at+s.wifi=1�?�?�?�?�?�?�?

Thanks

Marco

#spwf04s #dhcp #static-ip
5 REPLIES 5
Posted on November 08, 2017 at 18:18

STMicroelectronics MAC addresses starts with 00:80:E1

What's the output of 'at+s.sts=wifi_own_macaddr' command?

Posted on November 08, 2017 at 18:21

The reply is: AT-S.Var:wifi_own_macaddr=00:80:E1:BD:DC:52

Posted on November 08, 2017 at 18:25

I assume MAC is correct.

Try to use Wireshark, and capture the DHCP handshake. Better if in Open Mode (no WPA, so frames are not encrypted)

Posted on November 09, 2017 at 14:47

Hi Gerardo,

the IT guys of my company sniff the network and they told me that the ST module introduce itself with the correct mac address but wrote in

hexadecimal

format, indeed the mac address of the module is  

00:80:e1:bd:dc:57 (is another device that I have spare) and the module send 302d38302d65312d62642d64632d3537 that is the hexadecimal  format of ''0-80-e1-bd-dc-57''.

0690X00000604D8QAI.jpg

Any ideas?

Thanks

Marco

Posted on November 10, 2017 at 18:57

Can you please attach a Wireshark log for DHCP handshake?