Solved

How to get date and time for mobile devices?

Posted on 2012-04-11
7
334 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

707 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

12 Experts available now in Live!

Get 1:1 Help Now