If I follow the link to import the program, then choose 'download' I get a zip file, not a bin. Is this right? I'm new to this?
When I copy the code into my program, I'm getting timeouts - but the clock still changes to a value that is not correct...
If I follow the link to import the program, then choose 'download' I get a zip file, not a bin. Is this right? I'm new to this?
When I copy the code into my program, I'm getting timeouts - but the clock still changes to a value that is not correct...
NTP client works fine and my httpserver works fine but I want to combine it with the httpserver. My attempt failed with I combined HTTPserver library with NTPclient example.
How should I proceed.
Regards
Paul
Hi Donatien,
NTP client works fine and my httpserver works fine but I want to combine it with the httpserver. My attempt failed with I combined HTTPserver library with NTPclient example.
How should I proceed.
Regards
Paul
Programme published, called server1 http://mbed.org/users/pmr1/programs/server1/5ztls.
The web page was just plain text with a bit of javascript to redisplay new data. It's not very elegant and needs more work.
Regards
Paul
Hi Donatien,
Programme published, called server1 http://mbed.org/users/pmr1/programs/server1/5ztls.
The web page was just plain text with a bit of javascript to redisplay new data. It's not very elegant and needs more work.
Regards
Paul
Hi Donatien,
New code compiled, see programme http://mbed.org/users/pmr1/programs/server2/latest, now functions correctly but with a couple of issues. The more puzzling one is that file created on the flash memory is always date stamped with the default time 01/01/2008 11:00 even though I have set localtime.
Regards
Paul
Hi Donatien,
New code compiled, see programme http://mbed.org/users/pmr1/programs/server2/latest, now functions correctly but with a couple of issues. The more puzzling one is that file created on the flash memory is always date stamped with the default time 01/01/2008 11:00 even though I have set localtime.
Regards
Paul
I was hoping to look at the source code for the NTPClient library, but I can't figure out how to find it (if it's even available). Would this be possible? Thanks!
Donatien,
I was hoping to look at the source code for the NTPClient library, but I can't figure out how to find it (if it's even available). Would this be possible? Thanks!
i was wondering if your are keeping this project maintained, it works great but it really could use support for different time zones and daylight savings time.
Hi Donatien!
i was wondering if your are keeping this project maintained, it works great but it really could use support for different time zones and daylight savings time.
it really could use support for different time zones and daylight savings time.
Have a look at my TimeZone library. It requires some manual tweaking for setting the time zone, and takes some amount of memory, but it works...
<<quote A01101260>>
it really could use support for different time zones and daylight savings time.
<</quote>>
Have a look at my [[http://mbed.org/users/hlipka/notebook/time-zone-handling/|TimeZone]] library. It requires some manual tweaking for setting the time zone, and takes some amount of memory, but it works...
Does anyone now about a soulution for haveing a NTP-Server on the mbed. I'm setting up a distributed measurement / control system using several mbeds and would like to have the one mbed connected to a GPS serving as NTP server for the others in the network. Any Ideas?
Thanks!
Does anyone now about a soulution for haveing a NTP-Server on the mbed. I'm setting up a distributed measurement / control system using several mbeds and would like to have the one mbed connected to a GPS serving as NTP server for the others in the network. Any Ideas?
Thanks!
Does anyone now about a soulution for haveing a NTP-Server on the mbed. I'm setting up a distributed measurement / control system using several mbeds and would like to have the one mbed connected to a GPS serving as NTP server for the others in the network. Any Ideas?
If all of these mbed have network access, why shouldn't they do the NTP queries by themself?
<<quote ejbfly>>
Does anyone now about a soulution for haveing a NTP-Server on the mbed. I'm setting up a distributed measurement / control system using several mbeds and would like to have the one mbed connected to a GPS serving as NTP server for the others in the network. Any Ideas?
<</quote>>
If all of these mbed have network access, why shouldn't they do the NTP queries by themself?
:-) Simple.... I don't have internet access on the paricular platform wich happens to be an airplane... And it seems a bit of "overkill" to take along a iridium or globalstar modem just to get timing.... So is there anything available or has someone a good starting point for developing such functionallity? I have done some research on google but haven't found any good description of what the ntp server actually broadcasts
...
:-) Simple.... I don't have internet access on the paricular platform wich happens to be an airplane... And it seems a bit of "overkill" to take along a iridium or globalstar modem just to get timing.... So is there anything available or has someone a good starting point for developing such functionallity? I have done some research on google but haven't found any good description of what the ntp server actually broadcasts
...
Thanks
Elias
Edit:
Now I've finally found something
http://www.scss.com.au/family/andrew/gps/ntp/
So I will start to make a similiar thing with mbed
Watch the progress at http://mbed.org/users/ejbfly/notebook/gps-based-ntp-server/
@Elias
Why would you want to have a full-blown NTP server? I think a "server" role can be doing a broadcast UDP packet with current time once in a while from your "server" MBED, and all other MBED's syncing by that packet. NTP server is designed to work through unreliable networks with undeterministic latencies, and it is a big overkill for your application.
@Elias
Why would you want to have a full-blown NTP server? I think a "server" role can be doing a broadcast UDP packet with current time once in a while from your "server" MBED, and all other MBED's syncing by that packet. NTP server is designed to work through unreliable networks with undeterministic latencies, and it is a big overkill for your application.
I made an LCD clock example using your NTP code and one person seems to be getting the NTP timeout error return code and always gets the date set to Jul 2010?
I was thinking perhaps he has a very slow network response time. I had trouble getting an IP address, and I had to increase the default on setup() to get one network to work.
It works just fine on all of my networks. I did give it a bad hostname and got exactly the same crazy time he did after about 12 seconds.
Is there a way to increase the NTP timeout?
I made an [[http://mbed.org/users/4180_1/notebook/internet-lcd-clock|LCD clock example]] using your NTP code and one person seems to be getting the NTP timeout error return code and always gets the date set to Jul 2010?
I was thinking perhaps he has a very slow network response time. I had trouble getting an IP address, and I had to increase the default on setup() to get one network to work.
It works just fine on all of my networks. I did give it a bad hostname and got exactly the same crazy time he did after about 12 seconds.
I see that it has a NTPClient, is based on Donatien's original EthernetNetIf code, and this version of the library is only available with source so you can try tweaking timeouts in the source.
Have you tried the version from Segundo?
<<library http://mbed.org/users/segundo/libraries/NetServices/ljhqix>>
I see that it has a NTPClient, is based on Donatien's original EthernetNetIf code, and this version of the library is only available with source so you can try tweaking timeouts in the source.
Thanks! that looks like a great idea. Found some timeout stuff in the source, but have not had time to try it.
The cookbook NTP example led me to this version of the library.
So would you be better off with that newer version in any case?
Thanks! that looks like a great idea. Found some timeout stuff in the source, but have not had time to try it.
The cookbook NTP example led me to this version of the library.
So would you be better off with that newer version in any case?
Please login to post comments.