Solved

How to get date and time for mobile devices?

Posted on 2012-04-11
7
335 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short article about problems I had with the new location API and permissions in Marshmallow
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now