CN109560986A - Test method, device and the test macro of things-internet gateway equipment - Google Patents

Test method, device and the test macro of things-internet gateway equipment Download PDF

Info

Publication number
CN109560986A
CN109560986A CN201811409913.3A CN201811409913A CN109560986A CN 109560986 A CN109560986 A CN 109560986A CN 201811409913 A CN201811409913 A CN 201811409913A CN 109560986 A CN109560986 A CN 109560986A
Authority
CN
China
Prior art keywords
things
test
internet gateway
gateway equipment
server
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.)
Pending
Application number
CN201811409913.3A
Other languages
Chinese (zh)
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.)
Purcell Communications Service Technology Ltd By Share Ltd
Original Assignee
Purcell Communications Service Technology Ltd By Share Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Purcell Communications Service Technology Ltd By Share Ltd filed Critical Purcell Communications Service Technology Ltd By Share Ltd
Priority to CN201811409913.3A priority Critical patent/CN109560986A/en
Publication of CN109560986A publication Critical patent/CN109560986A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Abstract

The disclosure is directed to a kind of test methods of things-internet gateway equipment, device and test macro, when things-internet gateway equipment determines that receiving server sends test request information, things-internet gateway equipment is triggered to enter from flow gauge, and things-internet gateway equipment is tested automatically according to from flow gauge preset test method, determine whether things-internet gateway equipment can pass through test, so that it is determined that whether the software and hardware function of things-internet gateway equipment is qualified out, manual intervention is not needed in the test process, it is easily achieved, and testing efficiency is high, it solves and needs operator to operate on the server in the prior art, switch each test item, the tedious steps that things-internet gateway equipment is tested.

Description

Test method, device and the test macro of things-internet gateway equipment
Technical field
This disclosure relates to the test method of things-internet gateway equipment technical field more particularly to things-internet gateway equipment, dress It sets and test macro.
Background technique
In the prior art, it in order to guarantee the software and hardware quality of things-internet gateway equipment, needs to complete in complete machine production and assembly Corresponding software and hardware functional test is carried out to it afterwards.Currently, the test method of things-internet gateway equipment includes: in testing service device Upper operation test software sends corresponding test instruction to things-internet gateway equipment, to the software and hardware function of internet of things equipment into Row test.In general, the test software includes multiple test items, after the completion of a test item is tested, need to exist by operator It is operated on server, runs next test item, until completing all items test of things-internet gateway equipment, this method makes Things-internet gateway equipment test and comparison labor intensive, and testing efficiency is also relatively low.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of test method of things-internet gateway equipment, dress It sets and test macro.
According to the first aspect of the embodiments of the present disclosure, a kind of things-internet gateway apparatus testing method is provided, Internet of Things are applied to Net gateway, comprising: determine whether to receive the test request information of server transmission;The server is received in determination When the test request information of transmission, triggers the things-internet gateway equipment and enter from flow gauge;According to described default from flow gauge Test method the things-internet gateway equipment is tested, and determine whether by test, output test result.
Optionally, described that the things-internet gateway equipment is tested from flow gauge preset test method according to It include: the test software packet that the things-internet gateway equipment is tested in downloading from the server;Verify the test Whether software package is target detection software package;When verifying the test software packet is target detection software package, according to the mesh Test item in mapping examination software package tests the things-internet gateway equipment.
Optionally, the test request information includes the first check code of the test software packet, the verifying survey It includes: the second verification for calculating the test software packet downloaded from the server that whether examination software package, which is target detection software package, Code;Determine whether first check code and second check code are consistent;Determining first check code and described second When check code is consistent, determine that the test software packet of downloading is the target detection software package.
Optionally, the test request information further includes the first address of the server, described from the server Downloading the test software packet tested the things-internet gateway equipment includes: to determine corresponding clothes according to first address Business device, downloads the test software packet from the server.
Optionally, described that the things-internet gateway equipment is surveyed from flow gauge preset test method according to Examination, and determine whether to output test result further include: determining that the things-internet gateway equipment cannot be by described by test When target detection software package is tested, the warning device triggered in the things-internet gateway equipment issues warning note.
According to the second aspect of an embodiment of the present disclosure, a kind of things-internet gateway apparatus testing method is provided, service is applied to Device, comprising: obtain the second address of things-internet gateway equipment;It is sent out according to second address to corresponding things-internet gateway equipment Send test request information, entered with triggering the things-internet gateway equipment from flow gauge, make the things-internet gateway equipment according to It is described to be tested from the preset test method of flow gauge;Determine whether to receive the test that the things-internet gateway equipment is sent Complete instruction;When determining that receiving the test that the things-internet gateway equipment is sent completes instruction, the Internet of Things net is obtained The test result of equipment is closed, and test report is generated according to the test result.
Optionally, the method also includes: obtain the identification code of corresponding with second address things-internet gateway equipment, The identification code is the unique identification of the things-internet gateway equipment;Determination cannot by the things-internet gateway equipment of test, And the things-internet gateway equipment is indicated according to the identification code in the test report.
According to the third aspect of an embodiment of the present disclosure, a kind of things-internet gateway equipment testing device is provided, Internet of Things are applied to Net gateway, comprising: the first determining module, it is determined whether receive the test request information of server transmission;Trigger module, When determining the test request information for receiving the server transmission, triggers the things-internet gateway equipment and enter from flow measurement Journey;Test module tests the things-internet gateway equipment from the preset test method of flow gauge according to described, and determines Whether by test, output test result.
According to a fourth aspect of embodiments of the present disclosure, a kind of things-internet gateway equipment testing device is provided, service is applied to Device, comprising: obtain module, obtain the second address of things-internet gateway equipment;Sending module, according to second address to correspondence Things-internet gateway equipment send test request information, entered with triggering the things-internet gateway equipment from flow gauge, made described Things-internet gateway equipment is tested according to described from the preset test method of flow gauge;Second determining module, it is determined whether connect It receives the test that the things-internet gateway equipment is sent and completes instruction;Generation module receives the things-internet gateway in determination When instruction is completed in the test that equipment is sent, the test result of the things-internet gateway equipment is obtained, and according to the test result Generate test report.
According to a fifth aspect of the embodiments of the present disclosure, a kind of things-internet gateway device test system is provided, which includes: Server, the router being connect with the server and at least one the things-internet gateway equipment being connected to the router, Wherein, the things-internet gateway equipment is for the step of executing embodiment of the present disclosure first aspect the method, the server For the step of executing embodiment of the present disclosure second aspect the method.
The technical scheme provided by this disclosed embodiment can include the following benefits: determine in things-internet gateway equipment When receiving server and sending test request information, triggering things-internet gateway equipment enters from flow gauge, and according to from flow gauge Preset test method tests things-internet gateway equipment automatically, determines whether things-internet gateway equipment can pass through survey Examination, so that it is determined that whether the software and hardware function of things-internet gateway equipment is qualified out, does not need manual intervention in the test process, It is easily achieved, and testing efficiency is high, solves and needs operator to operate on the server in the prior art, switches each test , the tedious steps that things-internet gateway equipment is tested.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of things-internet gateway apparatus testing method shown according to an exemplary embodiment;
Fig. 2 is the flow chart of another things-internet gateway apparatus testing method shown according to an exemplary embodiment;
Fig. 3 is the flow chart of the third things-internet gateway apparatus testing method shown according to an exemplary embodiment;
Fig. 4 is a kind of structure chart of things-internet gateway device test system shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of things-internet gateway equipment testing device shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of things-internet gateway equipment testing device shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of things-internet gateway equipment testing device shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of things-internet gateway equipment testing device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
To solve in the prior art, the test operation of the software and hardware function of things-internet gateway equipment is cumbersome, and low efficiency Problem, the disclosure provides test method, device and the test macro of a kind of things-internet gateway equipment, true in things-internet gateway equipment When receiving server surely and sending test request information, triggering things-internet gateway equipment enters from flow gauge, and according to from flow measurement The preset test method of journey tests things-internet gateway equipment automatically, determines whether things-internet gateway equipment can pass through survey Examination, so that it is determined that whether the software and hardware function of things-internet gateway equipment is qualified out, does not need manual intervention in the test process, It is easily achieved, and testing efficiency is high, solves and needs operator to operate on the server in the prior art, switches each test , the tedious steps that things-internet gateway equipment is tested.
Content of this disclosure is described in detail below by specific embodiment.
Fig. 1 is a kind of flow chart of things-internet gateway apparatus testing method shown according to an exemplary embodiment, such as Fig. 1 Shown, which is applied to things-internet gateway equipment, which includes:
Step S101, determine whether to receive the test request information that server is sent.
The test request information enters for triggering things-internet gateway equipment from flow gauge, which can pass through transmission HTTP(Hyper Text Transfer Protocol, hypertext transfer protocol) it requests to send the test request information.
S102, determine receive the server transmission test request information when, trigger the things-internet gateway equipment into Enter from flow gauge.
S103, basis should test the things-internet gateway equipment from the preset test method of flow gauge, and determination is It is no by test, output test result.
In this step, it is a kind of it is possible is achieved in that, from the server downloading to the things-internet gateway equipment into The test software packet of row test;Verify whether the test software packet is target detection software package;It is verifying the test software packet When target detection software package, the things-internet gateway equipment is tested according to the test item in the target detection software package.
Things-internet gateway equipment downloads from a server target detection software package, and runs the target detection software package, root Things-internet gateway equipment is automatically tested according to the test item in target detection software package, is not needed in test process artificial Intervene, such as switch test item, this method are easy to operate on the server by operator, it is easy to accomplish, and testing efficiency is high, it can be just In applying the test in things-internet gateway equipment in batch production process, to things-internet gateway equipment software and hardware function.
In order to guarantee that the correctness and integrality of downloaded test software packet, this step test test software packet Card, when determining test software packet is target detection software package, then is tested, while can also guarantee subsequent to Internet of Things net Close the accuracy of equipment test.
Wherein, which may include the first check code of the test software packet, the determination test software Whether packet is that one kind of target detection software package is achieved in that, calculates the second of the test software packet downloaded from the server Check code;Determine whether first check code and second check code are consistent;Determining first check code and second verification When code is consistent, determine that the test software packet of downloading is the target detection software package.
First check code and the second check code may include MD5 check value, it can be by MD5 Message Digest 5 (MD5 Message-Digest Algorithm) hashed value that generates, the disclosure is merely illustrative, with no restriction.
The test request information can also include the first address of the server, and the downloading from the server is to institute A kind of embodiment for stating the test software packet that things-internet gateway equipment is tested is: being determined according to first address corresponding Server downloads the test software packet from the server.In this way, determining the clothes for sending test request information by the first address It is engaged in device, and downloads test software packet from the server, it is ensured that the second check code of the test software packet downloaded and the The accuracy rate of one check code consistency, to guarantee the accuracy of downloaded test software packet.
Optionally, which can be IP address (Internet Protocol Address, the interconnection of server FidonetFido address).
One kind is possible to be achieved in that, when determining that things-internet gateway equipment test is completed, generates test result, and When determining that the things-internet gateway equipment cannot be tested by the target detection software package, trigger in the things-internet gateway equipment Warning device issues warning note.
When determining that things-internet gateway equipment cannot be tested by target detection software package, illustrate the things-internet gateway equipment Software and hardware function may be unqualified, be unsatisfactory for quality requirement, pass through triggering warning device and issue prompt information, prompt operation Person can pick out problematic things-internet gateway equipment convenient for operator.
Optionally, which may include warning light or buzzer.
Test method through this embodiment determines that receiving server sends test request letter in things-internet gateway equipment When breath, triggering things-internet gateway equipment enter from flow gauge, and according to from the preset test method of flow gauge to things-internet gateway Equipment is tested automatically, determines whether things-internet gateway equipment can be by test, so that it is determined that things-internet gateway equipment out Software or hardware feature it is whether qualified, do not need manual intervention in the test process, it is easy to accomplish, and testing efficiency is high, It solves and needs operator to operate on the server in the prior art, switch each test item, things-internet gateway equipment is carried out The tedious steps of test.
Fig. 2 is a kind of flow chart of things-internet gateway apparatus testing method shown according to an exemplary embodiment, application In server, which includes the following steps.
S201, the second address for obtaining things-internet gateway equipment.
Optionally, which can be the IP address of things-internet gateway equipment.
S202, test request information is sent to corresponding things-internet gateway equipment according to second address, to trigger the object Networking gateway equipment enters from flow gauge, survey the things-internet gateway equipment from the preset test method of flow gauge according to this Examination.
In this step, things-internet gateway equipment can be automatically completed test according to from the preset test method of flow gauge, The server can send the test request information by sending HTTP request, which may include the IP of server Location.
S203, determine whether that instruction is completed in the test for receiving things-internet gateway equipment transmission.
S204, determine receive the things-internet gateway equipment transmission test complete instruction when, obtain the Internet of Things net The test result of equipment is closed, and test report is generated according to the test result.
Wherein, which can obtain object by FTP mode (File Transfer Protocol, File Transfer Protocol) The test result of networking gateway equipment, the test result may include the test result from multiple and different things-internet gateway equipment, Server can count the test result after obtaining the test result, and to generate test report, the disclosure is only illustrated Illustrate, to server to the processing method of test result with no restriction.
One kind being achieved in that server is also used to obtain the mark of things-internet gateway equipment corresponding with second address Code, the identification code are the unique identification of the things-internet gateway equipment;Determination cannot by the things-internet gateway equipment of test, and The things-internet gateway equipment is indicated according to the identification code in the test report.In this way, survey cannot be passed through by identification code mark The things-internet gateway equipment of the type can clearly be showed operator, in order to operate by the things-internet gateway equipment of examination Person identifies the things-internet gateway equipment.
The method through this embodiment, server is according to the second address of things-internet gateway equipment, to corresponding object Networking gateway equipment sends test request information, and triggering things-internet gateway equipment enters from flow gauge, in things-internet gateway equipment After the completion of test, server receives test result, and the method is easy to operate, and the testing efficiency of things-internet gateway equipment is high.
Fig. 3 is a kind of flow chart of things-internet gateway apparatus testing method shown according to an exemplary embodiment, application In things-internet gateway device test system, which includes server and at least one Internet of Things for connecting with the server Net gateway, the test method include the following steps.
S301, server obtain the second address of things-internet gateway equipment.
Second address can be the IP address of things-internet gateway equipment.
S302, server send test request information to corresponding things-internet gateway equipment according to second address, with touching The things-internet gateway equipment is sent out to enter from flow gauge.
The server can send the test request information by sending HTTP request, which includes server The first address and subsequent step in the first check code of test software packet that things-internet gateway equipment is tested, this first Address may include the IP address of server.
When the things-internet gateway equipment includes multiple, server can be sent out simultaneously to multiple things-internet gateway equipment to be measured Test request information is sent, multiple things-internet gateway equipment are triggered while being entered from flow gauge, in such manner, it is possible to right within the same time Multiple things-internet gateway equipment are tested, and the efficiency for improving the test of things-internet gateway equipment is conducive to.
S303, things-internet gateway equipment determine whether to receive the test request information of server transmission.
Things-internet gateway equipment executes step S304 when determining the test request information for receiving server transmission;
Things-internet gateway equipment continues to execute this step when determining the test request information for not receiving server transmission.
The test software packet stored on S304, the things-internet gateway device downloads servers.
Whether S305, the things-internet gateway device authentication test software packet are target detection software package.
In order to guarantee that the correctness and integrality of downloaded test software packet, this step test test software packet Card, when determining test software packet is target detection software package, then is tested, while can also guarantee subsequent to Internet of Things net Close the accuracy of equipment test.
Wherein, when which includes the first check code of the test software packet, a kind of possible implementation It is to calculate the second check code of the test software packet downloaded from the server;Determine first check code and second verification Whether code is consistent;When determining that first check code is consistent with second check code, determine that the test software packet of downloading is the mesh Mapping tries software package.
First check code and the second check code may include MD5 check value.
When the test request information includes the first address of the server, the downloading from the server is to the object The one kind for the test software packet that networking gateway equipment is tested is achieved in that: determining corresponding service according to first address Device downloads the test software packet from the server.In this way, determining the service for sending test request information by the first address Device, and test software packet is downloaded from the server, it is ensured that the second check code and first for the test software packet downloaded The accuracy rate of check code consistency, to guarantee the accuracy of downloaded test software packet.
When the things-internet gateway device authentication test software packet is target detection software package, step S306 is executed;
When the things-internet gateway device authentication test software packet is not target detection software package, step S307 is executed.
S306, things-internet gateway equipment are tested according to the test item in the target detection software package.
In this step, target detection software package is downloaded in things-internet gateway equipment, according to target detection software package Interior test item automatically tests things-internet gateway equipment, and operator is not needed in test process and is switched on the server Test item, this method are easy to operate, it is easy to accomplish, and testing efficiency is high, can be convenient for being applied to things-internet gateway equipment in batch Test in production process, to things-internet gateway equipment software and hardware function.
S307, things-internet gateway equipment generate test and complete instruction and test result after the completion of test, and to server It sends the test and completes instruction.
After the completion of the test of things-internet gateway equipment, if the things-internet gateway equipment cannot be surveyed by target detection software package When examination, illustrates that the software and hardware function of the things-internet gateway equipment may be unqualified, be unsatisfactory for quality requirement, a kind of possible realization Mode is, when determining that the things-internet gateway equipment cannot be tested by the target detection software package, to trigger the things-internet gateway Warning device in equipment issues warning note.
Prompt information is issued by triggering warning device, which prompts operator, can pick out convenient for operator Problematic things-internet gateway equipment.
Optionally, which may include warning light or buzzer.
S308, server determine whether that instruction is completed in the test for receiving things-internet gateway equipment transmission.
Server executes step S309 when determining that instruction is completed in the test for receiving things-internet gateway equipment transmission;
Server continues to execute this step when determining that instruction is completed in the test for not receiving things-internet gateway equipment transmission.
S309, server obtain the test result of the things-internet gateway equipment, and generate test report according to the test result It accuses.
Wherein, which can obtain the test result of things-internet gateway equipment by FTP mode, which can wrap The test result from multiple and different things-internet gateway equipment is included, server, can be to the test knot after obtaining the test result Fruit is counted, and to generate test report, the disclosure is merely illustrative, and is not made to processing method of the server to test result Limitation.
One kind being achieved in that server is also used to obtain the mark of things-internet gateway equipment corresponding with second address Code, the identification code are the unique identification of the things-internet gateway equipment;Determination cannot by the things-internet gateway equipment of test, and The things-internet gateway equipment is indicated according to the identification code in the test report.In this way, survey cannot be passed through by identification code mark The things-internet gateway equipment of the type can clearly be showed operator, in order to operate by the things-internet gateway equipment of examination Person identifies the things-internet gateway equipment.
Fig. 4 is the structure chart for implementing a kind of things-internet gateway device test system exemplified according to one, as shown in figure 4, The test macro includes server 401, the router 402 connecting with the server 401 and connect with the router 402 At least one things-internet gateway equipment 403, wherein the things-internet gateway equipment 403 is used for the step of executing method shown in Fig. 1, The server is for the step of executing method shown in Fig. 2.
Fig. 5 is a kind of block diagram of things-internet gateway equipment testing device shown according to an exemplary embodiment, is applied to Things-internet gateway equipment, as shown in figure 5, the test device includes:
First determining module 501, it is determined whether receive the test request information of server transmission;
Trigger module 502 triggers the things-internet gateway equipment when determining the test request information for receiving server transmission Into from flow gauge;
Test module 503 tests the things-internet gateway equipment from the preset test method of flow gauge according to this, and determines Whether by test, output test result.
Optionally, test module 503 includes that the survey tested the things-internet gateway equipment is downloaded from the server Try software package;Verify whether the test software packet is target detection software package;It is that target detection is soft verifying the test software packet When part packet, the things-internet gateway equipment is tested according to the test item in the target detection software package.
Optionally, which includes the first check code of the test software packet, which includes: Calculate the second check code of the test software packet downloaded from the server;It determines first check code and second check code is It is no consistent;When determining that first check code is consistent with second check code, determine the test software packet of downloading for target survey Try software package.
Optionally, which further includes the first address of the server, which further includes download module, root Corresponding server is determined according to first address, and the test software packet is downloaded from the server.
Optionally, which further includes alarm module, is determining that the things-internet gateway equipment cannot be by the target detection When software package is tested, the warning device triggered in the things-internet gateway equipment issues warning note.
Fig. 6 is a kind of block diagram of things-internet gateway equipment testing device shown according to an exemplary embodiment, is applied to Server, as shown in fig. 6, the test device includes:
Module 601 is obtained, the second address of things-internet gateway equipment is obtained;
Sending module 602 sends test request information to corresponding things-internet gateway equipment according to second address, should with triggering Things-internet gateway equipment enters from flow gauge, carries out the things-internet gateway equipment from the preset test method of flow gauge according to this Test;
Second determining module 603, it is determined whether instruction is completed in the test for receiving things-internet gateway equipment transmission;
Generation module 604 obtains the Internet of Things when determining that instruction is completed in the test for receiving things-internet gateway equipment transmission The test result of gateway, and test report is generated according to the test result.
Optionally, which further includes obtaining the mark of things-internet gateway equipment corresponding with second address Code, the identification code are the unique identification of the things-internet gateway equipment.
Optionally, which cannot be by the things-internet gateway equipment of test, and in the test report The things-internet gateway equipment is indicated according to the identification code.
Fig. 7 is a kind of block diagram for things-internet gateway equipment testing device 700 shown according to an exemplary embodiment. For example, device 700 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, plate set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 7, device 700 may include following one or more components: processing component 701, memory 702, electric power Component 703, multimedia component 704, audio component 705, input/output (I/ O) interface 706, sensor module 707, Yi Jitong Believe component 708.
The integrated operation of the usual control device 700 of processing component 702, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 701 may include that one or more processors 709 refer to execute It enables, to complete all or part of the steps of above-mentioned things-internet gateway apparatus testing method.In addition, processing component 701 may include One or more modules, convenient for the interaction between processing component 701 and other assemblies.For example, processing component 701 may include more Media module, to facilitate the interaction between multimedia component 704 and processing component 701.
Memory 702 is configured as storing various types of data to support the operation in device 700.These data are shown Example includes the instruction of any application or method for operating on device 700, contact data, and telephone book data disappears Breath, picture, video etc..Memory 702 can be by any kind of volatibility or non-volatile memory device or their group Conjunction realization, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM) are erasable to compile Journey read-only memory (EPROM), programmable read-only memory (prom), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 703 provides electric power for the various assemblies of device 700.Electric power assembly 703 may include power management system System, one or more power supplys and other with for device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 704 includes the screen of one output interface of offer between the device 700 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense the side of touch or sliding action Boundary, but also detect duration and pressure relevant to the touch or slide.In some embodiments, multimedia component 704 include a front camera and/or rear camera.When device 700 is in operation mode, such as screening-mode or video screen module When formula, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition are taken the photograph As head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 705 is configured as output and/or input audio signal.For example, audio component 705 includes a Mike Wind (MIC), when device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 702 or via communication set Part 708 is sent.In some embodiments, audio component 705 further includes a loudspeaker, is used for output audio signal.
I/ O Interface 706 provides interface between processing component 701 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 707 includes one or more sensors, and the state for providing various aspects for device 700 is commented Estimate.For example, sensor module 707 can detecte the state that opens/closes of device 700, the relative positioning of component, such as the group Part is the display and keypad of device 700, and sensor module 707 can be with 700 1 components of detection device 700 or device Position change, the existence or non-existence that user contacts with device 700, the temperature in 700 orientation of device or acceleration/deceleration and device 700 Degree variation.Sensor module 707 may include proximity sensor, be configured to detect without any physical contact attached The presence of nearly object.Sensor module 707 can also include optical sensor, such as CMOS or ccd image sensor, for being imaged It is used in.In some embodiments, the sensor module 707 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 708 is configured to facilitate the communication of wired or wireless way between device 700 and other equipment.Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 708 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, which further includes Near Field Communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra wideband (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 700 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing equipment (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned things-internet gateway equipment Test method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 702 of instruction, above-metioned instruction can be executed by the processor 709 of device 700 to complete above-mentioned things-internet gateway Apparatus testing method.For example, the non-transitorycomputer readable storage medium can be ROM, random-access memory (ram), CD-ROM, tape, floppy disk and optical data storage devices etc..
Fig. 8 is a kind of block diagram of things-internet gateway equipment testing device 800 shown according to an exemplary embodiment.Example Such as, things-internet gateway equipment testing device 800 may be provided as a server.As shown in figure 8, the device includes processor 801, quantity can be one or more and memory 802, for storing the computer journey that can be executed by processor 801 Sequence.The computer program stored in memory 802 may include it is one or more each correspond to one group of instruction Module.In addition, processor 801, which can be configured as, executes the computer program, surveyed with executing above-mentioned things-internet gateway equipment The step of method for testing.
In addition, the device 800 can also include power supply module 803 and communication component 804, which can be by It is configured to execute the power management of the device 800, which can be configured as the communication for realizing the device 800, example Such as, wired or wireless communication.In addition, the device 800 can also include input/output (I/O) interface 805.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of above-mentioned things-internet gateway apparatus testing method is realized when program instruction is executed by processor.For example, the computer can Reading storage medium can be the above-mentioned memory 802 including program instruction, and above procedure instruction can be executed by processor 801 with complete At above-mentioned things-internet gateway apparatus testing method.
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering specification and practicing the disclosure Case.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or adaptability Variation follows the general principles of this disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following claim It points out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of things-internet gateway apparatus testing method is applied to things-internet gateway equipment characterized by comprising
Determine whether to receive the test request information that server is sent;
When determining the test request information for receiving the server transmission, triggers the things-internet gateway equipment and enter from survey Process;
The things-internet gateway equipment is tested from flow gauge preset test method according to described, and determines whether to pass through Test, outputs test result.
2. things-internet gateway apparatus testing method according to claim 1, which is characterized in that it is described according to from flow measurement The preset test method of journey carries out test to the things-internet gateway equipment
The test software packet tested the things-internet gateway equipment is downloaded from the server;
Verify whether the test software packet is target detection software package;
When verifying the test software packet is target detection software package, according to the test item pair in the target detection software package The things-internet gateway equipment is tested.
3. things-internet gateway apparatus testing method according to claim 2, which is characterized in that the test request information packet The first check code of the test software packet is included, whether the verifying test software packet is that target detection software package includes:
Calculate the second check code of the test software packet downloaded from the server;
Determine whether first check code and second check code are consistent;
When determining that first check code is consistent with second check code, determine that the test software packet of downloading is the target Test software packet.
4. things-internet gateway apparatus testing method according to claim 3, which is characterized in that the test request information is also The first address including the server, what the things-internet gateway equipment was tested in the downloading from the server Test software packet includes: to determine corresponding server according to first address, and it is soft that the test is downloaded from the server Part packet.
5. things-internet gateway apparatus testing method according to claim 4, which is characterized in that it is described according to from flow measurement The preset test method of journey tests the things-internet gateway equipment, and determines whether to output test result by test Further include:
When determining that the things-internet gateway equipment cannot be tested by the target detection software package, the Internet of Things net is triggered The warning device closed in equipment issues warning note.
6. a kind of things-internet gateway apparatus testing method is applied to server characterized by comprising
Obtain the second address of things-internet gateway equipment;
Test request information is sent to corresponding things-internet gateway equipment according to second address, to trigger the Internet of Things net It closes equipment to enter from flow gauge, surveys the things-internet gateway equipment from the preset test method of flow gauge according to described Examination;
Determine whether that receiving the test that the things-internet gateway equipment is sent completes instruction;
When determining that receiving the test that the things-internet gateway equipment is sent completes instruction, the things-internet gateway equipment is obtained Test result, and according to the test result generate test report.
7. things-internet gateway apparatus testing method according to claim 6, which is characterized in that the method also includes:
The identification code of things-internet gateway equipment corresponding with second address is obtained, the identification code is the things-internet gateway The unique identification of equipment;
Determination cannot by the things-internet gateway equipment of test, and in the test report according to the identification code mark described in Things-internet gateway equipment.
8. a kind of things-internet gateway equipment testing device is applied to things-internet gateway equipment characterized by comprising
First determining module, it is determined whether receive the test request information of server transmission;
Trigger module triggers the things-internet gateway and sets when determining the test request information for receiving the server transmission It is standby to enter from flow gauge;
Test module tests the things-internet gateway equipment from the preset test method of flow gauge according to described, and really It is fixed whether to pass through test, output test result.
9. a kind of things-internet gateway equipment testing device is applied to server characterized by comprising
Module is obtained, the second address of things-internet gateway equipment is obtained;
Sending module sends test request information to corresponding things-internet gateway equipment according to second address, to trigger It states things-internet gateway equipment to enter from flow gauge, makes the things-internet gateway equipment according to described from the preset test side of flow gauge Method is tested;
Second determining module, it is determined whether receive the test that the things-internet gateway equipment is sent and complete instruction;
Generation module obtains the Internet of Things when determining that receiving the test that the things-internet gateway equipment is sent completes instruction The test result of net gateway, and test report is generated according to the test result.
10. a kind of things-internet gateway device test system characterized by comprising server, the road being connect with the server By device and at least one the things-internet gateway equipment being connected to the router, wherein the things-internet gateway equipment is used for Perform claim requires the step of any one of 1 to 5 things-internet gateway apparatus testing method, and the server is for perform claim requirement Described in 6 or 7 the step of things-internet gateway apparatus testing method.
CN201811409913.3A 2018-11-23 2018-11-23 Test method, device and the test macro of things-internet gateway equipment Pending CN109560986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811409913.3A CN109560986A (en) 2018-11-23 2018-11-23 Test method, device and the test macro of things-internet gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811409913.3A CN109560986A (en) 2018-11-23 2018-11-23 Test method, device and the test macro of things-internet gateway equipment

Publications (1)

Publication Number Publication Date
CN109560986A true CN109560986A (en) 2019-04-02

Family

ID=65867166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811409913.3A Pending CN109560986A (en) 2018-11-23 2018-11-23 Test method, device and the test macro of things-internet gateway equipment

Country Status (1)

Country Link
CN (1) CN109560986A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519115A (en) * 2019-07-11 2019-11-29 深圳壹账通智能科技有限公司 Gateway interface test method, terminal device, storage medium and device
CN111163134A (en) * 2019-12-11 2020-05-15 浙江极智通信科技股份有限公司 Equipment testing method and system
CN112597067A (en) * 2021-03-05 2021-04-02 成都奕信科技开发有限公司 Test method, test system, electronic device and test medium
CN115051943A (en) * 2022-06-28 2022-09-13 温州市裕展信息科技有限公司 Industrial Internet gateway test system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN102158277A (en) * 2011-02-22 2011-08-17 东莞市铭普实业有限公司 Automatic optical module send-receive integrated test system
CN102571466A (en) * 2010-12-16 2012-07-11 中国移动通信集团安徽有限公司 Method, device and system for testing service
CN103731850A (en) * 2013-12-12 2014-04-16 北京泰合佳通信息技术有限公司 Wireless network testing method based on mobile intelligent terminal
CN104536891A (en) * 2014-12-26 2015-04-22 小米科技有限责任公司 Method and device for testing system
CN105302727A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Testing method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN102571466A (en) * 2010-12-16 2012-07-11 中国移动通信集团安徽有限公司 Method, device and system for testing service
CN102158277A (en) * 2011-02-22 2011-08-17 东莞市铭普实业有限公司 Automatic optical module send-receive integrated test system
CN103731850A (en) * 2013-12-12 2014-04-16 北京泰合佳通信息技术有限公司 Wireless network testing method based on mobile intelligent terminal
CN104536891A (en) * 2014-12-26 2015-04-22 小米科技有限责任公司 Method and device for testing system
CN105302727A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Testing method, device and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519115A (en) * 2019-07-11 2019-11-29 深圳壹账通智能科技有限公司 Gateway interface test method, terminal device, storage medium and device
CN111163134A (en) * 2019-12-11 2020-05-15 浙江极智通信科技股份有限公司 Equipment testing method and system
CN112597067A (en) * 2021-03-05 2021-04-02 成都奕信科技开发有限公司 Test method, test system, electronic device and test medium
CN115051943A (en) * 2022-06-28 2022-09-13 温州市裕展信息科技有限公司 Industrial Internet gateway test system

Similar Documents

Publication Publication Date Title
CN109560986A (en) Test method, device and the test macro of things-internet gateway equipment
CN104796385B (en) Terminal binding method, apparatus and system
EP3151507A1 (en) Methods and apparatuses for controlling device
US9668117B2 (en) Method and device for analyzing social relationship
CN105472771B (en) Wireless connection method and device
CN107241688A (en) Signature, verification method, device and the storage medium of application installation package
CN106254467A (en) Sharing files method and device
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
CN106204046A (en) The method and device that order pays
CN109714415A (en) Data processing method and device
CN109117874A (en) Operation behavior prediction technique and device
CN104158659A (en) Anti-fake verifying method, device and system
CN106060027B (en) Method, apparatus, equipment and the system verified based on identifying code
KR20170012872A (en) Method and apparatus for acquiring search results
CN106375096A (en) Short message verification method and device
CN106096009A (en) Method for generating message and device
CN105282162B (en) The processing method and processing device of account management business
CN104881342B (en) terminal test method and device
CN109842612A (en) Log security analysis method, device and storage medium based on picture library model
CN107819740A (en) Verification method, terminal device, audio amplifier and the server of terminal device
CN107395624A (en) Information processing method and device
CN105893249A (en) Software testing method and device
CN109246094A (en) Verification method, device and the storage medium of user terminal
CN105512542B (en) Data inputting method and device
CN105530129A (en) Router reset method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190402

RJ01 Rejection of invention patent application after publication