CN106604246A - Method and system for setting the short message coding range based on national codes and mobile terminal - Google Patents
Method and system for setting the short message coding range based on national codes and mobile terminal Download PDFInfo
- Publication number
- CN106604246A CN106604246A CN201611132129.3A CN201611132129A CN106604246A CN 106604246 A CN106604246 A CN 106604246A CN 201611132129 A CN201611132129 A CN 201611132129A CN 106604246 A CN106604246 A CN 106604246A
- Authority
- CN
- China
- Prior art keywords
- gsm7
- short message
- default
- mcc
- mobile terminal
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/186—Processing of subscriber group data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Abstract
The invention discloses a method and system for setting the short message coding range based on national codes and a mobile terminal. The method includes reading IMSI from a USIM card and extracting MCC from the IMSI when it is detected that the USIM card is inserted into the mobile terminal; and setting the preset GSM7 default code replacement table and the GSM7 extension code replacement table combination corresponding to the MCC in the mobile terminal system. The range of the GSM7 default code replacement table and the GSM7 extension code replacement table needing to be supported by the mobile terminal is determined through the mobile natural codes of the USIM card in the mobile terminal, so that the problem that the interface stuck is formed by too much code iteration frequency when a basic table and an extension table set are optimally combined during the user's short message input, and the grading risk and the error probability in the software modification process caused by the software modification because different countries need to support different GSM7 default code replacement tables and the GSM7 extension code replacement tables can be effectively prevented.
Description
Technical field
The present invention relates to intelligent terminal's applied technical field, more particularly to it is a kind of based on national code setting short message encoding
The method of scope, system and mobile terminal.
Background technology
With the evolution of 3GPP, in order to adapt to some national character set, SMS is encoded also in and then evolution, such as in agreement
Have more to the mechanism of SMS research contents in the version Rel-13 in 2015 of 3GPP TS 23.038 and 3GPP TS 23.040
Renewal.Wherein, the 7 bit Default Alphabet of GSM for referring in 3GPP agreements, the default coding schedules of abbreviation GSM7, GSM
7 bit default alphabet extension table, abbreviation GSM7 extended coding tables;And Locking shift
The corresponding form set National Language Locking Shift Tables of mechanism mechanism, abbreviation GSM7 lack
Save coding substitution table set, the corresponding form set National Language of Single shift mechanism mechanism
Single Shift Tables, abbreviation GSM7 extended coding substitution table set.The default coding schedules of GSM7 and the default codings of GSM7 are replaced
Change table set and constitute a set, referred to as base table set, GSM7 extended codings table and GSM7 extended coding substitution table collection together
One set of composition, referred to as expansion table set are unified.
In short message encoding, the table in an essential base table set, the table in an optional expansion table set.General meeting
The default coding schedules of prioritizing selection GSM7 and GSM7 extended coding tables.And if the character of user input is beyond the default codings of GSM7
The scope of table and GSM7 extended coding tables, then need from mobile terminal(Such as mobile phone)Upper preset GSM7 is default to encode substitution table collection
Close and the set of GSM7 extended coding substitution tables obtains optimum combination, it is most in data is activation with the process of guarantee agreement data length
Amount takes Internet resources less.
In prior art, the support collection of the default coding substitution tables of GSM7 and GSM7 extended coding substitution tables is combined into cell phone manufacturer
Customized.Manufacturer is by mobile terminal(Such as mobile phone)When selling to client, the default volumes of GSM7 that the preset user of meeting can select
Code substitution table and GSM7 extended coding substitution tables.But, also problems with cannot be solved, i.e., user is (outstanding in input process
Which is long input content) when carrying out base table set and expansion table set optimum combination, code iterationses cross multiform
Into interface interim card;And sell to some national mobile terminals(Such as mobile phone), as the country advises that the GSM7 for supporting is default
Coding substitution table is different with GSM7 extended coding substitution tables, therefore, often sell to certain country, it is necessary to which coding default to GSM7 is replaced
The support for changing table and GSM7 extended coding substitution tables carries out software modification, increased what cell phone manufacturer was upgraded to mobile phone again
Risk, while also increasing error probability of the manufacturer in technical staff during software modification.
Therefore, prior art has yet to be improved and developed.
The content of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of arrange short message encoding based on national code
The method of scope, system and mobile terminal, it is intended to solve in prior art user in note input process base table set and
When expansion table set carries out optimum combination, the interface interim card that code iterationses are excessively formed, and because country variant supports different
The default coding substitution tables of GSM7 and the software modification that carried out of GSM7 extended coding substitution tables, the upgrading risk brought and software
Error probability during modification.
Technical scheme is as follows:
A kind of method that short message encoding scope is arranged based on national code, wherein, the method comprising the steps of:
A, when mobile terminal insertion usim card is detected, then read IMSI from usim card, and MCC extracted from IMSI;Wherein
The IMSI is international mobile subscriber identity;The MCC is Mobile Country Code MCC;
The default coding substitution table of B, the GSM7 corresponding with the MCC that will prestore and GSM7 extended codings are replaced table pack and are imported to
In the mobile terminal system.
The method that short message encoding scope is arranged based on national code, wherein, step B is specifically included:
B1, the MCC of the MCC and support GSM7 that prestores default coding substitution table and GSM7 extended coding substitution tables is compared
It is right, and find out the default coding substitution tables of GSM7 corresponding with the MCC and GSM7 extended codings replacement table pack;
B2, the GSM7 for finding default coding substitution table and GSM7 extended codings are replaced into table pack import and arrange to the movement
In terminal system.
The method that short message encoding scope is arranged based on national code, wherein, the default coding substitution table of the GSM7 and
The combination of GSM7 extended coding substitution tables at least 13.
The method that short message encoding scope is arranged based on national code, wherein, also include:
C, when user edits and sends note, then obtain the default coding substitution tables and GSM7 extended coding substitution tables of the GSM7
Combination is encoded.
The method that short message encoding scope is arranged based on national code, wherein, step C is specifically included:
C1, when all characters of the short message content that user edits be included in GSM7 it is default coding substitution table in, then directly use
The default substitution tables that encode of the GSM7 are encoded;
C2, when the short message content that user edits have character be not included in GSM7 it is default coding substitution table in when, then using described
GSM7 extended codings substitution table is replaced the default coding substitution tables of the GSM7 and is encoded.
A kind of system that short message encoding scope is arranged based on national code, wherein, including:
Detection and extraction module, for when detect mobile terminal insertion usim card when, then from usim card read IMSI, and from
MCC is extracted in IMSI;
Setup module, for the GSM7 corresponding with the Mobile Country Code MCC MCC that will prestore it is default coding substitution table and GSM7 expand
Exhibition coding is replaced table pack and is imported in the mobile terminal system.
The system that short message encoding scope is arranged based on national code, wherein, the setup module is specifically included:
Compare searching unit, for the MCC and support GSM7 that prestores default coding substitution table and GSM7 extended codings are replaced
The MCC for changing table compares, and finds out the default coding substitution tables of GSM7 corresponding with the MCC and the replacement of GSM7 extended codings
Table pack;
Setting unit, for by it is the GSM7 for finding default coding substitution table and GSM7 extended codings replace table pack import arrange
To in the mobile terminal system.
The system that short message encoding scope is arranged based on national code, wherein, also include:
Obtain and coding module, for when user edit and sends note, then obtain the GSM7 it is default encode substitution table with
GSM7 extended codings are replaced table pack and are encoded.
The system that short message encoding scope is arranged based on national code, wherein, the acquisition and coding module are specifically included:
First coding unit, all characters for working as the short message content that user edits are included in the default coding substitution tables of GSM7
In, then directly encoded using the default coding substitution tables of the GSM7;
The character that second coding unit, the short message content for editing as user have is not included in the default coding substitution tables of GSM7
In, then the default coding substitution tables of the GSM7 are replaced using the GSM7 extended codings substitution table encoded.
A kind of mobile terminal that short message encoding scope is set based on national code, wherein, including arbitrary above-mentioned based on country
The system that code arranges short message encoding scope.
The method that short message encoding scope is arranged based on national code of the present invention, method include:When detecting mobile terminal
During insertion usim card, then IMSI is read from usim card, and MCC is extracted from IMSI;Wherein, the IMSI is international mobile subscriber
Identification code;The MCC is Mobile Country Code MCC;The default coding substitution tables of the GSM7 corresponding with the MCC that will prestore and GSM7 expand
Exhibition coding is replaced table pack and is imported in the mobile terminal system.Movement of the present invention by the usim card of insertion mobile terminal
National code, determines the default models for encoding substitution table and GSM7 extended coding substitution tables of GSM7 that the mobile terminal need to be supported
Enclose, the default coding substitution tables of the GSM7 corresponding with MCC that will be prestored and GSM7 extended codings are replaced table pack and arrange described
In mobile terminal system, in effectively prevent prior art user in short message editing input process, base table set and extension
When table set carries out optimum combination, the interface interim card that code iterationses are excessively formed, and because country variant need to support different
The software modification carried out by the default coding substitution tables of GSM7 and GSM7 extended coding substitution tables, the upgrading risk brought and software are repaiied
Error probability during changing.
Description of the drawings
Fig. 1 is the flow chart of the method preferred embodiment that short message encoding scope is arranged based on national code of the present invention.
Fig. 2 is by the GSM7 for prestoring default coding in the method that short message encoding scope is arranged based on national code of the present invention
Substitution table and GSM7 extended codings are replaced table pack and import setting particular flow sheet in the mobile terminal system.
Fig. 3 is the structured flowchart of the system preferred embodiment that short message encoding scope is arranged based on national code of the present invention.
Specific embodiment
The present invention provides a kind of method, system and mobile terminal that short message encoding scope is arranged based on national code, to make this
The purpose of invention, technical scheme and effect are clearer, clear and definite, and the present invention is described in more detail below.It should be appreciated that this
The described specific embodiment in place is not intended to limit the present invention only to explain the present invention.
127 characters, and 1 escape are contained in 7 bit Default Alphabet of GSM in 3GPP agreements.
Wherein, 0x1B is used for the character being introduced in 7 bit default alphabet extension table of GSM, if existed
Occurs 0x1B in message content, then, equivalent to latter character of escape, latter character is according to 7 bit of GSM for the character
Definition in default alphabet extension table is any character to determine.Generally, when user moves
Dynamic terminal(Such as mobile phone)During middle input English note, system can use this coded system, and so, a short message content is at most
160 English characters can be included.
And in the evolution of technology, 3GPP 23.038 expanded Single shift mechanism and
Locking shift mechanism mechanism.Single shift mechanism are to replace " 7 bit default of GSM
A kind of mechanism of alphabet extension table ", that is, occur 0x1B in message content, character thereafter not basis
" 7 bit default alphabet extension table of GSM " parsing, but according to header in User Data
The table that part indicates is parsing.The corresponding form collection of Single shift mechanism mechanism is combined into " National
Language Single Shift Tables ", abbreviated here as GSM7 extended coding substitution table set.
Locking shift mechanism are a kind of mechanism for replacing " 7 bit Default Alphabet of GSM ",
Namely the 7bit characters in message content do not use " 7 bit Default Alphabet of GSM ", but according to User
The table that header parts indicate in Data is parsing.The corresponding form collection of Locking shift mechanism mechanism is combined into "
National Language Locking Shift Tables ", abbreviated here as GSM7 default coding substitution table set.
Such as in Turkey, it is assumed that occur in the character of user input more " Turkish National Language
In Locking Shift Table " forms, rather than " 7 bit Default Alphabet of GSM " in, then, so that it may so that
With " Turkish National Language Locking Shift Table " replacing " 7 bit Default of GSM
Alphabet ", takes more channel resources in the transmission to reduce user inputs character.It is because if not replacing, then necessary
Switch to UCS2 codings, UCS2 encodes a character and takes 2 bytes, and " 7 bit Default Alphabet of GSM " and "
Character of Turkish National Language Locking Shift Table " only takes up 7 bits.
In short message encoding, the table in an essential base table set, the table in an optional expansion table set.General meeting
The default coding schedules of prioritizing selection GSM7 and GSM7 extended coding tables.And if the character of user input is beyond the default codings of GSM7
The scope of table and GSM7 extended coding tables, then need from mobile terminal(Such as mobile phone)Upper preset GSM7 is default to encode substitution table collection
Close and the set of GSM7 extended coding substitution tables obtains optimum combination, it is most in data is activation with the process of guarantee agreement data length
Amount takes Internet resources less.What the mainstream speech that a general country uses was to determine, therefore, we can be main by the country
The code set for flowing language to confirm to support needed for the mobile terminal.
Fig. 1 is referred to, Fig. 1 is the method preferred embodiment that short message encoding scope is arranged based on national code of the present invention
Flow chart.As shown in figure 1, which comprises the following steps:
Step S100, when detect mobile terminal insertion usim card when, then from usim card read IMSI, and from IMSI extract
MCC;Wherein, the IMSI is international mobile subscriber identity(International mobile subscriber is recognized
Code)Abbreviation;The MCC is Mobile Country Code(Mobile Country Code MCC)Abbreviation.
The default coding substitution table of step S200, the GSM7 corresponding with the MCC that will prestore and GSM7 extended codings are replaced
Table pack is imported in the mobile terminal system.
Further, the combination at least 13 of the default coding substitution tables of the GSM7 and GSM7 extended coding substitution tables.
So far, base table has 12 kinds can replace " 7 bit Default Alphabet of GSM " table, expansion table have 13 kinds can be with
Replace " 7 bit default alphabet extension table of GSM " table, therefore, the default codings of the GSM7 is replaced
The combination of table and GSM7 extended coding substitution tables at least 13.As shown in table 1, the base table is corresponded with expansion table.
After mobile terminal-opening inserts usim card, you can according to the MCC on the usim card of insertion, determine
The default coding substitution tables of GSM7 held and the scope of GSM7 extended coding substitution tables.
Table 1
Base table | Expansion table |
GSM 7 bit Default Alphabet | GSM 7 bit default alphabet extension table |
Turkish National Language Single Shift Table | Turkish National Language Single Shift Table |
Spanish National Language Single Shift Table | |
Portuguese National Language Locking Shift Table | Portuguese National Language Single Shift Table |
Bengali National Language Locking Shift Table | Bengali National Language Single Shift Table |
Gujarati National Language Locking Shift Table | Gujarati National Language Single Shift Table |
Hindi National Language Locking Shift Table | Hindi National Language Single Shift Table |
Kannada National Language Locking Shift Table | Kannada National Language Single Shift Table |
Malayalam National Language Locking Shift Table | Malayalam National Language Single Shift Table |
Oriya National Language Locking Shift Table | Oriya National Language Single Shift Table |
Punjabi National Language Locking Shift Table | Punjabi National Language Single Shift Table |
Tamil National Language Locking Shift Table | Tamil National Language Single Shift Table |
Telugu National Language Locking Shift Table | Telugu National Language Single Shift Table |
Urdu National Language Locking Shift Table | Urdu National Language Single Shift Table |
In prior art, scheme of the acquiescence using mobile terminal factory pre-set, but this needs manufacturer issuing mobile terminal to certain
Before individual country, just the default coding substitution tables of GSM7 and GSM7 extended coding substitution tables according to country's suggestion support, sets
Put the default coding substitution tables of GSM7 and GSM7 extended coding substitution tables that the country need to support.If such as mobile terminal batch
Secondary shipment then need to specify support in mobile phone to Turkey:Turkish National Language Locking Shift
Table, Turkish National Language Single Shift Table;If wanting shipment to Spain, need
Specify in mobile phone and support:Spanish National Language Single Shift Table.This specified support
Code set is that manufacturer is preset before dispatching from the factory.But, in prior art, if when manufacturer's delivery is national to one, finding should
State does not reach expected shipment amount, need this part mobile phone re-send to another it is national when, it is necessary to GSM7 is lacked
The support for saving coding substitution table and GSM7 extended coding substitution tables carries out software modification.And technical scheme is caused in handss
It is not required to the support of the default coding substitution tables of GSM7 and GSM7 extended coding substitution tables is carried out for concrete certain country when machine dispatches from the factory
It is preset, but coding substitution table default with GSM7 and GSM7 extended codings are replaced in the mobile terminal system that table pack prestores,
In this manner it is possible to the default coding substitution tables of GSM7 and GSM7 extended coding substitution tables of locality is supported, so as to reduce technology, people
Power puts into the risk upgraded to mobile phone with the error probability during software modification and cell phone manufacturer again.
Further, the method for arranging short message encoding scope based on national code also comprises the following steps:When user compiles
When collecting and sending note, then obtain the default coding substitution tables of the GSM7 and GSM7 extended codings are replaced table pack and encoded.
Specifically, when all characters of the short message content that user edits are included in the default coding substitution tables of GSM7, then directly use
The default substitution tables that encode of the GSM7 are encoded;When the short message content that user edits has character to be not included in the default codings of GSM7
When in substitution table, then the default coding substitution tables of the GSM7 are replaced using the GSM7 extended codings substitution table and encoded.
Further, as shown in Fig. 2 by the GSM7 for prestoring default coding substitution table and GSM7 extensions in step S200
Coding is replaced table pack setting and is specifically included in the mobile terminal system:
Step S201, by the MCC of the MCC and support GSM7 that prestores default coding substitution table and GSM7 extended coding substitution tables
Compare, and find out the default coding substitution tables of GSM7 corresponding with the MCC and GSM7 extended codings replacement table pack;
Step S202, by it is the GSM7 for finding default coding substitution table and GSM7 extended codings replace table pack import arrange to institute
State in mobile terminal system.
In order that present disclosure becomes apparent from, it is exemplified below.
Usim card is inserted after start, when usim card is detected, is read and IMSI is therefrom extracted its MCC, by the MCC and
Prestore support GSM7 it is default coding substitution table and GSM7 extended coding substitution tables national code compare;
Such as, by taking Turkey and Brazil as an example, our first following data preset in mobile phone:
< mcc=' 286 ', single_shift_tables=" 1 ", locking_shift_tables=" 1 ">
< mcc=' 724 ', single_shift_tables=" 3 ", locking_shift_tables=" 3 ">
Wherein, mcc=' 286 ' Turkey is represented, mcc=' 724 is represented ' Brazil, and single_shift_tables represents support
GSM7 extended coding substitution tables, locking_shift_tables represents the default coding substitution tables of the GSM7 of support.single_
Shift_tables and locking_shift_tables numerology below is following, and (3GPP 23.038 has corresponding relation, root
According to the renewal of 23.038 later releases of 3GPP, the digital number should may proceed to increase): 0 - reserved
1 - Turkish
2 - Spanish (single shift table only)
3 - Portuguese
4 - Bengali
5 - Gujarati
6 - Hindi
7 - Kannada
8 - Malayalam
9 - Oriya
10 - Punjabi
11 - Tamil
12 - Telugu
13 - Urdu
Then, coding substitution table default with national code identical GSM7 and GSM7 extended coding substitution tables are found.
If mcc=' 286 ', then it represents that for Turkey, and single_shift_tables=here " 1 " and locking_
Shift_tables=" 1 ", then it represents that support Turkish National Language single Shift Table and
Turkish National Language Locking Shift Table。
Finally, the GSM7 for finding default coding substitution table and GSM7 extended codings are replaced into table pack and system is set to
In.
As Turkish National Language single Shift Table and Turkish National
The support of Language Locking Shift Table is arranged in system, when user edits and sends note, then can be with
Encoded using the two forms.
For how two forms are replaced, have for an example for using scene here, such as sell to osmanli mobile whole
End(Such as mobile phone), when the short message content that user edits is:During abcdefgh, then these characters are included in 7 bit of GSM
In Default Alphabet, then directly using the form;But, when the short message content that user edits is:
abcdefghWhen, in the GSM7bitDefault Alphabet and not comprising the two characters, now, if institute
State mobile terminal(Such as mobile phone)Turkish National Language Locking Shift Table are supported, and supports to make
The form is used, then due to abcdefghAll of character is all in the form, then now system is just automatically by Turkish
National Language Locking Shift Table replacing 7 bit Default Alphabet forms of GSM, with
Guarantee the protocol data length used by the character being input into, so as to take Internet resources in data is activation less as far as possible.If institute
State mobile terminal(Such as mobile phone)Turkish National Language Locking Shift Table are not supported, then just
Must be with UCS2 come coded string abcdefgh, and in UCS2, each character takes 2 bytes, considerably increases shared
Internet resources.
It can be seen that, the present invention is replaced by the default coding substitution tables of the GSM7 corresponding with MCC that will prestore and GSM7 extended codings
Change table pack to arrange in the mobile terminal system, effectively prevent user's base table collection in input process in prior art
When conjunction and expansion table set carry out optimum combination, the interface interim card that code iterationses are excessively formed, while avoiding because of difference
Country supports the software modification carried out by the default coding substitution tables of different GSM7 and GSM7 extended coding substitution tables, the liter for bringing
Error probability during level risk and software modification.
Based on said method, the present invention also provides a kind of system for arranging short message encoding scope based on national code, such as Fig. 3 institutes
Show, which includes:
Detection and extraction module 100, for when detect mobile terminal insertion usim card when, then from usim card read IMSI, and
MCC is extracted from IMSI;As detailed above.
Setup module 200, for the GSM7 corresponding with the MCC that will prestore it is default coding substitution table and GSM7 extension compile
Code is replaced table pack and is arranged in the mobile terminal system;As detailed above.
The system that short message encoding scope is arranged based on national code, wherein, the step setup module 200 is concrete to wrap
Include:
Compare searching unit, for the MCC and support GSM7 that prestores default coding substitution table and GSM7 extended codings are replaced
The Mobile Country Code MCC MCC for changing table compares, and finds out the default coding substitution tables of GSM7 corresponding with the MCC and GSM7 expansions
Exhibition coding replaces table pack;As detailed above.
Setting unit, for by it is the GSM7 for finding default coding substitution table and GSM7 extended codings replace table pack import
Arrange in the mobile terminal system;As detailed above.
The system that short message encoding scope is arranged based on national code, wherein, also include:
Obtain and coding module, for when user edit and sends note, then obtain the GSM7 it is default encode substitution table with
GSM7 extended codings are replaced table pack and are encoded.
The system that short message encoding scope is arranged based on national code, wherein, the acquisition and coding module are specifically included:
First coding unit, all characters for working as the short message content that user edits are included in the default coding substitution tables of GSM7
In, then directly encoded using the default coding substitution tables of the GSM7;As detailed above.
The character that second coding unit, the short message content for editing as user have is not included in the default codings of GSM7 and replaces
In table, then the default coding substitution table tables of the GSM7 are replaced using the GSM7 extended codings substitution table and encoded;Specifically such as
It is upper described.
The present invention also provides a kind of mobile terminal that short message encoding scope is arranged based on national code, wherein, including as above institute
The system that short message encoding scope is arranged based on national code stated.
It should be noted that for usim card is arranged the method for short message encoding scope, is based on national code in the present invention
System and its mobile terminal are equally applicable to SIM.
In sum, a kind of method for arranging short message encoding scope based on national code of the present invention, method include:When
When detecting mobile terminal insertion usim card, then IMSI is read from usim card, and Mobile Country Code MCC MCC is extracted from IMSI;Will
The default coding substitution tables of GSM7 corresponding with the MCC for prestoring and GSM7 extended codings are replaced table pack and import to the movement
In terminal system.By the Mobile Country Code MCC of the usim card of insertion mobile terminal, the present invention determines that the mobile terminal need to be propped up
The default coding substitution tables of GSM7 held and the scope of GSM7 extended coding substitution tables, what is will prestored is corresponding with the MCC
The default coding substitution tables of GSM7 and GSM7 extended codings are replaced table pack and are arranged in the mobile terminal system, effectively prevent
In prior art, user is in short message editing input process, when base table set and expansion table set carry out optimum combination, code
The interface interim card that iterationses are excessively formed, and because country variant need to support that the default coding substitution tables of different GSM7 and GSM7 expand
The software modification carried out by exhibition coding substitution table, the error probability during the upgrading risk brought and software modification.
One of ordinary skill in the art will appreciate that all or part of flow process in above-described embodiment method, can be by
Computer program is completed come the hardware for instructing correlation, and described computer program can be stored in a computer read/write memory medium
In, program is upon execution, it may include the flow process of the embodiment of above-mentioned each method.Storage medium therein can for magnetic disc, CD,
Read-only memory(ROM)Or random access memory(RAM)Deng.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, and for those of ordinary skills, can
To be improved according to the above description or be converted, all these modifications and variations should all belong to the guarantor of claims of the present invention
Shield scope.
Claims (10)
1. it is a kind of based on national code arrange short message encoding scope method, it is characterised in that the method comprising the steps of:
A, when mobile terminal insertion usim card is detected, then read IMSI from usim card, and MCC extracted from IMSI;Wherein,
The IMSI is international mobile subscriber identity;The MCC is Mobile Country Code MCC;
The default coding substitution table of B, the GSM7 corresponding with the MCC that will prestore and GSM7 extended codings are replaced table pack setting and are arrived
In the mobile terminal system.
2. the method for short message encoding scope being arranged based on national code according to claim 1, it is characterised in that step B
Specifically include:
B1, the MCC of the MCC and support GSM7 that prestores default coding substitution table and GSM7 extended coding substitution tables is compared
It is right, and find out the default coding substitution tables of GSM7 corresponding with the MCC and GSM7 extended codings replacement table pack;
B2, the GSM7 for finding default coding substitution table and GSM7 extended codings are replaced into table pack import and arrange to the movement
In terminal system.
3. the method for short message encoding scope being arranged based on national code according to claim 1, it is characterised in that the GSM7 lacks
Save the combination at least 13 of coding substitution table and GSM7 extended coding substitution tables.
4. the method for short message encoding scope being arranged based on national code according to claim 1, it is characterised in that also include:
C, when user edits and sends note, then obtain the default coding substitution tables and GSM7 extended coding substitution tables of the GSM7
Combination is encoded.
5. the method for short message encoding scope being arranged based on national code according to claim 3, it is characterised in that step C
Specifically include:
C1, when all characters of the short message content that user edits be included in GSM7 it is default coding substitution table in, then directly use
The default substitution tables that encode of the GSM7 are encoded;
C2, when the short message content that user edits have character be not included in GSM7 it is default coding substitution table in when, then using described
GSM7 extended codings substitution table is replaced the default coding substitution tables of the GSM7 and is encoded.
6. it is a kind of based on national code arrange short message encoding scope system, it is characterised in that include:
Detection and extraction module, for when detect mobile terminal insertion usim card when, then from usim card read IMSI, and from
MCC is extracted in IMSI;
Setup module, for the GSM7 corresponding with the MCC that will prestore it is default coding substitution table and GSM7 extended codings replace
Table pack is arranged in the mobile terminal system.
7. the system for short message encoding scope being arranged based on national code according to claim 6, it is characterised in that the setting mould
Block is specifically included:
Compare searching unit, for the MCC and support GSM7 that prestores default coding substitution table and GSM7 extended codings are replaced
The MCC for changing table compares, and finds out the default coding substitution tables of GSM7 corresponding with the MCC and the replacement of GSM7 extended codings
Table pack;
Setting unit, for by it is the GSM7 for finding default coding substitution table and GSM7 extended codings replace table pack import arrange
To in the mobile terminal system.
8. the system for short message encoding scope being arranged based on national code according to claim 6, it is characterised in that also include:
Obtain and coding module, for when user edit and sends note, then obtain the GSM7 it is default encode substitution table with
GSM7 extended codings are replaced table pack and are encoded.
9. according to claim 8 based on national code arrange short message encoding scope system, it is characterised in that the acquisition and
Coding module is specifically included:
First coding unit, all characters for working as the short message content that user edits are included in the default coding substitution tables of GSM7
In, then directly encoded using the default coding substitution tables of the GSM7;
The character that second coding unit, the short message content for editing as user have is not included in the default coding substitution tables of GSM7
In, then the default coding substitution tables of the GSM7 are replaced using the GSM7 extended codings substitution table encoded.
10. it is a kind of based on national code arrange short message encoding scope mobile terminal, it is characterised in that include such as claim 6-9
The system that short message encoding scope is arranged based on national code described in any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611132129.3A CN106604246B (en) | 2016-12-09 | 2016-12-09 | Method, system and mobile terminal for setting short message coding range based on country code |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611132129.3A CN106604246B (en) | 2016-12-09 | 2016-12-09 | Method, system and mobile terminal for setting short message coding range based on country code |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106604246A true CN106604246A (en) | 2017-04-26 |
CN106604246B CN106604246B (en) | 2020-08-11 |
Family
ID=58598090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611132129.3A Active CN106604246B (en) | 2016-12-09 | 2016-12-09 | Method, system and mobile terminal for setting short message coding range based on country code |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106604246B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113242511A (en) * | 2021-05-06 | 2021-08-10 | 上海立可芯半导体科技有限公司 | Method for setting short message coding range based on attribution language, positioning information and short message content |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887411A (en) * | 2010-05-21 | 2010-11-17 | 华为终端有限公司 | Coding method and terminal |
CN101938719A (en) * | 2010-09-03 | 2011-01-05 | 中兴通讯股份有限公司 | Method for coding and decoding short messages (SMS), device and terminal |
CN102970661A (en) * | 2012-11-20 | 2013-03-13 | 中兴通讯股份有限公司 | Method and device for code conversion of short messages |
US20140206403A1 (en) * | 2013-01-22 | 2014-07-24 | Research In Motion Limited | Enhancing Short Message Service Addressing and Routing |
CN104010285A (en) * | 2014-06-18 | 2014-08-27 | 中国联合网络通信集团有限公司 | Short message filtering method and system, short message service center and terminal |
CN104348955A (en) * | 2013-07-30 | 2015-02-11 | 中兴通讯股份有限公司 | A method, device and terminal for determining user interface display language of SIM card |
CN105260284A (en) * | 2015-10-19 | 2016-01-20 | 上海斐讯数据通信技术有限公司 | Method for monitoring using behaviors of users of mobile terminals |
-
2016
- 2016-12-09 CN CN201611132129.3A patent/CN106604246B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101887411A (en) * | 2010-05-21 | 2010-11-17 | 华为终端有限公司 | Coding method and terminal |
CN101938719A (en) * | 2010-09-03 | 2011-01-05 | 中兴通讯股份有限公司 | Method for coding and decoding short messages (SMS), device and terminal |
CN102970661A (en) * | 2012-11-20 | 2013-03-13 | 中兴通讯股份有限公司 | Method and device for code conversion of short messages |
US20140206403A1 (en) * | 2013-01-22 | 2014-07-24 | Research In Motion Limited | Enhancing Short Message Service Addressing and Routing |
CN104348955A (en) * | 2013-07-30 | 2015-02-11 | 中兴通讯股份有限公司 | A method, device and terminal for determining user interface display language of SIM card |
CN104010285A (en) * | 2014-06-18 | 2014-08-27 | 中国联合网络通信集团有限公司 | Short message filtering method and system, short message service center and terminal |
CN105260284A (en) * | 2015-10-19 | 2016-01-20 | 上海斐讯数据通信技术有限公司 | Method for monitoring using behaviors of users of mobile terminals |
Non-Patent Citations (1)
Title |
---|
3GPP: "3rd Generation Partnership Project;Technical Specification Group Core Network and Terminals;Alphabets and language-specific information(Release 13)", 《3GPP TS 23.038 V13.0.0 》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113242511A (en) * | 2021-05-06 | 2021-08-10 | 上海立可芯半导体科技有限公司 | Method for setting short message coding range based on attribution language, positioning information and short message content |
Also Published As
Publication number | Publication date |
---|---|
CN106604246B (en) | 2020-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104750472B (en) | The resource package management method and device of a kind of terminal applies | |
CN103516576A (en) | Method for processing instant message and device thereof | |
CN101673199A (en) | Terminal parameter configuration server and automatic generating method of software interface thereof | |
CN1886976B (en) | Method and apparatus for performing actions on a wireless device using action lists and versioning | |
CN100545845C (en) | A kind of method that realizes any directory application management at telecom intelligent card | |
CN102065413A (en) | Database updating method and system, and base station self-starting method and system | |
CN101018374A (en) | Method for discriminating selected line information and the apparatus therefor | |
CN107295503A (en) | Determine method, storage medium and the mobile terminal of mobile terminal access way | |
CN100461800C (en) | Method for maintaining telephone book entry information and content conformity | |
CN102082873B (en) | Starting method, mobile terminal and user identification card | |
CN106604246A (en) | Method and system for setting the short message coding range based on national codes and mobile terminal | |
CN103164245B (en) | The method of application display language-specific and terminal | |
CN103369514A (en) | System refreshing method and system applicable to mobile terminals of different models | |
CN110659165A (en) | Multi-node server automatic testing method and device | |
CN109408076A (en) | A kind of APP batch hair version method, apparatus and system | |
CN106789236B (en) | A method of the FOTA remote online upgrading of fusion WiFiP2P | |
CN102272743A (en) | Management method for information of universal integrated circuit card and device thereof | |
CN101877071A (en) | Data updating method, device and system | |
CN106569986B (en) | Character string replacing method and device | |
CN109525698B (en) | SIM card identification configuration method, storage medium and mobile phone | |
CN105511851B (en) | A method of extension Android system resource load | |
CN105991727A (en) | Content pushing method and apparatus | |
CN104090779A (en) | Automatic configuration method and cloud compiling system | |
CN101296448B (en) | A kind of upgrade method of terminal software and device | |
CN103796193A (en) | Automatic PRI parameter configuration method and system of CDMA mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |