Archive for the ‘Programming’ Category.

KeyWedge: a serial port to keyboard message connector

This tool is for mobile computers to fill keyboard buffer with data from a serial port. This is often needed to get serial port connected barcode scanner’s data into applications if there is no other way.

[Content transfered from http://hjgode.de/dev/keywedge]

This is a simple keywedge program. It takes serial input and simulates keystrokes with the chars received. It has been done, as the ITC(1) CN3 does not support a serial wedge but the vehicle dock has a serial port where you can connect a cabled serial barcode scanner. Similar commercial applications are ceLinq and TWedgeCE.

10. nov. 2011: Code updated

Continue reading ‘KeyWedge: a serial port to keyboard message connector’ »

WM6.1: Remote Desktop Client disconnects after 10 minutes

Update 2. august 2010: There is a fixed RDM client for WM6.5 which is available to OEMs to include in there ROM images. Possibly you get it with an OS update of your device and will not see this issue any more. See also http://blogs.msdn.com/b/raffael/archive/2009/09/11/remote-desktop-mobile-rdp-client-disconnects-after-10-minutes-of-inactivity.aspx

Unfortunately Remote Desktop Mobile (RDM) Client, if part of your Windows Mobile 6.1 device, will disconnect after 10 minutes of user idle time. This value seems to be hardcoded into the application. Various searches in internet lead to this assumption. So regardless of your server or client settings, RDM will disconnect after 10 minutes of user idle.

RDM_IdleTimeout

The following code is from this blog. For those of you not being able to compile the code I have attached an ArmV4i executable you can use directly on your device.

Continue reading ‘WM6.1: Remote Desktop Client disconnects after 10 minutes’ »

Howto run an application periodically

Hello

for some reason you might want to rerun an application very day or every hour. In commercial applications, one may want to let the device sync data every 4 hours, So you need an application that runs periodically at specified times or intervals. As this first sounds easy, it is not as simple as you mean.You cannot simply use timers, timers will not continue to run within Suspend mode.

To have an application run at specific times, Windows Mobile supports a notification database. Your device will already wake up periodically to reschedule events and to clean up the notification database. Normally, Windows Mobile Phone devices will awake every night at 0:00.

There are also some other possible notifications that can launch an application, see my old web site.

How can we do a scheduled application ourself? At first run, the scheduler application has to delete all previous notification entries of the notification database. Then it has to create a new timed notification and in our sample, it will then launch another application. The scheduler application itself should be small and only care about the schedules. The worker application can be what you want and will be started by the scheduler application.

Continue reading ‘Howto run an application periodically’ »

Barcode Reader Demo

Attached is a demo application showing some aspects of barcode scanning in C# on ITC devices. The demo source is written against CF2 and needs the right ITC datacollection runtime installed.

Continue reading ‘Barcode Reader Demo’ »