!AutoUSBnet and NetTime_Kick
Herbert zur Nedden (92) 37 posts |
This nice tool that gets the IP address with DHCP has one small drawback if your computer has no hardware clock since NetTime module does not fetch the time as soon as a network link is there. I did a quick test by adding this to RunImage: And then in the DEF PROCwaiting_for_dhcp part as soon as the IP address has been allocated I call that one: IF dhcp_state$ <> previous_dhcp_state$ THEN With that small addition as soon as my computer got an IP address the time is set – real nice. Perhaps a call to PROCTime should be added in other places too – I did not investigate the complete code since I assume that those in the know are on here anyhow and will hopefully consider this suggestion. Note the XOS_CLI is to avoid error messages in case NetTime is not at hand… was just a quick fix for the current problem I had with the autodiscover interface setup and having no hardware clock in the computer at hand. Cheers Herbert |
Herbert zur Nedden (92) 37 posts |
Small addition: With WiFi it might happen, that the internet link is not fully up when AutoUSBnet gets the BOUND status. It might thus be an idea to add some code that detects when the internet connection is up to run *NetTime_Kick at that moment |
Martin Avison (27) 1494 posts |
Interesting … but where can !AutoUSBnet be found? |
andym (447) 473 posts |
I think it’s part of the 4te/PiTools suite from RComp. I seem to have three different versions of the app doing roughly the same thing: ReDHCP, AutoDHCP, and AutoUSBNet. One of them (ReDHCP) comes with Direct, I think. Not sure on the differences between them, but Andrew Conroy’s name is in the Run file for ReDHCP. |