Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Markus
@Links2004
one router with openwrt + RTC one linux server
server is master
brutzler
@brutzler
will have a look, if my router makes ntp...
Markus
@Links2004
a fritzbox have it integrate for example
brutzler
@brutzler
Guess, what I have? ;-)
Markus
@Links2004
yup fritzbox is common in germany
brutzler
@brutzler
Just wanted to see this periodically update. Started wireshark, but I do not see any matching telegrams?
There is only one telegram on startup of the ESP:
10579    23:22:46.609658000    192.168.1.29    224.0.0.1    IGMPv2            60    Membership Report group 224.0.0.1
Markus
@Links2004
periodically not meany minutes the internal clock is good.
brutzler
@brutzler
Yes, but shouldn't be there a ntp-request on booting the chip?
Markus
@Links2004
yes if configTime is called ther shut be one
if you add Serial.setDebugOutput(true); you will see the sync info
brutzler
@brutzler

hmmmmm.... Code is working, I see the actual time in the console, but no telegram...
capturing filter is:

ip.src == 192.168.1.29|| ip.dst ==192.168.1.29

debug is on. what sync info do you expect?

I get this:
Connecting to WiFi
...scandone
state: 0 -> 2 (b0)
.state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
pm open phy_2,type:2 0 0
cnt 

connected with WLAN_xyz, channel 4
dhcp client start...
.ip:192.168.1.29,mask:255.255.255.0,gw:192.168.1.1

Waiting for time
please start sntp first !
.Fri Nov 27 23:29:28 2015
Markus
@Links2004
looks like working :)
i get the date + time one time Fri Nov 27 23:31:22 2015
brutzler
@brutzler
please start sntp first! Sounds not good
Markus
@Links2004
i dont get this, i only have configTime in my code.
brutzler
@brutzler
Only made changes regarding to my WiFi
Markus
@Links2004
make sens based on the code.
in the first time call to check the time the time is not synced
brutzler
@brutzler
???
Markus
@Links2004
  while (!time(nullptr)) {
    Serial.print(".");
    delay(1000);
  }
the time call triggers the messages please start sntp first !
so basically the check if the sync is done is triggering the msg
brutzler
@brutzler
OK, you think the stuff is working, but why do i get no telegram on wireshark?
Markus
@Links2004
ther musst be one. will sniff my self.
brutzler
@brutzler
arrrggg.....forget it. how to sniff WLAN?
Markus
@Links2004
wireshark + (lowlevel driver or linux) , or use tcpdump at the router.
wireshark can decode wlan when you know the key.
Mario Mikočević
@mozgy
I have RasPi on wlan for that :)
Markus
@Links2004
openwrt on the router make it easy too, call tcpdump and you are done.
brutzler
@brutzler
haha ... openwrt. Only a Fritz with AVM-OS
Markus
@Links2004
yes hidden webinterface :)
brutzler
@brutzler
more input pls
brutzler
@brutzler
Raspi is somewhere around. Any Howto for this?
Markus
@Links2004
no need use the url and you can capture as wireshark file
brutzler
@brutzler
Fritz tells me: URL not found. Redirected to main page.....
Juppit
@Juppit
Hi, the sntp makes an request on start, and about one hour later, nearly one hour. Then you see a new timestamp with Serial.setDebugOutput(true).
Markus
@Links2004
shut look like:
blob
brutzler
@brutzler
ahh better... never seen this. will need some time to get it working
Markus
@Links2004
press start an it will work ;)
brutzler
@brutzler
haha ..... a lot of "START".
Markus
@Links2004
wifi ?
brutzler
@brutzler
still five ;-) AP or HW
Markus
@Links2004
AP Schnittstelle 0
brutzler
@brutzler
OK, working.
208    23:50:55.573213    192.168.1.29    192.168.1.1    NTP    4097    123    108    NTP Version 4, client
209    23:50:55.574151    192.168.1.1    192.168.1.29    NTP    123    4097    108    NTP Version 3, server
How can I post an image?
Markus
@Links2004
C&P it in
will work for any file.