WO2013182079A1 - Short message transcoding method and device - Google Patents

Short message transcoding method and device Download PDF

Info

Publication number
WO2013182079A1
WO2013182079A1 PCT/CN2013/076968 CN2013076968W WO2013182079A1 WO 2013182079 A1 WO2013182079 A1 WO 2013182079A1 CN 2013076968 W CN2013076968 W CN 2013076968W WO 2013182079 A1 WO2013182079 A1 WO 2013182079A1
Authority
WO
WIPO (PCT)
Prior art keywords
code
short message
gsm
value
code value
Prior art date
Application number
PCT/CN2013/076968
Other languages
French (fr)
Chinese (zh)
Inventor
吴晓斌
钟建
孙立波
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013182079A1 publication Critical patent/WO2013182079A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Definitions

  • the present invention relates to the field of short message transmission technologies, and in particular, to a method and apparatus for encoding and converting short messages.
  • Code table conversion of short message content is a core technology of the short message center.
  • the short message center supports a variety of short message transmission protocols, such as the GSM0340 (Global System for Mobile Communications 0304) protocol and the SMPP (Short Message Point-to-Point) protocol.
  • GSM0304 is used for communication between GSM terminals.
  • the SMPP protocol is used for communication between external short message entities, and different protocols use different short message code tables.
  • GSM0340 uses the GSM code table (see GSM0338 protocol for details).
  • Figure 1 shows the GSM basic code table.
  • Figure 2 shows the GSM extended code table.
  • the SMPP protocol uses the ASCII (American Standard Code for Information Interchange) code.
  • Table, as shown in Figure 3, is the ASCII basic code table.
  • the short message center When sending and receiving short messages between the terminal and the external short message entity, the short message center needs to perform code value conversion between the GSM code table and the ASCII code table, that is, the code table conversion. For example, the user sends a short message to the external short message entity (ESME) from the terminal. After receiving the short message submitted by the terminal, the short message center needs to include the character to be converted from the GSM code. Convert to ASCII and then post to ESME. In practice, after the short message center performs the code table conversion on the short message, the content of the converted short message often does not completely match the content of the original short message, which causes the error message content to be transmitted to the receiving end, which is reduced. Quality of service to users. Summary of the invention
  • Embodiments of the present invention provide a method and apparatus for encoding and converting a short message, which reduces the probability of occurrence of an error in the content of the short message after the coding type conversion.
  • the short message center stores a code conversion driving table, and the first code is recorded in the code conversion driving table Corresponding relationship between the code value of the character in the table and the code value of the same character in the second code table, where the first code table corresponds to the first short message coding type, and the second code table corresponds to the second short message coding type
  • the short message message type used by the sender searches for the received message from the code conversion drive table according to the short message coding type used by the sender.
  • the code value of the short message is obtained by the code value of the short message coding type used by the receiver corresponding to the code value of the short message.
  • the first code table is a United States Information Interchange Standard Code ASCII code table
  • the second code table is a Global System for Mobile Communications GSM code table.
  • the encoded conversion driving table further records that the inclusion in the ASCII code table is not included.
  • an identifier of a code value of a default ASCII code table corresponding to a code value of the tag GSM code table is set in the code conversion drive table.
  • the code value of the received short message is searched from the code conversion driving table according to the short message coding type used by the sender, and the short message coding type used by the receiver corresponding to the code value of the short message is obtained.
  • Code value including:
  • the short message center searches for the code value of the received short message from the code value of the ASCII code table of the code conversion driving table when the sender uses the encoding type of the GSM code by the encoding type of the ASCII code. And obtaining a code value of the GSM code table corresponding to the code value of the found ASCII code table in the code conversion driving table, and completing the code conversion of the received short message.
  • the code value of the received short message is searched from the code conversion driving table according to the short message coding type used by the sender, and the short message coding type used by the receiver corresponding to the code value of the short message is obtained.
  • Code value including:
  • the short message center searches for the code value of the received short message from the code value of the GSM code table of the code conversion driving table when the sender uses the encoding type of the ASCII code by the encoding type of the GSM code. And according to the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, the missing code corresponding to the code value of the found GSM code table in the code conversion drive table is obtained.
  • the code value of the provincial ASCII code table completes the transcoding of the received short message.
  • the ASCII code table includes an ASCII basic code table and one or more ASCII spreading code tables;
  • the GSM code table includes a GSM basic code table and a GSM extended code table.
  • An apparatus for encoding and converting a short message includes: an encoding conversion driving table module, a short message receiving module, and a short message encoding conversion module, where:
  • the code conversion driving table module is configured to save a code conversion driving table, wherein the code conversion driving table records a correspondence between a code value of a character in the first code table and a code value of the same character in the second code table, where The first code table corresponds to a first short message coding type, and the second code table corresponds to a second short message coding type;
  • the short message receiving module is configured to receive a short message
  • the short message code conversion module is configured to: after the short message receiving module receives the short message, when the sender and the receiver use different short message coding types, according to the short message coding type used by the sender
  • the code conversion driving table searches for the code value of the received short message, and obtains the code value of the short message coding type used by the receiver corresponding to the code value of the short message.
  • the first code table is a United States Information Interchange Standard Code ASCII code table
  • the second code table is a Global System for Mobile Communications GSM code table.
  • the encoded conversion driving table further records that the inclusion in the ASCII code table is not included.
  • an identifier of a code value of a default ASCII code table corresponding to the code value of the mark GSM code table is set in the code conversion drive table.
  • the short message code conversion module is configured to convert the code value of the ASCII code table of the drive table from the code when the code type of the ASCII code is used by the sender to use the code type of the GSM code.
  • the code value of the received short message is searched for, and the code value of the GSM code table corresponding to the code value of the found ASCII code table in the code conversion driving table is obtained, and the code conversion of the received short message is completed.
  • the short message code conversion module is configured to convert the GSM code of the drive table from the code when the code type of the GSM code is used by the sender to use the code type of the ASCII code.
  • Finding the code value of the received short message in the code value of the table, and obtaining the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, and obtaining the found in the code conversion driving table The code value of the default ASCII code table corresponding to the code value of the GSM code table completes the code conversion of the received short message.
  • the embodiment of the present invention implements a custom code table conversion by adding a code conversion drive table in a short message center, which can reduce the probability of error of the short message content after the code type conversion, and regardless of which short message center is located.
  • FIG. 1 is a schematic diagram of a GSM basic code table of the related art
  • FIG. 2 is a schematic diagram of a related art GSM extension code table
  • FIG. 3 is a schematic diagram of an ASCII basic code table of the related art
  • FIG. 4 is a schematic diagram of a related art ISO-8859 code table
  • FIG. 5 is a schematic diagram of coding conversion of a code conversion driving table according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a code value correspondence relationship of a code conversion driving table according to an embodiment of the present invention
  • FIG. 7 is a short view of an embodiment of the present invention.
  • FIG. 8 is an architectural diagram of an apparatus for encoding and converting a short message according to an embodiment of the present invention.
  • the short message center performs the code table conversion on the short message
  • the main reason that the converted short message content does not completely match the original short message content is that different code tables (such as GSM code table and ASCII)
  • code tables such as GSM code table and ASCII
  • the code values of most characters of the GSM code table and the ASCII code table are the same, the existence of some characters having different code values causes the above problem to occur.
  • the character with a code value of 0 in the GSM code table is "@”
  • the code value with 0 in the ASCII basic code table is an invisible control character.
  • the code value of the "@" character in the ASCII code table is 64.
  • the ASCII code table also includes a plurality of extension code tables, and the characters corresponding to the same code value in the ASCII extension code table may also be inconsistent.
  • the ISO 8859 code table in Figure 4 in addition to English characters, there are many Western characters, which are represented by different codes, for example, ISO 8859-1 for Western European codes and ISO 8859-2 for Central European codes. The specific code values of these codes are different.
  • the short message center performs the code table conversion of the short message, the code value in the ASCII code table corresponding to the code value of the short message content of the GSM code table cannot be determined.
  • the short message center is used in different countries, it will be required to perform local code table conversion; the short message center cannot predict all coding methods, and it is often necessary to temporarily customize a new code table conversion function in the internationalization process.
  • the code conversion drive table is added in the short message center, and the custom code table conversion can be realized by the code conversion drive table.
  • the user configures the code table conversion relationship as needed, and can adapt to various code tables without additional coding.
  • an architecture diagram for encoding and converting short messages is provided.
  • the short message sent and received by the short message center is subjected to a code conversion driving table, and code value conversion is performed according to the types of the sender and the receiver. If the sender and receiver types are the same, no code value conversion is required. If the sender and receiver types do not match, the code value of the short message content needs to be converted from the sender's coding type to the receiver's coding type.
  • the encoding type of the sender is ASCII code
  • the encoding type of the receiving party is GSM code. Therefore, after receiving the short message sent by the external short message entity, the short message center needs to be short.
  • the content of the message is converted from ASCII code to GSM code, so that the terminal can recognize the short message content after receiving the message.
  • the code conversion drive table records the correspondence between the code value of the character in the ASCII code table and the code value of the same character in the GSM code table.
  • the character with a code value of 0 in the GSM code table is "@”
  • the code value with 0 in the ASCII basic code table is an invisible control character.
  • the code value of the "@" character in the ASCII code table is 64.
  • the above correspondence is defined in the code conversion driver table.
  • the ASCII code 0x40 (64) is the character "@”
  • the corresponding GSM code is the GSM code value of the character "@", that is, 0.
  • the ASCII code and the GSM code will have a many-to-one relationship, that is, both ASCII codes 0 and 64 correspond to the GSM code 0.
  • ASCII code there is no problem when converting from ASCII code to GSM code, but when converting from GSM code to ASCII code, since there is a one-to-many relationship between GSM code and ASCII code, it is impossible to determine which value to convert to. For example, when converting from GSM code 0 to ASCII code, it is not possible to determine whether it should be converted to 0 or 64.
  • the code conversion drive table needs to be configured to identify the code value of a default ASCII code table corresponding to the code value of the GSM code table (refer to FIG. 6).
  • the code value 64 of the ASCII code is configured as the default ASCII code value of the code value 0 of the GSM code, such that the code value 0 of the GSM code is converted to the code value 64 of the ASCII code instead of 0.
  • Step S701 According to an ASCII code encoding scheme of a short message center location (for example, IS08859-1 in Western Europe, IS08859-4 in Northern Europe, Arabic) The area uses IS08859-6), the configuration word step S702, in the code conversion drive table, configure a default for each GSM code value.
  • ASCII code encoding scheme of a short message center location for example, IS08859-1 in Western Europe, IS08859-4 in Northern Europe, Arabic
  • the area uses IS08859-6
  • the configuration word step S702 in the code conversion drive table, configure a default for each GSM code value.
  • each GSM code value must have only one default ASCII code value
  • Step S703 After receiving the short message, the short message center uses the ASCII code encoding type when the sender uses the ASCII code encoding type, because there is no many-to-one relationship between the ASCII code and the GSM code, that is, each The code value of each ASCII code has a unique GSM code code value corresponding thereto, so, the code value of the received short message is directly searched from the code value of the ASCII code table of the code conversion drive table, and the code conversion is obtained. The code value of the GSM code table corresponding to the code value of the found ASCII code table in the driving table is completed, and the code conversion of the received short message is completed;
  • Step S704 after receiving the short message, the short message center uses the ASCII code coding type when the sender uses the coding type of the GSM code, because the code value of the GSM code and the code value of the ASCII code are mostly one to one. Relationship, that is, the code value of a certain GSM code may correspond to the code value of multiple ASCII codes, so the code value of the received short message is searched from the code value of the GSM code table of the code conversion drive table, and according to the mark GSM The identifier of the code value of a default ASCII code table corresponding to the code value of the code table, and the code value of the default ASCII code table corresponding to the code value of the found GSM code table in the code conversion drive table is obtained.
  • the embodiment further provides an apparatus for encoding and converting a short message, including: a code conversion driving table module, a short message receiving module, and a short message encoding conversion module, where: a code conversion driving table module, Set to save the encoding conversion driver table, the encoding conversion driver table
  • a short message receiving module configured to receive a short message
  • the short message code conversion module is configured to: after the short message receiving module receives the short message, when the sender and the receiver use different short message coding types, the code conversion conversion table is used according to the short message coding type used by the sender. The code value of the received short message is searched for, and the code value of the short message coding type used by the receiver corresponding to the code value of the short message is obtained.
  • the code conversion drive table further records the correspondence between the code value of the character included in the GSM code table and the code value of the character in the GSM code table, and is included in the ASCII code in the code conversion drive table.
  • the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table is set.
  • the short message code conversion module is configured to search for the received short message from the code value of the ASCII code table of the code conversion drive table when the code type of the ASCII code is used by the sender to use the code type of the GSM code.
  • the code value obtains the code value of the GSM code table corresponding to the code value of the found ASCII code table in the code conversion driving table, and completes the code conversion of the received short message.
  • the short message code conversion module is configured to search for the received short message from the code value of the GSM code table of the code conversion drive table when the code type of the GSM code is used by the sender to use the ASCII code type. a code value, and according to the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, the default ASCII corresponding to the code value of the found GSM code table in the code conversion drive table is obtained. The code value of the code table completes the code conversion of the received short message.
  • the ASCII code table in this embodiment includes an ASCII basic code table and one or more ASCII extended code tables;
  • the GSM code table includes a GSM basic code table and a GSM extended code table.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the embodiment of the present invention can realize the conversion of the custom code table by adding the code conversion driving table in the short message center, thereby reducing the probability of the error of the short message content after the coding type conversion, and regardless of the country of the short message center. Use, you can use the code conversion driver table to achieve custom code table conversion, no need to temporarily develop a new code table conversion function.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed in an embodiment of the present invention are a short message transcoding method and device, comprising: a short message center saves a transcoding drive table, the transcoding drive table stores the corresponding relationship between the code value of a character in a first code table and the code value of the same character in a second code table; and after receiving a short message, if a transmitter and a receiver employ different types of short message encoding, then the short message center finds in the transcoding drive table the code value of the received short message according to the short message encoding type employed by the transmitter, and obtains the code value of the short message encoding type employed by the receiver corresponding to the code value of the short message.

Description

一种对短消息进行编码转换的方法及装置 技术领域  Method and device for encoding and converting short message
本发明涉及短消息传输技术领域, 尤其涉及一种对短消息进行编码转换 的方法及装置。  The present invention relates to the field of short message transmission technologies, and in particular, to a method and apparatus for encoding and converting short messages.
背景技术 Background technique
短消息内容的码表转换是短消息中心的一项核心技术。 短消息中心支持 多种短消息传输协议, 例如, GSM0340 (全球移动通讯*** 0304 )协议和 SMPP (短消息息点对点 )协议。 GSM0304用于 GSM终端之间的通信。 SMPP 协议用于外部短消息实体之间的通信, 不同的协议使用不同的短消息码表。  Code table conversion of short message content is a core technology of the short message center. The short message center supports a variety of short message transmission protocols, such as the GSM0340 (Global System for Mobile Communications 0304) protocol and the SMPP (Short Message Point-to-Point) protocol. GSM0304 is used for communication between GSM terminals. The SMPP protocol is used for communication between external short message entities, and different protocols use different short message code tables.
GSM0340使用的是 GSM码表(详见 GSM0338协议) , 如图 1所示为 GSM基本码表, 如图 2所示为 GSM扩展码表; SMPP协议使用的是 ASCII (美国信息交换标准代码)码表, 如图 3所示为 ASCII基本码表。  GSM0340 uses the GSM code table (see GSM0338 protocol for details). Figure 1 shows the GSM basic code table. Figure 2 shows the GSM extended code table. The SMPP protocol uses the ASCII (American Standard Code for Information Interchange) code. Table, as shown in Figure 3, is the ASCII basic code table.
在终端和外部短消息实体之间收发短消息时,需要短消息中心在 GSM码 表和 ASCII码表之间进行码值转换, 即码表转换。 例如, 用户从终端上发一 条短消息给某外部短消息实体(External Short Message Entity, ESME ) , 短 消息中心在收到终端提交的短消息后, 需要将其中包含的需要转换的字符从 GSM码转换为 ASCII码, 然后再投递给 ESME。 在实际中, 短消息中心在对 短消息进行码表转换后, 经常会出现转换后的短消息内容与原短消息内容不 完全相符的问题, 导致传递错误的短消息内容给接收端, 降低了对用户的服 务质量。 发明内容  When sending and receiving short messages between the terminal and the external short message entity, the short message center needs to perform code value conversion between the GSM code table and the ASCII code table, that is, the code table conversion. For example, the user sends a short message to the external short message entity (ESME) from the terminal. After receiving the short message submitted by the terminal, the short message center needs to include the character to be converted from the GSM code. Convert to ASCII and then post to ESME. In practice, after the short message center performs the code table conversion on the short message, the content of the converted short message often does not completely match the content of the original short message, which causes the error message content to be transmitted to the receiving end, which is reduced. Quality of service to users. Summary of the invention
本发明实施例提供一种对短消息进行编码转换的方法及装置, 降低在编 码类型转换后短消息内容发生错误的概率。  Embodiments of the present invention provide a method and apparatus for encoding and converting a short message, which reduces the probability of occurrence of an error in the content of the short message after the coding type conversion.
本发明实施例的一种对短消息进行编码转换的方法, 包括:  A method for encoding and converting a short message according to an embodiment of the present invention includes:
短消息中心保存编码转换驱动表, 所述编码转换驱动表中记录有第一码 表中字符的码值与第二码表中相同字符的码值的对应关系, 其中, 所述第一 码表对应第一短消息编码类型, 所述第二码表对应第二短消息编码类型; 所述短消息中心接收到短消息后, 在发送方与接收方釆用不同的短消息 编码类型时, 按照发送方釆用的短消息编码类型从所述编码转换驱动表中查 找接收到的短消息的码值, 得到短消息的码值对应的接收方釆用的短消息编 码类型的码值。 The short message center stores a code conversion driving table, and the first code is recorded in the code conversion driving table Corresponding relationship between the code value of the character in the table and the code value of the same character in the second code table, where the first code table corresponds to the first short message coding type, and the second code table corresponds to the second short message coding type After the short message center receives the short message, when the sender and the receiver use different short message coding types, the short message message type used by the sender searches for the received message from the code conversion drive table according to the short message coding type used by the sender. The code value of the short message is obtained by the code value of the short message coding type used by the receiver corresponding to the code value of the short message.
较佳地, 所述第一码表为美国信息交换标准代码 ASCII码表, 所述第二 码表为全球移动通讯*** GSM码表。  Preferably, the first code table is a United States Information Interchange Standard Code ASCII code table, and the second code table is a Global System for Mobile Communications GSM code table.
较佳地, 在所述编码转换驱动表中还记录有包含在 ASCII码表中未包含
Figure imgf000004_0001
Preferably, the encoded conversion driving table further records that the inclusion in the ASCII code table is not included.
Figure imgf000004_0001
同的码值对应。 Corresponding to the same code value.
较佳地,在所述编码转换驱动表中设置有标记 GSM码表的码值对应的一 个缺省的 ASCII码表的码值的标识。  Preferably, an identifier of a code value of a default ASCII code table corresponding to a code value of the tag GSM code table is set in the code conversion drive table.
较佳地, 按照发送方釆用的短消息编码类型从所述编码转换驱动表中查 找接收到的短消息的码值, 得到短消息的码值对应的接收方釆用的短消息编 码类型的码值, 包括:  Preferably, the code value of the received short message is searched from the code conversion driving table according to the short message coding type used by the sender, and the short message coding type used by the receiver corresponding to the code value of the short message is obtained. Code value, including:
所述短消息中心在发送方釆用 ASCII码的编码类型接收方釆用 GSM码 的编码类型时, 从所述编码转换驱动表的 ASCII码表的码值中查找接收到的 短消息的码值, 得到在编码转换驱动表中与查找到的 ASCII码表的码值对应 的 GSM码表的码值, 完成接收到的短消息的编码转换。  The short message center searches for the code value of the received short message from the code value of the ASCII code table of the code conversion driving table when the sender uses the encoding type of the GSM code by the encoding type of the ASCII code. And obtaining a code value of the GSM code table corresponding to the code value of the found ASCII code table in the code conversion driving table, and completing the code conversion of the received short message.
较佳地, 按照发送方釆用的短消息编码类型从所述编码转换驱动表中查 找接收到的短消息的码值, 得到短消息的码值对应的接收方釆用的短消息编 码类型的码值, 包括:  Preferably, the code value of the received short message is searched from the code conversion driving table according to the short message coding type used by the sender, and the short message coding type used by the receiver corresponding to the code value of the short message is obtained. Code value, including:
所述短消息中心在发送方釆用 GSM码的编码类型接收方釆用 ASCII码 的编码类型时,从所述编码转换驱动表的 GSM码表的码值中查找接收到的短 消息的码值, 并根据标记 GSM码表的码值对应的一个缺省的 ASCII码表的 码值的标识,得到在编码转换驱动表中与查找到的 GSM码表的码值对应的缺 省的 ASCII码表的码值, 完成接收到的短消息的编码转换。 The short message center searches for the code value of the received short message from the code value of the GSM code table of the code conversion driving table when the sender uses the encoding type of the ASCII code by the encoding type of the GSM code. And according to the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, the missing code corresponding to the code value of the found GSM code table in the code conversion drive table is obtained. The code value of the provincial ASCII code table completes the transcoding of the received short message.
较佳地, 所述 ASCII码表包括 ASCII基本码表以及一种或多种 ASCII扩 展码表; 所述 GSM码表包括 GSM基本码表和 GSM扩展码表。  Preferably, the ASCII code table includes an ASCII basic code table and one or more ASCII spreading code tables; the GSM code table includes a GSM basic code table and a GSM extended code table.
本发明实施例提供的一种对短消息进行编码转换的装置, 包括: 编码转 换驱动表模块、 短消息接收模块和短消息编码转换模块, 其中:  An apparatus for encoding and converting a short message according to an embodiment of the present invention includes: an encoding conversion driving table module, a short message receiving module, and a short message encoding conversion module, where:
所述编码转换驱动表模块, 设置为保存编码转换驱动表, 所述编码转换 驱动表中记录有第一码表中字符的码值与第二码表中相同字符的码值的对应 关系, 其中, 所述第一码表对应第一短消息编码类型, 所述第二码表对应第 二短消息编码类型;  The code conversion driving table module is configured to save a code conversion driving table, wherein the code conversion driving table records a correspondence between a code value of a character in the first code table and a code value of the same character in the second code table, where The first code table corresponds to a first short message coding type, and the second code table corresponds to a second short message coding type;
所述短消息接收模块, 设置为接收短消息;  The short message receiving module is configured to receive a short message;
所述短消息编码转换模块, 设置为在所述短消息接收模块接收到短消息 后, 在发送方与接收方釆用不同的短消息编码类型时, 按照发送方釆用的短 消息编码类型从所述编码转换驱动表中查找接收到的短消息的码值, 得到短 消息的码值对应的接收方釆用的短消息编码类型的码值。  The short message code conversion module is configured to: after the short message receiving module receives the short message, when the sender and the receiver use different short message coding types, according to the short message coding type used by the sender The code conversion driving table searches for the code value of the received short message, and obtains the code value of the short message coding type used by the receiver corresponding to the code value of the short message.
较佳地, 所述第一码表为美国信息交换标准代码 ASCII码表, 所述第二 码表为全球移动通讯*** GSM码表。  Preferably, the first code table is a United States Information Interchange Standard Code ASCII code table, and the second code table is a Global System for Mobile Communications GSM code table.
较佳地, 在所述编码转换驱动表中还记录有包含在 ASCII码表中未包含
Figure imgf000005_0001
Preferably, the encoded conversion driving table further records that the inclusion in the ASCII code table is not included.
Figure imgf000005_0001
同的码值对应 ,在所述编码转换驱动表中设置有标记 GSM码表的码值对应的 一个缺省的 ASCII码表的码值的标识。 Corresponding to the same code value, an identifier of a code value of a default ASCII code table corresponding to the code value of the mark GSM code table is set in the code conversion drive table.
较佳地, 所述短消息编码转换模块, 是设置为在发送方釆用 ASCII码的 编码类型接收方釆用 GSM码的编码类型时,从所述编码转换驱动表的 ASCII 码表的码值中查找接收到的短消息的码值, 得到在编码转换驱动表中与查找 到的 ASCII码表的码值对应的 GSM码表的码值, 完成接收到的短消息的编 码转换。  Preferably, the short message code conversion module is configured to convert the code value of the ASCII code table of the drive table from the code when the code type of the ASCII code is used by the sender to use the code type of the GSM code. The code value of the received short message is searched for, and the code value of the GSM code table corresponding to the code value of the found ASCII code table in the code conversion driving table is obtained, and the code conversion of the received short message is completed.
较佳地,所述短消息编码转换模块,是设置为在发送方釆用 GSM码的编 码类型接收方釆用 ASCII码的编码类型时,从所述编码转换驱动表的 GSM码 表的码值中查找接收到的短消息的码值,并根据标记 GSM码表的码值对应的 一个缺省的 ASCII码表的码值的标识, 得到在编码转换驱动表中与查找到的 GSM码表的码值对应的缺省的 ASCII码表的码值,完成接收到的短消息的编 码转换。 Preferably, the short message code conversion module is configured to convert the GSM code of the drive table from the code when the code type of the GSM code is used by the sender to use the code type of the ASCII code. Finding the code value of the received short message in the code value of the table, and obtaining the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, and obtaining the found in the code conversion driving table The code value of the default ASCII code table corresponding to the code value of the GSM code table completes the code conversion of the received short message.
综上所述, 本发明实施例通过在短消息中心增加编码转换驱动表, 实现 自定义码表转换, 可以降低在编码类型转换后短消息内容发生错误的概率, 并且, 不管短消息中心在哪个国家地区使用, 都可以通过编码转换驱动表来 实现自定义码表转换, 不需要临时开发新的码表转换功能。 附图概述  In summary, the embodiment of the present invention implements a custom code table conversion by adding a code conversion drive table in a short message center, which can reduce the probability of error of the short message content after the code type conversion, and regardless of which short message center is located. In the national area, you can use the code conversion driver table to achieve custom code table conversion, without the need to temporarily develop a new code table conversion function. BRIEF abstract
图 1是相关技术的 GSM基本码表的示意图;  1 is a schematic diagram of a GSM basic code table of the related art;
图 2是相关技术的 GSM扩展码表的示意图;  2 is a schematic diagram of a related art GSM extension code table;
图 3是相关技术的 ASCII基本码表的示意图;  3 is a schematic diagram of an ASCII basic code table of the related art;
图 4是相关技术的 ISO— 8859码表的示意图;  4 is a schematic diagram of a related art ISO-8859 code table;
图 5是本发明实施例釆用编码转换驱动表进行编码转换的架构图; 图 6 是本发明实施例的编码转换驱动表的码值对应关系的示意图; 图 7是本发明实施例的对短消息进行编码转换的方法的流程图; 图 8是本发明实施例的对短消息进行编码转换的装置的架构图。 本发明的较佳实施方式  FIG. 5 is a schematic diagram of coding conversion of a code conversion driving table according to an embodiment of the present invention; FIG. 6 is a schematic diagram of a code value correspondence relationship of a code conversion driving table according to an embodiment of the present invention; FIG. 7 is a short view of an embodiment of the present invention. A flowchart of a method for encoding and converting a message; FIG. 8 is an architectural diagram of an apparatus for encoding and converting a short message according to an embodiment of the present invention. Preferred embodiment of the invention
本实施方式中发现导致短消息中心在对短消息进行码表转换后, 出现转 换后的短消息内容与原短消息内容不完全相符的主要原因是,不同的码表(比 如 GSM码表和 ASCII码表)中存在一部分码值不相同的字符, 虽然 GSM码 表和 ASCII码表的大部分字符的码值是相同的, 但是存在的一部分码值不相 同的字符导致了上述问题的发生。例如, GSM码表中码值为 0的字符是" @" , 而 ASCII基本码表中码值为 0的是一个不可见的控制字符, ASCII码表中" @" 字符的码值为 64。 并且, ASCII码表还包含多种扩展码表, 这些 ASCII扩展码表中同一个 码值对应的字符也可能不一致。 如图 4中的 ISO 8859码表所示, 除了英语字 符以外,还有很多西文字符,它们分别用不同的编码来表示,例如, ISO 8859-1 表示西欧码, ISO 8859-2表示中欧码, 这些码的具体码值是有差异的, 短消 息中心在做短消息的码表转换时,无法确定釆用 GSM码表的短消息内容的码 值对应的 ASCII码表中的码值。 并且, 短消息中心在不同国家地区使用时, 会被要求进行本地话的码表转换; 短消息中心无法预知所有的编码方式, 在 国际化过程中经常需要临时定制新的码表转换功能。 In this embodiment, it is found that after the short message center performs the code table conversion on the short message, the main reason that the converted short message content does not completely match the original short message content is that different code tables (such as GSM code table and ASCII) There are some characters with different code values in the code table. Although the code values of most characters of the GSM code table and the ASCII code table are the same, the existence of some characters having different code values causes the above problem to occur. For example, the character with a code value of 0 in the GSM code table is "@", and the code value with 0 in the ASCII basic code table is an invisible control character. The code value of the "@" character in the ASCII code table is 64. Moreover, the ASCII code table also includes a plurality of extension code tables, and the characters corresponding to the same code value in the ASCII extension code table may also be inconsistent. As shown in the ISO 8859 code table in Figure 4, in addition to English characters, there are many Western characters, which are represented by different codes, for example, ISO 8859-1 for Western European codes and ISO 8859-2 for Central European codes. The specific code values of these codes are different. When the short message center performs the code table conversion of the short message, the code value in the ASCII code table corresponding to the code value of the short message content of the GSM code table cannot be determined. Moreover, when the short message center is used in different countries, it will be required to perform local code table conversion; the short message center cannot predict all coding methods, and it is often necessary to temporarily customize a new code table conversion function in the internationalization process.
本实施方式中在短消息中心增加编码转换驱动表, 通过编码转换驱动表 可以实现自定义码表转换。 用户根据需要配置码表转换关系, 可以适应各种 码表, 不需要进行额外的编码。  In the embodiment, the code conversion drive table is added in the short message center, and the custom code table conversion can be realized by the code conversion drive table. The user configures the code table conversion relationship as needed, and can adapt to various code tables without additional coding.
如图 5所示为对短消息进行编码转换的架构图, 短消息中心收发的短消 息经过编码转换驱动表, 根据发送方和接收方的类型进行码值转换。 如果发 送方和接收方类型一致, 不需要进行码值转换, 如果发送方和接收方类型不 一致, 则需要将短消息内容的码值从发送方的编码类型转换为接收方的编码 类型。  As shown in FIG. 5, an architecture diagram for encoding and converting short messages is provided. The short message sent and received by the short message center is subjected to a code conversion driving table, and code value conversion is performed according to the types of the sender and the receiver. If the sender and receiver types are the same, no code value conversion is required. If the sender and receiver types do not match, the code value of the short message content needs to be converted from the sender's coding type to the receiver's coding type.
例如,外部短消息实体给终端发送短消息时,发送方的编码类型是 ASCII 码,接收方的编码类型是 GSM码, 因此短消息中心收到外部短消息实体发送 的短消息后, 需要将短消息内容从 ASCII码转换为 GSM码, 这样终端收到 消息后才能识别短消息内容。  For example, when the external short message entity sends a short message to the terminal, the encoding type of the sender is ASCII code, and the encoding type of the receiving party is GSM code. Therefore, after receiving the short message sent by the external short message entity, the short message center needs to be short. The content of the message is converted from ASCII code to GSM code, so that the terminal can recognize the short message content after receiving the message.
如图 6所示为编码转换驱动表的示意图, 编码转换驱动表记录有 ASCII 码表中字符的码值和 GSM码表中相同字符的码值之间的对应关系。  As shown in FIG. 6, the code conversion drive table records the correspondence between the code value of the character in the ASCII code table and the code value of the same character in the GSM code table.
例如, GSM码表中码值为 0的字符是 " @" , 而 ASCII基本码表中码值 为 0的是一个不可见的控制字符, ASCII码表中 "@" 字符的码值为 64。 在 编码转换驱动表中定义以上对应关系, ASCII码 0x40(64)是字符 "@" , 对应 的 GSM码为字符 "@" 的 GSM码值, 即 0。  For example, the character with a code value of 0 in the GSM code table is "@", and the code value with 0 in the ASCII basic code table is an invisible control character. The code value of the "@" character in the ASCII code table is 64. The above correspondence is defined in the code conversion driver table. The ASCII code 0x40 (64) is the character "@", and the corresponding GSM code is the GSM code value of the character "@", that is, 0.
在编码转换驱动表中还记录有包含在 ASCII码表中未包含在 GSM码表 中的字符的码值与 GSM码表中的字符的码值的对应关系, 包含在 ASCII码 例如, ASCII码 0x00对应不可见控制字符 "NUL" , GSM码表中没有 字符 "NUL" , ASCII码 0x00仍然对应 GSM码值 0。 Corresponding relationship between the code value of the character not included in the GSM code table and the code value of the character in the GSM code table, which is included in the ASCII code, is also recorded in the code conversion drive table. For example, ASCII code 0x00 corresponds to the invisible control character "NUL", there is no character "NUL" in the GSM code table, and ASCII code 0x00 still corresponds to the GSM code value of 0.
因此, ASCII码和 GSM码会出现多对一的关系, 即 ASCII码 0和 64都 对应 GSM码 0。 从 ASCII码转换到 GSM码时没有问题, 但从 GSM码转换 到 ASCII码时, 由于 GSM码与 ASCII码存在一对多关系, 无法确定到底转 换成哪个值。 例如, 从 GSM码 0转换成 ASCII码时, 无法确定应该转成 0 还是 64。 因此, 编码转换驱动表中除了配置 ASCII码和 GSM码的对应关系, 还需要配置标记 GSM码表的码值对应的一个缺省的 ASCII码表的码值的标 识(参考图 6 ) 。 例如, ASCII码的码值 64配置成 GSM码的码值 0的默认 ASCII码值, 这样 GSM码的码值 0转换成 ASCII码的码值 64, 而不是 0。  Therefore, the ASCII code and the GSM code will have a many-to-one relationship, that is, both ASCII codes 0 and 64 correspond to the GSM code 0. There is no problem when converting from ASCII code to GSM code, but when converting from GSM code to ASCII code, since there is a one-to-many relationship between GSM code and ASCII code, it is impossible to determine which value to convert to. For example, when converting from GSM code 0 to ASCII code, it is not possible to determine whether it should be converted to 0 or 64. Therefore, in addition to configuring the correspondence between the ASCII code and the GSM code, the code conversion drive table needs to be configured to identify the code value of a default ASCII code table corresponding to the code value of the GSM code table (refer to FIG. 6). For example, the code value 64 of the ASCII code is configured as the default ASCII code value of the code value 0 of the GSM code, such that the code value 0 of the GSM code is converted to the code value 64 of the ASCII code instead of 0.
如图 7所示, 本实施方式的对短消息进行编码转换的方法, 包括: 步骤 S701 , 根据短消息中心所在地的 ASCII码编码方案(例如西欧使用 IS08859-1 , 北欧使用 IS08859-4, ***语地区使用 IS08859-6 ) , 配置字 步骤 S702 , 在编码转换驱动表中, 为每一个 GSM码值配置一个缺省 As shown in FIG. 7, the method for encoding and converting a short message according to this embodiment includes: Step S701: According to an ASCII code encoding scheme of a short message center location (for example, IS08859-1 in Western Europe, IS08859-4 in Northern Europe, Arabic) The area uses IS08859-6), the configuration word step S702, in the code conversion drive table, configure a default for each GSM code value.
ASCII码值, 每一个 GSM码值必须且只能有一个缺省 ASCII码值; ASCII code value, each GSM code value must have only one default ASCII code value;
步骤 S703 , 短消息中心在接收到短消息后, 在发送方釆用 ASCII码的编 码类型接收方釆用 GSM码的编码类型时, 因为 ASCII码到 GSM码不存在多 对一关系, 也就是每个 ASCII码的码值都有一个唯一的 GSM码的码值与之 对应, 所以, 直接从编码转换驱动表的 ASCII码表的码值中查找接收到的短 消息的码值, 得到在编码转换驱动表中与查找到的 ASCII码表的码值对应的 GSM码表的码值, 完成接收到的短消息的编码转换;  Step S703: After receiving the short message, the short message center uses the ASCII code encoding type when the sender uses the ASCII code encoding type, because there is no many-to-one relationship between the ASCII code and the GSM code, that is, each The code value of each ASCII code has a unique GSM code code value corresponding thereto, so, the code value of the received short message is directly searched from the code value of the ASCII code table of the code conversion drive table, and the code conversion is obtained. The code value of the GSM code table corresponding to the code value of the found ASCII code table in the driving table is completed, and the code conversion of the received short message is completed;
步骤 S704, 短消息中心在接收到短消息后, 在发送方釆用 GSM码的编 码类型接收方釆用 ASCII码的编码类型时, 因为 GSM码的码值和 ASCII码 的码值存在多对一关系, 也就是某个 GSM码的码值可能对应多个 ASCII码 的码值,所以,从编码转换驱动表的 GSM码表的码值中查找接收到的短消息 的码值, 并根据标记 GSM码表的码值对应的一个缺省的 ASCII码表的码值 的标识,得到在编码转换驱动表中与查找到的 GSM码表的码值对应的缺省的 ASCII码表的码值, 完成接收到的短消息的编码转换。 如图 8所示, 本实施方式还提供了一种对短消息进行编码转换的装置, 包括: 编码转换驱动表模块、 短消息接收模块和短消息编码转换模块, 其中: 编码转换驱动表模块, 设置为保存编码转换驱动表, 编码转换驱动表中 Step S704, after receiving the short message, the short message center uses the ASCII code coding type when the sender uses the coding type of the GSM code, because the code value of the GSM code and the code value of the ASCII code are mostly one to one. Relationship, that is, the code value of a certain GSM code may correspond to the code value of multiple ASCII codes, so the code value of the received short message is searched from the code value of the GSM code table of the code conversion drive table, and according to the mark GSM The identifier of the code value of a default ASCII code table corresponding to the code value of the code table, and the code value of the default ASCII code table corresponding to the code value of the found GSM code table in the code conversion drive table is obtained. The code conversion of the received short message. As shown in FIG. 8, the embodiment further provides an apparatus for encoding and converting a short message, including: a code conversion driving table module, a short message receiving module, and a short message encoding conversion module, where: a code conversion driving table module, Set to save the encoding conversion driver table, the encoding conversion driver table
GSM码表中相同字符的码值的对应关系; Correspondence relationship between code values of the same character in the GSM code table;
短消息接收模块, 设置为接收短消息;  a short message receiving module, configured to receive a short message;
短消息编码转换模块, 设置为在短消息接收模块接收到短消息后, 在发 送方与接收方釆用不同的短消息编码类型时, 按照发送方釆用的短消息编码 类型从编码转换驱动表中查找接收到的短消息的码值, 得到短消息的码值对 应的接收方釆用的短消息编码类型的码值。  The short message code conversion module is configured to: after the short message receiving module receives the short message, when the sender and the receiver use different short message coding types, the code conversion conversion table is used according to the short message coding type used by the sender. The code value of the received short message is searched for, and the code value of the short message coding type used by the receiver corresponding to the code value of the short message is obtained.
在编码转换驱动表中还记录有包含在 ASCII码表中未包含在 GSM码表 中的字符的码值与 GSM码表中的字符的码值的对应关系, 包含在 ASCII码 在编码转换驱动表中设置有标记 GSM码表的码值对应的一个缺省的 ASCII 码表的码值的标识。  The code conversion drive table further records the correspondence between the code value of the character included in the GSM code table and the code value of the character in the GSM code table, and is included in the ASCII code in the code conversion drive table. The identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table is set.
短消息编码转换模块, 是设置为在发送方釆用 ASCII码的编码类型接收 方釆用 GSM码的编码类型时, 从编码转换驱动表的 ASCII码表的码值中查 找接收到的短消息的码值, 得到在编码转换驱动表中与查找到的 ASCII码表 的码值对应的 GSM码表的码值, 完成接收到的短消息的编码转换。  The short message code conversion module is configured to search for the received short message from the code value of the ASCII code table of the code conversion drive table when the code type of the ASCII code is used by the sender to use the code type of the GSM code. The code value obtains the code value of the GSM code table corresponding to the code value of the found ASCII code table in the code conversion driving table, and completes the code conversion of the received short message.
短消息编码转换模块,是设置为在发送方釆用 GSM码的编码类型接收方 釆用 ASCII码的编码类型时, 从编码转换驱动表的 GSM码表的码值中查找 接收到的短消息的码值, 并根据标记 GSM码表的码值对应的一个缺省的 ASCII码表的码值的标识,得到在编码转换驱动表中与查找到的 GSM码表的 码值对应的缺省的 ASCII码表的码值, 完成接收到的短消息的编码转换。  The short message code conversion module is configured to search for the received short message from the code value of the GSM code table of the code conversion drive table when the code type of the GSM code is used by the sender to use the ASCII code type. a code value, and according to the identifier of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, the default ASCII corresponding to the code value of the found GSM code table in the code conversion drive table is obtained. The code value of the code table completes the code conversion of the received short message.
本实施方式中的 ASCII码表包括 ASCII基本码表以及一种或多种 ASCII 扩展码表; GSM码表包括 GSM基本码表和 GSM扩展码表。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 或 者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制 作成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软 件结合。 The ASCII code table in this embodiment includes an ASCII basic code table and one or more ASCII extended code tables; the GSM code table includes a GSM basic code table and a GSM extended code table. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or they may be Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。  The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性 本发明实施例通过在短消息中心增加编码转换驱动表, 实现自定义码表 转换, 可以降低在编码类型转换后短消息内容发生错误的概率, 并且, 不管 短消息中心在哪个国家地区使用, 都可以通过编码转换驱动表来实现自定义 码表转换, 不需要临时开发新的码表转换功能。 INDUSTRIAL APPLICABILITY The embodiment of the present invention can realize the conversion of the custom code table by adding the code conversion driving table in the short message center, thereby reducing the probability of the error of the short message content after the coding type conversion, and regardless of the country of the short message center. Use, you can use the code conversion driver table to achieve custom code table conversion, no need to temporarily develop a new code table conversion function.

Claims

权 利 要 求 书 claims
1、 一种对短消息进行编码转换的方法, 包括: 1. A method for encoding and converting short messages, including:
短消息中心保存编码转换驱动表, 所述编码转换驱动表中记录有第一码 表中字符的码值与第二码表中相同字符的码值的对应关系, 其中, 所述第一 码表对应第一短消息编码类型, 所述第二码表对应第二短消息编码类型; 所述短消息中心接收到短消息后, 在发送方与接收方釆用不同的短消息 编码类型时, 按照发送方釆用的短消息编码类型从所述编码转换驱动表中查 找接收到的短消息的码值, 得到短消息的码值对应的接收方釆用的短消息编 码类型的码值。 The short message center stores a coding conversion driver table, which records the corresponding relationship between the code values of characters in the first code table and the code values of the same characters in the second code table, wherein, the first code table Corresponding to the first short message encoding type, the second code table corresponds to the second short message encoding type; after the short message center receives the short message, when the sender and the receiver adopt different short message encoding types, according to The short message encoding type used by the sender searches the code value of the received short message from the encoding conversion driver table to obtain the code value of the short message encoding type used by the receiver corresponding to the code value of the short message.
2、 如权利要求 1所述的方法, 其中, 所述第一码表为美国信息交换标准 代码 ASCII码表, 所述第二码表为全球移动通讯*** GSM码表。 2. The method of claim 1, wherein the first code table is an American Standard for Information Interchange ASCII code table, and the second code table is a Global System for Mobile Communications GSM code table.
3、 如权利要求 2所述的方法, 其中, 在所述编码转换驱动表中还记录有 符的码值的对应关系, 所述包含在 ASCII码表中未包含在 GSM码表中的字 符的码值与 GSM码表中的相同的码值对应。 3. The method of claim 2, wherein the encoding conversion driver table also records the corresponding relationship between the code values of characters, and the characters included in the ASCII code table but not included in the GSM code table. The code value corresponds to the same code value in the GSM code table.
4、 如权利要求 3所述的方法, 其中, 在所述编码转换驱动表中设置有标 记 GSM码表的码值对应的一个缺省的 ASCII码表的码值的标识。 4. The method according to claim 3, wherein the encoding conversion driver table is provided with an identifier marking the code value of a default ASCII code table corresponding to the code value of the GSM code table.
5、 如权利要求 4所述的方法, 其中, 按照发送方釆用的短消息编码类型 从所述编码转换驱动表中查找接收到的短消息的码值, 得到短消息的码值对 应的接收方釆用的短消息编码类型的码值, 包括: 5. The method of claim 4, wherein the code value of the received short message is searched from the coding conversion driver table according to the short message encoding type used by the sender, and the received code value corresponding to the code value of the short message is obtained. The code value of the short message encoding type used by the party, including:
所述短消息中心在发送方釆用 ASCII码的编码类型接收方釆用 GSM码 的编码类型时, 从所述编码转换驱动表的 ASCII码表的码值中查找接收到的 短消息的码值, 得到在编码转换驱动表中与查找到的 ASCII码表的码值对应 的 GSM码表的码值, 完成接收到的短消息的编码转换。 When the sender adopts the encoding type of ASCII code and the receiver adopts the encoding type of GSM code, the short message center searches for the code value of the received short message from the code value of the ASCII code table of the encoding conversion driver table. , obtain the code value of the GSM code table corresponding to the found code value of the ASCII code table in the code conversion driver table, and complete the code conversion of the received short message.
6、 如权利要求 4所述的方法, 其中, 按照发送方釆用的短消息编码类型 从所述编码转换驱动表中查找接收到的短消息的码值, 得到短消息的码值对 应的接收方釆用的短消息编码类型的码值, 包括: 6. The method of claim 4, wherein the code value of the received short message is searched from the coding conversion driver table according to the short message encoding type used by the sender to obtain the code value pair of the short message. The code value of the short message encoding type adopted by the corresponding receiver, including:
所述短消息中心在发送方釆用 GSM码的编码类型接收方釆用 ASCII码 的编码类型时,从所述编码转换驱动表的 GSM码表的码值中查找接收到的短 消息的码值, 并根据标记 GSM码表的码值对应的一个缺省的 ASCII码表的 码值的标识 ,得到在编码转换驱动表中与查找到的 GSM码表的码值对应的缺 省的 ASCII码表的码值, 完成接收到的短消息的编码转换。 When the sender adopts the encoding type of GSM code and the receiver adopts the encoding type of ASCII code, the short message center searches for the code value of the received short message from the code value of the GSM code table of the coding conversion driver table. , and according to the identification of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, the default ASCII code table corresponding to the code value of the found GSM code table in the encoding conversion driver table is obtained code value to complete the encoding conversion of the received short message.
7、如权利要求 2所述的方法, 其中, 所述 ASCII码表包括 ASCII基本码 表以及一种或多种 ASCII扩展码表; 所述 GSM码表包括 GSM基本码表和 GSM扩展码表。 7. The method of claim 2, wherein the ASCII code table includes an ASCII basic code table and one or more ASCII extended code tables; and the GSM code table includes a GSM basic code table and a GSM extended code table.
8、 一种对短消息进行编码转换的装置, 包括: 编码转换驱动表模块、 短 消息接收模块和短消息编码转换模块, 其中: 8. A device for code conversion of short messages, including: code conversion driver table module, short message receiving module and short message code conversion module, wherein:
所述编码转换驱动表模块, 设置为保存编码转换驱动表, 所述编码转换 驱动表中记录有第一码表中字符的码值与第二码表中相同字符的码值的对应 关系, 其中, 所述第一码表对应第一短消息编码类型, 所述第二码表对应第 二短消息编码类型; The encoding conversion driver table module is configured to save the encoding conversion driver table. The encoding conversion driver table records the corresponding relationship between the code values of the characters in the first code table and the code values of the same characters in the second code table, where , the first code table corresponds to the first short message encoding type, and the second code table corresponds to the second short message encoding type;
所述短消息接收模块, 设置为接收短消息; The short message receiving module is configured to receive short messages;
所述短消息编码转换模块, 设置为在所述短消息接收模块接收到短消息 后, 在发送方与接收方釆用不同的短消息编码类型时, 按照发送方釆用的短 消息编码类型从所述编码转换驱动表中查找接收到的短消息的码值, 得到短 消息的码值对应的接收方釆用的短消息编码类型的码值。 The short message encoding conversion module is configured to, after the short message receiving module receives the short message, when the sender and the receiver use different short message encoding types, according to the short message encoding type used by the sender, from The code value of the received short message is searched in the coding conversion driver table to obtain the code value of the short message encoding type used by the receiver corresponding to the code value of the short message.
9、 如权利要求 8所述的装置, 其中, 所述第一码表为美国信息交换标准 代码 ASCII码表, 所述第二码表为全球移动通讯*** GSM码表。 9. The device of claim 8, wherein the first code table is an American Standard for Information Interchange ASCII code table, and the second code table is a Global System for Mobile Communications GSM code table.
10、 如权利要求 9所述的装置, 其中, 在所述编码转换驱动表中还记录 字符的码值的对应关系, 所述包含在 ASCII码表中未包含在 GSM码表中的 字符的码值与 GSM码表中的相同的码值对应,在所述编码转换驱动表中设置 有标记 GSM码表的码值对应的一个缺省的 ASCII码表的码值的标识。 10. The device according to claim 9, wherein the encoding conversion driver table also records the corresponding relationship of the code values of the characters, and the codes of the characters included in the ASCII code table but not included in the GSM code table. The value corresponds to the same code value in the GSM code table, and the code conversion driver table is provided with an identifier marking the code value of a default ASCII code table corresponding to the code value of the GSM code table.
11、 如权利要求 10所述的装置, 其中: 11. The device of claim 10, wherein:
所述短消息编码转换模块, 是设置为在发送方釆用 ASCII码的编码类型 接收方釆用 GSM码的编码类型时, 从所述编码转换驱动表的 ASCII码表的 码值中查找接收到的短消息的码值, 得到在编码转换驱动表中与查找到的 ASCII码表的码值对应的 GSM码表的码值,完成接收到的短消息的编码转换。 The short message encoding conversion module is configured to search for the received code from the code value of the ASCII code table of the encoding conversion driver table when the sender adopts the encoding type of ASCII code and the receiver adopts the encoding type of GSM code. The code value of the short message is obtained, and the code value of the GSM code table corresponding to the found code value of the ASCII code table in the coding conversion driver table is obtained, and the coding conversion of the received short message is completed.
12、 如权利要求 10所述的装置, 其中: 12. The device of claim 10, wherein:
所述短消息编码转换模块,是设置为在发送方釆用 GSM码的编码类型接 收方釆用 ASCII码的编码类型时, 从所述编码转换驱动表的 GSM码表的码 值中查找接收到的短消息的码值,并根据标记 GSM码表的码值对应的一个缺 省的 ASCII码表的码值的标识,得到在编码转换驱动表中与查找到的 GSM码 表的码值对应的缺省的 ASCII码表的码值,完成接收到的短消息的编码转换。 The short message encoding conversion module is configured to search for the received code from the code value of the GSM code table of the encoding conversion driver table when the sender adopts the encoding type of GSM code and the receiver adopts the encoding type of ASCII code. The code value of the short message, and according to the identification of the code value of a default ASCII code table corresponding to the code value of the marked GSM code table, obtain the code value corresponding to the code value of the found GSM code table in the encoding conversion driver table The code value of the default ASCII code table completes the encoding conversion of the received short message.
PCT/CN2013/076968 2012-11-20 2013-06-08 Short message transcoding method and device WO2013182079A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012104719541A CN102970661A (en) 2012-11-20 2012-11-20 Method and device for code conversion of short messages
CN201210471954.1 2012-11-20

Publications (1)

Publication Number Publication Date
WO2013182079A1 true WO2013182079A1 (en) 2013-12-12

Family

ID=47800464

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/076968 WO2013182079A1 (en) 2012-11-20 2013-06-08 Short message transcoding method and device

Country Status (2)

Country Link
CN (1) CN102970661A (en)
WO (1) WO2013182079A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102970661A (en) * 2012-11-20 2013-03-13 中兴通讯股份有限公司 Method and device for code conversion of short messages
JP6176829B2 (en) * 2013-03-21 2017-08-09 株式会社日立国際電気 Communication device and wireless communication module
CN107819543A (en) * 2016-09-12 2018-03-20 北京百度网讯科技有限公司 Data transmission method and device
CN106604246B (en) * 2016-12-09 2020-08-11 惠州Tcl移动通信有限公司 Method, system and mobile terminal for setting short message coding range based on country code

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816170A (en) * 2005-11-08 2006-08-09 杭州华为三康技术有限公司 Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof
CN101115228A (en) * 2007-08-26 2008-01-30 上海华为技术有限公司 Short message processing method and system
CN101635892A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method for uniformly coding and decoding message contents and integrated short message center system
CN101938718A (en) * 2009-07-02 2011-01-05 华为技术有限公司 Method and device for forwarding short messages between networks
CN102487493A (en) * 2009-11-06 2012-06-06 中国电信股份有限公司 Short message processing method and international intercommunication gateway
CN102970661A (en) * 2012-11-20 2013-03-13 中兴通讯股份有限公司 Method and device for code conversion of short messages

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008009006A2 (en) * 2006-07-13 2008-01-17 Neustar, Inc. System and method for short message service and instant messaging continuity
CN101350858B (en) * 2008-09-10 2011-10-26 华为终端有限公司 Method for decoding short message and user terminal
CN101635899B (en) * 2009-08-28 2012-05-09 中兴通讯股份有限公司 Method and system and signaling gateway for realizing message intercommunication of GSM and CDMA

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816170A (en) * 2005-11-08 2006-08-09 杭州华为三康技术有限公司 Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof
CN101115228A (en) * 2007-08-26 2008-01-30 上海华为技术有限公司 Short message processing method and system
CN101938718A (en) * 2009-07-02 2011-01-05 华为技术有限公司 Method and device for forwarding short messages between networks
CN101635892A (en) * 2009-08-27 2010-01-27 中兴通讯股份有限公司 Method for uniformly coding and decoding message contents and integrated short message center system
CN102487493A (en) * 2009-11-06 2012-06-06 中国电信股份有限公司 Short message processing method and international intercommunication gateway
CN102970661A (en) * 2012-11-20 2013-03-13 中兴通讯股份有限公司 Method and device for code conversion of short messages

Also Published As

Publication number Publication date
CN102970661A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN110753330B (en) Bluetooth pairing method and Bluetooth headset
WO2017000915A1 (en) Multicast transmission method, information extraction method and corresponding terminal and device
CN109391634A (en) Establish method, terminal and the computer readable storage medium of communication
CN101621763B (en) Method and corresponding device for displaying sender Chinese name at mobile phone terminal
CN101350858B (en) Method for decoding short message and user terminal
CN102835134A (en) System and method for reducing message signaling
WO2013127108A1 (en) Method and device for saving short message
CN103997571A (en) Business card exchange method based on audio coding
CN101840394B (en) Data decoding method
WO2013182079A1 (en) Short message transcoding method and device
WO2015117407A1 (en) Processing method and device for terminal information
EP4184795A1 (en) Bluetooth data packet processing method and communication device
WO2011022980A1 (en) Method for encoding and decoding message content uniformly and integrated short message center system
CN103888264A (en) Inter-mobile-phone data transferring method based on background data exchange, terminal and system
CN102882950A (en) Method for transmitting information between different sets of equipment based on double-tone multi-frequency technology
ES2536714T3 (en) Method, system and mobile terminal for access point configuration and application information
CN110719573A (en) Information transmission method and device, terminal equipment and storage medium
TW201242411A (en) System and method for processing unsolicited responses of AT commands
WO2011160475A1 (en) Method for automatically correcting short message service center number and terminal for sending short message
KR100956793B1 (en) Method and Server for Transforming Message Format for Interworking between Different Message Standards
WO2014101530A1 (en) Method and device for transmitting messages
CN101583103A (en) Transmitting or receiving method of short messages in text mode and device
US20050070224A1 (en) Method of using external electronic device on fixed platform to operate short messages through mobile communication device
CN107276719B (en) Number decimal number odd-even number identification method for communication system
TWI645698B (en) Data transmitting apparatus, data receiving apparatus and method thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13800617

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13800617

Country of ref document: EP

Kind code of ref document: A1