使用snooper taoism版,显示非本地字符的ansi字符

来源:互联网 发布:ae软件制作视频教程 编辑:程序博客网 时间:2024/05/22 15:34

使用snooper taoism版,在显示非本地字符的ansi字符。

 

比如在泰文系统下,要测试一个显示gb2312stk命令。

 

//[]=================================================[]

//[]          Version     0.0.0.2    ( Beta )      []

//[]                     Smart                       []

//[]                  Ma Bao Hua                     []

//[]           msn:  JennyVenus@MSN.COM              []

//[]                      3GPP                       []

//[]                      PBOC                       []

//[]          Uart & CCID Snooper Hardware           []

//[] ANSI character setting System default  change   []

//[]=================================================[]

 

 

然后测试某stk卡,log如下

 

 

//reset

3B 7B 11 22 33 00 01 02 03 04 05 06 07 08 09 0A

//More details : 00483CD0:00000030:00000010

 

//Select                       (defined by GSM 11.11)

A0 A4 00 00 02 3F 00

9F 17

//A0 A4 00 00 02 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = A4 means Select                       (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 02 is data length( or expect data length ), means( 2 )

//9F 17

 

//Get Response                 (defined by GSM 11.11)

A0 C0 00 00 17

00 00 8C DC 3F 00 01 00 00 00 00 00 0A 91 03 07 06 00 83 8A 83 8A 00

90 00

//A0 C0 00 00 17 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = C0 means Get Response                 (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 17 is data length( or expect data length ), means( 23 )

//90 00

 

//Terminal Profile             (defined by GSM 11.11)

A0 10 00 00 08 FF FF FF FF FF FF FF FF

91 D3

//A0 10 00 00 08 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 10 means Terminal Profile             (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 08 is data length( or expect data length ), means( 8 )

//91 D3

 

//Fetch                        (defined by GSM 11.11)

A0 12 00 00 D3

D0 81 D0 81 03 01 25 00 82 02 81 82 85 03 53 54 4B 8F 0C 01 80 00 44 00 54 00 65 00 78 00 74 8F 0E 02 80 00 47 00 49 00 6E 00 6B 00 65 00 79 8F 0E 03 80 00 47 00 49 00 6E 00 70 00 75 00 74 8F 0C 04 80 00 50 00 54 00 6F 00 6E 00 65 8F 0E 05 80 00 72 00 65 00 66 00 72 00 65 00 73 8F 0C 06 80 00 53 00 4D 00 65 00 6E 00 75 8F 0E 07 80 00 53 00 65 00 49 00 74 00 65 00 6D 8F 0C 08 80 00 53 00 65 00 6E 00 64 00 53 8F 0C 09 80 00 53 00 43 00 61 00 6C 00 6C 8F 0C 0A 80 00 50 00 4C 00 49 00 6E 00 66 8F 0E 0B 80 00 4A 00 4D 00 50 00 42 00 41 00 43 8F 0C 0C 80 00 6F 00 74 00 68 00 65 00 72 8F 0E 0D 80 00 4D 00 6F 00 72 00 74 00 69 00 6D

90 00

//A0 12 00 00 D3 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 12 means Fetch                        (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = D3 is data length( or expect data length ), means( 211)

//---D0 81 D0

//----D0 is Fetch command's Proactive SIM Command tag

//----81 D0 is total length after this, 81 indicates data legnth more then 0x7f(127), data length is 208

//------81 03 01 25 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------25 is Command Type, means

//----------------SET UP MENU

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------no selection preference

//----------------no help information available

//------82 02 81 82

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------81 is Source device identity, means SIM

//----------82 is Destination device identity, means ME

//----------------SIM -> ME

//------85 03 53 54 4B

//----------85 is Alphabet identifier tag

//----------03 is total length after this, data length is 3

//----------53 54 4B , means

//----------------"STK"

//------8F 0C 01 80 00 44 00 54 00 65 00 78 00 74

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------01 is Item ID

//----------80 is UCS2 code scheme

//----------00 44 00 54 00 65 00 78 00 74 , means

//----------------"DText"

//------8F 0E 02 80 00 47 00 49 00 6E 00 6B 00 65 00 79

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------02 is Item ID

//----------80 is UCS2 code scheme

//----------00 47 00 49 00 6E 00 6B 00 65 00 79 , means

//----------------"GInkey"

//------8F 0E 03 80 00 47 00 49 00 6E 00 70 00 75 00 74

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------03 is Item ID

//----------80 is UCS2 code scheme

//----------00 47 00 49 00 6E 00 70 00 75 00 74 , means

//----------------"GInput"

//------8F 0C 04 80 00 50 00 54 00 6F 00 6E 00 65

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------04 is Item ID

//----------80 is UCS2 code scheme

//----------00 50 00 54 00 6F 00 6E 00 65 , means

//----------------"PTone"

//------8F 0E 05 80 00 72 00 65 00 66 00 72 00 65 00 73

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------05 is Item ID

//----------80 is UCS2 code scheme

//----------00 72 00 65 00 66 00 72 00 65 00 73 , means

//----------------"refres"

//------8F 0C 06 80 00 53 00 4D 00 65 00 6E 00 75

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------06 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 4D 00 65 00 6E 00 75 , means

//----------------"SMenu"

//------8F 0E 07 80 00 53 00 65 00 49 00 74 00 65 00 6D

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------07 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 65 00 49 00 74 00 65 00 6D , means

//----------------"SeItem"

//------8F 0C 08 80 00 53 00 65 00 6E 00 64 00 53

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------08 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 65 00 6E 00 64 00 53 , means

//----------------"SendS"

//------8F 0C 09 80 00 53 00 43 00 61 00 6C 00 6C

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------09 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 43 00 61 00 6C 00 6C , means

//----------------"SCall"

//------8F 0C 0A 80 00 50 00 4C 00 49 00 6E 00 66

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------0A is Item ID

//----------80 is UCS2 code scheme

//----------00 50 00 4C 00 49 00 6E 00 66 , means

//----------------"PLInf"

//------8F 0E 0B 80 00 4A 00 4D 00 50 00 42 00 41 00 43

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------0B is Item ID

//----------80 is UCS2 code scheme

//----------00 4A 00 4D 00 50 00 42 00 41 00 43 , means

//----------------"JMPBAC"

//------8F 0C 0C 80 00 6F 00 74 00 68 00 65 00 72

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------0C is Item ID

//----------80 is UCS2 code scheme

//----------00 6F 00 74 00 68 00 65 00 72 , means

//----------------"other"

//------8F 0E 0D 80 00 4D 00 6F 00 72 00 74 00 69 00 6D

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------0D is Item ID

//----------80 is UCS2 code scheme

//----------00 4D 00 6F 00 72 00 74 00 69 00 6D , means

//----------------"Mortim"

//90 00

 

//Terminal Response            (defined by GSM 11.11)

A0 14 00 00 0C 81 03 01 25 00 82 02 82 81 83 01 00

90 00

//A0 14 00 00 0C is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 14 means Terminal Response            (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 0C is data length( or expect data length ), means( 12 )

//------81 03 01 25 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------25 is Command Type, means

//----------------SET UP MENU

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------no selection preference

//----------------no help information available

//------82 02 82 81

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------82 is Source device identity, means ME

//----------81 is Destination device identity, means SIM

//----------------ME -> SIM

//------83 01 00

//----------83 is Result tag

//----------01 is total length after this, data length is 1

//----------00 is Terminal result, means

//----------------Results '0X' and '1X' indicate that the command has been performed.

//----------------Command performed successfully

//90 00

 

//Envelope                     (defined by GSM 11.11)

A0 C2 00 00 09 D3 07 82 02 01 81 90 01 01

91 B8

//A0 C2 00 00 09 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = C2 means Envelope                     (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 09 is data length( or expect data length ), means( 9 )

//91 B8

 

//Fetch                        (defined by GSM 11.11)

A0 12 00 00 B8

D0 81 B5 81 03 01 24 00 82 02 81 82 8F 18 01 80 66 3E 79 3A 00 55 00 6E 00 69 00 63 00 6F 00 64 00 65 5B 57 7B 26 8F 14 02 80 66 3E 79 3A 00 41 00 53 00 43 00 49 00 49 5B 57 7B 26 8F 10 03 80 66 3E 79 3A 00 30 5B 57 82 82 5B 57 7B 26 8F 0E 04 80 4E 0D 54 0C 57 30 65 B9 53 D6 50 3C 8F 12 05 80 66 3E 79 3A 00 31 00 31 00 39 4E 2A 6C 49 5B 57 8F 12 06 80 66 3E 79 3A 00 31 00 32 00 30 4E 2A 6C 49 5B 57 8F 18 07 80 66 3E 79 3A 65 70 63 6E 5B 58 50 A8 56 68 4E 2D 76 84 5B 57 7B 26 8F 16 08 80 66 3E 79 3A 00 47 00 42 00 32 00 33 00 31 00 32 5B 57 7B 26

90 00

//A0 12 00 00 B8 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 12 means Fetch                        (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = B8 is data length( or expect data length ), means( 184)

//---D0 81 B5

//----D0 is Fetch command's Proactive SIM Command tag

//----81 B5 is total length after this, 81 indicates data legnth more then 0x7f(127), data length is 181

//------81 03 01 24 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------24 is Command Type, means

//----------------SELECT ITEM

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------bit 0(base 0) is 0: presentation type is not specified

//----------------bit 1(base 0) is 0: presentation as a choice of data values if bit 0(base 0) = '1'

//----------------bit 2(base 0) is 0: no selection preference

//----------------bit 7(base 0) is 0: no help information available

//------82 02 81 82

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------81 is Source device identity, means SIM

//----------82 is Destination device identity, means ME

//----------------SIM -> ME

//------8F 18 01 80 66 3E 79 3A 00 55 00 6E 00 69 00 63 00 6F 00 64 00 65 5B 57 7B 26

//----------8F is Item data tag

//----------18 is total length after this, data length is 24

//----------01 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 55 00 6E 00 69 00 63 00 6F 00 64 00 65 5B 57 7B 26 , means

//----------------"显示Unicode字符"

//------8F 14 02 80 66 3E 79 3A 00 41 00 53 00 43 00 49 00 49 5B 57 7B 26

//----------8F is Item data tag

//----------14 is total length after this, data length is 20

//----------02 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 41 00 53 00 43 00 49 00 49 5B 57 7B 26 , means

//----------------"显示ASCII字符"

//------8F 10 03 80 66 3E 79 3A 00 30 5B 57 82 82 5B 57 7B 26

//----------8F is Item data tag

//----------10 is total length after this, data length is 16

//----------03 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 30 5B 57 82 82 5B 57 7B 26 , means

//----------------"显示0字节字符"

//------8F 0E 04 80 4E 0D 54 0C 57 30 65 B9 53 D6 50 3C

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------04 is Item ID

//----------80 is UCS2 code scheme

//----------4E 0D 54 0C 57 30 65 B9 53 D6 50 3C , means

//----------------"不同地方取值"

//------8F 12 05 80 66 3E 79 3A 00 31 00 31 00 39 4E 2A 6C 49 5B 57

//----------8F is Item data tag

//----------12 is total length after this, data length is 18

//----------05 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 31 00 31 00 39 4E 2A 6C 49 5B 57 , means

//----------------"显示119个汉字"

//------8F 12 06 80 66 3E 79 3A 00 31 00 32 00 30 4E 2A 6C 49 5B 57

//----------8F is Item data tag

//----------12 is total length after this, data length is 18

//----------06 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 31 00 32 00 30 4E 2A 6C 49 5B 57 , means

//----------------"显示120个汉字"

//------8F 18 07 80 66 3E 79 3A 65 70 63 6E 5B 58 50 A8 56 68 4E 2D 76 84 5B 57 7B 26

//----------8F is Item data tag

//----------18 is total length after this, data length is 24

//----------07 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 65 70 63 6E 5B 58 50 A8 56 68 4E 2D 76 84 5B 57 7B 26 , means

//----------------"显示数据存储器中的字符"

//------8F 16 08 80 66 3E 79 3A 00 47 00 42 00 32 00 33 00 31 00 32 5B 57 7B 26

//----------8F is Item data tag

//----------16 is total length after this, data length is 22

//----------08 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 47 00 42 00 32 00 33 00 31 00 32 5B 57 7B 26 , means

//----------------"显示GB2312字符"

//90 00

 

//Terminal Response            (defined by GSM 11.11)

A0 14 00 00 0F 81 03 01 24 00 82 02 82 81 83 01 00 90 01 08

91 17

//A0 14 00 00 0F is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 14 means Terminal Response            (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 0F is data length( or expect data length ), means( 15 )

//------81 03 01 24 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------24 is Command Type, means

//----------------SELECT ITEM

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------bit 0(base 0) is 0: presentation type is not specified

//----------------bit 1(base 0) is 0: presentation as a choice of data values if bit 0(base 0) = '1'

//----------------bit 2(base 0) is 0: no selection preference

//----------------bit 7(base 0) is 0: no help information available

//------82 02 82 81

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------82 is Source device identity, means ME

//----------81 is Destination device identity, means SIM

//----------------ME -> SIM

//------83 01 00

//----------83 is Result tag

//----------01 is total length after this, data length is 1

//----------00 is Terminal result, means

//----------------Results '0X' and '1X' indicate that the command has been performed.

//----------------Command performed successfully

//------90 01 08

//----------90 is Item identifier tag

//----------01 is total length after this, data length is 1

//----------08 is the item id selected by user, a single byte between '01' and 'FF', A null item identifier is coded '00'

//91 17

 

//Fetch                        (defined by GSM 11.11)

A0 12 00 00 17

D0 15 81 03 01 21 81 82 02 81 02 8D 0A 91 CF D4 CA BE D6 D0 CE C4 32

90 00

//A0 12 00 00 17 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 12 means Fetch                        (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 17 is data length( or expect data length ), means( 23 )

//---D0 15

//----D0 is Fetch command's Proactive SIM Command tag

//----15 is total length after this, data length is 21

//------81 03 01 21 81

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------21 is Command Type, means

//----------------DISPLAY TEXT

//----------81 is Command Qualifier ( Binary  1 0 0 0 0 0 0 1  ), means

//----------------bit 0(base 0) is 1: high priority

//----------------bit 7(base 0) is 1: wait for user to clear message

//------82 02 81 02

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------81 is Source device identity, means SIM

//----------02 is Destination device identity, means Display

//----------------SIM -> Display

//------8D 0A 91 CF D4 CA BE D6 D0 CE C4 32

//----------8D is Text string tag

//----------0A is total length after this, data length is 10

//----------91 is DCS(Data coding scheme), means local mbcs format(such as GB2312)

//----------CF D4 CA BE D6 D0 CE C4 32 , means

//----------------"ฯิสพึะฮฤ2"

//90 00

 

 

可以看出,gb2312编码的字符被显示成了泰文。现在修改ansi code page为简体中文,也就是936。

 

确定之后,再次执行stk测试。

 

 

 

//reset

3B 7B 11 22 33 00 01 02 03 04 05 06 07 08 09 0A

//More details : 00483CD0:00000040:00000010

 

//Select                       (defined by GSM 11.11)

A0 A4 00 00 02 3F 00

9F 17

//A0 A4 00 00 02 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = A4 means Select                       (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 02 is data length( or expect data length ), means( 2 )

//9F 17

 

//Get Response                 (defined by GSM 11.11)

A0 C0 00 00 17

00 00 8C DC 3F 00 01 00 00 00 00 00 0A 91 03 07 06 00 83 8A 83 8A 00

90 00

//A0 C0 00 00 17 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = C0 means Get Response                 (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 17 is data length( or expect data length ), means( 23 )

//90 00

 

//Terminal Profile             (defined by GSM 11.11)

A0 10 00 00 08 FF FF FF FF FF FF FF FF

91 D3

//A0 10 00 00 08 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 10 means Terminal Profile             (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 08 is data length( or expect data length ), means( 8 )

//91 D3

 

//Fetch                        (defined by GSM 11.11)

A0 12 00 00 D3

D0 81 D0 81 03 01 25 00 82 02 81 82 85 03 53 54 4B 8F 0C 01 80 00 44 00 54 00 65 00 78 00 74 8F 0E 02 80 00 47 00 49 00 6E 00 6B 00 65 00 79 8F 0E 03 80 00 47 00 49 00 6E 00 70 00 75 00 74 8F 0C 04 80 00 50 00 54 00 6F 00 6E 00 65 8F 0E 05 80 00 72 00 65 00 66 00 72 00 65 00 73 8F 0C 06 80 00 53 00 4D 00 65 00 6E 00 75 8F 0E 07 80 00 53 00 65 00 49 00 74 00 65 00 6D 8F 0C 08 80 00 53 00 65 00 6E 00 64 00 53 8F 0C 09 80 00 53 00 43 00 61 00 6C 00 6C 8F 0C 0A 80 00 50 00 4C 00 49 00 6E 00 66 8F 0E 0B 80 00 4A 00 4D 00 50 00 42 00 41 00 43 8F 0C 0C 80 00 6F 00 74 00 68 00 65 00 72 8F 0E 0D 80 00 4D 00 6F 00 72 00 74 00 69 00 6D

90 00

//A0 12 00 00 D3 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 12 means Fetch                        (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = D3 is data length( or expect data length ), means( 211)

//---D0 81 D0

//----D0 is Fetch command's Proactive SIM Command tag

//----81 D0 is total length after this, 81 indicates data legnth more then 0x7f(127), data length is 208

//------81 03 01 25 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------25 is Command Type, means

//----------------SET UP MENU

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------no selection preference

//----------------no help information available

//------82 02 81 82

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------81 is Source device identity, means SIM

//----------82 is Destination device identity, means ME

//----------------SIM -> ME

//------85 03 53 54 4B

//----------85 is Alphabet identifier tag

//----------03 is total length after this, data length is 3

//----------53 54 4B , means

//----------------"STK"

//------8F 0C 01 80 00 44 00 54 00 65 00 78 00 74

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------01 is Item ID

//----------80 is UCS2 code scheme

//----------00 44 00 54 00 65 00 78 00 74 , means

//----------------"DText"

//------8F 0E 02 80 00 47 00 49 00 6E 00 6B 00 65 00 79

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------02 is Item ID

//----------80 is UCS2 code scheme

//----------00 47 00 49 00 6E 00 6B 00 65 00 79 , means

//----------------"GInkey"

//------8F 0E 03 80 00 47 00 49 00 6E 00 70 00 75 00 74

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------03 is Item ID

//----------80 is UCS2 code scheme

//----------00 47 00 49 00 6E 00 70 00 75 00 74 , means

//----------------"GInput"

//------8F 0C 04 80 00 50 00 54 00 6F 00 6E 00 65

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------04 is Item ID

//----------80 is UCS2 code scheme

//----------00 50 00 54 00 6F 00 6E 00 65 , means

//----------------"PTone"

//------8F 0E 05 80 00 72 00 65 00 66 00 72 00 65 00 73

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------05 is Item ID

//----------80 is UCS2 code scheme

//----------00 72 00 65 00 66 00 72 00 65 00 73 , means

//----------------"refres"

//------8F 0C 06 80 00 53 00 4D 00 65 00 6E 00 75

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------06 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 4D 00 65 00 6E 00 75 , means

//----------------"SMenu"

//------8F 0E 07 80 00 53 00 65 00 49 00 74 00 65 00 6D

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------07 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 65 00 49 00 74 00 65 00 6D , means

//----------------"SeItem"

//------8F 0C 08 80 00 53 00 65 00 6E 00 64 00 53

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------08 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 65 00 6E 00 64 00 53 , means

//----------------"SendS"

//------8F 0C 09 80 00 53 00 43 00 61 00 6C 00 6C

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------09 is Item ID

//----------80 is UCS2 code scheme

//----------00 53 00 43 00 61 00 6C 00 6C , means

//----------------"SCall"

//------8F 0C 0A 80 00 50 00 4C 00 49 00 6E 00 66

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------0A is Item ID

//----------80 is UCS2 code scheme

//----------00 50 00 4C 00 49 00 6E 00 66 , means

//----------------"PLInf"

//------8F 0E 0B 80 00 4A 00 4D 00 50 00 42 00 41 00 43

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------0B is Item ID

//----------80 is UCS2 code scheme

//----------00 4A 00 4D 00 50 00 42 00 41 00 43 , means

//----------------"JMPBAC"

//------8F 0C 0C 80 00 6F 00 74 00 68 00 65 00 72

//----------8F is Item data tag

//----------0C is total length after this, data length is 12

//----------0C is Item ID

//----------80 is UCS2 code scheme

//----------00 6F 00 74 00 68 00 65 00 72 , means

//----------------"other"

//------8F 0E 0D 80 00 4D 00 6F 00 72 00 74 00 69 00 6D

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------0D is Item ID

//----------80 is UCS2 code scheme

//----------00 4D 00 6F 00 72 00 74 00 69 00 6D , means

//----------------"Mortim"

//90 00

 

//Terminal Response            (defined by GSM 11.11)

A0 14 00 00 0C 81 03 01 25 00 82 02 82 81 83 01 00

90 00

//A0 14 00 00 0C is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 14 means Terminal Response            (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 0C is data length( or expect data length ), means( 12 )

//------81 03 01 25 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------25 is Command Type, means

//----------------SET UP MENU

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------no selection preference

//----------------no help information available

//------82 02 82 81

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------82 is Source device identity, means ME

//----------81 is Destination device identity, means SIM

//----------------ME -> SIM

//------83 01 00

//----------83 is Result tag

//----------01 is total length after this, data length is 1

//----------00 is Terminal result, means

//----------------Results '0X' and '1X' indicate that the command has been performed.

//----------------Command performed successfully

//90 00

 

//Envelope                     (defined by GSM 11.11)

A0 C2 00 00 09 D3 07 82 02 01 81 90 01 01

91 B8

//A0 C2 00 00 09 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = C2 means Envelope                     (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 09 is data length( or expect data length ), means( 9 )

//91 B8

 

//Fetch                        (defined by GSM 11.11)

A0 12 00 00 B8

D0 81 B5 81 03 01 24 00 82 02 81 82 8F 18 01 80 66 3E 79 3A 00 55 00 6E 00 69 00 63 00 6F 00 64 00 65 5B 57 7B 26 8F 14 02 80 66 3E 79 3A 00 41 00 53 00 43 00 49 00 49 5B 57 7B 26 8F 10 03 80 66 3E 79 3A 00 30 5B 57 82 82 5B 57 7B 26 8F 0E 04 80 4E 0D 54 0C 57 30 65 B9 53 D6 50 3C 8F 12 05 80 66 3E 79 3A 00 31 00 31 00 39 4E 2A 6C 49 5B 57 8F 12 06 80 66 3E 79 3A 00 31 00 32 00 30 4E 2A 6C 49 5B 57 8F 18 07 80 66 3E 79 3A 65 70 63 6E 5B 58 50 A8 56 68 4E 2D 76 84 5B 57 7B 26 8F 16 08 80 66 3E 79 3A 00 47 00 42 00 32 00 33 00 31 00 32 5B 57 7B 26

90 00

//A0 12 00 00 B8 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 12 means Fetch                        (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = B8 is data length( or expect data length ), means( 184)

//---D0 81 B5

//----D0 is Fetch command's Proactive SIM Command tag

//----81 B5 is total length after this, 81 indicates data legnth more then 0x7f(127), data length is 181

//------81 03 01 24 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------24 is Command Type, means

//----------------SELECT ITEM

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------bit 0(base 0) is 0: presentation type is not specified

//----------------bit 1(base 0) is 0: presentation as a choice of data values if bit 0(base 0) = '1'

//----------------bit 2(base 0) is 0: no selection preference

//----------------bit 7(base 0) is 0: no help information available

//------82 02 81 82

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------81 is Source device identity, means SIM

//----------82 is Destination device identity, means ME

//----------------SIM -> ME

//------8F 18 01 80 66 3E 79 3A 00 55 00 6E 00 69 00 63 00 6F 00 64 00 65 5B 57 7B 26

//----------8F is Item data tag

//----------18 is total length after this, data length is 24

//----------01 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 55 00 6E 00 69 00 63 00 6F 00 64 00 65 5B 57 7B 26 , means

//----------------"显示Unicode字符"

//------8F 14 02 80 66 3E 79 3A 00 41 00 53 00 43 00 49 00 49 5B 57 7B 26

//----------8F is Item data tag

//----------14 is total length after this, data length is 20

//----------02 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 41 00 53 00 43 00 49 00 49 5B 57 7B 26 , means

//----------------"显示ASCII字符"

//------8F 10 03 80 66 3E 79 3A 00 30 5B 57 82 82 5B 57 7B 26

//----------8F is Item data tag

//----------10 is total length after this, data length is 16

//----------03 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 30 5B 57 82 82 5B 57 7B 26 , means

//----------------"显示0字节字符"

//------8F 0E 04 80 4E 0D 54 0C 57 30 65 B9 53 D6 50 3C

//----------8F is Item data tag

//----------0E is total length after this, data length is 14

//----------04 is Item ID

//----------80 is UCS2 code scheme

//----------4E 0D 54 0C 57 30 65 B9 53 D6 50 3C , means

//----------------"不同地方取值"

//------8F 12 05 80 66 3E 79 3A 00 31 00 31 00 39 4E 2A 6C 49 5B 57

//----------8F is Item data tag

//----------12 is total length after this, data length is 18

//----------05 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 31 00 31 00 39 4E 2A 6C 49 5B 57 , means

//----------------"显示119个汉字"

//------8F 12 06 80 66 3E 79 3A 00 31 00 32 00 30 4E 2A 6C 49 5B 57

//----------8F is Item data tag

//----------12 is total length after this, data length is 18

//----------06 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 31 00 32 00 30 4E 2A 6C 49 5B 57 , means

//----------------"显示120个汉字"

//------8F 18 07 80 66 3E 79 3A 65 70 63 6E 5B 58 50 A8 56 68 4E 2D 76 84 5B 57 7B 26

//----------8F is Item data tag

//----------18 is total length after this, data length is 24

//----------07 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 65 70 63 6E 5B 58 50 A8 56 68 4E 2D 76 84 5B 57 7B 26 , means

//----------------"显示数据存储器中的字符"

//------8F 16 08 80 66 3E 79 3A 00 47 00 42 00 32 00 33 00 31 00 32 5B 57 7B 26

//----------8F is Item data tag

//----------16 is total length after this, data length is 22

//----------08 is Item ID

//----------80 is UCS2 code scheme

//----------66 3E 79 3A 00 47 00 42 00 32 00 33 00 31 00 32 5B 57 7B 26 , means

//----------------"显示GB2312字符"

//90 00

 

//Terminal Response            (defined by GSM 11.11)

A0 14 00 00 0F 81 03 01 24 00 82 02 82 81 83 01 00 90 01 08

91 17

//A0 14 00 00 0F is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 14 means Terminal Response            (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 0F is data length( or expect data length ), means( 15 )

//------81 03 01 24 00

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------24 is Command Type, means

//----------------SELECT ITEM

//----------00 is Command Qualifier ( Binary  0 0 0 0 0 0 0 0  ), means

//----------------bit 0(base 0) is 0: presentation type is not specified

//----------------bit 1(base 0) is 0: presentation as a choice of data values if bit 0(base 0) = '1'

//----------------bit 2(base 0) is 0: no selection preference

//----------------bit 7(base 0) is 0: no help information available

//------82 02 82 81

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------82 is Source device identity, means ME

//----------81 is Destination device identity, means SIM

//----------------ME -> SIM

//------83 01 00

//----------83 is Result tag

//----------01 is total length after this, data length is 1

//----------00 is Terminal result, means

//----------------Results '0X' and '1X' indicate that the command has been performed.

//----------------Command performed successfully

//------90 01 08

//----------90 is Item identifier tag

//----------01 is total length after this, data length is 1

//----------08 is the item id selected by user, a single byte between '01' and 'FF', A null item identifier is coded '00'

//91 17

 

//Fetch                        (defined by GSM 11.11)

A0 12 00 00 17

D0 15 81 03 01 21 81 82 02 81 02 8D 0A 91 CF D4 CA BE D6 D0 CE C4 32

90 00

//A0 12 00 00 17 is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 12 means Fetch                        (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 17 is data length( or expect data length ), means( 23 )

//---D0 15

//----D0 is Fetch command's Proactive SIM Command tag

//----15 is total length after this, data length is 21

//------81 03 01 21 81

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------21 is Command Type, means

//----------------DISPLAY TEXT

//----------81 is Command Qualifier ( Binary  1 0 0 0 0 0 0 1  ), means

//----------------bit 0(base 0) is 1: high priority

//----------------bit 7(base 0) is 1: wait for user to clear message

//------82 02 81 02

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------81 is Source device identity, means SIM

//----------02 is Destination device identity, means Display

//----------------SIM -> Display

//------8D 0A 91 CF D4 CA BE D6 D0 CE C4 32

//----------8D is Text string tag

//----------0A is total length after this, data length is 10

//----------91 is DCS(Data coding scheme), means local mbcs format(such as GB2312)

//----------CF D4 CA BE D6 D0 CE C4 32 , means

//----------------"显示中文2"

//90 00

 

//Terminal Response            (defined by GSM 11.11)

A0 14 00 00 0C 81 03 01 21 81 82 02 82 81 83 01 00

90 00

//A0 14 00 00 0C is command head No detailed analysis

//--CLA = A0 means TELECOM application

//--INS = 14 means Terminal Response            (defined by GSM 11.11)

//--P1 P2 = 00 00 is parameter

//--P3 = 0C is data length( or expect data length ), means( 12 )

//------81 03 01 21 81

//----------81 is Command detials tag

//----------03 is total length after this, data length is 3

//----------01 is Command Number

//----------21 is Command Type, means

//----------------DISPLAY TEXT

//----------81 is Command Qualifier ( Binary  1 0 0 0 0 0 0 1  ), means

//----------------bit 0(base 0) is 1: high priority

//----------------bit 7(base 0) is 1: wait for user to clear message

//------82 02 82 81

//----------82 is Device identities tag

//----------02 is total length after this, data length is 2

//----------82 is Source device identity, means ME

//----------81 is Destination device identity, means SIM

//----------------ME -> SIM

//------83 01 00

//----------83 is Result tag

//----------01 is total length after this, data length is 1

//----------00 is Terminal result, means

//----------------Results '0X' and '1X' indicate that the command has been performed.

//----------------Command performed successfully

//90 00

 

 

现在正常显示GB2312字符。

原创粉丝点击