I am working with nodemcu for a relay control. And i am using Blynk local server on my RPi3 , and the server up and running fine, even am able to access it on my Blynk app. The problem here is with 3 main things
Arduino IDE (versions)
Nodemcu
Blynk server
I tried different versions of Arduino ide but some shows some unknown characters in the serial monitor(tried play with baud rate as well). In some version 1.6.12 i got the serial monitor running fine and it shows the nodemcu is connected to the given ssid and trying to connect to the specified ip address of local server but never connects. I have made sure the id address is the same in both code and router page. (connecting to xxx.xxx.x.x:80) this goes on forever and ever.
But with the same local server, few days back everything was working good. But now uploading the same code as before (nothing changed, even the hardware. (also got new nodemcu & facing the same issue) ), is still not working.
And if anyone has tried using the latest version of Arduino ide trying installing the boards of esp8266 and install the latest version available in the boards manager. we get couple of more options while nodemcu board selected.(flash- sketch only , wifi settings , sketch+wifi setting) and much more. with this we cant even upload the sketch and serial monitor will be blank.
i went through the posts in the Blynk forum but did not find anyone experiencing this sought of problem.
I used these setting as well. But it ruined my nodemcu i guess. I am getting
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
this in my serial monitor. lower version of esp8266 tend to work i guess.
Arduino version 1.8.1
ESP8266 version in boards manager 2.4.1
i have not mentioned the port in my code. But it shows there. But before the same code was working fine for months. But now am trying to do the same but not able to connect to the local server.
(connecting to xxx.xxx.x.x:80) this is showing up in the serial monitor. But in the code its just 192.168.1.114 . I have not specified any port . But my point is how was it working fine with this same code before, and why not now ?
Can you please tell me which version of Arduino ide you are using and esp8266 version in boards manager ?
I think that is having some thing to do with my problem. Because previously the same ip address and port was working fine.
Or should i format by RPi3 and install the local server again ?
Thank you.
Just curious to know, the changes came with the new version of library or the latest server ?
m i doing right ?//char server[] = “192.168.1.169”; before //Blynk.begin(auth, ssid, pass, server, 8080); before
Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,169), 8080); After
But even after this the serial monitor shows error, never outputs
connected to 192.168.1.114
Blynk version (with Blynk logo )
connecting to 192.168.1.114
connected to 192.168.1.114
ping 1ms
this is all i am getting.
but surprisingly the nodemcu connects to the server, but the code is not working as it should. (this is the same code i was using from many months) and was working fine.
Is it something to do with the Arduino IDE or is it with my Nodemcu ?
i also updated the blynk server to the latest build. But am not getting the thing right.
Yeah i went through the link posted and was kind of having doubt with it so i asked to cross check.
and i am providing the power with USB and mobile charger max5V. so i am thinking did the IDE destroyed the firmware of it ?
I googled the error am getting and it says about firmware iteslf. I am not getting a proper picture of whats wrong !! Or where am missing out.
am not sure to ask or not ! did the code compile for you ?
Just now i checked out with Arduino IDE 1.8.5 , in this the serial monitor is totally blank. But compiles without any errors.And managed to get the code working partially ok. But doesnt spit out anything about connecting and connections to server.
it’s not a driver issue
did you tried with an exemple code without Blynk?
http://www.arduino.cc/en/Tutorial/Blink
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
I find that comment quite worrying. If you’re looking at the serial debug data in your computer serial monitor then I’d expect you to be powering the device via the USB port of your computer.
You should remove all the other connections from your NodeMCU and flash some simple code to see what results you get.
No i was trying to say that power brick is capable of supplying the power needed to the nodemcu.
Obviously to get something on serial monitor the nodemcu needs to be connect to the usb port of the pc . If not even the the serial monitor wont open as we need to select the com port in the tools drop down.
Am aware of it.
I tried with this Blynk.begin(auth, ssid, pass, “xxx.xxx.x.x”);
Serial monitor showed connecting to port 80, and never connecting
Blynk.begin(auth, ssid, pass, “xxx.xxx.x.x”, 8080); changing this way it worked. Thanks @Gunner