CN114172832A - Internet of things testing method and device, central control equipment and computer equipment - Google Patents

Internet of things testing method and device, central control equipment and computer equipment Download PDF

Info

Publication number
CN114172832A
CN114172832A CN202010955073.1A CN202010955073A CN114172832A CN 114172832 A CN114172832 A CN 114172832A CN 202010955073 A CN202010955073 A CN 202010955073A CN 114172832 A CN114172832 A CN 114172832A
Authority
CN
China
Prior art keywords
test
central control
equipment
tested
internet
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
CN202010955073.1A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010955073.1A priority Critical patent/CN114172832A/en
Publication of CN114172832A publication Critical patent/CN114172832A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses a method and a device for testing the Internet of things, central control equipment and computer equipment. Wherein, the method comprises the following steps: the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server of the Internet of things, a device to be tested and a test terminal, and the central control device integrates the driving capability of the device to be tested and the driving capability of the test terminal; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things based on the test task. The invention solves the technical problem of inaccurate test for the Internet of things in the related technology.

Description

Internet of things testing method and device, central control equipment and computer equipment
Technical Field
The invention relates to the field of testing of the Internet of things, in particular to a method and a device for testing the Internet of things, central control equipment and computer equipment.
Background
In the Internet of Things (IoT), basic operations of the smart device include three parts, namely, a smart terminal (e.g., a mobile phone, which is described below as an example), a device side, and a cloud service. The difference between the test based on the internet of things and the test based on the existing internet is that the test of the internet of things needs to test the equipment terminal. The device end can be of various types, such as a development board of a module, and can also be a finished device.
Aiming at the test of the Internet of things, in the related technology, the test aiming at the mobile phone end, namely the APP side, is realized. However, the real internet of things test needs to frequently burn firmware and triplets on the device to be tested, and strongly depends on some software environments. For example, in the related art, when the mobile phone terminal is tested, the display device has already executed the corresponding hardware operation, but actually, the device has not executed the hardware operation, so that the accuracy of the test cannot be really reflected.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for testing the internet of things, central control equipment and computer equipment, and aims to at least solve the technical problem that the testing of the internet of things in the related technology is inaccurate.
According to an aspect of an embodiment of the present invention, there is provided an internet of things testing method, including: the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server of the Internet of things, a device to be tested and a test terminal, and the central control device is integrated with the driving capability of the device to be tested and the test terminal; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
According to another aspect of the embodiments of the present invention, there is also provided a central control apparatus, including: the central control equipment is arranged between a cloud server of the Internet of things, equipment to be tested and a test terminal, and the central control equipment is integrated with the driving capability of the equipment to be tested and the test terminal; the central control equipment is used for receiving a test task and driving the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
According to another aspect of the embodiments of the present invention, there is provided an internet of things testing apparatus, applied to a central control device, including: the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a test task, the central control equipment is arranged between a cloud server of the Internet of things, equipment to be tested and a test terminal, and the central control equipment is integrated with the driving capability of the equipment to be tested and the test terminal; and the first test module is used for driving the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
According to a further aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, the device on which the storage medium is located is controlled to execute any one of the above described internet of things testing methods.
According to still another aspect of the embodiments of the present invention, there is also provided a computer apparatus, including: a memory and a processor, the memory storing a computer program; the processor is configured to execute the computer program stored in the memory, and when the computer program runs, the processor is enabled to execute any one of the internet of things testing methods.
According to an aspect of the embodiments of the present invention, there is also provided a test processing method, including: the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server, a device to be tested and a test terminal, and the central control device is integrated with the driving capability of the device to be tested and the test terminal; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test based on the test task.
According to another aspect of the embodiments of the present invention, there is also provided a test processing apparatus, applied to a central control device, including: the second receiving module is used for receiving a test task, wherein the central control equipment is arranged among the cloud server, the equipment to be tested and the test terminal, and the driving capability of the equipment to be tested and the driving capability of the test terminal are integrated on the central control equipment; and the second test module is used for driving the equipment to be tested and the test terminal to carry out interactive test based on the test task.
In the embodiment of the invention, the mode that the central control equipment receives the test task is adopted, the central control equipment drives the equipment to be tested and the test terminal to carry out the interactive test of the Internet of things based on the test task, and the purpose of driving the equipment to be tested and the test terminal to carry out the interactive test of the Internet of things is achieved, so that the technical effect of improving the test accuracy of the Internet of things is realized, and the technical problem that the test of the Internet of things in the related technology is inaccurate is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a hardware structure diagram of a computer terminal for implementing a testing method of the internet of things;
fig. 2 is a flowchart of an internet of things testing method according to embodiment 1 of the present invention;
fig. 3 is a schematic diagram of a center control apparatus according to embodiment 1 of the present invention;
FIG. 4 is a schematic diagram of a hardware topology of a central control device according to an alternative embodiment of the present invention;
FIG. 5 is a schematic diagram of a raspberry pie, a central control device, according to an alternative embodiment of the present invention;
FIG. 6 is a schematic diagram of a cloud server according to an alternative embodiment of the present invention;
FIG. 7 is a workflow diagram of a cloud server according to an alternative embodiment of the invention;
fig. 8 is a downlink schematic diagram of a cloud server according to an alternative embodiment of the invention;
fig. 9 is an uplink schematic diagram of a cloud server according to an alternative embodiment of the invention;
FIG. 10 is a flowchart of a test processing method according to embodiment 1 of the present invention;
fig. 11 is a block diagram of a testing apparatus for internet of things according to embodiment 2 of the present invention;
fig. 12 is a block diagram of the structure of a test processing apparatus according to embodiment 2 of the present invention;
fig. 13 is a block diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
the living Internet of things platform is a development platform of the Internet of things for consumption-level intelligent equipment. The living internet of things platform provides the access capability of the equipment terminal, the software development kit of the mobile terminal, the development-free public version App and the interface, and a developer can be supported to rapidly realize the control and use of the APP on the intelligent equipment at a low cost in the development.
UDC (user equipment Center, abbreviated as UDC), an online IoT development platform, brings standard IoT development boards/devices online, and mainly implements unified management and command manipulation for the devices.
A Software Development Kit (SDK) may be provided by a cloud server to a device vendor, integrated on a device, and securely access the device to an IoT platform, so that the device may be controlled and managed by the IoT platform.
A Terminal Management System (TMS for short) integrates driving and hardware debugging capabilities, and realizes control of a mobile phone on hardware such as intelligent equipment.
Over The Air (OTA for short), a mobile phone or an equipment terminal downloads an upgrade package on a remote server through a wireless network, and The system or application is upgraded.
Raspberry Pi (RPi for short), a microcomputer designed for learning computer programming education, the system is based on Linux.
Example 1
There is also provided, in accordance with an embodiment of the present invention, a method for testing an internet of things, where it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than here.
The method provided by the embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Fig. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing the internet of things testing method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more (shown as 102a, 102b, … …, 102 n) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors 102 and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be configured to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the testing method for the internet of things in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the testing method for the internet of things of the application program. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
Under the operating environment, the application provides the internet of things testing method shown in fig. 2. Fig. 2 is a flowchart of an internet of things testing method according to embodiment 1 of the present invention. As shown in fig. 2, the process includes the following steps:
step S202, central control equipment receives a test task, wherein the central control equipment is arranged between a cloud server of the Internet of things, equipment to be tested and a test terminal, and driving capabilities of the equipment to be tested and the test terminal are integrated on the central control equipment;
and S204, the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
Through the steps, the mode that the central control equipment receives the test task is adopted, the to-be-tested equipment and the test terminal are driven to carry out the interactive test of the Internet of things through the central control equipment based on the test task, and the purpose of driving the to-be-tested equipment and the test terminal to carry out the interactive test of the Internet of things is achieved, so that the technical effect of improving the test accuracy of the Internet of things is achieved, and the technical problem that the test of the Internet of things in the related technology is inaccurate is solved.
The internet test is very different from the internet of things test, and comprises the following steps: 1) the internet test only relates to a web end and an App mobile end, and the internet of things test relates to the attribute of an object, so that the link of intelligent equipment is required; 2) UI control exists between a Web end and an App end of an Internet test, and a mature UI automation scheme also exists, however, an equipment end needs to be operated in the Internet of things test, and the operation of the equipment end usually needs a more complex software and hardware environment; 3) the testing environment of the Internet test is simple, and can be solved only by a PC/Mobile, and the Internet of things test needs to be linked with hardware equipment with a more complex hardware topological environment; 4) the Internet test has a mature automatic framework and scheme, and a uniform test framework is lacked in the Internet of things test; 5) in the aspect of automatic closed loop, the automation process of the internet test generally only relates to closed loop of a single end, and in the internet of things test, because the equipment end often triggers linkage through an App, the complete closed loop from end to end is needed.
As an optional embodiment, the central control device schedules and analyzes the test task to obtain an analysis result; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things according to the analysis result. By the method, the central control equipment can drive the equipment to be tested and the test terminal to carry out interactive test on the Internet of things based on the test task. In order to realize the ordered test of the test tasks, the central control device can schedule the received test tasks. When the central control device schedules the received test tasks, the order of the test tasks can be realized according to some scheduling conditions, for example, the scheduling conditions can be the priorities of the test tasks, and thus the testing efficiency is improved. The central control device may have a certain logical operation capability in order to complete the scheduling and analysis of the test tasks. For example, the central control device may be a microcomputer or a microprocessor, and is integrated with a receiving module, a logical operation module, a driving module, and the like, so that the central control device may perform various types of tasks.
As an optional embodiment, the central control device may schedule and analyze the test task through a processing system of a cloud server accessing the internet of things to obtain an analysis result, where the processing system of the cloud server is configured to process at least one of the following: the system comprises a test task, a test case, a device to be tested, processing during test operation, and a test execution history and report. For example, the central control device has the capability of bi-directional communication with the processing system of the cloud server. Specifically, the system can perform data communication with the cloud, receive and process data issued by the cloud, process and report the running data of the device end to be tested to the cloud, and the like. The cloud server has higher processing capacity and abundant processing resources, so that the testing of the testing task is realized through communication with the cloud server, and the processing efficiency and accuracy of the testing task can be effectively improved.
As an optional embodiment, after the central control device drives the device to be tested and the test terminal to perform the interactive test of the internet of things based on the test task, the central control device may further upload the log of the test terminal to the cloud server. Because the central control device can have the capability of performing two-way communication with the processing system of the cloud server, after the central control device receives the log of the test terminal, the log can be uploaded to the cloud, the data analysis and the development of the test terminal are assisted, and the log is stored in the cloud.
As an optional embodiment, the central control device may control the device to be tested to perform hardware operation; and the central control equipment drives the equipment to be tested and the test terminal which are subjected to hardware operation to carry out interactive test of the Internet of things based on the test task. The central control equipment controls the equipment to be tested to perform hardware operation, so that the equipment to be tested can interact with the test terminal. For example, the device to be tested is driven to perform hardware operation, and a unique identity is matched for the device to be tested, so that the device to be tested can conveniently interact with the test terminal; or, the file is written into the equipment to be tested, so that the development of the equipment to be tested is facilitated, and the management and control of the equipment to be tested are possible. Through the processing, the hardware operation, such as hardware burning, is executed on the equipment to be tested, the consistency of the test terminal and the equipment to be tested for reflecting the test state is realized through the interaction with the test terminal, and the accuracy of the Internet of things test is effectively improved.
As an alternative embodiment, the hardware operations include at least one of: firmware burning and triple burning. Firmware (firmware) is software embedded in a hardware device, and the performance and reliability of the hardware can be improved by upgrading the firmware. Triplets are concepts in computer professional data structures, and are mainly a compression method for storing sparse matrices, also called triplet tables. As an optional embodiment, a developer may control the device to be tested to perform firmware burning and triple burning through the central control device, so as to shield a complex hardware driving environment, for example, the developer may operate in a management platform to manage, control, and update the hardware of the device to be tested.
As an optional embodiment, the central control device drives the device to be tested to execute hardware operation based on the test task, and drives the application program of the test terminal to display the control of the device to be tested; and the central control equipment completes the test of the equipment to be tested based on the interaction between the equipment to be tested and the application program after the hardware operation is executed. The end-to-end automatic closed-loop and sustainable integration capability is realized by controlling the equipment end to be tested and the test terminal. The test terminal and the intelligent device to be tested are driven through the integrated environment integrating the software and the hardware, and therefore interactive test of the test terminal and the intelligent device to be tested is achieved.
As an alternative embodiment, the central control device may be of various types, for example, may include: a raspberry pie. In the embodiment of the invention, a raspberry party cloud can be selected as a solution. The raspberry pie has the capability of serving as a microcomputer and also has a natural IoT development scene, so that the task scheduling capability, the driving capability of a test terminal and equipment to be tested and the network simulation capability can be integrated in the raspberry pie. Therefore, the test terminal and the device under test can be driven by the raspberry derivative to perform the IoT interactive test.
In an embodiment of the present invention, a central control device is further provided, and fig. 3 is a schematic diagram of the central control device according to embodiment 1 of the present invention, as shown in fig. 3, the central control device 300 is disposed between a cloud server of an internet of things, a device to be tested, and a test terminal, and driving capabilities of the device to be tested and the test terminal are integrated on the central control device; and the central control equipment is used for receiving the test task and driving the equipment to be tested and the test terminal to carry out interactive test on the Internet of things based on the test task.
Through the central control equipment, the test task receiving mode is adopted, the equipment to be tested and the test terminal are driven to carry out the interactive test of the Internet of things based on the test task, and the purpose of driving the equipment to be tested and the test terminal to carry out the interactive test of the Internet of things is achieved, so that the technical effect of improving the test accuracy of the Internet of things is achieved, and the technical problem that the test of the Internet of things in the related technology is inaccurate is solved.
As an optional embodiment, the central control device adopts a terminal management system TMS, where the TMS is used to schedule a test task and drive the device to be tested and the test terminal to perform an interactive test of the internet of things. The TMS integrates drive and hardware management capabilities, is mainly responsible for scheduling test tasks, and is also responsible for driving the test terminals and the devices to be tested.
As an optional embodiment, the central control device is integrated with a link toolkit, where the link toolkit is used for the central control device to communicate with a cloud server of the internet of things, and includes: and receiving data issuing processing of the cloud server, and reporting the operation data of the equipment to be tested and the test terminal to the cloud server. For example, the connection toolkit may include a Software Development Kit (SDK). The SDK is provided for a device manufacturer by the cloud server to be integrated on the device, the device is safely accessed to the IoT platform, and the device can be controlled and managed by the IoT platform.
As an optional embodiment, the central control device includes an elastic online multi-device UDC, where the UDC is used to integrate control over the device under test, and the control over the device under test includes: and controlling hardware of the device to be tested. The UDC mainly integrates the control of the device, including firmware burning and some hardware operating commands. For example, the TMS may drive the device under test and the test terminals through the UDC.
As an optional embodiment, the central control apparatus further includes: and linking the edges, wherein the linking edges are used for executing operation and maintenance of the central control device on the remote device. A Link edge (Link edge) is an edge computing product, and by means of the Link edge, a developer can easily deploy the edge computing capability of a cloud to various intelligent devices and computing nodes, and can run computing even if a network is disconnected. The link edge is close to a test of an object and a data source in an IoT scene, mainly integrates the operation and maintenance capacity of remote equipment, and can also provide some basic calculation, storage and data analysis capacity.
As an alternative embodiment, the central control apparatus includes: a raspberry pie. The raspberry pie has the capability of serving as a microcomputer and also has a natural IoT development scene, so that the task scheduling capability, the driving capability of a test terminal and equipment to be tested and the network simulation capability can be integrated in the raspberry pie. Therefore, the test terminal and the device under test can be driven by the raspberry derivative to perform the IoT interactive test. For example, the raspberry pi can be used as a central control device to manage a device to be tested and a test terminal; the raspberry pie has rich peripheral interfaces and considerable computing power; the raspberry group can also be used as an edge gateway to complete various edge functions such as test execution, equipment control, remote operation and maintenance and the like; the raspberry pie can provide bidirectional communication capability between the cloud end and the equipment end; the raspberry pie can be adapted to a software development kit SDK at multiple ends, can adapt to multiple development languages such as JAVA, PYTHON, C + + and the like, and facilitates development of a server end and an equipment end.
Fig. 4 is a schematic diagram of a hardware topology of a central control device according to an optional embodiment of the present invention, and as shown in fig. 4, the central control device is located between a cloud end, a device to be tested end, and a test terminal, i.e., a test handset. The central control equipment can be respectively connected with the equipment to be tested and the testing mobile phone through the USB interface. The central control equipment can be connected with the cloud end, unified management and scheduling execution of tasks are achieved automatically, and meanwhile logs, results and the like can be processed. Fig. 5 is a schematic diagram of a central control device raspberry pie according to an alternative embodiment of the present invention, and as shown in fig. 5, the central control device raspberry pie mainly includes the following functional modules: a link toolkit 502, a terminal management system 504, a UDC506, a link edge 508 and a network management module 510. The main functions of the modules are described in detail below:
the connection toolkit 502 is responsible for data communication with the cloud, receives data delivery processing of the cloud, and processes and reports operation data of the terminal to the cloud, wherein the connection toolkit specifically includes: the system comprises a script management module, a task scheduling module, a task operation module, a device reporting module and a log uploading module;
the terminal management system 504 includes an operation module and a service module, and is mainly responsible for scheduling a test task and driving a test terminal and an intelligent device, wherein the operation module includes: the service module comprises the following functions of task scheduling, configuration analysis, case execution, log processing and the like: the system comprises an accessory, a cloud machine, an Android driver, an IOS driver, a UDC driver, a network control driver, a hardware control driver and the like;
the UDC506 comprises a UDC Client and a UDC server, and mainly integrates control over a device end to be tested and a test terminal, including firmware burning and operation commands of some hardware, and can also drive TMS;
a linking edge 508, which mainly integrates the operation and maintenance capabilities of the remote device;
the network management module 510 includes functions of network simulation, network monitoring, weak network simulation, and the like.
Fig. 6 is a schematic diagram of a cloud server according to an alternative embodiment of the present invention, and as shown in fig. 6, a cloud server 602 (or cloud platform) establishes a connection with a central control device blueberry pie through a predetermined network platform 604 (e.g., a life internet of things platform). In order to conveniently schedule the testing task of the raspberry group of the central control device and manage the devices at any time and any place, in an optional embodiment of the invention, the raspberry group is accessed to a life internet of things platform based on instant messaging protocol Message Queue Telemetry Transport (MQTT). And constructing a data uplink and downlink channel with the raspberry pie through the quick access capability of the life Internet of things. Meanwhile, a cloud server 602 for managing and controlling raspberry sending behaviors is constructed by using cloud open capability of a life internet of things platform, and the capability of the cloud server includes: management of test tasks, management of use cases, management of devices to be tested, management of test scripts, management during running, execution history and reports, and the like.
Fig. 7 is a workflow diagram of a cloud server according to an alternative embodiment of the present invention, and as shown in fig. 7, in the alternative embodiment of the present invention, the workflow of the cloud server is as follows: the cloud server creates a test task; when the task is executed, the cloud server sends an instruction to the raspberry; the TMS in the raspberry group is responsible for analyzing and scheduling tasks, drives the mobile phone and the equipment to carry out operation interaction, and reports logs of mobile phone equipment operation to the cloud server; and the cloud server acquires the log information and then gives real-time logs and executes result processing.
Fig. 8 is a schematic diagram of a downlink of a cloud server according to an alternative embodiment of the present invention, and as shown in fig. 8, the downlink is responsible for issuing a use case, and also includes a UDC command to retry execution and cancel an execution function. The cloud server can issue a UDC command to realize control over the device to be tested, such as triple burning, device resetting and the like.
Fig. 9 is a schematic diagram of an uplink of a cloud server according to an optional embodiment of the present invention, and as shown in fig. 9, the uplink is used for reporting a log, and also can be used for registering a mobile phone and a device to be tested which are accessed to a raspberry in a system, so as to implement registration management of an intelligent device.
As an alternative embodiment, the present application further provides a test processing method as shown in fig. 10. Fig. 10 is a flowchart of a test processing method according to embodiment 1 of the present invention. As shown in fig. 10, the process includes the following steps:
step S1002, the central control equipment receives a test task, wherein the central control equipment is arranged between the cloud server, the equipment to be tested and the test terminal, and the driving capability of the equipment to be tested and the test terminal is integrated on the central control equipment;
step S1004, the central control device drives the device to be tested and the test terminal to perform an interactive test based on the test task.
Through the steps, the mode that the central control equipment receives the test task is adopted, the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test based on the test task, the purpose that the equipment to be tested and the test terminal are driven to interact and the equipment to be tested is accurately tested is achieved, the technical effect of improving the test accuracy is achieved, and the technical problem that the test is inaccurate due to the fact that interaction cannot be carried out in the related technology is solved.
As an optional embodiment, the test processing method may be applied to various network fields, for example, in addition to the internet of things, the method may also be applied to the internet of vehicles, the industrial internet, and the like, so as to implement the interactive test on the devices to be tested in various network fields, and improve the corresponding test accuracy.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided an internet of things testing apparatus, fig. 11 is a block diagram of a structure of the internet of things testing apparatus according to an embodiment 2 of the present invention, and as shown in fig. 11, the internet of things testing apparatus 1100 is located in a central control device, and includes: a first receiving module 1102 and a first testing module 1104. The internet of things testing apparatus 1100 will be described in detail below.
The first receiving module 1102 is configured to receive a test task, where the central control device is disposed between a cloud server of the internet of things, a device to be tested, and a test terminal, and the central control device integrates driving capabilities of the device to be tested and the test terminal;
the first testing module 1104 is connected to the first receiving module 1102, and configured to drive the device under test and the testing terminal to perform an interactive test on the internet of things based on the testing task.
It should be noted here that the first receiving module 1102 and the first testing module 1104 correspond to steps S202 to S204 in embodiment 1, and the two modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the above modules may be operated in the computer terminal 13 provided in embodiment 1 as a part of the apparatus.
According to an embodiment of the present invention, there is also provided a test processing apparatus, and fig. 12 is a block diagram of a structure of the test processing apparatus according to embodiment 2 of the present invention, and as shown in fig. 12, the test processing apparatus 1200 is located in a central control device, and includes: a second receiving module 1202 and a second testing module 1204. The test processing apparatus 1200 will be specifically described below.
The second receiving module 1202 is configured to receive a test task, where the central control device is disposed between the cloud server, the device to be tested, and the test terminal, and the central control device integrates driving capabilities of the device to be tested and the test terminal;
the second testing module 1204, connected to the second receiving module 1202, is configured to drive the device under test and the testing terminal to perform an interactive test based on the testing task.
It should be noted here that the second receiving module 1202 and the second testing module 1204 correspond to steps S1002 to S1004 in embodiment 1, and the two modules are the same as the corresponding steps in the implementation example and application scenario, but are not limited to the disclosure in embodiment 1. It should be noted that the above modules may be operated in the computer terminal 13 provided in embodiment 1 as a part of the apparatus.
Example 3
The embodiment of the invention can provide a computer terminal which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute program codes of the following steps in the method for testing an internet of things of an application program: the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server of the Internet of things, a device to be tested and a test terminal, and the central control device integrates the driving capability of the device to be tested and the driving capability of the test terminal; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things based on the test task.
Alternatively, fig. 13 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 13, the computer terminal may include: one or more processors 1302, only one of which is shown, memory 1304, and the like.
The memory 1304 may be configured to store software programs and modules, such as program instructions/modules corresponding to the internet of things testing method and apparatus in the embodiment of the present invention, and the processor 1302 executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the internet of things testing method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server of the Internet of things, a device to be tested and a test terminal, and the central control device integrates the driving capability of the device to be tested and the driving capability of the test terminal; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things based on the test task.
Optionally, the processor may further execute the program code of the following steps: the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, and the interactive test comprises the following steps: the central control equipment schedules and analyzes the test tasks to obtain an analysis result; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things according to the analysis result.
Optionally, the processor may further execute the program code of the following steps: the central control equipment schedules and analyzes the test task, and the analysis result is obtained by the method comprising the following steps: the central control equipment schedules and analyzes the test task through a processing system of a cloud server accessed to the Internet of things to obtain an analysis result, wherein the processing system of the cloud server is used for processing at least one of the following: the system comprises a test task, a test case, a device to be tested, processing during test operation, and a test execution history and report.
Optionally, the processor may further execute the program code of the following steps: after the central control equipment drives the equipment to be tested and the test terminal to carry out the interactive test of the Internet of things based on the test task, the method further comprises the following steps: and the central control equipment uploads the log of the test terminal to the cloud server.
Optionally, the processor may further execute the program code of the following steps: the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, and the interactive test comprises the following steps: the central control equipment controls the equipment to be tested to perform hardware operation; and the central control equipment drives the equipment to be tested and the test terminal which are subjected to hardware operation to carry out interactive test of the Internet of things based on the test task.
Optionally, the processor may further execute the program code of the following steps: the hardware operations include at least one of: firmware burning and triple burning.
Optionally, the processor may further execute the program code of the following steps: the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, and the interactive test comprises the following steps: the central control equipment drives the equipment to be tested to execute hardware operation based on the test task, and drives an application program of the test terminal to display control of the equipment to be tested; and the central control equipment completes the test of the equipment to be tested based on the interaction between the equipment to be tested and the application program after the hardware operation is executed.
Optionally, the processor may further execute the program code of the following steps: the central control equipment comprises: a raspberry pie.
The embodiment of the invention provides a method for testing the Internet of things. By adopting the mode that the central control equipment receives the test task, the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, so that the aim of driving the equipment to be tested and the test terminal to carry out interactive test of the Internet of things is fulfilled, and the technical problem that the test of the Internet of things in the related technology is inaccurate is solved.
It can be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 13 is a diagram illustrating a structure of the electronic device. For example, the computer terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 4
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the internet of things testing method provided in embodiment 1.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server of the Internet of things, a device to be tested and a test terminal, and the central control device integrates the driving capability of the device to be tested and the driving capability of the test terminal; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things based on the test task.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, and the interactive test comprises the following steps: the central control equipment schedules and analyzes the test tasks to obtain an analysis result; and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test on the Internet of things according to the analysis result.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the central control equipment schedules and analyzes the test task, and the analysis result is obtained by the method comprising the following steps: the central control equipment schedules and analyzes the test task through a processing system of a cloud server accessed to the Internet of things to obtain an analysis result, wherein the processing system of the cloud server is used for processing at least one of the following: the system comprises a test task, a test case, a device to be tested, processing during test operation, and a test execution history and report.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: after the central control equipment drives the equipment to be tested and the test terminal to carry out the interactive test of the Internet of things based on the test task, the method further comprises the following steps: and the central control equipment uploads the log of the test terminal to the cloud server.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, and the interactive test comprises the following steps: the central control equipment controls the equipment to be tested to perform hardware operation; and the central control equipment drives the equipment to be tested and the test terminal which are subjected to hardware operation to carry out interactive test of the Internet of things based on the test task.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the hardware operations include at least one of: firmware burning and triple burning.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task, and the interactive test comprises the following steps: the central control equipment drives the equipment to be tested to execute hardware operation based on the test task, and drives an application program of the test terminal to display control of the equipment to be tested; and the central control equipment completes the test of the equipment to be tested based on the interaction between the equipment to be tested and the application program after the hardware operation is executed.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: the central control equipment comprises: a raspberry pie. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (19)

1. An Internet of things testing method is characterized by comprising the following steps:
the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server of the Internet of things, a device to be tested and a test terminal, and the central control device is integrated with the driving capability of the device to be tested and the test terminal;
and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
2. The method according to claim 1, wherein the driving, by the central control device, the device to be tested and the test terminal to perform the interactive test of the internet of things based on the test task comprises:
the central control equipment schedules and analyzes the test task to obtain an analysis result;
and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test of the Internet of things according to the analysis result.
3. The method of claim 2, wherein the central control device schedules and parses the test task, and obtaining a parsing result comprises:
the central control device schedules and analyzes the test task through a processing system of a cloud server accessing the internet of things to obtain the analysis result, wherein the processing system of the cloud server is used for processing at least one of the following: the system comprises a test task, a test case, a device to be tested, processing during test operation, and a test execution history and report.
4. The method according to claim 1, wherein after the central control device drives the device under test and the test terminal to perform the interactive test of the internet of things based on the test task, the method further comprises:
and the central control equipment uploads the log of the test terminal to the cloud server.
5. The method according to claim 1, wherein the driving, by the central control device, the device to be tested and the test terminal to perform the interactive test of the internet of things based on the test task comprises:
the central control equipment controls the equipment to be tested to perform hardware operation;
and the central control equipment drives the equipment to be tested after hardware operation and the test terminal to carry out interactive test of the Internet of things based on the test task.
6. The method of claim 5, wherein the hardware operations comprise at least one of: firmware burning and triple burning.
7. The method according to any one of claims 1 to 6, wherein the driving, by the central control device, the device to be tested and the test terminal to perform the interactive test of the Internet of things based on the test task comprises:
the central control equipment drives the equipment to be tested to execute hardware operation based on the test task and drives an application program of the test terminal to display control over the equipment to be tested;
and the central control equipment completes the test of the equipment to be tested based on the interaction between the equipment to be tested after executing hardware operation and the application program.
8. The method of claim 7, wherein the central control device comprises: a raspberry pie.
9. The central control equipment is characterized by being arranged between a cloud server of the Internet of things, equipment to be tested and a test terminal, and the central control equipment is integrated with the driving capability of the equipment to be tested and the test terminal; the central control equipment is used for receiving a test task and driving the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
10. The central control device according to claim 9, wherein the central control device employs a terminal management system TMS, wherein the TMS is configured to schedule the test task and drive the device under test and the test terminal to perform an interactive test of the internet of things.
11. The central control device according to claim 9, wherein the central control device is integrated with a link kit, wherein the link kit is used for the central control device to communicate with a cloud server of the internet of things, and includes: and receiving data issuing processing of the cloud server, and reporting the running data of the equipment to be tested and the test terminal to the cloud server.
12. The central control device of claim 9, comprising a resilient online multi-device UDC, wherein the UDC is configured to integrate control of the device under test, the control of the device under test comprising: and controlling the hardware of the device to be tested.
13. The central control apparatus according to claim 9, characterized in that the central control apparatus further comprises: and the link edge is used for executing operation and maintenance of the central control equipment on the remote equipment.
14. The central control apparatus according to any one of claims 9 to 13, characterized in that the central control apparatus comprises: a raspberry pie.
15. The utility model provides a thing networking testing arrangement which characterized in that is applied to in the well accuse equipment, includes:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a test task, the central control equipment is arranged between a cloud server of the Internet of things, equipment to be tested and a test terminal, and the central control equipment is integrated with the driving capability of the equipment to be tested and the test terminal;
and the first test module is used for driving the equipment to be tested and the test terminal to carry out interactive test of the Internet of things based on the test task.
16. A storage medium, characterized in that the storage medium includes a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the internet of things testing method according to any one of claims 1 to 8.
17. A computer device, comprising: a memory and a processor, wherein the processor is capable of,
the memory stores a computer program;
the processor is configured to execute the computer program stored in the memory, and when the computer program runs, the processor is enabled to execute the internet of things testing method according to any one of claims 1 to 8.
18. A test processing method, comprising:
the method comprises the steps that a central control device receives a test task, wherein the central control device is arranged between a cloud server, a device to be tested and a test terminal, and the central control device is integrated with the driving capability of the device to be tested and the test terminal;
and the central control equipment drives the equipment to be tested and the test terminal to carry out interactive test based on the test task.
19. A test processing device is applied to a central control device and comprises:
the second receiving module is used for receiving a test task, wherein the central control equipment is arranged among the cloud server, the equipment to be tested and the test terminal, and the driving capability of the equipment to be tested and the driving capability of the test terminal are integrated on the central control equipment;
and the second test module is used for driving the equipment to be tested and the test terminal to carry out interactive test based on the test task.
CN202010955073.1A 2020-09-11 2020-09-11 Internet of things testing method and device, central control equipment and computer equipment Pending CN114172832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010955073.1A CN114172832A (en) 2020-09-11 2020-09-11 Internet of things testing method and device, central control equipment and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010955073.1A CN114172832A (en) 2020-09-11 2020-09-11 Internet of things testing method and device, central control equipment and computer equipment

Publications (1)

Publication Number Publication Date
CN114172832A true CN114172832A (en) 2022-03-11

Family

ID=80475459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010955073.1A Pending CN114172832A (en) 2020-09-11 2020-09-11 Internet of things testing method and device, central control equipment and computer equipment

Country Status (1)

Country Link
CN (1) CN114172832A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190057A (en) * 2022-05-24 2022-10-14 深圳绿米联创科技有限公司 Automatic testing method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190057A (en) * 2022-05-24 2022-10-14 深圳绿米联创科技有限公司 Automatic testing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN102880535B (en) A kind of wireless automatic proving installation for mobile device and method
CN109218139B (en) Gateway test system
EP2661014B1 (en) Polling sub-system and polling method for communication network system and communication apparatus
CN105450463A (en) Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
CN104918280A (en) Vehicle-mounted wireless equipment, train equipment wireless test system and method
CN112968789A (en) Data acquisition method and device, computer equipment and computer readable medium
CN111934956B (en) Equipment configuration method and device, storage medium and electronic device
CN112416804A (en) Real-time simulation test system and method
CN107566513B (en) Test equipment DOS environmental data acquisition method and system
CN114172832A (en) Internet of things testing method and device, central control equipment and computer equipment
WO2017016386A1 (en) Method and device for implementing radio remote unit fault analysis
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN113985743A (en) Equipment control method, device and system, storage medium and electronic device
CN112527346A (en) Software upgrading method and device, storage medium and electronic device
CN112416706A (en) Power consumption testing method, device and system, storage medium and electronic device
CN115442266A (en) Gateway performance testing method and device, storage medium and electronic device
CN112416734A (en) Test method, device and storage medium
CN105227407A (en) A kind of protocol debugging method, Apparatus and system
CN112650815B (en) Method and device for synchronizing environment data, storage medium and electronic device
CN114637549A (en) Data processing method, system and storage medium for service grid-based application
CN108989428A (en) Bluetooth terminal upgrade method, server, computer readable storage medium and system
CN112698948A (en) Method and device for acquiring product resources, storage medium and electronic device
CN115190057A (en) Automatic testing method and device and electronic equipment
CN114461337A (en) Cloud simulation system and method, electronic equipment and storage medium

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