CN106454775A - Chinese early warning short message test method and apparatus - Google Patents
Chinese early warning short message test method and apparatus Download PDFInfo
- Publication number
- CN106454775A CN106454775A CN201610829232.7A CN201610829232A CN106454775A CN 106454775 A CN106454775 A CN 106454775A CN 201610829232 A CN201610829232 A CN 201610829232A CN 106454775 A CN106454775 A CN 106454775A
- Authority
- CN
- China
- Prior art keywords
- early warning
- short message
- code
- warning short
- chinese
- 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
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/24—Testing correct operation
- H04L1/242—Testing correct operation by comparing a transmitted test signal with a locally generated replica
- H04L1/244—Testing correct operation by comparing a transmitted test signal with a locally generated replica test sequence generators
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
Abstract
The present invention provides a Chinese early warning short message test method and apparatus, relating to the technical field of early warning short message test. The method comprises the steps of generating a test script, and configuring a protocol consistency test statement; establishing an LTE cell according to the test script, so as to enable a mobile phone terminal to register on the LTE cell; in SIB12, sending a related code of a Chinese early warning short message in the test script to the mobile phone terminal; and if the mobile phone terminal successfully receives the related code of the Chinese early warning short message, successfully decodes and displays a preset Chinese early warning short message, determining that the Chinese early warning short message is tested successfully. According to the method, the mobile phone terminal analyzes correctly according to the related code of the Chinese early warning short message in the test script, so as to complete the test of the Chinese early warning short message. A traditional English early warning short message test method cannot be directly used in the test of the Chinese early warning short message, and no stable, effective Chinese early warning short message test method is available at present. The present invention solves the above problems.
Description
Technical field
The present invention relates to early warning short message method of testing, more particularly to a kind of method of testing of Chinese early warning short message and dress
Put.
Background technology
Currently, early warning short message generally refers to public pre-warning short message service, and which refers to national Emergent Public Events early warning
Information-publishing machine structure issues early warning information by SMS to the public before Emergent Public Events generation, notifies burst public
Part of working together is coming and informs public's preventive measure, to reduce Emergent Public Events (such as natural disaster, Accidents Disasters etc.)
Bring the loss of the country and people's life, property.As early warning short message becomes more and more important, third generation partner program
(3rd Generation Partnership Project, abbreviation 3GPP) has organized to set up the test case of correlation, with agreement one
The mode of cause property test is detecting whether LTE terminal can be properly received early warning short message.Because 3GPP is international standard group
Knit, so in the formulation of test case, being sent to the early warning short message of mobile phone using English.The English early warning of test transmission is short to disappear
Breath is by the way of GSM 7bit acquiescence alphabetic coding.And Chinese early warning short message does not support GSM 7bit acquiescence alphabet volume
The mode of code.Therefore, method of testing currently also not for Chinese early warning short message.
In addition, except the test mode of protocol conformance, tester can also under real network (protocol conformance
Test be with instrument come analog network) by receive and dispatch note form come LTE terminal is carried out point-to-point note transmitting-receiving test.
But, this method of testing is not particularly suited for the test of early warning short message.Because early warning short message is come to entirely little by network
All users in area are tested with live network and firstly the need of contact operator, network side are operated being broadcasted,
Secondly the other users of cell can be impacted, and network environment is uncontrollable, as a result not necessarily accurate, after going wrong
Reproduction, location difficulty.It can be seen that, how to carry out stably effectively Chinese early warning short message test become one urgently to be resolved hurrily
Problem.
Content of the invention
Embodiments of the invention provide a kind of method of testing of Chinese early warning short message and device, to solve traditional English
The method of testing of early warning short message cannot directly apply to the test of Chinese early warning short message, there is presently no stably effectively in
The problem of the method for testing of literary early warning short message.
For reaching above-mentioned purpose, the present invention is adopted the following technical scheme that:
A kind of method of testing of Chinese early warning short message, including:
Generate a test script, and the statement of configuration protocol uniformity test;
According to the test script, LTE cell is set up, so that mobile phone terminal is registered to the LTE cell;
In SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal;
If mobile phone terminal is properly received the Chinese early warning short message correlative code, it is successfully decoded and shows and pre-set
Chinese early warning short message, it is determined that Chinese being successfully tested of early warning short message.
Specifically, one test script of the generation, including:
Generate the Chinese early warning short message correlative code of test script;
The Chinese early warning short message correlative code for generating test script, including:
The coded system for arranging Chinese early warning short message correlative code is encoded for UCS-2;
The English character of each page content correlation of Chinese early warning short message is set;
Each page English character of Chinese early warning short message is converted to the ASCII character of Hexadecimal form;
The ASCII character is converted to GSM7bit code;
The GSM7bit code is converted to GSM8bit code;
The content of each page, and the byte number of deficiency according to the GSM8bit code, are generated with the form that pre-sets and length
It is filled with 0, forms Chinese early warning short message correlative code;
Chinese early warning short message correlative code is divided into 3 sections of codes.
Specifically, the coded system for arranging Chinese early warning short message correlative code is encoded for UCS-2, including:
The key parameter for presentation code mode during testing protocol consistency is stated is set to 00010001B;Its
In, B represents binary system.
Specifically, the GSM7bit code is converted to GSM8bit code, including:
GSM7bit code is converted to binary system by hexadecimal;
Binary GSM7bit code is converted to binary GSM8bit code;
Binary GSM8bit code is converted to hexadecimal GSM8bit code.
Specifically, Chinese early warning short message correlative code is divided into 3 sections of codes, including:
The Chinese early warning short message correlative code that byte length is 167 bytes is respectively divided into 55 bytes, 55 bytes, 57 words
3 sections of codes of section.
A kind of test device of Chinese early warning short message, including:
Test script signal generating unit, for generating a test script, and the statement of configuration protocol uniformity test;
LTE cell sets up unit, for according to the test script, setting up LTE cell, so that mobile phone terminal is registered to
The LTE cell;
Chinese early warning short message correlative code transmitting element, for will be short for Chinese early warning in test script in SIB12
Message correlative code is sent to mobile phone terminal;
Test cell, for being properly received the Chinese early warning short message correlative code in mobile phone terminal, is successfully decoded simultaneously
When showing the Chinese early warning short message for pre-setting, being successfully tested for Chinese early warning short message is determined.
Additionally, the test script signal generating unit, specifically for generating the Chinese early warning short message correlation generation of test script
Code;
The test script signal generating unit, including:
Coded system setup module, encodes for UCS-2 for arranging the coded system of Chinese early warning short message correlative code;
Character setup module, for arranging the English character of each page content correlation of Chinese early warning short message;
ASCII character modular converter, for being converted to Hexadecimal form by each page English character of Chinese early warning short message
ASCII character;
GSM7bit code modular converter, for being converted to GSM7bit code by the ASCII character;
GSM8bit code modular converter, for being converted to GSM8bit code by the GSM7bit code;
Chinese early warning short message correlative code generation module, for according to the GSM8bit code, with the form for pre-setting
The content of each page being generated with length, and the byte number of deficiency is filled with 0, forms Chinese early warning short message correlative code;
Segmentation module, for being divided into 3 sections of codes by Chinese early warning short message correlative code.
In addition, the coded system setup module, specifically for:
The key parameter for presentation code mode during testing protocol consistency is stated is set to 00010001B;Its
In, B represents binary system.
In addition, the GSM8bit code modular converter, specifically for:
GSM7bit code is converted to binary system by hexadecimal;
Binary GSM7bit code is converted to binary GSM8bit code;
Binary GSM8bit code is converted to hexadecimal GSM8bit code.
Additionally, the segmentation module, specifically for:
The Chinese early warning short message correlative code that byte length is 167 bytes is respectively divided into 55 bytes, 55 bytes, 57 words
3 sections of codes of section.
A kind of method of testing of Chinese early warning short message provided in an embodiment of the present invention and device, test foot by generating one
This, and the statement of configuration protocol uniformity test;So as to according to the test script, set up LTE cell, so that mobile phone terminal note
Volume arrives the LTE cell;Afterwards, in SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone
Terminal;And the Chinese early warning short message correlative code is properly received in mobile phone terminal, it is successfully decoded and shows and pre-sets
During Chinese early warning short message, being successfully tested for the Chinese early warning short message is determined.The present invention is by the Chinese in test script
Early warning short message correlative code so that mobile phone terminal is correctly parsed, to complete the test of Chinese early warning short message, such that it is able to solve
The method of testing of certainly traditional English early warning short message cannot directly apply to the test of Chinese early warning short message, there is presently no
The problem of the method for testing of stable effectively Chinese early warning short message.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is a kind of flow chart one of the method for testing of Chinese early warning short message provided in an embodiment of the present invention;
Fig. 2 is a kind of flowchart 2 of the method for testing of Chinese early warning short message provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of the Chinese early warning short message that the mobile phone terminal in the embodiment of the present invention shows;
Fig. 4 is a kind of structural representation one of the test device of Chinese early warning short message provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation two of the test device of Chinese early warning short message provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiment of the present invention provides a kind of method of testing of Chinese early warning short message, including:
Step 101, one test script of generation, and the statement of configuration protocol uniformity test.
The testing protocol consistency statement, as pixit.
Step 102, according to the test script, set up LTE cell, so that mobile phone terminal is registered to the LTE cell.
LTE (Long Term Evolution) is long-term evolving network.
Step 103, in SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal.
The mobile phone terminal is generally supports LTE network, and supports Chinese display, and supports the reception of early warning short message.
If step 104 mobile phone terminal is properly received the Chinese early warning short message correlative code, it is successfully decoded and shows and be pre-
The Chinese early warning short message for first arranging, it is determined that Chinese being successfully tested of early warning short message.
A kind of method of testing of Chinese early warning short message provided in an embodiment of the present invention, by generating a test script, and
Configuration protocol uniformity test is stated;So as to according to the test script, set up LTE cell, so that mobile phone terminal is registered to
The LTE cell;Afterwards, in SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal;
And the Chinese early warning short message correlative code is properly received in mobile phone terminal, it is successfully decoded and shows that the Chinese for pre-setting is pre-
During alert short message, being successfully tested for the Chinese early warning short message is determined.The present invention is short by the Chinese early warning in test script
Message correlative code so that mobile phone terminal is correctly parsed, to complete the test of Chinese early warning short message, such that it is able to solve tradition
The method of testing of English early warning short message cannot directly apply to the test of Chinese early warning short message, there is presently no stably has
The problem of the method for testing of the Chinese early warning short message of effect.
In order that those skilled in the art is better understood by the present invention, a more detailed embodiment is set forth below,
In embodiments of the present invention, Chinese early warning short message word for example to be shown is " test " two word, as shown in Fig. 2 the present invention
A kind of method of testing of Chinese early warning short message that embodiment is provided, including:
Step 201, the coded system of the Chinese early warning short message correlative code of setting are that UCS-2 is encoded.
Herein, in step 201 can be with the key ginseng for presentation code mode in stating testing protocol consistency
Number is set to 00010001B;Wherein, B represents binary system.The key parameter for presentation code mode is configured, example
Such as:<Name Value=" Parameters.px_PWS_CB_DataCodingScheme "/><Type Value="
BITSTRING"/><ValueLimited Value=" "/><Value Value=" ' 00010001'B "/>
When<Value Value=" ' 00000001'B "/>When, represent coding staff of the early warning short message using GSM7bit
Formula, and language used is English, is revised as herein<Value Value=" ' 00010001'B "/>, so as to represent early warning
Short message is using the coded system of UCS-2.
Step 202, the English character of each page content correlation of the Chinese early warning short message of setting.
Specifically, number of pages N of Chinese early warning short message is generally less than and is equal to 15.In Chinese early warning short message test herein
In environment, the number of pages of general Chinese early warning short message can be only page 2.In this page 2 corresponding testing protocol consistency statements two
Individual parameter, that is, be used for representing parameter and the parameter for representing DataPage2 of DataPage1, corresponding parameter to be set to:
<Name Value=" Parameters.px_PWS_CB_DataPage1 "/><Type Value="
IA5String"/><ValueLimited Value=" "/><Value Value=" " zh@@RmR@" "/>;
<Name Value=" Parameters.px_PWS_CB_DataPage2 "/><Type Value="
IA5String"/><ValueLimited Value=" "/><Value Value=" " zh ,-" "/>;
Step 203, each page English character of Chinese early warning short message is converted to the ASCII character of Hexadecimal form.
Herein, will each page English character (char) be converted to character string (Octet String).
For example, for the parameter for representing DataPage1, its value is set to " zh@@RmR@";Zh@@RmR@is by character
Type is converted into hexadecimal character and alters type:68 40 40 52 6D 52 40 (hexadecimal) of 7A.In script, correlative code is such as
Under:
var octetstring v_OctetString:=char2oct (p_Text);
Related conversion corresponding relation such as table 1 below (character type and the corresponding relation of hexadecimal string type Hex) is shown:
Table 1:
Step 204, the ASCII character is converted to GSM7bit code.
ASCII character (American Standard Code for Information Interchange, believe by Unite States Standard
Breath interchange code) be converted to GSM7bit code particularly relevant code as follows:
v_OctetString:=fl_XlatAcsiiToGsm7Bit (v_OctetString)
For example:After 68 40 40 52 6D of 7A 52 40 is converted, the GSM7bit code that obtains is:7A 68 00 00 52 6D
52 00.
Concrete transforming relationship can be as described below:
By taking 7A as an example, 7A (16 system)=122 (10 system), no xlat, represent not and change, or 7A (16 system);
{ 0,256 }, // 122- " z "-no xlat (0 expression nochange above)
Likewise, 68 (16 system)=104 (10 system), no xlat, represent not and change, or 68 (16 systems);
{ 0,256 }, // 104- " h "-no xlat (0 expression nochange above)
40 (16 system)=64 (10 system), change into 00;
{ 1,0 }, 23.038 6.2.1 of // 64- "@"-gsm, 00 (1 expression basic table-no above
translation required)
52 (16 system)=82 (10 system), no xlat, represent not and change, or 52 (16 systems);
{ 0,256 }, // 82- " R "-no xlat (0 expression nochange above)
6D (16 system)=109 (10 system), no xlat, represent not and change, or 6D (16 system);
{ 0,256 }, // 109- " m "-no xlat (0 expression nochange above)
Finally, 68 40 40 52 6D 52 40 of 7A is converted into 68 00 00 52 6D 52 00 of 7A;
Step 205, the GSM7bit code is converted to GSM8bit code.
Herein, GSM7bit code can be converted to binary system by hexadecimal first.
Afterwards, binary GSM7bit code is converted to binary GSM8bit code.
Then, binary GSM8bit code is converted to hexadecimal GSM8bit code.
Specifically, the effect that GSM7bit code is converted to GSM8bit code be in English short message transmission process, in order to save
Save space, so as to be compressed to information.
Specific code can be expressed as:
First GSM7bit code is become binary system by hexadecimal.68 00 00 52 6D 52 00 of hexadecimal 7A;
Being converted into binary system is:
0111 1010
0110 1000
0000 0000
0000 0000
0101 0010
0110 1101
0101 0010
0000 0000
It can be seen that, first is all 0.In test short message, give tacit consent to and represent an English character with the binary code of 7bit,
The storage of so each English character can save the space of 1bit.So can be represented with the binary code of 8 7bit:
1111010
1101000
0000000
0000000
1010010
1101101
1010010
0000000
In order to complete 8 7bit binary codes to the conversion of 7 8bit binary codes:
(CBS packing) is saved according to the 6.1.2.2 of agreement TS23.038:
That is the lowest bit position of second binary number, is put into the highest-order bit of first binary number;Second two
The remaining 6bit of system number moves to right 1;
Minimum 2 bits of the 3rd binary number, are put into 2 bits of highest of second binary number;3rd
The remaining 5bit of individual binary number moves to right 2;
Minimum 3 bits of the 4th binary number, are put into 3 bits of highest of the 3rd binary number;4th
The remaining 4bit of individual binary number moves to right 3;
Gradually changed with this rule, until completing 8 7bit binary codes turning to 7 8bit binary codes
Change.
It is ultimately converted to 16 to enter to be made as:7A 34 00 20 6D 4B 01
Step 206, according to the GSM8bit code, generate the content of each page with the form that pre-sets and length, and not enough
Byte number be filled with 0, form Chinese early warning short message correlative code.
I.e. the Chinese early warning short message is CB_datainformation message, the structure of CB_datainformation
As follows:
1st byte is total page number (being 02 here, represent altogether page two);The 2-83 byte is the content of page 1
(it is 4 bits that 1 hexadecimal is converted into 2 systems, and such as 7 can be expressed as 0111, A can be expressed as 1010;One byte
It is 8 bits;So 7A is a byte;Useful information is 7A3400206D4B01, so coming to 7 bytes;Less than 82
0 is all mended if individual byte);84th byte is the length (length of useful information is 07 here) of page 1;So
85-166 byte is that (useful information, is 34 8B D5 02 of 7A here, complete less than if 82 bytes for the content of page 2
Portion mends 0);167th byte is the length (length of useful information is 05 here) of page 2;Until last page
Content, and the length (only page 2 altogether here) of last page.Number of pages is at most no more than page 15.
The CB_datainformation for finally obtaining is:
02 (number of pages) 7A3400206D4B01 (page 1 effective information, 7 bytes)
00000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000(75
Individual full 0 byte of padding) 07 (length of page 1 effective information) 7A348BD502 (page 2 effective information)
00000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000(82-
5=77 full 0 byte of padding) 05 (length of page 2 effective information).
Step 207, Chinese early warning short message correlative code is divided into 3 sections of codes.
Herein, 55 bytes, 55 words can be respectively divided into the Chinese early warning short message correlative code that byte length is 167 bytes
Section, 3 sections of codes of 57 bytes.
For example, as follows after the completion of segmentation:
'027A3400206D4B010000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000'O
'00000000000000000000000000000000000000000000000000000000077A348BD502
00000000000000000000000000000000000000'O
'00000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000005'O
The CB_datainformation message that as in test instrumentation, System information block 12 (SIB12) is carried.
Step 208, LTE cell is set up, so that mobile phone terminal is registered to the LTE cell.
Step 209, in SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal.
Step 210, mobile phone terminal are received during the Chinese early warning short message correlative code decodes and show and pre-set
Literary early warning short message.
In addition, mobile phone terminal can also send alarm sound prompting when the Chinese early warning short message for pre-setting is shown.
Specifically, mobile phone terminal can be transmitted to the application layer of mobile phone terminal after above-mentioned 3 section code is received, restructuring
And parse useful information.Coded system being identified for UCS-2, and language indicating bit is parsed for " zh ", represents language used
Speech type is Chinese.Afterwards, mobile phone terminal is according to each two byte, and the rule of a corresponding Chinese character, in Chinese dictionary
Go to look for corresponding Chinese character;If not in the range of Chinese dictionary, given up, until the user interface in mobile phone terminal
Show Chinese early warning short message, and with alarm sound prompting.
The specific work process of mobile phone terminal can be:
(page 1,16 enter to solve 34 00 20 6D 4B 01 of useful information 7A in System information block 12 (SIB12)
System) 34 8B D5 02 (page 2 hexadecimal) of 7A;
Due to P_DataCodingScheme=" 00010001 " B, it is coded system using UCS2 that mobile phone terminal is known;
According to the coding principle of UCS-2, first and second GSM7bit character is solved, agreement can be referred to
3GPPTS23.038 chapter 5.
7A34 is transformed to 7A68 through GSM8bit to GSM7bit, is then converted into the English alphabet " zh " of character type.
According to the coding principle of UCS-2, by searching ISO 639-1, " zh " correspondence " Chinese ", as shown in table 2 below:
Table 2:ISO 639-1
Afterwards, useful information is translated into Chinese by mobile phone terminal:
34 00 20 6D 4B 01 (page 1, hexadecimal) of 7A
34 8B D5 02 (page 2 hexadecimal) of 7A;
The translation of Chinese is that 2 bytes correspond to a Chinese, the benefit 0 of deficiency.
Page 1 is 0020 6D 4B 0100 (mending 0)
Page 2 is 8B D5 0200 (mending 0)
By consulting Chinese dictionary:
0020,0100,0200, not in the range of Chinese dictionary, gives up;6D4B corresponds to " survey ";8BD5 corresponds to " examination ".
Finally, as shown in figure 3, the display content of Chinese early warning short message is Chinese " test ".
Step 211, determine being successfully tested for Chinese early warning short message.
A kind of method of testing of Chinese early warning short message provided in an embodiment of the present invention, by generating a test script, and
Configuration protocol uniformity test is stated;So as to according to the test script, set up LTE cell, so that mobile phone terminal is registered to
The LTE cell;Afterwards, in SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal;
And the Chinese early warning short message correlative code is properly received in mobile phone terminal, it is successfully decoded and shows that the Chinese for pre-setting is pre-
During alert short message, being successfully tested for the Chinese early warning short message is determined.The present invention is short by the Chinese early warning in test script
Message correlative code so that mobile phone terminal is correctly parsed, to complete the test of Chinese early warning short message, such that it is able to solve tradition
The method of testing of English early warning short message cannot directly apply to the test of Chinese early warning short message, there is presently no stably has
The problem of the method for testing of the Chinese early warning short message of effect.
Corresponding to the embodiment of the method shown in above-mentioned Fig. 1 and Fig. 2, as shown in figure 4, the embodiment of the present invention provides a kind of Chinese
The test device of early warning short message, including:
Test script signal generating unit 31, for generating a test script, and the statement of configuration protocol uniformity test.
LTE cell sets up unit 32, for according to the test script, setting up LTE cell, so that mobile phone terminal registration
To the LTE cell.
Chinese early warning short message correlative code transmitting element 33, for by the Chinese early warning in test script in SIB12
Short message correlative code is sent to mobile phone terminal.
Test cell 34, for being properly received the Chinese early warning short message correlative code in mobile phone terminal, is successfully decoded
And when showing the Chinese early warning short message for pre-setting, determine being successfully tested for Chinese early warning short message.
Additionally, the test script signal generating unit 31, specifically for generating the Chinese early warning short message correlation of test script
Code.
As shown in figure 5, the test script signal generating unit 31, including:
Coded system setup module 311, compiles for UCS-2 for arranging the coded system of Chinese early warning short message correlative code
Code.
Character setup module 312, for arranging the English character of each page content correlation of Chinese early warning short message.
ASCII character modular converter 313, for being converted to hexadecimal shape by each page English character of Chinese early warning short message
The ASCII character of formula.
GSM7bit code modular converter 314, for being converted to GSM7bit code by the ASCII character.
GSM8bit code modular converter 315, for being converted to GSM8bit code by the GSM7bit code.
Chinese early warning short message correlative code generation module 316, for according to the GSM8bit code, with pre-set
Form and length generate the content of each page, and the byte number of deficiency is filled with 0, form Chinese early warning short message correlation generation
Code.
Segmentation module 317, for being divided into 3 sections of codes by Chinese early warning short message correlative code.
In addition, the coded system setup module 311, specifically for:
The key parameter for presentation code mode during testing protocol consistency is stated is set to 00010001B;Its
In, B represents binary system.
In addition, the GSM8bit code modular converter 315, specifically for:
GSM7bit code is converted to binary system by hexadecimal.
Binary GSM7bit code is converted to binary GSM8bit code.
Binary GSM8bit code is converted to hexadecimal GSM8bit code.
Additionally, the segmentation module 317, specifically for:
The Chinese early warning short message correlative code that byte length is 167 bytes is respectively divided into 55 bytes, 55 bytes, 57 words
3 sections of codes of section.
A kind of specific implementation of the test device of Chinese early warning short message provided in an embodiment of the present invention may refer to
Above-mentioned embodiment of the method, here is omitted.
A kind of test device of Chinese early warning short message provided in an embodiment of the present invention, by generating a test script, and
Configuration protocol uniformity test is stated;So as to according to the test script, set up LTE cell, so that mobile phone terminal is registered to
The LTE cell;Afterwards, in SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal;
And the Chinese early warning short message correlative code is properly received in mobile phone terminal, it is successfully decoded and shows that the Chinese for pre-setting is pre-
During alert short message, being successfully tested for the Chinese early warning short message is determined.The present invention is short by the Chinese early warning in test script
Message correlative code so that mobile phone terminal is correctly parsed, to complete the test of Chinese early warning short message, such that it is able to solve tradition
The method of testing of English early warning short message cannot directly apply to the test of Chinese early warning short message, there is presently no stably has
The problem of the method for testing of the Chinese early warning short message of effect.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can adopt complete hardware embodiment, complete software embodiment or with reference to software and hardware in terms of reality
Apply the form of example.And, the present invention can be adopted in one or more computers for wherein including computer usable program code
The upper computer program that implements of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) is produced
The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program
Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram
Journey and/or the combination of square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided
The processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is instructed to produce
A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing device
The device of the function of specifying in present one flow process of flow chart or multiple flow processs and/or one square frame of block diagram or multiple square frames.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included to refer to
Make the manufacture of device, the command device realize in one flow process of flow chart or multiple flow processs and/or one square frame of block diagram or
The function of specifying in multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing device so that in meter
Series of operation steps is executed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or
The instruction for executing on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one
The step of function of specifying in individual square frame or multiple square frames.
Apply specific embodiment in the present invention to be set forth the principle of the present invention and embodiment, above example
Explanation be only intended to help and understand the method for the present invention and its core concept;Simultaneously for one of ordinary skill in the art,
According to the thought of the present invention, all will change in specific embodiments and applications, in sum, in this specification
Appearance should not be construed as limiting the invention.
Claims (10)
1. a kind of Chinese early warning short message method of testing, it is characterised in that include:
Generate a test script, and the statement of configuration protocol uniformity test;
According to the test script, LTE cell is set up, so that mobile phone terminal is registered to the LTE cell;
In SIB12, the Chinese early warning short message correlative code in test script is sent to mobile phone terminal;
If mobile phone terminal is properly received the Chinese early warning short message correlative code, it is successfully decoded and shows the Chinese for pre-setting
Early warning short message, it is determined that Chinese being successfully tested of early warning short message.
2. according to claim 1 Chinese early warning short message method of testing, it is characterised in that the generation one test foot
This, including:
Generate the Chinese early warning short message correlative code of test script;
The Chinese early warning short message correlative code for generating test script, including:
The coded system for arranging Chinese early warning short message correlative code is encoded for UCS-2;
The English character of each page content correlation of Chinese early warning short message is set;
Each page English character of Chinese early warning short message is converted to the ASCII character of Hexadecimal form;
The ASCII character is converted to GSM7bit code;
The GSM7bit code is converted to GSM8bit code;
According to the GSM8bit code, generate the content of each page with the form that pre-sets and length, and the byte number of deficiency is with 0
It is filled with, forms Chinese early warning short message correlative code;
Chinese early warning short message correlative code is divided into 3 sections of codes.
3. the method for testing of Chinese early warning short message according to claim 2, it is characterised in that setting Chinese early warning
The coded system of short message correlative code is encoded for UCS-2, including:
The key parameter for presentation code mode during testing protocol consistency is stated is set to 00010001B;Wherein, B
Represent binary system.
4. according to claim 3 Chinese early warning short message method of testing, it is characterised in that by the GSM7bit code
GSM8bit code is converted to, including:
GSM7bit code is converted to binary system by hexadecimal;
Binary GSM7bit code is converted to binary GSM8bit code;
Binary GSM8bit code is converted to hexadecimal GSM8bit code.
5. according to claim 4 Chinese early warning short message method of testing, it is characterised in that by Chinese early warning short message
Correlative code is divided into 3 sections of codes, including:
The Chinese early warning short message correlative code that byte length is 167 bytes is respectively divided into 55 bytes, 55 bytes, 57 bytes
3 sections of codes.
6. a kind of Chinese early warning short message test device, it is characterised in that include:
Test script signal generating unit, for generating a test script, and the statement of configuration protocol uniformity test;
LTE cell sets up unit, for according to the test script, setting up LTE cell so that mobile phone terminal be registered to described
LTE cell;
Chinese early warning short message correlative code transmitting element, for by the Chinese early warning short message in test script in SIB12
Correlative code is sent to mobile phone terminal;
Test cell, for being properly received the Chinese early warning short message correlative code in mobile phone terminal, is successfully decoded and shows
During the Chinese early warning short message for pre-setting, being successfully tested for Chinese early warning short message is determined.
7. the test device of Chinese early warning short message according to claim 6, it is characterised in that the test script is generated
Unit, specifically for generating the Chinese early warning short message correlative code of test script;
The test script signal generating unit, including:
Coded system setup module, encodes for UCS-2 for arranging the coded system of Chinese early warning short message correlative code;
Character setup module, for arranging the English character of each page content correlation of Chinese early warning short message;
ASCII character modular converter, for being converted to Hexadecimal form by each page English character of Chinese early warning short message
ASCII character;
GSM7bit code modular converter, for being converted to GSM7bit code by the ASCII character;
GSM8bit code modular converter, for being converted to GSM8bit code by the GSM7bit code;
Chinese early warning short message correlative code generation module, for according to the GSM8bit code, with the form that pre-sets and length
Degree generates the content of each page, and the byte number of deficiency is filled with 0, forms Chinese early warning short message correlative code;
Segmentation module, for being divided into 3 sections of codes by Chinese early warning short message correlative code.
8. the test device of Chinese early warning short message according to claim 7, it is characterised in that the coded system is arranged
Module, specifically for:
The key parameter for presentation code mode during testing protocol consistency is stated is set to 00010001B;Wherein, B
Represent binary system.
9. according to claim 8 Chinese early warning short message test device, it is characterised in that the GSM8bit code turns
Mold changing block, specifically for:
GSM7bit code is converted to binary system by hexadecimal;
Binary GSM7bit code is converted to binary GSM8bit code;
Binary GSM8bit code is converted to hexadecimal GSM8bit code.
10. according to claim 9 Chinese early warning short message test device, it is characterised in that the segmentation module, tool
Body is used for:
The Chinese early warning short message correlative code that byte length is 167 bytes is respectively divided into 55 bytes, 55 bytes, 57 bytes
3 sections of codes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610829232.7A CN106454775B (en) | 2016-09-18 | 2016-09-18 | A kind of test method and device of Chinese early warning short message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610829232.7A CN106454775B (en) | 2016-09-18 | 2016-09-18 | A kind of test method and device of Chinese early warning short message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106454775A true CN106454775A (en) | 2017-02-22 |
CN106454775B CN106454775B (en) | 2019-11-29 |
Family
ID=58167991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610829232.7A Active CN106454775B (en) | 2016-09-18 | 2016-09-18 | A kind of test method and device of Chinese early warning short message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106454775B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1578501A (en) * | 2003-07-28 | 2005-02-09 | 华冠通讯股份有限公司 | Automatic reporting brief news system and method for mobole telephone function test |
CN202979294U (en) * | 2012-08-21 | 2013-06-05 | 工业和信息化部电信研究院 | TD-LTE terminal radio frequency consistency test system |
CN103716831A (en) * | 2013-12-17 | 2014-04-09 | 工业和信息化部电信研究院 | Terminal performance detection method |
-
2016
- 2016-09-18 CN CN201610829232.7A patent/CN106454775B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1578501A (en) * | 2003-07-28 | 2005-02-09 | 华冠通讯股份有限公司 | Automatic reporting brief news system and method for mobole telephone function test |
CN202979294U (en) * | 2012-08-21 | 2013-06-05 | 工业和信息化部电信研究院 | TD-LTE terminal radio frequency consistency test system |
CN103716831A (en) * | 2013-12-17 | 2014-04-09 | 工业和信息化部电信研究院 | Terminal performance detection method |
Non-Patent Citations (1)
Title |
---|
3GPP: "3rd Generation Partnership Project;Technical Specification Group Radio Access Network;User Equipment (UE) conformance specification;Part 1: Protocol conformance specification(Release 12)", <3GPP TS 34.123-1 V12.4.0 (2016-06)> * |
Also Published As
Publication number | Publication date |
---|---|
CN106454775B (en) | 2019-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101236523B (en) | Input method test method and device | |
CN105447247B (en) | A kind of method and system that regulation and controlling of information is checked | |
CN103346927A (en) | System and method for testing terminal consistency | |
EA024623B1 (en) | Data transmission method and system and data transmitter | |
CN112333186B (en) | Data communication method, device, equipment and storage medium | |
CN110728834A (en) | WAMS measurement data compression transmission method based on Beidou short message | |
KR20140106857A (en) | Protocol conformity verification method, apparatus performing the same and systme performing the same | |
CN104579748A (en) | SCD (substation configuration description) online checking network analysis method and system | |
CN112367216B (en) | Communication debugging method, tester and system suitable for safety and stability control system | |
CN107770786A (en) | A kind of method of testing of network performance, equipment and system | |
CN105988125A (en) | Statistical method for static data integrity based on GNSS receivers | |
CN106375151A (en) | Ethernet error code test method and system | |
CN113162977B (en) | Information processing method and device, equipment and storage medium | |
CN106454775B (en) | A kind of test method and device of Chinese early warning short message | |
CN111181994B (en) | Message encoding method and device based on FT3 protocol | |
CN106775909A (en) | The determination methods and device of the coded format of a kind of JAVA files and byte stream | |
CN103634475B (en) | The method of display network title and mobile terminal on mobile terminal | |
CN103716127B (en) | TTCN-3 based compression coding and decoding method and system | |
BR0204144A (en) | Apparatus and method for channel coding / decoding in a mobile communication system | |
CN105306309A (en) | Automated testing method of monitoring of repeater | |
CN103391291A (en) | Codec based on terminal consistency testing system and coding and decoding method | |
CN113645052B (en) | Firmware debugging method and related equipment | |
CN111324586B (en) | Picture display method and device based on cache, electronic equipment and medium | |
CN103368671A (en) | Terminal test system, test adapter and using method thereof | |
CN107294878A (en) | Data transmission method, system and relevant device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211227 Address after: 100191 No. 40, Haidian District, Beijing, Xueyuan Road Patentee after: CHINA ACADEMY OF INFORMATION AND COMMUNICATIONS Address before: 100191 No. 52 Garden North Road, Beijing, Haidian District Patentee before: CHINA ACADEME OF TELECOMMUNICATION RESEARCH OF MIIT |