If I load an example program (Advanced Web Server) - It works perfectly - I can access it from PC, from phone, and USB can be plugged in at same time as WiFi is working.
Figured it out - thee gateway had to be the gateway for the WLAN to the LAN (172.16.3.1), not the gateway to the WAN (192.168.0.1)
Announcement
Collapse
No announcement yet.
NodeMCU - Verify Sketch
Collapse
X
-
When I press connect on the HomeSeer Web page, I get immediately on the Arduino
67,0,0,0
Recieved C
Sending Version
Version 1 4.0.2.5 HS4, Sent to 192.168.0.60
Sending Connected
Connected 1, Sent to 192.168.0.60
However, the device stays disconnected
It also properly handles a reset, as well as communicating that a disconnect occurred.
My sonicwall shows that the packets coming from homeseer, but not much in the Arduino to Homeseer direction# Time Ingress Egress Source IP Destination IP Ether Type Packet Type Ports[Src, Dst] Status Length [Actual] 1 09/20/2021 22:15:34.368 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 2 09/20/2021 22:15:34.368 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55] 3 09/20/2021 22:15:34.848 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 4 09/20/2021 22:15:34.848 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55]
I disconnected the USB - Maybe can't use it and WiFi at the same time
I let it run for a while, and this is the output from the sonicwall
There is only an output from the device to a multicast address - and it is dropped?09/20/2021 22:37:11.496 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 8 09/20/2021 22:37:11.496 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55] 9 09/20/2021 22:40:11.048 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 10 09/20/2021 22:40:11.048 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55] 11 09/20/2021 22:40:11.528 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 12 09/20/2021 22:40:11.528 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55] 13 09/20/2021 22:40:35.752 X4*(i) -- 172.16.3.230 224.0.0.251 IP UDP 5353,5353 DROPPED 356[356] 14 09/20/2021 22:43:11.048 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 15 09/20/2021 22:43:11.048 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55] 16 09/20/2021 22:43:11.528 X0*(i) X4 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 60[60] 17 09/20/2021 22:43:11.528 -- X4* 192.168.0.60 172.16.3.230 IP UDP 63486,8900 FORWARDED 55[55]
Any ideas anyone.
Leave a comment:
-
I installed an older version of NodeMCU (2.3.0) and that allowed it to compile.
I uploaded it successfully to the board, but so far no connection with Homeseer plugin. I use an IP address in the 172.16.3.X range, but my gateway is in the 192.168.0.X range (there is a router that bridges the segments).
I see on my sonicwall that the device gets registered when plugging and unplugging it.
I am unable to ping it (assuming it would actually respond to pings), and the blue LED on the WIFI board is never blinking
This is what I get from teh serial output
WiFi 1 -65, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
67,0,0,0
Recieved C
Sending Version
Version 1 4.0.2.5 HS4, Sent to 192.168.0.60
Sending Connected
Connected 1, Sent to 192.168.0.60
114,0,0,0
Reset
ets Jan 8 2013,rst cause:2, boot mode3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
debug Start......
WiFi 1 -64, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
67,0,0,0
Recieved C
Sending Version
Version 1 4.0.2.5 HS4, Sent to 192.168.0.60
Sending Connected
Connected 1, Sent to 192.168.0.60
114,0,0,0
Reset
ets Jan 8 2013,rst cause:2, boot mode3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
debug Start......
WiFi 1 -63, Sent to 192.168.0.60
Connect 1, Sent to 192.168.0.60
Leave a comment:
-
I found this - but not sure how to fix it
v3.0.0 compile error with ESPhttpUpdate · Issue #8052 · esp8266/Arduino · GitHub
Leave a comment:
-
Never mind that error. I had to reselect the NodeMCU board in the tools menu - somehow it went back to Genuine Arduino.
Now I am compiling, and get this error (after about 30 seconds of compiling)
no matching function for call to 'ESP8266HTTPUpdate::update(char*&)'
Leave a comment:
-
NodeMCU - Verify Sketch
I get the following error
HomeSeerBoard1:38:10: fatal error: ESP8266WiFi.h: No such file or directory
#include <ESP8266WiFi.h>
^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
ESP8266WiFi.h: No such file or directory
I have added the NodeMCU board via Arduino Tools - Added via Board Manager
I have installed the libraries as per the Plugin (5 libraries that are copied into the Arduino/libraries folder
Get this error when compiling, as can't find the header files.
Am I missing something in the configuration of the softrware?
Thanks for any help
Tags: None
Leave a comment: