Search  English (United States) English (United Kingdom) English (Australia)
Friday, May 18, 2012 ..:: Knowledge ::.. Register  Login
 Knowledge about the AUG AMI DevKit for the .NET Micro Framework Minimize

This page contains a searchable place for knowledge about the AUG AMI DevKit and stuff related to it.


 Print   
 Knowledge base Minimize
SearchForum Home
  Knowledge base  Ethernet  DPWS service ho...
 DPWS service host
 
 4/10/2009 10:04:46 AM
Ant
29 posts


DPWS service host
 Modified By Ant  on 4/10/2009 12:26:15 PM)

When hosting a DPWS service on the AMI board you need to set the On-Chip RTC to a valid date/time - e.g. by reading out the battery buffered RTC on boot (see below) or by a NTP client (see NtpClient class and RealTimeClockSample 1.0.6)

        public static void Main()
        {
            using (RealtimeClock rtc = new RealtimeClock())
            {
                // Debug.Print("DT  Now=" + DateTime.Now);
                DateTime now = rtc.GetDateTime();
                // Debug.Print("RTC Now=" + now);
                Utility.SetLocalTime(now);
                // Debug.Print("DT  Now=" + DateTime.Now);
            }

Reason is that the Ethernet driver uses the on-chip RTC to calculate InstanceIDs. This can fail and return negative InstanceIDs and keep Vista from showing the AMI device in the network neighbourhood.

 PS: You will also need the AMI V 1.0.0.2 binaries when hosting a DPWS service because this release fixes a bug in the Ethernet driver. The NtpClient class can be found in SDK Version 1.0.6. See registered downloads for both!

  Knowledge base  Ethernet  DPWS service ho...

SearchSearch  Forum HomeForum Home    Print   
Copyright 2012 AUG Elektronik GmbH   Terms Of Use  Privacy Statement