
TimerSynchronization.htm
|
20041112 Version 1.0 |
|
Other than the features stated in the Web Downloader documentation, the new version of this application caters for an automatic synchronization. To achieve this, a group of entries are added to the registry of the terminal. These entries are configured via the _wirelessmobile.cfg file.
The process for the automatic synchronization consists in stating the number of times the application should try to synchronize, together with the specific timings for these synchronizations to take place.
To account for this, the [Servers] section counts several new keys which should be included, and that will be entered in the terminal’s registry.
This is the number of timers set for the application to perform an automatic synchronization. It also indicates the number of keys in the file that state the timings for the synchronizations, given that each attempt to synchronize should be assigned a given time.
E.g.: AutoSyncQty = 24
This key states the time for an attempt to synchronize to take place. That is, attempt X (from 1 to AutoSyncQty) takes place at the moment specified by <time>.
The <time> should be indicated in the 24-hour form, with or without a leading zero (0) for hours before 10:00. E.g.: 01:09 or 1:09, which is not the same as 13:09.
E.g.: SyncTime_init_1 = 01:09
Due to the fact that the application is not running in the terminal all the time, and that for some other given reasons it may not be able to synchronize once the time has come, a span is defined.
This span indicates the range of time, in minutes, during which the application may start the automatic synchronization, starting at the time specified in SyncTime_init_X. Thus, the automatic synchronization may be started in the interval from (SynTime_init_X) to (SynTime_init_X+SyncTime_span_X).
E.g.: SyncTime_span_1 = 30
Another key is included for each attempt to specify the type of synchronization to perform.
The
“send” option only sends the data waiting in the WireLess Mobile Client.
The “receive” option only receives information from the WireLess Mobile Server.
The “sendreceive” option performs both actions.
E.g.: SyncType_1 = send
For each successful synchronization X, a Time Stamp is added to the registry of the terminal:
Time Stamps older than one day may be replaced by newer ones if a synchronization takes place with the same X id.
If the application is unable to synchronize, either because it was not running or due to other reasons, no Time Stamp is included for the current X id.
The BackgroundTimer key states the number of seconds to wait before checking if an automatic synchronization should be performed. That is, the application does not monitor continually the time to synchronize, but every period of time stated in the BackgroundTimer.
E.g.: BackgroundTimer = 300
The minimum value for the BackgroundTimer is 120 seconds. If a smaller number is entered, the application assumes it is 120.
An example of the _wirelessmobile.cfg file containing the keys for the automatic synchronization is shown below.
%%FILE=_wirelessmobile.cfg%%
%%
V100
%%
Null Section Root of the tree. It will be stored into
%%
HKEY_CURREN_USER\Software\<Corp_Id>\
%%
12 entries
Password = %% Commentary
OldInstallDir =
MsgDll = ResAobeUs.dll
BackgroundTimer = 300
AppName = WM Intranet
CabTitle = WireLess Mobile
CreatorId = WMWM
EmptyDb = empty.cdb
CacheSize = 128
OutGoingDataLocation = \Windows\WM
HomepageLogo = LogoWM.gif
Homepage = WM.html
[LoginDlg]
%%
5 entries
TitleLbl = WM
PasswdLbl = Password
LogoFilename = SOFTOGO.gif
LoginLbl = Login
AutoChangeUser
= off
[Servers]
%%
4 entries
DeviceType = ppc02
ConnectionName = `115200 Default %% for ras connection
AutoDial = off %% on or off
ConnectionType = network %% ras or network
AutoSyncQty = 24
SyncTime_init_1 = 18:18
SyncTime_init_2 = 19:19
SyncTime_init_3 = 20:20
SyncTime_init_4 = 21:21
SyncTime_init_5 = 22:22
SyncTime_init_6 = 23:23
SyncTime_init_7 = 00:00
SyncTime_init_8 = 01:01
SyncTime_init_9 = 02:02
SyncTime_init_10 = 03:03
SyncTime_init_11 = 04:04
SyncTime_init_12 = 05:05
SyncTime_init_13 = 6:06
SyncTime_init_14 = 7:07
SyncTime_init_15 = 8:08
SyncTime_init_16 = 9:09
SyncTime_init_17 = 10:10
SyncTime_init_18 = 11:11
SyncTime_init_19 = 12:12
SyncTime_init_20 = 13:13
SyncTime_init_21 = 14:14
SyncTime_init_22 = 15:15
SyncTime_init_23 = 16:16
SyncTime_init_24 = 17:17
SyncTime_span_1 = 30
SyncTime_span_2 = 30
SyncTime_span_3 = 30
SyncTime_span_4 = 30
SyncTime_span_5 = 30
SyncTime_span_6 = 30
SyncTime_span_7 = 30
SyncTime_span_8 = 30
SyncTime_span_9 = 30
SyncTime_span_10 = 30
SyncTime_span_11 = 30
SyncTime_span_12 = 30
SyncTime_span_13 = 30
SyncTime_span_14 = 30
SyncTime_span_15 = 30
SyncTime_span_16 = 30
SyncTime_span_17 = 30
SyncTime_span_18 = 30
SyncTime_span_19 = 30
SyncTime_span_20 = 30
SyncTime_span_21 = 30
SyncTime_span_22 = 30
SyncTime_span_23 = 30
SyncTime_span_24 = 30
SyncType_1 = send
SyncType_2 = receive
SyncType_3 = sendreceive
SyncType_4 = send
SyncType_5 = receive
SyncType_6 = sendreceive
SyncType_7 = send
SyncType_8 = receive
SyncType_9 = sendreceive
SyncType_10 = send
SyncType_11 = receive
SyncType_12 = sendreceive
SyncType_13 = send
SyncType_14 = receive
SyncType_15 = sendreceive
SyncType_16 = send
SyncType_17 = receive
SyncType_18 = sendreceive
SyncType_19 = send
SyncType_20 = receive
SyncType_21 = sendreceive
SyncType_22 = send
SyncType_23 = receive
SyncType_24 = sendreceive
[Servers\srvWM]
%%
3 entries
URL
= http://10.10.10.19/wm_fr/PalmSynchro/PalmSynchSrv.asp
PWD
= 41d28b
UID
= a