Recently, at the customer's request, WinCE automatically generates a GPRS dial-up connection at startup to avoid setting up a GPRS connection for each prototype. I will first create a GPRS dial-up connection under wince,
Then compare with the registry before GPRS, and find the following differences;
1. the following content is added to [HKEY_CURRENT_USER \ comm \ rasbook ]:
[HKEY_CURRENT_USER \ comm \ rasbook \ GPRS]
"Entry" = HEX :\
, C0, FD, D7, C0, 00 ,\
, 00, 00, 00, 00, 00, 2a, 39, 00, 2a, 00, 2a, 00, 2a, 2a, 23, 00 ,\
, 00, 00, 00, 00, C0, FD, D7, C0, fa, 02, 00, 00, 00, 00 ,\
, 02, 00, 25, 00, DC, 68, F6, 84, DC, 68, F6, 84, fa, 00, AC, EF, 16, D7, \
14,28, 12,80, 00, EF, 16, D7, 00, FF, 16, D7, 08,93, D9, 82,00, FF, 16, D7, A8, 62,12, 80, 00 ,\
, 00, 00, F4, 6B, F6, 00, EF, 16, D7, 00, 00, 00, 10, F0, 16, D7, 00, Fe ,\
D7, C0, 00,00, 00,00, 00,00, 00,00, 00,00, 00,00, 00,00, 00,00, 4B, 00,00, 00, 2f, 00,00 ,\
, 00, 5a, da, C0, 40, 5f, 20, D3, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, EF, 00, 20 ,\
F0, 16, D7, 00, 00, 00, 54, F3, 16, D7, 00, 00, 00, 00 ,\
, 4D, 00, F0, 16, D7, 70, F3, 16, D7, 00, 00 ,\
, 01, 00, 00, BC, DC, 15, D7, B0, DC, 15, D7, F8, F8, 16, D7, 00, 00, 00 ,\
, 6d, 00, 6f ,\
, 65, 00, 6d, 00, 00, EE, D6, FF, D8, 6d, 16, C0, 01,00, 54 ,\
Ee, D6 ,\
, 00, 00, 6C, 00, 6f, 00, 6e, 00, 4f, 00, 4D, 00 ,\
33,00, 00,00, 00,00, 04, D0, 00,00, EE, D6, 1f, 54,00, 00, 9C, FF, 03, C0, 00,54, EE, D6, C0 ,\
BB, A4, 8A, 1d, C0, D4, 8A, 1f, C0, 7C, 24 ,\
04, D0, 00,00, 00,00, E0, 23,04, D0, EC, F7, 03, C0, 08,00, 00,00, 24,24, 04, D0, FF ,\
FF, E0, D0, 00, 00, 00, 24, 04, D0, 7C, 00, 00, 0C, 0b, 04, C0 ,\
7c, 01,00, 00,08, 00,00, 00,00, 00,00, 00,34, C1, 11, C0, 98, F1, 16, D7, 00,00, 00,00, 88 ,\
C5, 11, C0, 00, 00, F0, F1, 16, D7, 90, 1d, 04, C0, 98, 2f, 13, D0, 80, 2f ,\
13, D0, 03,00, F0, 31, 0f, C0, 01,00, 78, F3, 16, D7, 88, C5, 11, C0, 60, F2, 16 ,\
D7, 80, 00, 00, 68, 0f, C0, 78, F3, 16, D7, 40, 00 ,\
03, C9, 9C, F1, 16, D7, 00, 8B, 00, 00, C0, 03, A5 ,\
, 00, 00, A4, 00, 00, 00, 1b, D7, 00, 00, 04, D0, EC, F7, 03, C0 ,\
, 00, 1b, D7, FF, 00, 04, D0, 00, 1b ,\
D7, A4, 01,00, 00, 0C, 0b, 04, C0, A4, 01,00, 00,80, 34, 1b, D7, 80, 34, 1b, D7, 00,00, 04, D0, \
, 00, 1b, D7, 9f, 34,00, 00, 9C, FF, 03, C0, 80, 34, 1b, D7, 00, 8A, 34, 1b, D7, 80, \
34, 1b, D7, FF, 00,00, 00,00, EC, 1b, 04, C0, 00,00, 00,00, E8, 87,02, C0, FC, 71, \
11, C0, 0f, C0, 20, 0d, 04, D0, 80, 34, 1b, D7, 00, 00, 20, 0d, 04 ,\
D0, 00,00, 00,00, 20, D6, 11, C0, 00,00, 00,00, 00,00, 00,00, 20, 0d, 04, D0, 00,00, 00,00 ,\
88,78, 11, C0, 01,00, 00,00, 60, F2, 16, D7, 00,00, 00,00, 00,00, 00,00, 03,00, 00,00, A4 ,\
1c, 48, C0, 20, 0d, 04, D0, A4, 1C, 48, C0, 00,00, 00,00, 88, C5, 11, C0, 00,00, 00,00, 50, f3 ,\
16, D7, CC, F3, 16, D7, 01,00, 00,00, 50, F3, 16, D7, 00,00, 00,00, F1, AC, FF, FF, 04, B7, d9 ,\
82, E4, F2, 16, D7, B8, F2, 16, D7, 78, 5d, 13, 80, CC, F3, 16, D7, 6C, F3, 16, D7, ,\
, 00, 00, 00, 00, 00, 50, F3, 16, D7, 00, 15, 00, CC ,\
F3, 16, D7, 00, CC, F3, 16, D7, 48, F3, 16, D7, F0, F2, 16, D7, CC, F3, 16, d7, 00,00 ,\
, 00, CC, F3, 16, D7, 04, 5f, D9, 00, 34, 1e, C0, 80, 2f, 13 ,\
D0, 00, A4, 1C, 48, C0, 00, 80, 2f, 13, D0, 80, 2f, 13, D0, E0, D0, \
24, 24, 04, D0, 9f, 2f, 00,00, 9C, FF, 03, C0, F4, 6B, F6, 84,00, 00,00, 00, F4, 6B, F6, 84,00, \
, 00, 00, CC, F3, 16, D7, 9C, F4, 00, 00, 48, F3, 16, D7, 60, 34 ,\
1B, D7, 00,00, 00,00, 40,10, 00,00, 0f, 00,00, 00,40, 0f, 05, D0, 06,00, 00,00, 55,04, 04 ,\
, 00, 00, CC, F3, 16, D7, 00, 00, 0 A, 90, 0 d, 00, 00, 00 ,\
AC, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00
"Devcfg" = HEX :\
, 00, 00, 00, 01, 00, 00, C2, 00, 00, 00, 00, 2B ,\
, 47, 00, 00, 4f, 00, 4E, 00, 00, 3D, 00, 2c, 50, 00 ,\
, 2c, 00, 4D, 00, 4E, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00, 00, 00, 00, 00, 00, 00, 00, 00 ,\
, 00
This should be the information of the new GPRS dial-up connection. Then I add these registries to my platform. reg, re-compile, download NK, after wince is started, a GPRS connection is established in the network and dial-up connections, 1: the basic dialing serial port configuration and special modulation and demodulation commands are both correct. 2
Figure 1 Figure 2
However, when the dial-up fails, it is found that the configuration in the dial-up attribute is incorrect. For example, in, the normal dial-up attribute is 5.
Figure 3
Figure 4
Figure 5
After careful comparison between the two registries that can be dialup and that cannot be dialup, It is also found that the items registered in [HKEY_CURRENT_USER \ controlpanel \ dial \ locations] are different.
//// // The registry that cannot be properly dialed ///////////////////// //////////////////////////////////////// ///////////
[HKEY_CURRENT_USER \ controlpanel \ dial \ locations]
"0" = hex (7 ):\
, 39, 2c, 47,00, 39, 2c, 30,46, 47,00, 39, 2c, 30,30, 2c, 45,46, 47,00, 31,30, 00, 00 ,\
"1" = hex (7 ):\
, 47, 30, 2c, 00, 00
/// // Registry for normal dialing ///// //////////////////////////////////////// ////////////////////////////
[HKEY_CURRENT_USER \ controlpanel \ dial \ locations]
"0" = hex (7 ):\
, 47, 31, 00
"1" = hex (7 ):\
, 47, 30, 2c, 00, 00
Obviously, this is the information about the Registry configured in the dial-up mode. The contents of these registries are found in public \ common \ oak \ files \ comman. Reg.
Comman. Reg:
[HKEY_CURRENT_USER \ controlpanel \ dial \ locations]
; Each multisz location (Value Name = permlocationid "has:
; Locationname, localfmt, ldfmt, intntlfmt, areacode, cwcode, countrycode, & options
; "0" = multi_sz: loc_worklocationname,
; Loc_worklocalfmt,
; Loc_workldfmt,
; Loc_workintntlfmt,
; Loc_workareacode,
; Loc_workcwcode,
; Loc_workcountrycode,
; Loc_workoptions
; "1" = multi_sz: loc_homelocationname,
; Loc_homelocalfmt,
; Loc_homeldfmt,
; Loc_homeintntlfmt,
; Loc_homeareacode,
; Loc_homecwcode,
; Loc_homecountrycode,
; Loc_homeoptions
Loc_worklocalfmt and so on must be macro definitions such as 9. G. These macro definitions are found in public \ common \ oak \ files \ intltrns \ 0409 common. Str.
# Define loc_homelocationname "home"
# Define loc_homelocalfmt "G"
# Define loc_homeldfmt "1fg"
# Define loc_homeintntlfmt "011, EFG"
# Define loc_homeareacode "425"
# Define loc_homecwcode ""
# Define loc_homecountrycode "1"
# Define loc_homeoptions "0"
# Define loc_worklocationname "work"
# Define loc_worklocalfmt "9, G"
# Define loc_workldfmt "9, 1fg"
# Define loc_workintntlfmt "9,011, EFG"
# Define loc_workareacode "425"
# Define loc_workcwcode ""
# Define loc_workcountrycode "1"
# Define loc_workoptions "0"
Now you only need to change these macro definitions to what I need,
In public \ common \ oak \ files \ intltrns \ 0409 and public \ common \ oak \ files \ intltrns \ 0804
// English text System
# Define loc_worklocationname "work"
# Define loc_worklocalfmt "G"
# Define loc_workldfmt "G"
# Define loc_workintntlfmt "G"
# Define loc_workareacode "425"
# Define loc_workcwcode ""
# Define loc_workcountrycode "1"
# Define loc_workoptions "0"
// Chinese System
# Define loc_worklocationname "unit"
# Define loc_worklocalfmt "G"
# Define loc_workldfmt "G"
# Define loc_workintntlfmt "G"
# Define loc_workareacode "10"
# Define loc_workcwcode ""
# Define loc_workcountrycode "86"
# Define loc_workoptions "0"
Recompile the system, download NK, and get the desired result after wince is started.