CN105791032B - The test method and device of transport protocol between intelligent appliance and mobile terminal - Google Patents

The test method and device of transport protocol between intelligent appliance and mobile terminal Download PDF

Info

Publication number
CN105791032B
CN105791032B CN201610294047.2A CN201610294047A CN105791032B CN 105791032 B CN105791032 B CN 105791032B CN 201610294047 A CN201610294047 A CN 201610294047A CN 105791032 B CN105791032 B CN 105791032B
Authority
CN
China
Prior art keywords
test
intelligent appliance
protocol
transport protocol
tested
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.)
Active
Application number
CN201610294047.2A
Other languages
Chinese (zh)
Other versions
CN105791032A (en
Inventor
牛安
谭泽汉
彭志富
熊光灿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201610294047.2A priority Critical patent/CN105791032B/en
Publication of CN105791032A publication Critical patent/CN105791032A/en
Application granted granted Critical
Publication of CN105791032B publication Critical patent/CN105791032B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Abstract

The present invention relates to the test methods and device of transport protocol between a kind of intelligent appliance and mobile terminal.Wherein, method includes the following steps: importing the transport protocol to be tested in host computer;Instruction division is carried out to transport protocol, obtains multiple protocol test instructions;The protocol test that sending will be tested is instructed to intelligent appliance;Receive the test result data that intelligent appliance returns.It is obtained by way of importing needs transport protocol to be tested.And it only needs to instruct the protocol test marked off from the transport protocol of importing when being tested and is sent to intelligent appliance.When carrying out transport protocol test, does not need tester and write need byte to be tested manually, test protocol is avoided to write the high problem of error rate manually.

Description

The test method and device of transport protocol between intelligent appliance and mobile terminal
Technical field
The present invention relates to transport protocols between protocol test technical field more particularly to a kind of intelligent appliance and mobile terminal Test method and device.
Background technique
With the development of smart home and constantly universal and performance the successive optimization of smart phone, by network to intelligence Energy household, which carries out control, becomes a new trend trend.
Intelligent object is provided in air-conditioning at this stage, network can be connected to, receive the control of intelligent terminal System.Wherein, communication uses JSON (JavaScript Object between intelligent terminal (smart phone) and air-conditioning Notation is a kind of data interchange format of lightweight) agreement.So JSON agreement accounts for extremely in the reliability of communication Important role.Therefore, also just particularly important to the test of JSON agreement.
But carried out in test process to JSON agreement, since JSON protocol format is complex, test point is more, It is easy to appear mistakes in test data compiling procedure, cause test inaccuracy.
Summary of the invention
Based on this, it is necessary to for the problem that JSON protocol test is complicated in traditional technology, be easy error, provide one kind more The test method and device of transport protocol between good intelligent appliance and mobile terminal.
The test method of transport protocol, packet between a kind of intelligent appliance and mobile terminal that purpose provides to realize the present invention Include following steps:
Import the transport protocol to be tested;
Instruction division is carried out to the transport protocol, obtains multiple protocol test instructions;
The protocol test that sending will be tested is instructed to intelligent appliance;
Receive the test result data that the intelligent appliance returns.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, the transmission Agreement includes JSON agreement.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, the intelligence Household electrical appliances include air-conditioning.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, using table The mode of importing integrally imports the transport protocol tested.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, the agreement Test instruction is made of the combination of a byte or multiple bytes in the transport protocol.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, sent out in step It send the protocol test to be tested instruction to intelligent appliance, before further includes establishing between the intelligent appliance to connect It connects, and the step of obtaining the physical address of the intelligent appliance;And
The step of instruction of the protocol test that the transmission will be tested is to intelligent appliance, according to the object of acquisition Reason address sends the protocol test to be tested and instructs to intelligent appliance.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, further include with Lower step:
The corresponding protocol test instruction of corresponding intelligent appliance and test result data are stored respectively according to the physical address.
As a kind of embodiment of the test method of transport protocol between intelligent appliance and mobile terminal, further include with Lower step:
The response rate instructed to the intelligent appliance to protocol test counts, and obtains statistical result.
The test device of transport protocol between a kind of intelligent appliance and mobile terminal based on the same inventive concept, comprising:
Import modul, for importing the transport protocol to be tested;Wherein, the transport protocol is JSON agreement;
Division module is instructed, for carrying out instruction division to the transport protocol, obtains multiple protocol test instructions;
Sending module, for sending the protocol test to be tested instruction to intelligent appliance;
Receiving module, the test result data returned for receiving the intelligent appliance.
The test device of transport protocol, is also wrapped between a kind of intelligent appliance and mobile terminal based on the same inventive concept It includes:
Address acquisition module establishes the connection between the intelligent appliance, and obtains the intelligent appliance physically Location;
Memory module, for according to the physical address store respectively the corresponding protocol test instruction of corresponding intelligent appliance and Test result data.
The beneficial effect comprise that between intelligent appliance provided by the invention and mobile terminal transport protocol test Method, being obtained by way of importing needs transport protocol to be tested.And only need when being tested will be from importing The protocol test instruction marked off in transport protocol is sent to intelligent appliance.In this way, when carrying out transport protocol test, no Needing tester to write manually needs byte to be tested, and test protocol is avoided to write the high problem of error rate manually.And it leads The transport protocol entered carries out the division of protocol test instruction automatically, realizes comprehensive covering to transport protocol test point, effectively anti- Only transport protocol test point test leakage.In addition, tester after upper computer end need to only import transport protocol, then can use direct The mode of selection carries out the test of each test point, greatly improves the testing efficiency of transport protocol.Simultaneously provide intelligent appliance with The test device of transport protocol also has the advantages that aforementioned between mobile terminal.
Detailed description of the invention
Fig. 1 is a specific embodiment of the test method of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal Flow chart;
Fig. 2 is another specific implementation of the test method of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal The flow chart of example;
Fig. 3 is host computer and air-conditioning in the test method of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal Between connection relationship diagram;
Fig. 4 is another specific example of the test method of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal Flow chart;
Fig. 5 is the another specific implementation of the test method of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal The flow chart of example;
Fig. 6 is a specific embodiment of the test device of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal Structural schematic diagram;
Fig. 7 is another specific implementation of the test device of transport protocol between a kind of intelligent appliance of the present invention and mobile terminal The structural schematic diagram of example.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to of the invention The test method of transport protocol and the specific embodiment of device are illustrated between intelligent appliance and mobile terminal.It should manage Solution, the specific embodiments described herein are merely illustrative of the present invention, is not intended to limit the present invention.
An embodiment of the test method of transport protocol between intelligent appliance and mobile terminal of the present invention, as shown in Figure 1, packet Include following steps:
S100 imports the transport protocol to be tested.
It should be noted that the test method of the embodiment of the present invention is using a host computer as a virtual terminal pair What transport protocol was tested.Most of steps flow chart of the test method is assisted in fact by host computer (virtual terminal) Existing.And host computer can be communicated by network and intelligent appliance, such as pass through TCP (Transmission Control Protocol Transmission control protocol)/UDP (User Datagram Protocol, User Datagram Protocol) and air-conditioner set establish connection.On Position machine and intelligent appliance are established after connection, are tested by transmitting the necessary defeated agreement of data mutual transmission.
Certainly, step S100 imports the transport protocol to be tested, and is that the transport protocol to be tested is imported into In the host computer for executing test method.
Wherein, the intelligent appliance includes but is not limited to that the air-conditioning for having intelligent communication module, hot water machine, new blower etc. are set It is standby.
Test method can be illustrated using air-conditioning as example in subsequent explanation, but not illustrate this test method It is served only in air-conditioning, specific testing process is essentially identical in other intelligent appliances.
In addition, entire agreement can be imported in table form, use is this for importing transport protocol into host computer Lead-in mode can mention the treatment effeciency of test method entirety convenient for the correspondence procedure identification transport protocol in host computer It is high.Certainly other modes importing, which can also be used, needs transport protocol to be tested.Transmission association can be such as imported by the way of one by one View, it is slightly slow that this mode imports transport protocol speed.But it is if same while importing transport protocol using multithreading Step parses the transport protocol having been introduced into, then influence meeting of the lead-in mode to the test method disposed of in its entirety speed one by one It substantially reduces.The resolution speed of transport protocol is faster, intelligent in conjunction with multiple threads mode even by the way of importing one by one The test bulk velocity of transport protocol also can be faster between household electrical appliances and mobile terminal.
The transport protocol tested in the present invention includes but is not limited to common JSON (JavaScript Object Notation) agreement.
S200 carries out instruction division to transport protocol, obtains multiple protocol test instructions.
The advantage of the test method of the embodiment of the present invention is, after importing transport protocol into host computer, directly to The division that transport protocol through importing is instructed.Described instruction division, which refers to for the transport protocol of importing to be divided into, to be used to test Sentence.Such as JSON agreement, any one of agreement byte can be separately as a transmission control instruction to sky Transfer in row control.Therefore, for transport protocol instruction divide, can be divided by byte, i.e., using each byte as One individual protocol test instruction.Multiple bytes can also be collectively formed into a protocol test instruction according to demand.When So, each byte such as is regard as a protocol test instruction when dividing, control can also be ordered when being tested Order is combined and constitutes mixing control command, it is also assumed that being by multiple protocol test instructions marked off again group It closes and constitutes a new protocol test instruction.
Wherein, the protocol test instruction is then to refer to be transferred in intelligent appliance equipment, is controlled household electrical appliances, and Household electrical appliances can make the control command of certain reaction (feedback information) accordingly.
After the completion of protocol test instruction divides, following step is continued to execute:
S300, the protocol test that sending will be tested are instructed to intelligent appliance.
The test method of the embodiment of the present invention is realized by host computer, which carries out the transmission of protocol test instruction It can be realized by the network communication module of host computer.The protocol test that will be tested by the network communication module of host computer Instruction is sent to intelligent appliance.Certainly, in the smooth situation of network, protocol test instruction can be sent to intelligent appliance.Intelligence After household electrical appliances receive the protocol test instruction, as soon as variation can occur for the load of air-conditioning, some operating parameters of air-conditioning also occur Variation.At this point, the operating parameter that air-conditioning receives after control can be fed back to host computer by air-conditioning, as test result.
More preferably, after transport protocol is divided into multiple protocol test instructions by step S200 in one of the embodiments, Further the instruction of each protocol test is shown on the display interface of host computer.To which tester can be using directly choosing The mode taken selects the protocol test to be tested to instruct and be sent to intelligent appliance.
And in another embodiment, divided protocol test can also be instructed according to preset order (such as letter Sequence etc.) it is arranged, and protocol test instruction is sent automatically to intelligent appliance according to removal of mines sequence in step S300.And it waits The test result returned to household electrical appliances.It so, it is possible the test for the transport protocol that automatic, intelligent completion imports.
S400 receives the test result data that intelligent appliance returns.
After receiving the test result data that intelligent appliance returns, then the test of Current protocol test instruction is completed, if It needs, then continues to send other protocol tests instructing to intelligent appliance, so as to the other parts code or word to transport protocol Section is tested, until completing the test of all transport protocols.
The test method of transport protocol between the intelligent appliance and mobile terminal of the embodiment of the present invention constructs virtual terminal, And need transport protocol to be tested is obtained by way of importing.And only need when being tested will be from the transmission of importing The protocol test instruction marked off in agreement is sent to intelligent appliance.In this way, not needed when carrying out transport protocol test Tester writes manually needs byte to be tested, and test protocol is avoided to write the high problem of error rate manually.And import Transport protocol carries out the division of protocol test instruction automatically, realizes comprehensive covering to transport protocol test point, effectively prevent passing Defeated protocol test point test leakage.In addition, tester after upper computer end need to only import transport protocol, then can use and directly select Mode carry out the test of each test point, greatly improve the testing efficiency of transport protocol.
It instructs as shown in Fig. 2, sending the protocol test to be tested in step to intelligent appliance, before further includes following Step:
S030 establishes the connection between intelligent appliance, and obtains the physical address of intelligent appliance.
In the test method of the embodiment of the present invention, the transmission of protocol test instruction is by the network communication mould in host computer What block carried out.Host computer can be connect by the network communication module of itself with internet, and be sent by internet to be tested Protocol test instruction.
After the physical address for obtaining intelligent appliance, step S400, the protocol test that sending will be tested refers to Intelligent appliance is enabled, then the protocol test to be tested further can be sent according to the physical address of acquisition and referred to Enable intelligent appliance, S400 '.
Specifically, it is more for cloud control quantity, and it is divided into the system of multiple wifi modules, as shown in figure 3, including in system N number of wifi module, and it is connected with N number of air-conditioning in each module.In this way, just include N*N air-conditioning in whole system, Middle N is the positive integer greater than 1.Host computer 100 can establish the test that connection carries out transport protocol with all air-conditionings in system. Using the test mode of the embodiment of the present invention when obtaining the MAC Address of air-conditioning, the address of upper layer module can be obtained first, and it is upper After layer module binding connection, the MAC Address of specific air-conditioning is further obtained.Specific implementation procedure is referring to fig. 4, including following Step:
Transport protocol, step S101 in figure are imported in virtual terminal (host computer) first;
It is built again using UDP (User Datagram Protocol, User Datagram Protocol) mode with a wifi module It is vertical to connect, step S102 in figure;
After successful connection, virtual terminal obtains the physical address (MAC Address) of current wifi module, step S103 in figure;
After obtaining address, virtual terminal and current wifi module are bound, step S104 in figure;
After binding success, virtual terminal continues to obtain the physical address (MAC for the air-conditioning that currently carry out transport protocol communication Address), step S105 in figure.
After getting the physical address of air-conditioning, then virtual terminal carries out the survey of transport protocol using the corresponding air-conditioning in the address Examination.
Figure 4, it is seen that further including two judgment steps, S1021 and S1041 in the testing process.Wherein step S1021 is a judgement to host computer and wifi module connection, both judge whether successful connection, be not connected with successfully In the case where, the process of connection can be waited in one, until both establish network connection, can be until smooth communication.And it walks Rapid S1401 be one whether judge binding success the step of, only after binding, host computer could be by the current sky to be found Tune navigates under current wifi module.Guarantee the accuracy of acquisition whole system structure.
After in the test method of the embodiment including two judgment steps, communication between host computer and air-conditioning can be made more Add stabilization also more smooth.
More preferably, between the intelligent appliance and mobile terminal of another embodiment in the test method of transport protocol, such as Fig. 5 It is shown, further comprising the steps of:
S500 stores the corresponding protocol test instruction of corresponding intelligent appliance and test result number according to physical address respectively According to.
In the embodiment, virtual terminal (host computer) is mark using MAC Address, the test knot under different wifi modules Fruit classification display.Modules and the corresponding specific transport protocol test data of each air-conditioning are conveniently checked, to contingency question Investigation is of great significance.
And as an embodiment, host computer can pass through the cloud control quantity and its correspondence of cloud direct access systems Air-conditioning quantity under wifi module.And it also can be displayed in the display interface of host computer.In this way, further facilitating tester Operation, the air-conditioning that the mode directly chosen selects to be sent can be used in operator.
More preferably, when carrying out the test of transport protocol using host computer, additionally it is possible to be instructed to intelligent appliance to protocol test Response rate counted, obtain statistical result.Response rate so as to guarantee communication is up to standard.
Moreover, between intelligent appliance and mobile terminal of the invention in the test method of transport protocol, tester's choosing After the protocol test instruction for selecting intelligent terminal to be sent to, host computer can be automatic right before sending the protocol test instruction It uses AES encryption mode to be encrypted, and the transmission data decrypted to needs are decrypted.Reduce transport protocol The complexity of test.
More preferably, the test knot that can also be returned using the display device real-time display air-conditioning (intelligent appliance) in host computer Fruit, and test result, according to the difference of physical address, sub-module is shown, convenient for checking.
Based on the same inventive concept, the present invention also provides a kind of tests of transport protocol between intelligent appliance and mobile terminal Device, the test side of transport protocol between the principle solved the problems, such as due to this device and a kind of aforementioned intelligent appliance and mobile terminal Method is similar, and therefore, the implementation of the device can realize that overlaps will not be repeated according to the specific steps of preceding method.
The test device of transport protocol between the intelligent appliance and mobile terminal of one embodiment of the invention, as shown in fig. 6, packet Include import modul 110, instruction division module 120, sending module 130 and receiving module 140.
Wherein, import modul 110, for importing the transport protocol to be tested;Wherein, transport protocol is JSON association View;Division module 120 is instructed, for carrying out instruction division to transport protocol, obtains multiple protocol test instructions;Sending module 130, for sending the protocol test to be tested instruction to intelligent appliance;Receiving module 140 is returned for receiving intelligent appliance The test result data returned.
The test device of the embodiment of the present invention is also to be arranged in host computer, using host computer as a virtual terminal into The test of row transport protocol.
Wherein, intelligent appliance includes that the air-conditioning for being provided with network communication module, water heater etc. can smart machines.And the device When importing transport protocol, the mode that table can be used integrally imports the transport protocol to be tested, can also be using one by one The mode of importing is imported the transport protocol to be tested by character one by one.
Further, the protocol test instruction of division can be made of a byte, can also have multiple bytes to constitute.And it assists View test instruction can be sent to intelligent appliance (such as air-conditioning) by the way of combination.And it is sent and is assisted to air-conditioning using combination When view test instruction, module is integrated in the instruction in the device to be integrated into one for the instruction of multiple protocol tests automatically, and one is concurrent It is sent to air-conditioning.
It more preferably, in one of the embodiments, further include encryption/decryption module, the protocol test instruction is sent to intelligence Before household electrical appliances, the encryption/decryption module automatically can be encrypted it using AES encryption mode.And the deciphering module is also The test result that can be returned to intelligent appliance equipment is decrypted automatically.Reduce the difficulty of test of transport protocol.
The test device of transport protocol between the intelligent appliance and mobile terminal of the embodiment of the present invention, by way of importing Obtaining needs transport protocol to be tested.And the association for only needing to mark off from the transport protocol of importing when being tested View test instruction is sent to intelligent appliance.In this way, not needing tester when carrying out transport protocol test and writing manually Byte to be tested is needed, test protocol is avoided to write the high problem of error rate manually.And the transport protocol imported carries out automatically The division of protocol test instruction, realizes comprehensive covering to transport protocol test point, effectively prevent transport protocol test point test leakage. In addition, tester after upper computer end need to only import transport protocol, then can carry out each test by the way of directly selecting The test of point, greatly improves the testing efficiency of transport protocol.
In another embodiment, as shown in fig. 7, further including address acquisition module 131 and memory module 150.Wherein, address It obtains module 131 to be used to connect intelligent appliance by the network communication module of host computer, and obtains the physical address of intelligent appliance. Memory module 150 for storing the corresponding protocol test instruction of corresponding intelligent appliance and test result number according to physical address respectively According to.
When in system including multiple intelligent appliances, multiple intelligent appliances may be grouped under several wifi modules, this When, it is corresponding also to obtain current intelligent appliance when obtaining the physical address of intelligent appliance simultaneously for the address acquisition module 131 Upper layer wifi module physical address, thus, the physical address of the air-conditioning (intelligent appliance) stored in host computer can it is accurate, What is had levels shows it in the position of system.
The test device of the embodiment is that mark stores test result with MAC Address, is that test network is clear.Solution The big problem of data volume existing for JSON protocol test under multiple systems of having determined.
Those of ordinary skill in the art will appreciate that realize all or part of the process in above-described embodiment method and device, It is that relevant hardware can be instructed to complete by computer program, the program can be stored in one and computer-readable deposit In storage media, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium It can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. the test method of transport protocol between a kind of intelligent appliance and mobile terminal, which comprises the following steps:
Import the transport protocol to be tested;
Byte instruction division is carried out to the transport protocol, obtains multiple protocol test instructions, wherein the carry out byte instruction Division includes each byte being used as to an individual protocol test instruction, or multiple bytes are collectively formed an agreement Test instruction;
The protocol test that sending will be tested is instructed to intelligent appliance;
Receive the test result data that the intelligent appliance is returned according to protocol test instruction.
2. the test method of transport protocol between intelligent appliance according to claim 1 and mobile terminal, which is characterized in that The transport protocol includes JSON agreement.
3. the test method of transport protocol between intelligent appliance according to claim 1 and mobile terminal, which is characterized in that The intelligent appliance includes air-conditioning.
4. the test method of transport protocol between intelligent appliance according to claim 1 and mobile terminal, which is characterized in that The step of transport protocol that the importing will be tested, comprising: integrally imported and tested by the way of table importing Transport protocol.
5. the test method of transport protocol between intelligent appliance according to claim 1 and mobile terminal, which is characterized in that The protocol test instruction is made of the combination of a byte or multiple bytes in the transport protocol.
6. the test method of transport protocol between intelligent appliance according to claim 1 and mobile terminal, which is characterized in that The protocol test to be tested is sent in step to instruct to intelligent appliance, before further includes establishing and the intelligent appliance Between connection, and the step of obtaining the physical address of the intelligent appliance;And
The step of instruction of the protocol test that the transmission will be tested is to intelligent appliance, according to acquisition physically Location sends the protocol test to be tested and instructs to intelligent appliance.
7. the test method of transport protocol between intelligent appliance according to claim 6 and mobile terminal, which is characterized in that It is further comprising the steps of:
The corresponding protocol test instruction of corresponding intelligent appliance and test result data are stored respectively according to the physical address.
8. the test method of transport protocol between intelligent appliance according to claim 1 and mobile terminal, which is characterized in that It is further comprising the steps of:
The response rate instructed to the intelligent appliance to protocol test counts, and obtains statistical result.
9. the test device of transport protocol between a kind of intelligent appliance and mobile terminal characterized by comprising
Import modul, for importing the transport protocol to be tested;Wherein, the transport protocol is JSON agreement;
Division module is instructed, for obtaining multiple protocol tests instructions to transport protocol progress byte instruction division, In, progress byte instruction division includes being used as each byte one individual protocol test to instruct, or will be multiple Byte collectively forms a protocol test instruction;
Sending module, for sending the protocol test to be tested instruction to intelligent appliance;
Receiving module, the test result data returned for receiving the intelligent appliance according to protocol test instruction.
10. the test device of transport protocol, feature exist between intelligent appliance according to claim 9 and mobile terminal In, further includes:
Address acquisition module establishes the connection between the intelligent appliance, and obtains the physical address of the intelligent appliance;
Memory module instructs and test for storing the corresponding protocol test of corresponding intelligent appliance respectively according to the physical address Result data.
CN201610294047.2A 2016-05-04 2016-05-04 The test method and device of transport protocol between intelligent appliance and mobile terminal Active CN105791032B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610294047.2A CN105791032B (en) 2016-05-04 2016-05-04 The test method and device of transport protocol between intelligent appliance and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610294047.2A CN105791032B (en) 2016-05-04 2016-05-04 The test method and device of transport protocol between intelligent appliance and mobile terminal

Publications (2)

Publication Number Publication Date
CN105791032A CN105791032A (en) 2016-07-20
CN105791032B true CN105791032B (en) 2018-12-07

Family

ID=56400722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610294047.2A Active CN105791032B (en) 2016-05-04 2016-05-04 The test method and device of transport protocol between intelligent appliance and mobile terminal

Country Status (1)

Country Link
CN (1) CN105791032B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019227371A1 (en) * 2018-05-31 2019-12-05 深圳市蚂蚁雄兵物联技术有限公司 Device connection method and apparatus, electronic device, and readable storage medium
CN109059198A (en) * 2018-07-23 2018-12-21 珠海格力电器股份有限公司 Equipment automatic engineering adjustment method, device, system and computer equipment
CN110784379B (en) * 2019-11-01 2021-01-01 北京云迹科技有限公司 Internet of things module testing method, intermediate equipment, terminal equipment and testing system
CN112102526A (en) * 2020-08-12 2020-12-18 中国电力科学研究院有限公司 Test method and system for electric intelligent internet of things lock
CN113468033B (en) * 2021-06-23 2024-03-26 青岛海尔科技有限公司 Household appliance testing method and system
CN115314427B (en) * 2022-10-11 2023-03-31 荣耀终端有限公司 Protocol testing method, electronic equipment and chip system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072135A (en) * 2007-06-29 2007-11-14 杭州华三通信技术有限公司 Wireless LAN testing method and system
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN103532772A (en) * 2012-09-29 2014-01-22 深圳市友讯达科技发展有限公司 Method and device for network hierarchy test
CN103812729A (en) * 2014-02-19 2014-05-21 北京理工大学 Network protocol fuzz testing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4509955B2 (en) * 2006-03-13 2010-07-21 株式会社東芝 VPN communication detection method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101072135A (en) * 2007-06-29 2007-11-14 杭州华三通信技术有限公司 Wireless LAN testing method and system
CN101500255A (en) * 2008-02-03 2009-08-05 中国移动通信集团公司 Mobile terminal test method and system
CN103532772A (en) * 2012-09-29 2014-01-22 深圳市友讯达科技发展有限公司 Method and device for network hierarchy test
CN103812729A (en) * 2014-02-19 2014-05-21 北京理工大学 Network protocol fuzz testing method and device

Also Published As

Publication number Publication date
CN105791032A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN105791032B (en) The test method and device of transport protocol between intelligent appliance and mobile terminal
CN103338475B (en) The method of testing of WAP (wireless access point) and device, test terminal
US10972362B2 (en) Network service configuration method and network management device
CN107800603B (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
CN104967585A (en) Method for remote debugging of mobile terminal and apparatus thereof
CN104410986A (en) Method and device for testing WIFI (Wireless Fidelity) compatibility of terminal
CN108713309A (en) SD-WAN system, use method of SD-WAN system and related device
CN105577500B (en) The correlating method and device of VXLAN and tunnel
CN109379742A (en) A kind of cut-in method of WLAN, device and storage medium
CN109728984A (en) A kind of access system, method and device
CN105354450A (en) Method and apparatus for authorizing WeChat to control intelligent devices
CN104539502A (en) Method for adding modbus equipment in customized manner
CN106130855B (en) The method and device of data processing
CN107678771A (en) A kind of method for optimizing battery management system online upgrading
CN106658625A (en) Network switching method and device
CN108156597A (en) A kind of bluetooth equipment and its test method
CN104853447B (en) A kind of data information processing method and device
CN109839548A (en) Interface test method, apparatus and system
CN110392096A (en) A kind of method, apparatus of file distributing, master controller and storage medium
CN108156045B (en) A kind of software definition grouping conveying network SPTN test macro and method
CN108885435A (en) A kind of control method, host, slave, mobile terminal and control system
CN108076089A (en) A kind of long-range control method and device
CN107222296A (en) Method, terminal device and the computer-readable recording medium of information transfer
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
CN107528898A (en) A kind of method and device for realizing Internet of Things module

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