Setting date time using UPnP Device.
Vishal Soni <[email protected]> Tue, 16 Aug 2005 22:15:02 +0900
| Newsgroups | gmane.linux.upnp-sdk.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, After building a UPnP device, i wrote a sample code to set the date of the system through the UPnP device. I used Intel Device Spy Tool to test the same. Every function/action such as to get sytem time/date/timezone works fine.. I can even set the TimeZone and time but when i try to set/change the DATE, the UPnP Device Spy tool (Control Point) no longer recognise the device. i mean somehow the UPnP Stack dies or something.. that the device is no longer listed in the Control Point (Intel's tool). I checked the file, "UPnPMicroStack.c", there are couple of place where timeout of the device and all is taken w.r.t the system's time. i.e the function gettimeofday() is used there. 1. UPnPInit 2. UPnPSubscriptionExpired 3. UPnPRenewEvents What i have noticed is that 1. Intel UPnP stack makes calls UPnPClock_SetDate() function 2. then from there my implemented SetDate Function is called 3. and after successfully coming out of the SetDate Function the reponse is sent by UPnPResponse_Clock_SetDate(). Then after this the second call to UPnPClock_SetDate () is not at all made and the Intel Spy tool no longer recognise the UPnP device. Has anyone faced this kind of issue. regards, Vishal. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf