CN100505791C - Decoding method and apparatus - Google Patents

Decoding method and apparatus Download PDF

Info

Publication number
CN100505791C
CN100505791C CNB2004100086916A CN200410008691A CN100505791C CN 100505791 C CN100505791 C CN 100505791C CN B2004100086916 A CNB2004100086916 A CN B2004100086916A CN 200410008691 A CN200410008691 A CN 200410008691A CN 100505791 C CN100505791 C CN 100505791C
Authority
CN
China
Prior art keywords
bit byte
module
sim card
coded data
ucs2
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2004100086916A
Other languages
Chinese (zh)
Other versions
CN1671157A (en
Inventor
金键
朱伟
罗琳佳
吴丹
吴建光
钟将为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CNB2004100086916A priority Critical patent/CN100505791C/en
Publication of CN1671157A publication Critical patent/CN1671157A/en
Application granted granted Critical
Publication of CN100505791C publication Critical patent/CN100505791C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A decoding method used in mobile communication terminal, which contains presetting the decoding module in wireless communication module fro decoding UCS2 coding data outputted from SIM card, the wireless communication module obtaining the UCS2 coding data in SIM card according to the control instruction in module application terminal, the wireless communication module decoding UCS2 coding data by activating decoding module, compared with current technology, said invention is more simple in decoding with higher commonality and saves resource utilization.

Description

Coding/decoding method and device
Technical field
The present invention relates to the mobile communication technology field, refer to a kind of coding/decoding method and device that is applied to UCS2 (16 the general multibyte coded character sets) coded data in the mobile communication terminal especially.
Background technology
In the prior art, adopt the UCS2 coding method that the data such as name that are stored in SIM (subscriber identification module) the card telephone directory are encoded usually.UCS2 coding be with each character (1-2 byte) according to the regulation of ISO/IEC10646, change 16 binary representations into.Because the literal that many countries use can not be represented (ASCII only needs 8 bit representations) with ascii character, if need in SIM card, to store, then must expand to 16 according to the character of ASCII coding, this just brings the problem of how to save memory space.Adopt the UCS2 coding that data such as described name are carried out code storage, then can effectively reduce the memory space of name in SIM card.
In the mobile communication terminal for the UCS2 coded data of storing in the SIM card, usually can adopt AT (attention) to order the wireless communication module of controlling in the mobile communication terminal to the SIM card reading of data, AT order realizes based on serial communication, is used for that control is dialled in, functions such as Outgoing Call and short message control.For each module application end (using the host side application software of the mobile communication terminal of wireless communication module) when the UCS2 coded data of obtaining by the AT order in the SIM card, because the difference of each module application end, cause to do different UCS2 decoding processing, to obtain the UCS2 coded data in the SIM card at different module application ends.
To sum up, there is following shortcoming in prior art:
1, each module application end in obtaining SIM card, store the UCS2 coded data time, need the different decoding program of establishment, because ununified general UCS2 decoding program, it is loaded down with trivial details that the module application end carries out the decoding of UCS2 coded data, be unfavorable for further exploitation, extensibility is lower;
2, further, unified general UCS2 decoding program during owing to each module application end decoding UCS2 data, therefore, each module application end is unfavorable for transplanting, and causes the waste of existing resource.
Summary of the invention
The technical problem that the present invention solves provides a kind of coding/decoding method and device general, the simple UCS2 coded data of decoding, use this method or device, the module application end needn't be considered different coded formats again, greatly facilitate the exploitation of the upper application software of using wireless communication module, also can improve the versatility of wireless communication module simultaneously.
For addressing the above problem, the invention provides a kind of coding/decoding method of UCS2 coded data, may further comprise the steps:
Foresee steps: be used for the non-English of SIM card output in the default wireless communication module or comprise that at least English UCS2 coded data carries out decoding module;
Obtaining step: wireless communication module obtains UCS2 coded data in the SIM card according to the control command of module application end;
Decoding step: wireless communication module starts described decoder module described UCS2 coded data is carried out decoding processing.
Wherein, described decoding process comprises:
If the initial character string of described UCS2 coded data is ' 80 ', then carry out the first decoding processing mode:
The UCS2 coded data of SIM card output is exported according to the tentation data form;
If the initial character string of described UCS2 coded data is ' 81 ', then carry out the second decoding processing mode:
The UCS2 coded data of order reading SIM card output, and whether the 8th of judging the 4th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 4th eight bit byte and later eight bit byte first to the 7th, otherwise, then add that with first side-play amount of the 4th eight bit byte and later eight bit byte the basic pointer of the 3rd eight bit byte correspondence obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence;
If the initial character string of described UCS2 coded data is ' 82 ', then carry out the 3rd decoding processing mode:
The UCS2 coded data of order reading SIM card output, and whether the 8th of judging the 5th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 5th eight bit byte and later eight bit byte first to the 7th, otherwise, add that with first side-play amount of the 5th eight bit byte and later eight bit byte basic pointer that the 3rd eight bit byte and the 4th eight bit byte are formed obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence.
Best, described tentation data form is the unicode character.
Best, described control command is the AT instruction.
Best, described UCS2 coded data is the name of storing in the SIM card telephone directory.
Correspondingly, the invention provides a kind of decoding device of UCS2 coded data, comprising:
Acquisition module is arranged in the wireless communication module, is used for obtaining the non-English of SIM card or comprising English UCS2 coded data at least according to the control command that the module application end sends;
Decoder module is arranged in the wireless communication module, is used for the UCS2 coded data that acquisition module obtains from SIM card is decoded.
Wherein, described decoder module specifically comprises:
First decoding process module is used for the UCS2 coded data of SIM card output is directly exported according to the tentation data form;
Second decoding process module, the UCS2 coded data that is used for the output of order reading SIM card, and whether the 8th of judging the 4th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 4th eight bit byte and later eight bit byte first to the 7th, otherwise, add that with first side-play amount of the 4th eight bit byte and later eight bit byte the basic pointer of the 3rd eight bit byte correspondence obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence;
The 3rd decoding process module, the UCS2 coded data that is used for the output of order reading SIM card, and whether the 8th of judging the 5th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then first to the 7th of the 5th eight bit byte and later eight bit byte obtains the respective symbols in the corresponding GSM character list and exports according to the tentation data form, otherwise, add that with first side-play amount of the 5th eight bit byte and later eight bit byte basic pointer that the 3rd eight bit byte and the 4th eight bit byte are formed obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence;
Parsing module is used to resolve the initial character string of the UCS coded data of SIM card output, if the initial character string of the UCS2 coded data of SIM card output be ' 80 ', then indicates the processing of first decoding process module;
If the initial character string of the UCS2 coded data of SIM card output is ' 81 ', then indicate second decoding process module to handle;
If the initial character string of the UCS2 coded data of SIM card output is ' 82 ', then indicate the 3rd decoding process module to handle.
Best, described tentation data form is the unicode character.
Best, described control command is the AT instruction.
Best, described UCS2 coded data is the name of storing in the SIM card telephone directory.
Compared with prior art, the present invention has the following advantages:
1, the present invention is because by realizing the decoding of UCS2 coded data in wireless communication module, the module application end only need be imported the corresponding decoding processing that unified AT order can be finished the UCS2 coded data by wireless communication module, and can export according to uniform data format, because decoding processing is unified the realization on wireless communication module, compared to existing technology, UCS2 coded data decoding of the present invention is simpler, helps further exploitation, and extensibility is higher;
2, further, owing to realize unified general UCS2 decoding processing in wireless communication module, therefore, compared to existing technology, the versatility of wireless communication module is higher among the present invention, can further save the existing resource utilance.
Description of drawings
Fig. 1 is the schematic diagram that prior art is decoded to the UCS2 coded data,
Fig. 2 is that the decoding device embodiment of UCS2 coded data of the present invention forms schematic diagram;
Fig. 3 is the composition schematic diagram of decoder module shown in Figure 2;
Fig. 4 is the applied a kind of hardware environment schematic diagram of coding/decoding method embodiment of the present invention;
Fig. 5 is the flow chart of coding/decoding method embodiment of the present invention;
Fig. 6 is the schematic diagram that coding/decoding method embodiment of the present invention decodes.
Embodiment
The appearance of UCS2 coded system has significantly reduced the memory space of data such as name in SIM, the present invention is in order to solve the skimble-scamble problem of UCS2 coded data in the module application end decoding SIM card, employing is unified method of decoding in wireless communication module, can effectively improve the decoding efficiency of UCS2 coded data in the mobile communication terminal.
At first introduce the UCS2 coding principle below so that the clearer understanding of those skilled in the art technical scheme of the present invention.Usually, the name that is stored in the SIM card telephone directory adopts three kinds of UCS2 coded formats: first kind generally is used for pure English, second kind generally is to be used for non-English (as other languages such as Chinese, Japaneses), the third generally is used for the situation of non-English and English mixing the (as the Chinese and English mixing etc.), introduction one by one below.
But the first clock coded system reference table one, first Octets of data is a character string ' 80 ', ensuing Octets (eight bit byte) is a 16bits UCS2 character, numbers the preceding that byte is the MSO (high byte) of UCS2 character, numbering after be the LSO (low byte) of UCS2 character.For example second Octet comprised the MSO of first UCS2 character, and the 3rd Octet comprised the LSO of first UCS2 character, and the Octet that does not use then is changed to ' FF '.
Table one
Octet 1 Octet2 Octet3 Octet4 Octet5 Octet6 Octet7 Octet 8 Octet 9
‘80’ Ch1Mso Ch1Lso Ch2Mso Ch2Lso Ch3Mso Ch3Lso ‘FF’ ‘FF’
But second kind of coded system reference table two, first character string is ' 81 ', and ensuing Octet represents character number, and the bit15 that the 3rd Octet is 16 basic pointers is to bit8; In this basic pointer, bit16 puts ' 0 ', and bit7 also is changed to ' 0 ' to bit1; The bit8 of the 4th and later Octets is if zero, and what then the bit7 of the 4th and later Octets represented to bit1 is exactly corresponding characters in the GSM character list; If bit8 is 1, what then the bit7 of the 4th and later Octets represented to bit1 is exactly a side-play amount of UCS2 coding, adds that with this side-play amount foregoing basic pointer just can obtain required UCS2 sign indicating number.
Table two
Octet 1 Octet 2 Octet 3 Octet 4 Octet 5 Octet 6 Octet 7 Octet 8 Octet 9
|‘81’ ‘05’ ‘13’ ‘53’ ‘95’ ‘A6’ ‘XX’ ‘FF’ ‘FF’
But the third coded system reference table three, first character string is ' 82 ', ensuing second Octet comprised character number, the 3rd and 16 complete basic pointer of the 4th Octet composition, if the bit8 of the 5th and later Octet is zero, what then the bit7 of the 5th and later Octet represented to bit1 is exactly corresponding characters in the GSM character list; If the bbit8 of the 5th and later Octet is 1, then the bit7 of the 5th and later Octet to the bit1 bit representation be exactly the side-play amount that UCS2 encodes, add that with this side-play amount the basic pointer of front is exactly required UCS2 sign indicating number.
Table three
Octet 1 Octet 2 Octet 3 Octet 4 Octet 5 Octet 6 Octet 7 Octet 8 Octet 9
‘82’ ‘05’ ‘05’ ‘30’ ‘2D’ ‘82’ ‘D3’ ‘2D’ ‘31’
At all ununified usually general UCS2 decoding program of module application end (promptly using the host side application software of the personal digital assistant device of wireless communication module), in the UCS2 coded data according to above-mentioned three kinds of coded formats coding in reading SIM card, need to do different UCS2 decoding processing to obtain UCS2 data in the SIM card at different module application end software, module application end 1 for example shown in Figure 1, module application end 2 need be provided with decoding program 1 and decoding program 2 respectively.If these decoding programs that are used for the UCS2 coded data are integrated into the software of wireless communication module, then can be so that the module application end saves loaded down with trivial details UCS2 decode procedure, unnecessaryly write different decoding programs according to the difference of module application end program again, further, only need to use single AT to order the name that obtains in the SIM card, and needn't consider different coded formats again.Can make things convenient for the exploitation of the upper application software of using wireless communication module so greatly, also can improve the versatility of wireless communication module simultaneously.
Decoding device embodiment with reference to figure 2 UCS2 coded datas of the present invention forms schematic diagram, mainly comprise acquisition module 21 and decoder module 22, wherein acquisition module 21 is arranged in the wireless communication module, is mainly used in the control command that sends according to the module application end and obtains UCS2 coded data in the SIM card; And decoder module 22 also is arranged in the wireless communication module, is mainly used in the UCS2 coded data that acquisition module is obtained from SIM card and decodes.
With reference to figure 3, specify described decoder module 22, by aforementioned description to the UCS2 coded system, UCS2 coded data in the SIM card adopts three kinds of coding methods, therefore, decoder module 22 of the present invention also need comprise the respective handling module of handling above-mentioned three kinds of coded systems, and is concrete, and described decoder module 22 comprises: first decoding process module 221, second decoding process module 222, the 3rd decoding process module 223 and parsing module 224.
According to above-mentioned UCS2 coded system, first decoding process module 221 carries out following decoding processing described in the present embodiment: if the initial character string of the UCS2 coded data of SIM card output is ' 80 ', then the UCS2 coded data of SIM card output is exported according to the tentation data form;
Second decoding process module 222 carries out following decoding processing: if the initial character string of the UCS2 coded data of SIM card output is ' 81 ', the UCS2 coded data of order reading SIM card output then, and whether the 8th of judging the 4th Octet that Octet is later is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 4th Octet and later Octet first to the 7th, otherwise, add that with first side-play amount of the 4th Octet and later Octet the basic pointer of the 3rd Octet correspondence obtains corresponding 16 characters and exports according to the tentation data form to the 7th correspondence;
The 3rd decoding process module 223 carries out following decoding processing: if the initial character string is ' 82 ', the UCS2 coded data of order reading SIM card output then, and whether the 8th of judging the 5th Octet that Octet is later is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 5th Octet and later Octet first to the 7th, otherwise, add that with first side-play amount of the 5th Octet and later Octet basic pointer that the 3rd Octet and the 4th Octet form obtains corresponding 16 characters and exports according to the tentation data form to the 7th correspondence;
Parsing module 224 is mainly used in the initial character string of the UCS coded data of resolving SIM card output and carries out corresponding decoding processing to indicate corresponding decoding process module.Concrete, if the initial character string of the UCS2 coded data of SIM card output is ' 80 ', then indicate first decoding process module to handle;
If the initial character string of the UCS2 coded data of SIM card output is ' 81 ', then indicate second decoding process module to handle;
If the initial character string of the UCS2 coded data of SIM card output is ' 82 ', then indicate the 3rd decoding process module to handle.
Describe with the coding/decoding method of specific embodiment below UCS2 coded data of the present invention.
Fig. 4 is a kind of hardware environment schematic diagram that the coding/decoding method specific embodiment of UCS2 coded data of the present invention is used, (the control wireless communication module is finished the control section of the mobile communication terminal of radio communication for wireless communication module and main frame, can be mobile phone, PDA etc.) between depend on the transmitting-receiving that nine kinds of needles or three pins (being DB-9 or DB-3) serial communication interface carry out the AT order, battery in the motherboard provides power supply by power interface to wireless communication module, and the control signal interface is used for main frame and sends to wireless communication module and power on, reset or control signal such as power down.If wireless communication module is placed on the special-purpose interface board, can provide above-mentioned interface to wireless communication module by interface board, if when notebook/PC communicates by letter with wireless communication module, the then transmitting-receiving that can order by common nine kinds of needles or three needle serial port lines realization AT.
In the described hardware environment of Fig. 4, need to be used in the default wireless communication module UCS2 coded data of SIM card output is carried out decoding module, like this at the module application end by main frame to the wireless communication module sending controling instruction, AT when instruction for example, at first obtain UCS2 coded data in the SIM card according to described instruction; Wireless communication module starts described decoder module execution decoding processing then, and the UCS2 coded data of obtaining from SIM card is decoded.
With reference to the process of figure 5 explanation decodings, decoder module is reading of data from SIM card, resolves the initial character string (at step s41) of the UCS coded data of SIM card output then;
If described initial character string is ' 80 ', then carry out the first decoding processing mode (at step s42):
The UCS2 coded data of SIM card output is directly exported according to the tentation data form;
If described initial character string is ' 81 ', then carry out the second decoding processing mode (at step s43):
The UCS2 coded data of order reading SIM card output, and whether the 8th of judging the 4th Octet that Octet is later is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 4th Octet and later Octet first to the 7th, otherwise, add that with first side-play amount of the 4th Octet and later Octet the basic pointer of the 3rd Octet correspondence obtains corresponding 16 characters and exports according to the tentation data form to the 7th correspondence;
If the initial character string is ' 82 ', then carry out the 3rd decoding processing mode (at step s44):
The UCS2 coded data of order reading SIM card output, and whether the 8th of judging the 5th Octet and later Octet is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 5th Octet and later Octet first to the 7th, otherwise, add that with first side-play amount of the 5th Octet and later Octet basic pointer that the 3rd Octet and the 4th Octet form obtains corresponding 16 characters and exports according to the tentation data form to the 7th correspondence.
The tentation data form is preferably the unicode character described in the above-mentioned decoding processing, during actual treatment, also can be changed to other data format output, owing to be prior art well-known to those skilled in the art, repeats no more here.
Illustrate below, with reference to figure 6, the module application end sends AT+CSCS=to wireless communication module " UCS2 ", AT+CPBR=1,1 order, require telephone directory data in the wireless communication module reading SIM card, described order sends wireless communication module to by serial ports, wireless communication module is after receiving described order, begin to read corresponding UCS2 coded data from SIM card, the UCS2 coded data of SIM card output is at first carried out decoding processing by decoder module in wireless communication module, as shown in Figure 6, the data of SIM card output as shown in Table 4
Table four
Octet 1 Octet 2 Octet 3 Octet 4 Octet 5 Octet 6 Octet 7 Octet 8 Octet 9
‘81’ ‘03’ ‘E4’ ‘B8’ ‘B8’ ‘FF’ ‘FF’ ‘FF’ ‘FF’
Dateout initial character string is ' 81 ', decoder module is carried out the second decoding processing mode, carrying out corresponding decoding by second decoding process module handles, because Octet3 ' E4 ' obtains low eight of basic pointer 0111001000000000 and adds Octet4 ' B8 ' promptly 10111000, the result is 0111001010111000 to be exactly hexadecimal 7238, be written in the array of output, the array of output as shown in Table 5
Table five
Octet 1 Octet 2 Octet 3 Octet 4
‘72’ ‘38’ ‘72’ ‘38’
" father " of the corresponding Chinese of the character string of Shu Chu output " 72387238 " at last.
To sum up, the decoding of UCS2 coded data of the present invention is for the module application end, input is unified with output, promptly unified AT order, uniform data format output, not be used in the module application end and consider to write different decoding programs again and realize same function, this has strengthened the portability of module application end program.
Simultaneously, owing to needn't consider different coded formats again at the module application end.Greatly facilitate the exploitation of the upper application software of using wireless communication module like this, also improve the versatility of wireless communication module simultaneously.
The above only is a possible embodiments of the present invention, and is non-so promptly limit to interest field of the present invention, and the equivalence that all utilizations specification of the present invention and accompanying drawing content are done changes, and all reason is with being contained in the claim scope of the present invention.

Claims (8)

1, a kind of coding/decoding method is applied in the mobile communication terminal, and described mobile communication terminal includes wireless communication module and corresponding module application end, it is characterized in that, may further comprise the steps:
Foresee steps: be used for the non-English of subscriber identification module SIM card output in the default wireless communication module or comprise that at least 16 English general multibyte coded character set UCS2 coded datas carry out decoding module;
Obtaining step: wireless communication module obtains UCS2 coded data in the SIM card according to the control command of module application end;
Decoding step: wireless communication module starts described decoder module described UCS2 coded data is carried out decoding processing;
Described decoding processing comprises:
If the initial character string of described UCS2 coded data is ' 80 ', then carry out the first decoding processing mode:
The UCS2 coded data of SIM card output is exported according to the tentation data form;
If the initial character string of described UCS2 coded data is ' 81 ', then carry out the second decoding processing mode:
The UCS2 coded data of order reading SIM card output, and whether the 8th of judging the 4th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 4th eight bit byte and later eight bit byte first to the 7th, otherwise, then add that with first side-play amount of the 4th eight bit byte and later eight bit byte the basic pointer of the 3rd eight bit byte correspondence obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence;
If the initial character string of described UCS2 coded data is ' 82 ', then carry out the 3rd decoding processing mode:
The UCS2 coded data of order reading SIM card output, and whether the 8th of judging the 5th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 5th eight bit byte and later eight bit byte first to the 7th, otherwise, add that with first side-play amount of the 5th eight bit byte and later eight bit byte basic pointer that the 3rd eight bit byte and the 4th eight bit byte are formed obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence.
2, coding/decoding method according to claim 1 is characterized in that, described tentation data form is the unicode character.
3, coding/decoding method according to claim 2 is characterized in that, described control command is the AT instruction.
According to each described coding/decoding method of claim 1-3, it is characterized in that 4, described UCS2 coded data is the name of storing in the SIM card telephone directory.
5, a kind of decoding device is applied in the mobile communication terminal, and described mobile communication terminal includes wireless communication module and module application end, it is characterized in that, comprising:
Acquisition module is arranged in the wireless communication module, is used for obtaining the non-English of subscriber identification module SIM card or comprising 16 English general multibyte coded character set UCS2 coded datas at least according to the control command that the module application end sends;
Decoder module is arranged in the wireless communication module, is used for the UCS2 coded data that acquisition module obtains from SIM card is decoded;
Described decoder module specifically comprises:
First decoding process module is used for the UCS2 coded data of SIM card output is directly exported according to the tentation data form;
Second decoding process module, the UCS2 coded data that is used for the output of order reading SIM card, and whether the 8th of judging the 4th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then obtain the respective symbols in the corresponding GSM character list and export according to the tentation data form by the 4th eight bit byte and later eight bit byte first to the 7th, otherwise, add that with first side-play amount of the 4th eight bit byte and later eight bit byte the basic pointer of the 3rd eight bit byte correspondence obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence;
The 3rd decoding process module, the UCS2 coded data that is used for the output of order reading SIM card, and whether the 8th of judging the 5th eight bit byte and later eight bit byte is ' 0 ', if ' 0 ', then first to the 7th of the 5th eight bit byte and later eight bit byte obtains the respective symbols in the corresponding GSM character list and exports according to the tentation data form, otherwise, add that with first side-play amount of the 5th eight bit byte and later eight bit byte basic pointer that the 3rd eight bit byte and the 4th eight bit byte are formed obtains corresponding 16 character strings and exports according to the tentation data form to the 7th correspondence;
Parsing module is used to resolve the initial character string of the UCS coded data of SIM card output, if the initial character string of the UCS2 coded data of SIM card output be ' 80 ', then indicates the processing of first decoding process module;
If the initial character string of the UCS2 coded data of SIM card output is ' 81 ', then indicate second decoding process module to handle;
If the initial character string of the UCS2 coded data of SIM card output is ' 82 ', then indicate the 3rd decoding process module to handle;
6, the decoding device of UCS2 coded data according to claim 5 is characterized in that, described tentation data form is the unicode character.
7, the decoding device of UCS2 coded data according to claim 5 is characterized in that, described control command is the AT instruction.
According to the decoding device of claim 5,6 or 7 described UCS2 coded datas, it is characterized in that 8, described UCS2 coded data is the name of storing in the SIM card telephone directory.
CNB2004100086916A 2004-03-16 2004-03-16 Decoding method and apparatus Expired - Fee Related CN100505791C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100086916A CN100505791C (en) 2004-03-16 2004-03-16 Decoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100086916A CN100505791C (en) 2004-03-16 2004-03-16 Decoding method and apparatus

Publications (2)

Publication Number Publication Date
CN1671157A CN1671157A (en) 2005-09-21
CN100505791C true CN100505791C (en) 2009-06-24

Family

ID=35042212

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100086916A Expired - Fee Related CN100505791C (en) 2004-03-16 2004-03-16 Decoding method and apparatus

Country Status (1)

Country Link
CN (1) CN100505791C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621771B (en) * 2009-08-12 2012-04-11 中兴通讯股份有限公司 Method, device and system for processing short message encoding
CN102647701B (en) * 2012-03-28 2016-02-10 惠州Tcl移动通信有限公司 A kind of method and device upgrading the application message of mobile terminal

Also Published As

Publication number Publication date
CN1671157A (en) 2005-09-21

Similar Documents

Publication Publication Date Title
CN1732426A (en) Predictive text entry and data compression method for a mobile communication terminal
CN100425081C (en) Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof
CN101345952B (en) Data storing and reading method, device and system for client identification card
CN101488195B (en) Method, apparatus and terminal for declaring data information type in two-dimensional code
CN102137353A (en) Short message transmission mode based on two-dimension code
US8473280B2 (en) System and methods for cost-effective bilingual texting
CN1929654A (en) Information directly interactive method for mobile communication subscriber identification recognition card and supporting apparatus thereof
EP2442256B1 (en) Method of encoding and decoding text on a matrix code symbol
CN1863235A (en) Method for grouping yellow pages contact person record in user identification card
CN1335703A (en) Hand written character input method for mobile telephone and mobile phone with said function
CN101621771B (en) Method, device and system for processing short message encoding
US6271865B1 (en) Cellular phone handset which can display special characters
CN100505791C (en) Decoding method and apparatus
CN1192658C (en) Character display technique
CN103297183A (en) Data communication method and device
CN101599264A (en) The method of displaying characters on mobile terminal and relevant apparatus
CN102262520A (en) Test display method based on built-in platform mobile phone and applied device thereof
CN102014352B (en) A kind of conversion method of short message coded format
CN1127276C (en) Handwriting inputting, sending and receiving method and system for mobile terminal
CN114070470A (en) Encoding and decoding method and device
CN102073983A (en) Method and device for optimization processing of PNG (portable network graphic) image resources
CN101557580A (en) Data processing method and system
CN112383888A (en) Short message system, method and equipment
US8090362B2 (en) Mobile electronic device and method for displaying characters on a bluetooth device
US8970404B2 (en) Communication device and text coding and decoding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090624

Termination date: 20210316