CN111901155A - Internet of things debugging method, device and system and storage medium - Google Patents
Internet of things debugging method, device and system and storage medium Download PDFInfo
- Publication number
- CN111901155A CN111901155A CN202010641196.8A CN202010641196A CN111901155A CN 111901155 A CN111901155 A CN 111901155A CN 202010641196 A CN202010641196 A CN 202010641196A CN 111901155 A CN111901155 A CN 111901155A
- Authority
- CN
- China
- Prior art keywords
- simulator
- equipment
- networking module
- internet
- things
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
- H04L67/125—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the invention discloses a method, a device and a system for debugging the Internet of things and a storage medium. The method is applied to an Internet of things debugging system, wherein the Internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module, and the method comprises the following steps: acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator; acquiring all attribute characteristics of the equipment simulator; and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics. The Internet of things debugging method provided by the embodiment of the invention can improve the development efficiency of the Internet of things system and shorten the debugging time.
Description
Technical Field
The embodiment of the invention relates to the technical field of application of the Internet of things, in particular to a method, a device and a system for debugging the Internet of things and a storage medium.
Background
With the rapid development of scientific technology, various intelligent household appliances are produced. The existing research and development steps of the intelligent household appliance mainly comprise product definition, equipment function research and development, networking module (such as a WiFi module) research and development, equipment control end (such as a mobile phone application program APP) research and development and multi-aspect combined debugging, and finally testing and acceptance are carried out on the intelligent household appliance.
Fig. 1 is a schematic diagram illustrating a development process of an intelligent home appliance provided in the prior art. Theoretically, the research and development of the device function, the research and development of the networking module and the research and development of the device control end are mutually independent research and development processes, the three are not interfered with each other, and the three can be developed according to a protocol. However, in the actual development process, the developer of the device control end can only complete UI interface development, and data debugging of the whole system cannot be basically carried out, and although the developer of the device function can complete the data communication function, the developer of the device function cannot carry out data debugging by himself without the device control end. Therefore, the workload and the required time of joint debugging between the equipment control end and the networking module and joint debugging between the equipment function and the networking module are increased suddenly, and finally, the completion time of the Internet of things system is difficult to control, and the project result is influenced immeasurably. In addition, in order to compensate for the time loss, a developer of the device control end and a developer of the device function often force the joint debugging between the device control end and the networking module and the joint debugging between the device function and the networking module to be advanced, so that a great pressure is applied to the developer of the networking module, and in addition, due to the conflict of multiple parallel projects, the project cannot be performed normally.
Disclosure of Invention
The embodiment of the invention provides an Internet of things debugging method, device and system and a storage medium, which can improve the development efficiency of an Internet of things system and shorten the debugging time.
In a first aspect, an embodiment of the present invention provides an internet of things debugging method, which is applied to an internet of things debugging system, where the internet of things debugging system includes an equipment simulator, an equipment control simulation terminal, and a networking module, and the method includes:
acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator;
acquiring all attribute characteristics of the equipment simulator;
and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics.
In a second aspect, an embodiment of the present invention further provides an internet of things debugging device, which is applied to an internet of things debugging system, where the internet of things debugging system includes an equipment simulator, an equipment control simulation terminal, and a networking module, and the device includes:
the configuration file acquisition module is used for acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator;
the attribute characteristic acquisition module is used for acquiring all attribute characteristics of the equipment simulator;
and the Internet of things debugging module is used for sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics.
In a third aspect, an embodiment of the present invention further provides an internet of things debugging system, which includes an apparatus simulator, an apparatus control simulation terminal, a networking module, a memory, at least one processor, and a computer program that is stored in the memory and can be run on the processor, where the processor implements the internet of things debugging method according to the embodiment of the present invention when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processing apparatus, implements the method for debugging an internet of things according to the embodiment of the present invention.
The internet of things debugging scheme provided by the embodiment of the invention is applied to an internet of things debugging system, wherein the internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module, and comprises the following components: acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator; acquiring all attribute characteristics of the equipment simulator; and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics. The Internet of things debugging method provided by the embodiment of the invention can improve the development efficiency of the Internet of things system and shorten the debugging time.
Drawings
Fig. 1 is a schematic diagram illustrating a development process of an intelligent home appliance provided in the prior art;
fig. 2 is a flowchart of an internet of things debugging method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a debugging process of the internet of things provided by the embodiment of the invention;
fig. 4 is a schematic diagram of a debugging process of the internet of things provided by the embodiment of the invention;
fig. 5 is a schematic architecture diagram of an internet of things debugging system provided in an embodiment of the present invention;
fig. 6 is a flowchart of a debugging method of the internet of things according to another embodiment of the present invention;
fig. 7 is a schematic interface diagram of an internet of things debugging system provided in an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an internet of things debugging device according to an embodiment of the present invention;
fig. 9 is a block diagram of a structure of an internet of things debugging system according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and the embodiments of the present invention are illustrative only and are not intended to limit the scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in the present invention are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 2 is a flowchart of an internet of things debugging method according to an embodiment of the present invention, which is applicable to a situation of simulating an internet of things, and the method may be executed by an internet of things debugging apparatus, which may be composed of hardware and/or software, and may generally be integrated in an internet of things debugging system having an internet of things debugging function. As shown in fig. 2, the method specifically includes the following steps:
The Internet of things debugging method provided by the embodiment of the invention is applied to an Internet of things debugging system, wherein the Internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module, the equipment simulator is in communication connection with the networking module, and the equipment control simulation end is in communication connection with the networking module. Wherein, the networking module can include WIFI module or MXkit development external member, and the equipment simulator can include the simulator of various intelligent household electrical appliances, and equipment control simulation end can include the simulation end of the application among the intelligent terminal, perhaps is used for the high in the clouds of controlgear simulator.
The communication data configuration file can be understood as a generation use case generated by the actual data interaction between the networking module and the equipment simulator under various different actual requirements, namely a series of codes executed in the actual data interaction process between the networking module and the equipment simulator under different actual requirements are converted into a test use case which can be repeatedly executed.
Optionally, obtaining the communication data configuration file includes: debugging the networking module and the equipment simulator based on an AT communication protocol; a communication data profile is generated during the debugging process. Illustratively, the networking module sends an AT instruction to the device simulator, and the device simulator responds to the AT instruction based on the AT communication protocol after receiving the AT instruction, so as to implement joint debugging of the networking module and the device simulator. In the process of jointly debugging the networking module and the equipment simulator, because interactive data between the networking module and the equipment simulator can be generated, a communication data configuration file is generated based on the interactive data between the networking module and the equipment simulator. Optionally, all functions of connecting with the cloud are integrated in the networking module, so that in the process of performing joint debugging between the networking module and the device simulator, the device simulator can only focus on data interaction between the networking module, and does not need to focus on any details of whether the networking module is connected with the cloud or not. Exemplarily, fig. 3 is a schematic diagram of a debugging process of the internet of things according to an embodiment of the present invention. As shown in fig. 3, compared with the debugging process of the internet of things in the prior art, the debugging process of the device control end and the networking module is omitted, the debugging time of the internet of things is shortened, and the development efficiency of the internet of things is improved.
Optionally, debugging the networking module and the device simulator based on an AT communication protocol includes: the networking module converts an AT communication protocol into a hexadecimal HEX data stream and sends the HEX data stream to the equipment simulator; and the equipment simulator debugs the networking module and the equipment simulator according to the HEX data stream. Illustratively, when based, before the networking module sends an AT command to the device simulator to enable the device simulator to debug the networking module and the device simulator based on the AT communication protocol, the networking module converts the AT protocol into a HEX (Hexadecimal) data stream and sends the HEX data stream to the device simulator, so that the device simulator debugs the networking module and the device simulator directly according to the received HEX data stream. Exemplarily, fig. 4 is a schematic diagram of a debugging process of the internet of things according to an embodiment of the present invention. As shown in fig. 4, compared with the debugging process of the internet of things in the prior art, the debugging process of the device control end and the networking module is omitted, the debugging process of the device function and the networking module is omitted, the debugging time of the internet of things is further shortened, and the development efficiency of the internet of things is greatly improved.
In an embodiment of the invention, all the attribute features of the device simulator include all the basic features involved in the device simulator. For example, if the device simulator is a gas hot-water kettle simulator, the attribute characteristics of the gas hot-water kettle simulator may include characteristics of an inlet water temperature, an outlet water temperature, a preset temperature, an operating mode, and the like.
In the embodiment of the invention, the device simulator sends the communication data configuration file and all attribute information of the device simulator to the networking module, the networking module sends the received communication data configuration file and all attribute characteristics of the device simulator to the device control simulation end, and the device control simulation end performs combined debugging of the device control simulation end, the device simulator and the networking module according to the communication data configuration file and all attribute characteristics of the device simulator, namely, the device control simulation end performs Internet of things debugging according to the communication data configuration file and the attribute characteristics. For example, in the process of debugging the internet of things, logic control on various attribute features of the device simulator can be realized according to the communication data configuration file.
The internet of things debugging method provided by the embodiment of the invention is applied to an internet of things debugging system, wherein the internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module, and comprises the following steps: acquiring a communication data configuration file; the communication data configuration file comprises communication data between the networking module and the equipment simulator; acquiring all attribute characteristics of the equipment simulator; and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through the networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics. The Internet of things debugging method provided by the embodiment of the invention can improve the development efficiency of the Internet of things system and shorten the debugging time.
In some embodiments, after the communication data configuration file and the attribute feature are sent to the device control simulation terminal through a networking module, so that the device control simulation terminal performs internet of things debugging according to the communication data configuration file and the attribute feature, the method further includes: when a networking module receives a first control instruction sent by an equipment control simulation end, the networking module sends the first control instruction to an equipment simulator; and the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction.
In the embodiment of the invention, when the internet of things needs to be simulated, the equipment control simulation end generates the first control instruction according to the simulation instruction input by the user, wherein the first control instruction can be understood as a control instruction of the equipment control simulation end on the attribute information or the state information of the equipment simulation end. And the equipment control simulation end sends the generated first control instruction to the networking module. When the networking module receives a first control instruction sent by the equipment control simulation end, the networking module sends the first control instruction to the equipment simulator.
In the embodiment of the invention, when the equipment simulator receives a first control instruction sent by the equipment control simulation end through the networking module, the current attribute information of the equipment simulator is adjusted according to the first control instruction. The current attribute information of the device simulator may include current state information of the device simulator and a feature value currently corresponding to the attribute of the device simulator. For example, the device simulator is an electric kettle simulator, and the current attribute information of the electric kettle simulator may include basic information such as an operating state, an operating duration, maximum temperature information, minimum temperature information, and the like of the electric kettle simulator. The equipment simulator analyzes and processes the first control instruction, and adjusts the current attribute information of the equipment simulator correspondingly according to the first control instruction. The first control instruction may be a control instruction for adjusting one piece of current attribute information of the device simulator, or may be a control instruction for adjusting a plurality of pieces of current attribute information of the device simulator. That is, only the current attribute information of the device simulator may be adjusted according to the first control instruction, or multiple pieces of current attribute information of the device simulator may be adjusted according to the first control instruction.
Fig. 5 is a schematic diagram of an architecture of an internet of things debugging system provided in the embodiment of the present invention. As shown in fig. 5, the networking module sends the control instruction received from the device control simulation end to the device simulator, so that the device simulator adjusts the attribute information of the device simulator according to the received control instruction, and can simulate the state synchronous control of the device simulator by the device control simulation end.
Optionally, when the networking module receives a first control instruction sent by the device control simulation end, the networking module sends the first control instruction to the device simulator, including: when a networking module receives a first control instruction sent by an equipment control simulation end, acquiring a reported data use case of the networking module; and the networking module sends the first control instruction to an equipment simulator according to the reported data use case. The reported data use case can be understood as a test use case generated by the networking module performing an actual data reporting process under different actual requirements, that is, a series of codes executed in the process of performing actual data reporting by the networking module under different actual requirements are converted into a test use case which can be repeatedly executed. When the networking module receives a first control instruction sent by the equipment control simulation end, the first control instruction is sent to the equipment simulator according to the reported data use case of the networking module, so that the joint test of data interaction between the networking module and the equipment simulator is realized.
Optionally, before the device simulator adjusts the current attribute information of the device simulator according to the first control instruction, the method further includes: and when an Internet of things simulation instruction is received, determining the current attribute information of the equipment simulator according to the Internet of things simulation instruction. For example, when the internet of things needs to be simulated, a user usually inputs an internet of things simulation instruction, wherein the user can input the internet of things simulation instruction by clicking a virtual simulation button configured in the internet of things debugging system. When an Internet of things simulation instruction is received, selectable attribute values corresponding to various attributes of the equipment simulator can be displayed in an Internet of things debugging system interface, and current attribute information of the equipment simulator is determined according to the attribute values clicked or selected by a user.
Optionally, when an internet of things debugging instruction is received, determining current attribute information of the device simulator according to the internet of things debugging instruction includes: when an Internet of things debugging instruction is received, acquiring a simulation equipment list and displaying the simulation equipment list; the simulation equipment list comprises model information of each equipment simulator; determining an equipment simulator according to model information selected by a user from the simulation equipment list; reading pre-stored target attribute information corresponding to the equipment simulator, and taking the target attribute information as the current attribute information of the equipment simulator. Illustratively, when the internet of things needs to be simulated, a user opens the internet of things debugging system, at this time, the fact that a physical network simulation instruction is received can be represented, and then after an interface of the internet of things debugging system is initialized, a first simulation device file stored in advance can be loaded from a server (such as a Django server) to obtain a simulation device list, and the simulation device list is displayed in an initialized interface corresponding to the internet of things debugging system. The simulation equipment list includes model information of each equipment simulator. The user can select one model from the model information of all the equipment simulators by clicking the pull-down list, and the equipment simulator is determined according to the equipment corresponding to the model selected by the user. Then, a second simulation device file stored in advance may be loaded from the server to obtain the target attribute information corresponding to the device simulator, where the second simulation device file includes all the attribute information of the device simulator. The target attribute information corresponding to the device simulator is used as the current attribute information of the device simulator, and it can be understood that the target attribute information of the device simulator is usually the original attribute information of the device simulator.
Optionally, the adjusting, by the device simulator according to the first control instruction, current attribute information of the device simulator includes: acquiring a target communication data use case according to the current attribute information and the communication data configuration file; and the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction and the target communication data use case. The communication data configuration file not only contains interaction data between the networking module and the equipment simulator, but also contains interaction data between the equipment simulator and the equipment simulator corresponding to the equipment simulator in different attribute states. Therefore, the target communication data use case matched with the current attribute information of the equipment simulator can be searched from the communication data configuration file according to the current attribute information of the equipment simulator. And the equipment simulator correspondingly adjusts the current attribute information of the equipment simulator according to the first control instruction and the target communication data.
In some embodiments, after the device simulator adjusts the current attribute information of the device simulator according to the first control instruction, the method further includes: judging whether the current attribute information of the equipment simulator changes or not, if so, sending the changed attribute information to the equipment control simulation end by the equipment simulator through a networking module; and displaying the changed attribute information. For example, after the device simulator adjusts the current attribute information of the device simulator according to the first control instruction, in order to determine validity of data interaction among the device simulator, the device control simulation terminal, and the networking module in the debugging system of the internet of things, it may be further determined whether the current attribute information of the device simulator actually changes, if so, the device simulator sends the changed attribute information to the device control simulation terminal through the networking module, and displays the changed attribute information at the device simulation control terminal.
In some embodiments, before the networking module sends the first control instruction to the device simulator when the networking module receives the first control instruction sent by the device control simulation terminal, the method further includes: when a second control instruction of the networking module is received, adjusting the working state of the networking module according to the second control instruction; the working state comprises a reporting state and a closing state; correspondingly, the networking module sends the first control instruction to an equipment simulator, including: and when the networking module is in a reporting state, the networking module sends the first control instruction to the equipment simulator. The second control instruction may be a control instruction for the working state of the networking module, and the second control instruction may be generated by clicking a virtual button (a virtual button for controlling the working state of the networking module) in an initial interface corresponding to the internet of things debugging system by a user. When a second control instruction of the networking module is received, the working state of the networking module is adjusted, wherein the working state of the networking module can comprise a reporting state and a closing state, the reporting state can be understood that the networking module, the equipment simulator and the equipment control simulation end are in a connection state, and the control of the equipment control simulation end on the property or the state of the equipment simulator can be realized through the networking module. The off state can be understood as that the networking module is in a disconnected state with the device simulator or the device control simulation terminal, and the device control simulation terminal cannot control the property or the state of the device simulator through the networking module. When the networking module is in a reporting state, if the networking module receives a first control instruction sent by the equipment control simulation end, the networking module sends the first control instruction to the equipment simulator.
Fig. 6 is a flowchart of a debugging method of the internet of things according to another embodiment of the present invention, and as shown in fig. 6, the method includes the following steps:
601, acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator.
Optionally, obtaining the communication data configuration file includes: debugging the networking module and the equipment simulator based on an AT communication protocol; a communication data profile is generated during the debugging process.
Optionally, debugging the networking module and the device simulator based on an AT communication protocol includes: the networking module converts an AT communication protocol into a hexadecimal HEX data stream and sends the HEX data stream to the equipment simulator; and the equipment simulator debugs the networking module and the equipment simulator according to the HEX data stream.
And 608, when the networking module is in the reporting state, if the networking module receives the first control instruction sent by the equipment control simulation end, acquiring a reported data use case of the networking module.
And step 609, the networking module sends the first control instruction to the equipment simulator according to the reported data use case.
And 612, when the current attribute information of the equipment simulator is determined to be changed, the equipment simulator sends the changed attribute information to the equipment control simulation end through the networking module.
Fig. 7 is a schematic interface diagram of an internet of things debugging system provided in the embodiment of the present invention. The Internet of things debugging system can be developed based on Qt (C + +), and a serviceport component and a network component of the Qt can be used in the development process. As shown in fig. 7, in the interface diagram of the debugging system of the internet of things, the top row can display the device model of the device simulator and the hardware connection mode between the control simulation end of the control device and the networking module; the second line and the third line can realize the functions of controlling the behavior of the analog terminal to the networking module and reporting data by the equipment; the middle left side rolling area can display all attribute information of a corresponding equipment simulation end, and the middle right side text box can display some operation records and the state of the networking module; the left side of the bottom row can display some data examples generated by the equipment control simulation terminal, and the right side can display a data use case for communication between the networking module and the equipment control simulation terminal.
The Internet of things debugging method provided by the embodiment of the invention can greatly improve the development efficiency of the Internet of things system and shorten the debugging time.
Fig. 8 is a schematic structural diagram of an internet of things debugging device provided in an embodiment of the present invention. The device can be realized by software and/or hardware, is generally integrated in an Internet of things debugging system, and can simulate the Internet of things by executing an Internet of things debugging method. The Internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module. As shown in fig. 8, the apparatus includes:
a configuration file obtaining module 801, configured to obtain a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator;
an attribute feature obtaining module 802, configured to obtain all attribute features of the device simulator;
the internet of things debugging module 803 is configured to send the communication data configuration file and the attribute feature to the device control simulation end through a networking module, so that the device control simulation end performs internet of things debugging according to the communication data configuration file and the attribute feature.
The internet of things debugging device provided by the embodiment of the invention is applied to an internet of things debugging system, wherein the internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module, and comprises: acquiring a communication data configuration file; the communication data configuration file comprises communication data between the networking module and the equipment simulator; acquiring all attribute characteristics of the equipment simulator; and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through the networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics. The Internet of things debugging method provided by the embodiment of the invention can improve the development efficiency of the Internet of things system and shorten the debugging time.
Optionally, the configuration file obtaining module includes:
the debugging unit is used for debugging the networking module and the equipment simulator based on an AT communication protocol;
and the configuration file generating unit is used for generating a communication data configuration file in the debugging process.
Optionally, the debugging unit is configured to:
the networking module converts an AT communication protocol into a hexadecimal HEX data stream and sends the HEX data stream to the equipment simulator;
and the equipment simulator debugs the networking module and the equipment simulator according to the HEX data stream.
Optionally, the apparatus further comprises:
the sending module is used for sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end conducts Internet of things debugging according to the communication data configuration file and the attribute characteristics, and when the networking module receives a first control instruction sent by the equipment control simulation end, the networking module sends the first control instruction to the equipment simulator;
and the adjusting module is used for adjusting the current attribute information of the equipment simulator by the equipment simulator according to the first control instruction.
Optionally, the apparatus further comprises:
and the attribute information determining module is used for determining the current attribute information of the equipment simulator according to the Internet of things simulation instruction when the Internet of things simulation instruction is received before the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction.
Optionally, the attribute information determining module is configured to:
when an Internet of things simulation instruction is received, acquiring a simulation equipment list and displaying the simulation equipment list; the simulation equipment list comprises model information of each equipment simulator;
determining an equipment simulator according to model information selected by a user from the simulation equipment list;
reading pre-stored target attribute information corresponding to the equipment simulator, and taking the target attribute information as the current attribute information of the equipment simulator.
Optionally, the adjusting module is configured to:
acquiring a target communication data use case according to the current attribute information and a pre-stored communication data configuration file; wherein the target communication data use case comprises communication data of the networking module and the device simulator;
and the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction and the target communication data use case.
Optionally, the sending module is configured to:
when a networking module receives a first control instruction sent by an equipment control simulation end, acquiring a reported data use case of the networking module;
and the networking module sends the first control instruction to an equipment simulator according to the reported data use case.
Optionally, the apparatus further comprises:
the judging module is used for judging whether the current attribute information of the equipment simulator changes or not after the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction, and if yes, the equipment simulator sends the changed attribute information to the equipment control simulation end through the networking module;
and the display module is used for displaying the changed attribute information.
Optionally, the apparatus further comprises:
the state control module is used for adjusting the working state of the networking module according to a second control instruction when the networking module receives the second control instruction before the networking module sends the first control instruction to the equipment simulator when the networking module receives the first control instruction sent by the equipment control simulation end; the working state comprises a reporting state and a closing state;
correspondingly, the networking module sends the first control instruction to an equipment simulator, including:
and when the networking module is in a reporting state, the networking module sends the first control instruction to the equipment simulator.
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are executed by a computer processor to perform a method for debugging an internet of things, and the method is applied to a debugging system of the internet of things, where the debugging system of the internet of things includes an equipment simulator, an equipment control simulation terminal, and a networking module, and the method includes:
acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator;
acquiring all attribute characteristics of the equipment simulator;
and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present invention includes computer-executable instructions, and the computer-executable instructions are not limited to the foregoing debugging operations of the internet of things, and may also perform related operations in the debugging method of the internet of things provided in any embodiments of the present invention.
The embodiment of the invention provides an Internet of things debugging system, and the Internet of things debugging system can be integrated with an Internet of things debugging device provided by the embodiment of the invention. Fig. 9 is a block diagram of a structure of an internet of things debugging system according to an embodiment of the present invention. The internet of things debugging system 900 may include: the device simulator 901, the device control simulation terminal 902, the networking module 903, the memory 904, at least one processor 905 and a computer program stored on the memory 904 and capable of running on the processor 905, wherein when the processor 905 executes the computer program, the internet of things debugging method according to the embodiment of the present invention is implemented.
The Internet of things debugging system provided by the embodiment of the invention acquires a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator; acquiring all attribute characteristics of the equipment simulator; and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics. The Internet of things debugging method provided by the embodiment of the invention can improve the development efficiency of the Internet of things system and shorten the debugging time.
The internet of things debugging device, the storage medium and the internet of things debugging system provided in the above embodiments can execute the internet of things debugging method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to an internet of things debugging method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (13)
1. The Internet of things debugging method is applied to an Internet of things debugging system, wherein the Internet of things debugging system comprises an equipment simulator, an equipment control simulation end and a networking module, and the method comprises the following steps:
acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator;
acquiring all attribute characteristics of the equipment simulator;
and sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics.
2. The method of claim 1, wherein obtaining a communication data profile comprises:
debugging the networking module and the equipment simulator based on an AT communication protocol;
a communication data profile is generated during the debugging process.
3. The method of claim 2, wherein debugging the networking module and the device simulator based on an AT communication protocol comprises:
the networking module converts an AT communication protocol into a hexadecimal HEX data stream and sends the HEX data stream to the equipment simulator;
and the equipment simulator debugs the networking module and the equipment simulator according to the HEX data stream.
4. The method according to claim 2, wherein after the communication data configuration file and the attribute feature are sent to the device control simulation terminal through a networking module so that the device control simulation terminal performs internet of things debugging according to the communication data configuration file and the attribute feature, the method further comprises:
when a networking module receives a first control instruction sent by an equipment control simulation end, the networking module sends the first control instruction to an equipment simulator;
and the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction.
5. The method of claim 4, further comprising, before the plant simulator adjusts current attribute information of the plant simulator in accordance with the first control instruction:
and when an Internet of things simulation instruction is received, determining the current attribute information of the equipment simulator according to the Internet of things simulation instruction.
6. The method of claim 5, wherein determining current attribute information of the device simulator according to the IOT simulation instruction when the IOT simulation instruction is received comprises:
when an Internet of things simulation instruction is received, acquiring a simulation equipment list and displaying the simulation equipment list; the simulation equipment list comprises model information of each equipment simulator;
determining an equipment simulator according to model information selected by a user from the simulation equipment list;
reading pre-stored target attribute information corresponding to the equipment simulator, and taking the target attribute information as the current attribute information of the equipment simulator.
7. The method of claim 6, wherein the device simulator adjusting current attribute information of the device simulator according to the first control instruction comprises:
acquiring a target communication data use case according to the current attribute information and the communication data configuration file; and the equipment simulator adjusts the current attribute information of the equipment simulator according to the first control instruction and the target communication data use case.
8. The method of claim 4, wherein when a networking module receives a first control instruction sent by a device control simulation terminal, the networking module sends the first control instruction to a device simulator, and the method comprises the following steps:
when a networking module receives a first control instruction sent by an equipment control simulation end, acquiring a reported data use case of the networking module;
and the networking module sends the first control instruction to an equipment simulator according to the reported data use case.
9. The method of claim 4, after the device simulator adjusts current attribute information of the device simulator in accordance with the first control instruction, further comprising:
judging whether the current attribute information of the equipment simulator changes or not, if so, sending the changed attribute information to the equipment control simulation end by the equipment simulator through a networking module;
and displaying the changed attribute information.
10. The method according to claim 4, wherein before the networking module sends the first control instruction to the device simulator when the networking module receives the first control instruction sent by the device control simulation terminal, the method further comprises:
when a second control instruction of the networking module is received, adjusting the working state of the networking module according to the second control instruction; the working state comprises a reporting state and a closing state;
correspondingly, the networking module sends the first control instruction to an equipment simulator, including:
and when the networking module is in a reporting state, the networking module sends the first control instruction to the equipment simulator.
11. The utility model provides a thing networking debugging device, its characterized in that is applied to thing networking debugging system, wherein, thing networking debugging system includes equipment simulator, equipment control simulation end and networking module, the device includes:
the configuration file acquisition module is used for acquiring a communication data configuration file; wherein the communication data profile includes communication data between the networking module and the device simulator;
the attribute characteristic acquisition module is used for acquiring all attribute characteristics of the equipment simulator;
and the Internet of things debugging module is used for sending the communication data configuration file and the attribute characteristics to the equipment control simulation end through a networking module so that the equipment control simulation end carries out Internet of things debugging according to the communication data configuration file and the attribute characteristics.
12. An internet of things debugging system, comprising a device simulator, a device control simulation terminal, a networking module, a memory, at least one processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to implement the internet of things debugging method according to any one of claims 1-10.
13. A computer-readable medium, on which a computer program is stored, which, when executed by a processing device, implements a method for debugging the internet of things as claimed in any one of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010641196.8A CN111901155B (en) | 2020-07-06 | 2020-07-06 | Internet of things debugging method, device and system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010641196.8A CN111901155B (en) | 2020-07-06 | 2020-07-06 | Internet of things debugging method, device and system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111901155A true CN111901155A (en) | 2020-11-06 |
CN111901155B CN111901155B (en) | 2022-10-14 |
Family
ID=73191613
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010641196.8A Active CN111901155B (en) | 2020-07-06 | 2020-07-06 | Internet of things debugging method, device and system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111901155B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467832A (en) * | 2021-06-29 | 2021-10-01 | 青岛海尔科技有限公司 | Equipment control processing method, device, storage medium and electronic device |
CN115834717A (en) * | 2022-09-23 | 2023-03-21 | 广州楚秀信息科技有限公司 | Communication protocol rapid development method for Internet of things equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101505238A (en) * | 2009-03-06 | 2009-08-12 | 北京讯风光通信技术开发有限责任公司 | Remote automatic debugging method and system for communication apparatus |
CN103974312A (en) * | 2013-02-05 | 2014-08-06 | 中国移动通信集团公司 | WLAN (wireless local area network) equipment testing method, device and system |
CN105263155A (en) * | 2015-09-18 | 2016-01-20 | 东南大学 | Method and system for remotely monitoring running state of intelligent mobile terminal baseband processor in real-time manner |
CN109147459A (en) * | 2018-10-30 | 2019-01-04 | 重庆房地产职业学院 | Smart home simulated environment experiment teaching system based on Internet of Things |
CN109308261A (en) * | 2018-09-11 | 2019-02-05 | 百度在线网络技术(北京)有限公司 | Application program adjustment method, device, system, equipment and storage medium |
CN110347591A (en) * | 2019-06-19 | 2019-10-18 | 平安普惠企业管理有限公司 | Method, apparatus, electronic equipment and storage medium based on use-case test macro |
CN110750437A (en) * | 2018-07-23 | 2020-02-04 | 阿里巴巴集团控股有限公司 | Equipment debugging method, device, equipment and system |
CN111200535A (en) * | 2018-11-16 | 2020-05-26 | 阿里巴巴集团控股有限公司 | Simulation system and method for equipment |
CN111262759A (en) * | 2020-03-17 | 2020-06-09 | 中国建设银行股份有限公司 | Internet of things platform testing method, device, equipment and storage medium |
-
2020
- 2020-07-06 CN CN202010641196.8A patent/CN111901155B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101505238A (en) * | 2009-03-06 | 2009-08-12 | 北京讯风光通信技术开发有限责任公司 | Remote automatic debugging method and system for communication apparatus |
CN103974312A (en) * | 2013-02-05 | 2014-08-06 | 中国移动通信集团公司 | WLAN (wireless local area network) equipment testing method, device and system |
CN105263155A (en) * | 2015-09-18 | 2016-01-20 | 东南大学 | Method and system for remotely monitoring running state of intelligent mobile terminal baseband processor in real-time manner |
CN110750437A (en) * | 2018-07-23 | 2020-02-04 | 阿里巴巴集团控股有限公司 | Equipment debugging method, device, equipment and system |
CN109308261A (en) * | 2018-09-11 | 2019-02-05 | 百度在线网络技术(北京)有限公司 | Application program adjustment method, device, system, equipment and storage medium |
CN109147459A (en) * | 2018-10-30 | 2019-01-04 | 重庆房地产职业学院 | Smart home simulated environment experiment teaching system based on Internet of Things |
CN111200535A (en) * | 2018-11-16 | 2020-05-26 | 阿里巴巴集团控股有限公司 | Simulation system and method for equipment |
CN110347591A (en) * | 2019-06-19 | 2019-10-18 | 平安普惠企业管理有限公司 | Method, apparatus, electronic equipment and storage medium based on use-case test macro |
CN111262759A (en) * | 2020-03-17 | 2020-06-09 | 中国建设银行股份有限公司 | Internet of things platform testing method, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467832A (en) * | 2021-06-29 | 2021-10-01 | 青岛海尔科技有限公司 | Equipment control processing method, device, storage medium and electronic device |
CN115834717A (en) * | 2022-09-23 | 2023-03-21 | 广州楚秀信息科技有限公司 | Communication protocol rapid development method for Internet of things equipment |
Also Published As
Publication number | Publication date |
---|---|
CN111901155B (en) | 2022-10-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111934908A (en) | Internet of things simulation method, device and system and storage medium | |
CN107632219B (en) | Automatic startup and shutdown test system and test method thereof | |
CN111611121B (en) | Hardware simulation test method, device and equipment | |
CN111901155B (en) | Internet of things debugging method, device and system and storage medium | |
CN110493812B (en) | Distribution network test processing method, device and system, processor and master control equipment | |
CN104699591A (en) | Reappearing method and device of test scenes | |
CN108111364B (en) | Service system testing method and device | |
CN113722020B (en) | Interface calling method, device and computer readable storage medium | |
CN110708214B (en) | Service data display method, device, equipment and computer readable storage medium | |
CN107977318B (en) | Energy consumption and performance test method for Android application program | |
CN112597015A (en) | System test method, device, computer equipment and storage medium | |
CN110750453A (en) | HTML 5-based intelligent mobile terminal testing method, system, server and storage medium | |
CN110888800A (en) | Service interaction function test method, device, storage medium and test system | |
CN112559335A (en) | Test method, device, equipment and storage medium | |
CN112583617B (en) | Fault determination method, server, control terminal and storage medium | |
CN109600781B (en) | WiFi module test system and method | |
CN113973060A (en) | Internet of things simulation method, device and system and storage medium | |
CN112241356A (en) | Page testing method, device, equipment and storage medium | |
US20030126506A1 (en) | Program testing system and method | |
CN110442059A (en) | Controlled device expanding method, device and control equipment | |
KR101335657B1 (en) | System and method using realtime simulator and programmed system switching for the validation of large-scaled dcs | |
EP3248104A1 (en) | Method and device for automatic testing | |
CN106407062B (en) | Industry control chip debugging system and adjustment method | |
CN110347409B (en) | Automatic control method, client and server | |
CN104765616B (en) | A kind of method and system for automatically generating I/O model |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |