Solved

How to get date and time for mobile devices?

Posted on 2012-04-11
7
337 Views
Last Modified: 2013-12-27
Our customers use Motorola 9090 scanners.  For years their scanners' internal date and time would automatically be updated every time they docked the scanner and connected via Activesync, as long as they had a partnership established. But now many are using Win 7, where Activesync is no longer allowed, and to my knowledge, Windows Mobile Device Center does not offer this nice feature that Activesync provided.

In addition, many customers are doing their data transfers wirelessly now, connected to their PC or small network, meaning that they never have reason to dock the scanner anyway.

So now I'm wondering if there is a way, via our vb app, or some other way, to access the current date and time so I can update the scanner's clock.  When the scanners do wireless transfers, they are connecting to a computer in the office, and also can connect to websites, making me wonder if there is some way to get current date and time.

Any ideas on how this can be done?  TIA
0
Comment
Question by:sasllc
7 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 250 total points
ID: 37833110
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 125 total points
ID: 37835305
0
 
LVL 16

Assisted Solution

by:hjgode
hjgode earned 125 total points
ID: 37838781
Hello

there are several ways to sync the time on windows mobile.

You can run a timesync client agent software like the one I wrote some time ago: http://www.hjgode.de/dev/iLock/index.html#SNTPClient

Or run http://www.pocketpcfreeware.mobi/download-sk-tsync-v1-0-5.html

Using ActiveSync/WMDC automation, you can also run the itsutil psynctime automatically, when a device is docked (with or with GuestOnly or PartnerShip): http://itsme.home.xs4all.nl/projects/xda/tools.html and http://www.hjgode.de/wp/2010/02/26/pc-activesync-can-be-used-to-automate-tasks-on-device-connection/

Another full description on how to install a free sntp client: http://www.ehow.com/how_6717575_configure-windows-mobile-use-ntp.html

regards

Josef
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Author Comment

by:sasllc
ID: 37860298
By any chance is there a file maintained by Windows on a typical PC that contains the current date?  Obviously the Windows operating system knows the date at all times, but I'm wondering if it that information is also stored in a file somewhere.

If so, this would be an easy solution for me, since our scanner app is already set up to wirelessly read files from the PC or server.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 37860442
No but you can make a web service that requests the time from the Server.

Server: Hosts the webservice method called GetServerTime() basically it returns the DateTime.Now() value.  

Client aka the device makes the call GetServerTime() and uses the data.
0
 
LVL 3

Author Comment

by:sasllc
ID: 37860496
Unfortunately, I am not at all familiar with doing a web service call like this, so I wouldn't know how or where to begin.  If there is a good, preferably simple example you can send or point me to, that would be very helpful.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 37860505
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question