Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

bad IP adress
#1

Good evening,
I configured the RX for internet connection and wunderground but it seems not to be able to connect. The 2 points remain red, those next to the hour display. Also, the address displayed in the serial monitor is not good and does not match my network.
i read this: http://www.meteocercal.info/forum/Thread...me-display
Nevertheless, in the monitor series, I can read:

Quote:ESP8266 FW Version: WIFI CONNECTED
WIFI GOT IP
AT+GMR

AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(7eee54f4)
Ai-Thinker Technology Co. Ltd.
May  5 2016 17:30:30
OK

Mode station OK
Join AP success
IP:+CIFSR:STAIP,"192.168.1.151"
+CIFSR:STAMAC,"5c:cf:7f:c2:xx:xx"
Multiple mux OK
Start tcp server at port 80 OK
STATUS:2
Set tcp server timout 30 seconds
ESP8622 init end


I assigned a fixed ip 192.168.0.33 with the mac address.
If the monitor icon appears blue , it says it is connected but my router does not see it and monitor icon is grey.
there isn't wifi AP with 192.168.1.xxx on my network.
The RX deck is a few meters from the wifi router, no reception level problem.

[Image: 112.jpg]


A device connected to the monitor turned on on my router, as seen for UBNT on the picture.
The RX configuration i use.

Code:
#define Enable_Internet     1                       // 1= Enable Internet connection, 0= Disable

#define SSID        "freebox_XXXXXXX"
#define PASSWORD    "xxxxxxxxxx"

#define Enable_NTP          1                        // 1= Enable Sync time with NTP servers, 0= Disable
// NTP Server:
#define timeServer "time.nist.gov"                 // ntp1.nl.net NTP server
//#define timeServer "80.96.196.58"                  // timp.mcsi.ro
//#define timeServer "193.79.237.14"                 // ntp1.nl.net NTP server

// Weather Wunderground Settings
#define Enable_WUupload     1                        // 1= Enable upload to Wunderground,     0= Disable
#define WUupload_period     3                        // Period in minutes between uploads to WU (avoid use less than 3 minutes)
#define WUupload_InTemp     1                        // 1= Enable upload of Inside Temperature / Humidity, 0= Disable

// ---- Wunderground Personal Data
#define WUNDERGROUND_STATION_ID "ISUSVILL2"               // Weather Underground station ID
#define WUNDERGROUND_PWD        "xxxxxxxx"               // Weather Underground password

// Web Server Settings
#define Enable_WebServer    1                        // 1= Enable 0= Disable
#define WebServer_port     80                        // WebServer port (default 80)

my wunderground account:
https://www.wunderground.com/personal-we...=ISUSVILL2

Webserver not responding but the time is synchronized, maybe with PC?

Why the 192.168.1.151 adress appear? is there a default value somewhere ?

if you have an idea...
thanks
Reply
#2

If it's not connected to your router then you shouldn't even be trying to figure out why it isn't connected to wunderground.
Reply
#3

Hi f4aii

With the VP1 switch in OPEN position, try pressing the small reset button at the Meduino board for 2 or 3 seconds.

Reply
#4

When i shutdown wifi, i have this:

Quote:ESP8266 FW Version: AT+GMR

AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(7eee54f4)
Ai-Thinker Technology Co. Ltd.
May  5 2016 17:30:30
OK
Mode station OK
Join AP failure
Multiple mux ERR
Start tcp server ERR
Set tcp server timout ERR
ESP8622 init end


[Image: 113.jpg]


My router only gives addresses between 192.168.0.10 and 192.168.0.60

Quote:WIFI CONNECTED
WIFI GOT IP
AT+GMR

AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(7eee54f4)
Ai-Thinker Technology Co. Ltd.
May  5 2016 17:30:30
OK

Mode station OK
Join AP success
IP:+CIFSR:STAIP,"192.168.1.151"
+CIFSR:STAMAC,"5c:cf:7f:c2:60:bb"
Multiple mux OK
Start tcp server at port 80 OK
STATUS:2
Set tcp server timout 30 seconds
ESP8622 init end

i try too with DHCP function, it's always the same IP.
I have listed all the devices connected to my router and none is unknown to me.
***************************************************************

I try with an old router: linksys BEFW11S4 with 192.168.1.xxx IP adresses and WEP encryption. The board connect internet and wunderground in one minute.
Quote:ESP8266 FW Version: WIFI CONNECTED
WIFI GOT IP
AT+GMR

AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(7eee54f4)
Ai-Thinker Technology Co. Ltd.
May  5 2016 17:30:30
OK

Mode station OK
Join AP success
IP:+CIFSR:STAIP,"192.168.1.151"
+CIFSR:STAMAC,"5c:cf:7f:c2:60:bb"
Multiple mux OK
Start tcp server at port 80 OK
STATUS:2
Set tcp server timout 30 seconds
ESP8622 init end

the board is connected but i have always the same adress.
Should I upgrade or reset the wifi module? If so, how?

thanks for your help.
Reply
#5

I also tried sharing my connection with my cellular phone.
The phone sees the board connected but the internet connection does not.
I use this function every day with my pc and I have no worries to go on interest.
When I look at the IP address of the board, it's still 192.168.1.151
Reply
#6

Hi,

Some routers may not allow to bind a mac address to an IP that is included in the range of IP's managed by the router DHCP.
You can try with bind the WiFi module MAC address to a IP, that is outside the range managed by the router DHCP.
Alternatively you can try uncommenting line 450 on WeatherDuinoPro2Plus_RX_v200_b018

Code:
   //Serial1.println("AT+CIPSTA=\"192.168.1.151\"");

and edit it to suit your needs:

Code:
   Serial1.println("AT+CIPSTA=\"192.168.0.33\"");

Reply
#7

Code:
ESP8266 FW Version: WIFI CONNECTED
WIFI GOT IP
AT+GMR

AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(7eee54f4)
Ai-Thinker Technology Co. Ltd.
May  5 2016 17:30:30
OK
Mode station ERR
Join AP success
IP:+CIFSR:STAIP,"192.168.0.33"
+CIFSR:STAMAC,"5c:cf:7f:c2:60:bb"
Multiple mux OK
Start tcp server at port 80 OK
STATUS:2
Set tcp server timout 30 seconds
ESP8622 init end

[Image: 115.jpg]

It's for connection but the 2 point led on display are RED. Webserver is available.

The router is quite permissive and does not block anything. I use fixed IP for the configuration of the devices, this avoids me to search their address every time, also convenient for IP cameras.
Reply
#8

(12-04-2017, 08:30)f4aii Wrote:  ... I use fixed IP for the configuration of the devices, this avoids me to search their address every time, also convenient for IP cameras.

Yeah, this is a good practice.
Now, you can comment line 450 again... and reprogram. The wifi module should reconnect to your router with the desired IP without problems (it stores data from the last successful connection).

If the Pro2 PLUS isn't sync the time with the defined NTP server, try another which you know that works.

You can try these ones: ntp0.nl.net, ntp1.nl.net or ntp2.nl.net, but surely there are many others in France.

Reply
#9

(12-04-2017, 08:30)f4aii Wrote:  [Image: 115.jpg]

It's for connection but the 2 point led on display are RED. Webserver is available.

The router is quite permissive and does not block anything. I use fixed IP for the configuration of the devices, this avoids me to search their address every time, also convenient for IP cameras.

Hi,

I think you have too poor signal level: -70 dB is too low for stabil connection. Your mobile has longer
antennas, it's reason it can connect but ESP not ...
I should to come closer to AP or tilt AP antennas or use another AP.
I recommend you to narrow band to 20 MHz too, it would has a liitle better signal.

Good luck

Best Regards
Zdenek

Brandys/L Weather
Reply
#10

I came out with an old FONERA that is a sharing router, it works very well.
My router may be capricious. Today i am on 2nd floor and i am on the second floor and away from the router.
By using this little router, I avoid myself and avoids long searches, I want to advance in this project. The first results correspond to my expectations.
The subject is closed.
$Thanks for your help.
Reply




Users browsing this thread: 1 Guest(s)