0

I am writing an application with C# for Windows CE in Pocket PC. I need to sync current time and date with GPRS. My pocket PC device doesn't have sync clock so i have to write a class for it.But i don't know how.Any idea please?

Mah Fa
  • 13
  • 4
  • there are already solution for this: https://stackoverflow.com/questions/6435099/how-to-get-datetime-from-the-internet – Guoyuan Zhao Sep 07 '19 at 06:42
  • I Couldn't use that solution because windows CE doesn't accept that name spaces like System.Net.Cache:( – Mah Fa Sep 07 '19 at 07:44

2 Answers2

0

I do not have permission to comment, so I continue my answer here: How to get DateTime from the internet?

if you can not do copy-paste coding, then get the data from internet and parse it by yourself, is is simple xml.

0

If the device or the cell network provider does not provide a Time Server by means of the GPRS network, you need to code either for SNTP or other time sync solution your self.

BTW: the GPRS cell tower Time information (NITZ) is most incorrect or not available at all. It is not well supported/managed by the cell providers.

A custom app to read the cell network time needs access to the Radio Interface Layer (MS API), doing direct AT commands to the cell modem will mostly not work as the communication channel is blocked by the MS RIL driver.

josef
  • 5,951
  • 1
  • 13
  • 24