CN110750437B - Equipment debugging method, device, equipment and system - Google Patents
Equipment debugging method, device, equipment and system Download PDFInfo
- Publication number
- CN110750437B CN110750437B CN201810813916.7A CN201810813916A CN110750437B CN 110750437 B CN110750437 B CN 110750437B CN 201810813916 A CN201810813916 A CN 201810813916A CN 110750437 B CN110750437 B CN 110750437B
- Authority
- CN
- China
- Prior art keywords
- browser
- behavior simulation
- receiving
- debugging
- simulation data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000004088 simulation Methods 0.000 claims abstract description 165
- 230000006399 behavior Effects 0.000 claims description 209
- 238000003860 storage Methods 0.000 claims description 15
- 230000003542 behavioural effect Effects 0.000 claims description 11
- 230000004044 response Effects 0.000 claims description 8
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000011161 development Methods 0.000 abstract description 11
- 238000009434 installation Methods 0.000 abstract description 6
- 230000002349 favourable effect Effects 0.000 abstract 1
- 230000006855 networking Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 12
- 230000006872 improvement Effects 0.000 description 9
- 238000004590 computer program Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000010979 ruby Substances 0.000 description 1
- 229910001750 ruby Inorganic materials 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
Abstract
The application discloses a device debugging method, device, equipment and system, which can utilize a browser to receive device behavior simulation data, execute a device behavior simulation program in the browser according to the device behavior simulation data, and further determine the device debugging data. By utilizing the technical scheme recorded in the embodiment of the application, equipment debugging can be directly simulated at the browser end, the development efficiency is improved, and the problem of poor user experience caused by additional development and installation of the client is solved. This is favorable to the technical development of thing networking.
Description
Technical Field
The application relates to the technical field of internet of things, in particular to a device debugging method, device and system.
Background
The internet of things (English: internet of Things, abbreviated as IoT) is an information carrier such as the internet and a traditional telecommunication network, so that all common objects capable of performing independent functions can realize interconnection and intercommunication, and the internet of things device refers to a physical device capable of being connected to the internet of things with a certain connection protocol.
In the development process of the control program of the IoT device, the control program establishes communication connection with the real device, and the control program is used to control the behavior of the real device, so as to obtain device debugging data. The equipment debugging data can be used for evaluating the quality of equipment products and the communication condition between a control program and real equipment, so that the improvement and the promotion of the real equipment are further carried out.
However, the user experience is poor for the user based on the means of commissioning of the real device.
Disclosure of Invention
The technical problem to be solved by the embodiment of the application is how to solve the problem that the user experience is poor based on the debugging means of the real equipment.
The embodiment of the application adopts the following technical scheme:
the embodiment of the application provides a device debugging method, which comprises the following steps:
receiving device behavior simulation data;
and executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data, and determining equipment debugging data.
The embodiment of the application also provides a device debugging method, which comprises the following steps:
transmitting the equipment behavior simulation data to a browser;
device commissioning data is received from the browser, the device commissioning data being determined by the browser executing a device behaviour simulation program in accordance with the device behaviour simulation data.
The embodiment of the application also provides a device debugging device, which comprises:
the receiving module is used for receiving the equipment behavior simulation data;
and the determining module is used for executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data and determining equipment debugging data.
The embodiment of the application also provides a device debugging device, which comprises:
The sending module is used for sending the equipment behavior simulation data to the browser;
and the receiving module is used for receiving equipment debugging data from the browser, wherein the equipment debugging data are determined by the browser according to equipment behavior simulation programs executed by the browser according to the equipment behavior simulation data.
The embodiment of the application also provides a device debugging system, which comprises:
the browser receives the equipment behavior simulation data, executes an equipment behavior simulation program according to the equipment behavior simulation data and determines equipment debugging data;
and the server receives the device debugging data from the browser.
The embodiment also provides an electronic device comprising at least one processor and a memory, the memory storing a program and configured to be executed by the at least one processor to:
receiving device behavior simulation data;
and executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data, and determining equipment debugging data.
The embodiments also provide a computer readable storage medium including a program for use with an electronic device, the program being executable by a processor to perform the steps of:
receiving device behavior simulation data;
And executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data, and determining equipment debugging data.
The embodiment also provides an electronic device comprising at least one processor and a memory, the memory storing a program and configured to be executed by the at least one processor to:
transmitting the equipment behavior simulation data to a browser;
device commissioning data is received from the browser, the device commissioning data being determined by the browser executing a device behaviour simulation program in accordance with the device behaviour simulation data.
The embodiments also provide a computer readable storage medium including a program for use with an electronic device, the program being executable by a processor to perform the steps of:
transmitting the equipment behavior simulation data to a browser;
device commissioning data is received from the browser, the device commissioning data being determined by the browser executing a device behaviour simulation program in accordance with the device behaviour simulation data. .
The above-mentioned at least one technical scheme that this application embodiment adopted can reach following beneficial effect:
and receiving the equipment behavior simulation data by using the browser, executing an equipment behavior simulation program in the browser according to the equipment behavior simulation data, and further determining equipment debugging data. By utilizing the technical scheme recorded in the embodiment of the application, equipment debugging can be directly simulated at the browser end, and further the problem of poor user experience caused by additional development and installation of the client is solved. This contributes to IoT technology development.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a timing chart of an apparatus debugging method based on an apparatus debugging system according to an embodiment of the present application;
FIG. 2 is a timing diagram of another device debugging method based on a device debugging system according to an embodiment of the present application;
fig. 3 is a flowchart of a device debugging method according to an embodiment of the present application;
FIG. 4 is a screenshot of an example application of a web page of the browser in the device debugging method of FIG. 3;
fig. 5 is a flowchart of a device debugging method according to an embodiment of the present application;
fig. 6 is a structural diagram of an apparatus debugging device according to an embodiment of the present application;
fig. 7 is a block diagram of a device debugging apparatus according to an embodiment of the present application.
Detailed Description
The problems existing in the prior art are analyzed and found, and the prior art provides a technical means for simulating equipment behaviors by using a simulation tool based on a client side to replace a debugging means based on real equipment. The method can simplify the step of equipment debugging, reduce the cost problem brought by real equipment, but bring inconvenience to clients in programming development and installation of clients and has poor user experience.
The embodiment of the specification provides a device debugging method, device and system, which can utilize a browser to receive device behavior simulation data, execute a device behavior simulation program in the browser according to the device behavior simulation data, and further determine the device debugging data. By utilizing the technical scheme recorded in the embodiment of the application, equipment debugging can be directly simulated at the browser end, and further the problem of poor user experience caused by additional development and installation of the client is solved.
For the purposes, technical solutions and advantages of the present application, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a timing diagram of a device debugging method based on a device debugging system according to an embodiment of the present disclosure.
The device commissioning system may include:
the browser 101 receives the equipment behavior simulation data, executes an equipment behavior simulation program according to the equipment behavior simulation data, and determines equipment debugging data;
a server 102 receives 101 the device commissioning data from the browser.
In the embodiment of the present specification, the device behavior simulation data may be parameter values for simulating the actual device when the specified debug function is completed, including operating current, voltage, power value, debug time, etc., which are not particularly limited herein. On the browser 101 side, a device behavior simulation program embedded in the browser 101 is used for performing logic processing on device behavior simulation data, and outputting device debugging data.
By using the technical scheme provided by the embodiment of the specification, a device behavior simulation program can be implanted in the browser 101, and the device behavior is simulated by using the browser 101 to obtain device debugging data. In this way, the device debug data in the server can be utilized to determine whether the real device functionality is expected, and the real device can be further improved based on the device debug data. The simulation tool such as additional development and installation of the client can be avoided, the convenience and efficiency of equipment simulation are improved, and the user experience is improved.
As an example of an application, the user may input the device behavior simulation data to a web page in the browser 101, so that the browser 101 executes the device behavior simulation program according to the device behavior simulation data.
Fig. 2 is a timing chart of a device debugging method based on another device debugging system according to an embodiment of the present application.
The device debugging system comprises a browser 201, a server 202 and a client 203;
the client 203 is configured to send device behavior simulation data to the browser 201 through the server 202, and receive device debug data from the server 202.
In this case, the client 203 corresponds to the control program side of the real device. The user can input device behavior simulation data by using the client 203, and the client 203 itself does not run the device behavior simulation program, so that the burden of the debugging end is not increased. The client 203 may be an application program APP applied to a mobile terminal or a PC, so as to implement remote simulation debugging of the device.
Fig. 3 is a flowchart of a device debugging method according to an embodiment of the present disclosure, where the debugging method is as follows. The execution body of the embodiment of the present disclosure is a browser, including a conventional web browser or a mobile browser, and is not specifically limited herein.
Step 301: device behavior simulation data is received.
In the embodiment of the present specification, receiving device behavior simulation data may include at least one of the following ways:
1. receiving the equipment behavior simulation data input by a user through a webpage in a browser;
2. the device behavior simulation data is received from a server.
For mode 1, receiving the device behavior simulation data input by the user through the web page in the browser may include:
inputting a domain name in a browser;
receiving a webpage corresponding to the domain name from a server;
in this way, user-entered device behavioral simulation data may be received through the web page in the browser.
In an embodiment of the present application, receiving, through a web page in a browser, the device behavior simulation data input by a user may include:
receiving at least one debugging parameter input by a user through a webpage in a browser;
the device behavioral simulation data is determined based on at least one debug parameter.
Referring to fig. 4, fig. 4 is a screenshot of a web page in a browser according to an embodiment of the present application, where the following debug parameter options are displayed in the web page: working voltage, working current, active power value, power factor, electricity consumption, drain voltage, inclination angle value, fault power threshold, fault current threshold, inclination threshold, undervoltage threshold, overcurrent threshold and the like, some options allow users to input by themselves, and some options are provided for users to select. The user may select one or more debug parameter options for input, depending on the functionality desired to be debugged. The application example shown in fig. 4 is for reference only, and different debugging parameter options can be designed for different devices and different functions.
Wherein, receiving at least one debug parameter input by a user through a webpage in a browser may include:
and when the first trigger event is detected, receiving at least one debugging parameter input by a user through a webpage in the browser.
As illustrated in the example of fig. 4, when the user clicks "report", the browser may detect that "report" is triggered, and further receive, based on the first trigger event, at least one debug parameter input by the user through the web page in the streamer.
Thus, detecting the first trigger event may be detecting a user specified operation on the web page, e.g., detecting a first trigger event on a specified object, which may include clicking, double clicking, or pressing the specified object, or detecting a desired input speech.
In an embodiment of the present specification, receiving the device behavior simulation data from the server may include:
monitoring device debugging messages sent by a server based on a device behavior simulation program in a browser;
and determining the equipment behavior simulation data according to the monitored equipment debugging message.
In practical applications, the debugging scheme of the device not only includes debugging the function of the device itself, but also includes debugging the control strategy of the device. Therefore, the device debugging parameters can be input by using the client corresponding to the control program, the client reports the device debugging parameters to the server, and the server sends the device debugging information to the browser, wherein the device debugging information carries the device debugging parameters.
In the embodiment of the present disclosure, a WebSocket channel may be established between a browser and a server, where WebSocket is a network technology provided by HTML5 and used for full duplex communication between the browser and the server, so that data interaction transmission can be performed between the browser and the server. Specifically, a remote procedure call (English: remote Procedure Call, abbreviated: RPC) interface and MQ of a server (corresponding to a background of a virtual device) are exposed to a browser through http and WebSocket protocols, and a software development kit (English: software Development Kit, abbreviated: SDK) of a simulation device is packaged by using the http interface and the WebSocket channels and is sent to the browser, and device debugging data is obtained from the browser.
In another embodiment, the device commissioning method may further comprise, prior to receiving the device behaviour simulation data from the server:
receiving an equipment attribute value input by a user through a webpage in a browser;
according to the device attribute value input by the user, sending a device debugging request;
and determining that the slave server receives the device behavior simulation data according to a response based on the device debugging request.
In this case, the currently debugged device function attribute may be determined according to the device attribute value input by the user. And then requests the device behavior simulation data required by the current debugging function attribute from the server. The server's response to the device debug request may include device behavior modeling data.
Step 303: and executing the device behavior simulation program in the browser according to the device behavior simulation data, and determining the device debugging data.
The device behavior simulation program is implanted in the browser, so that the device behavior simulation program can be directly operated at the browser side.
In an embodiment of the present specification, before executing the device behavior simulation program in the browser according to the device behavior simulation data, the device debugging method may further include:
receiving a device attribute value input by a user through a device behavior simulation script in a browser;
and generating the equipment behavior simulation program according to the equipment attribute value input by the user.
The proposal of the proposal is that a code editor is provided in a webpage of a browser and is used as a device behavior simulation script, so that a user can edit a virtual script and further generate an operation script of the device behavior simulation program. By combining the above, the device behavior simulation program can be utilized to perform the functions of programming the device debugging function attribute value, monitoring the device debugging information of the server, receiving the device behavior simulation data input by the user, and the like, without installing additional programming software and environments, and improving the user operation experience.
In an embodiment of the present disclosure, generating the device behavior simulation program according to the device attribute value input by the user may include:
and when a second trigger event is detected, generating the equipment behavior simulation program according to the equipment attribute value input by the user.
In this embodiment of the present application, the second trigger event may be a specific operation of the web page by the user, where the specific operation may be a specific gesture, or may be a trigger for a specific object in the web page. As an example of an application, a user may click a "run" button after entering a device attribute value through a device behavior simulation script in a browser, and a device behavior simulation program may run in the current browser environment. Here, a "run" button or other type of button may be a designated object, and a single click, touch, or double click may be considered a second trigger event.
In an embodiment of the present specification, after executing the device behavior simulation program in the browser according to the device behavior simulation data, the device simulation method may further include:
and sending device debugging data, wherein the device debugging data is used for evaluating and improving the performance of the real device.
By utilizing the technical scheme recorded in the embodiment of the application, equipment debugging can be directly simulated at the browser end, and further the problem of poor user experience caused by additional development and installation of the client is solved.
Fig. 5 is a flowchart of a device debugging method according to an embodiment of the present application, where the debugging method is as follows. The execution subject of the embodiments of the present application may be a server.
Step 502: and sending the device behavior simulation data to the browser.
In an embodiment of the present disclosure, before sending the device behavior simulation data to the browser, the device debugging method further includes:
and receiving a device debugging request, wherein the device debugging request comprises the device behavior simulation data.
In practical applications, the application client may send the device behavior modeling data directly to the server.
Step 504: device commissioning data is received from the browser, the device commissioning data being determined by the browser executing a device behaviour simulation program in accordance with the device behaviour simulation data.
For how the device commissioning parameters are determined on the browser side, reference may be made to the device commissioning method shown in fig. 3.
When the server transmits the device behavior simulation data according to the device debug request of the application client, after receiving the device debug data from the browser, the device debug method may further include:
And feeding back the equipment debugging data based on the equipment debugging request.
In this case, the user may query the current device debug data on the device where the application client is located, thereby improving and upgrading the application client accordingly.
Fig. 6 is a schematic structural diagram of a device debugging apparatus according to an embodiment of the present application.
The device commissioning apparatus may include:
a receiving module 601 for receiving device behavior simulation data;
the determining module 602 executes a device behavior simulation program in the browser according to the device behavior simulation data, and determines device debugging data.
Optionally, receiving device behavior simulation data includes, for example, at least one of:
receiving the equipment behavior simulation data input by a user through a webpage in the browser;
the device behavior simulation data is received from a server.
Optionally, receiving the device behavior simulation data input by the user through a webpage in the browser includes:
receiving at least one debugging parameter input by a user through a webpage in the browser;
the device behavioral simulation data is determined based on the at least one debug parameter.
Optionally, receiving, by a web page in the browser, at least one debug parameter input by a user, including:
and when the first trigger event is detected, receiving at least one debugging parameter input by a user through a webpage in the browser.
Optionally, the detecting a trigger event includes:
a first trigger event for a specified object is detected.
Optionally, receiving the device behavior simulation data from a server, including:
monitoring equipment debugging information sent by a server based on equipment behavior simulation program in the browser;
and determining the equipment behavior simulation data according to the monitored equipment debugging message.
Optionally, before receiving the device behavior simulation data from the server, receiving a device attribute value input by a user through a webpage in the browser;
the device debugging apparatus further includes:
a sending module 603, configured to send a device debug request according to the device attribute value input by the user;
the device behavior simulation data is determined to be received from the server according to a response based on the device debug request.
Optionally, before executing the device behavior simulation program in the browser according to the device behavior simulation data, receiving a device attribute value input by a user through a device behavior simulation script in the browser;
The device debugging apparatus further includes:
a generating module 604, configured to generate the device behavior simulation program according to the device attribute value input by the user.
Optionally, generating the device behavior simulation program according to the device attribute value input by the user includes:
and when a second trigger event is detected, generating the equipment behavior simulation program according to the equipment attribute value input by the user.
Optionally, the device simulation apparatus further includes:
the transmitting module 603 transmits the device debug data after executing the device behavior simulation program in the browser according to the device behavior simulation data.
The device simulation device described in the embodiment of the application is a device capable of running a browser, realizes a simulated device debugging scheme based on the browser environment, and improves user experience.
Based on the same inventive concept, the present embodiments also provide an electronic device comprising at least one processor and a memory, the memory storing a program and configured to be executed by the at least one processor to:
receiving device behavior simulation data;
and executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data, and determining equipment debugging data.
The other functions of the processor may also be referred to the content described in the above embodiments, which is not described herein.
Based on the same inventive concept, the present embodiments also provide a computer-readable storage medium including a program for use with an electronic device, the program being executable by a processor to perform the steps of:
receiving device behavior simulation data;
and executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data, and determining equipment debugging data.
Fig. 7 is a schematic structural diagram of a device debugging apparatus according to an embodiment of the present application, where the device debugging apparatus may be a machine corresponding to a server
The device commissioning apparatus may include:
a transmitting module 701 for transmitting the device behavior simulation data to the browser;
the receiving module 702 receives device debug data from the browser, where the device debug data is determined by the browser executing a device behavior simulation program according to the device behavior simulation data.
Optionally, before sending the device behavior simulation data to the browser, receiving a device debug request, where the device debug request includes the device behavior simulation data;
after receiving device debug data from the browser, feeding back the device debug data based on the device debug request.
By using the device debugging device described in the embodiment of the present disclosure, a communication connection is established between the server and the browser, so that device debugging data can be received from the browser.
Based on the same inventive concept, the present embodiments also provide an electronic device comprising at least one processor and a memory, the memory storing a program and configured to be executed by the at least one processor to:
transmitting the equipment behavior simulation data to a browser;
device commissioning data is received from the browser, the device commissioning data being determined by the browser executing a device behaviour simulation program in accordance with the device behaviour simulation data.
The other functions of the processor may also be referred to the content described in the above embodiments, which is not described herein.
Based on the same inventive concept, the present embodiments also provide a computer-readable storage medium including a program for use with an electronic device, the program being executable by a processor to perform the steps of:
transmitting the equipment behavior simulation data to a browser;
device commissioning data is received from the browser, the device commissioning data being determined by the browser executing a device behaviour simulation program in accordance with the device behaviour simulation data.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.
Claims (22)
1. A device commissioning method, comprising:
receiving device behavior simulation data;
executing a device behavior simulation program in a browser according to the device behavior simulation data, and determining device debugging data;
the receiving device behavior simulation data includes, for example, at least one manner of:
receiving the equipment behavior simulation data input by a user through a webpage in the browser;
receiving the device behavior simulation data from a server;
The receiving, by the web page in the browser, the device behavior simulation data input by the user includes:
receiving at least one debugging parameter input by a user through a webpage in the browser;
determining the device behavioral simulation data based on the at least one debug parameter;
the device commissioning method further comprises, prior to the receiving the device behavioral simulation data from the server:
receiving an equipment attribute value input by a user through a webpage in the browser;
sending a device debugging request according to the device attribute value input by the user;
and determining that the slave server receives the device behavior simulation data according to a response based on the device debugging request.
2. The device commissioning method of claim 1, receiving, via a web page in the browser, at least one commissioning parameter entered by a user, comprising:
and when the first trigger event is detected, receiving at least one debugging parameter input by a user through a webpage in the browser.
3. The device commissioning method of claim 2, detecting a trigger event comprising:
a first trigger event for a specified object is detected.
4. The device commissioning method of claim 1, receiving the device behavioral simulation data from a server, comprising:
monitoring equipment debugging information sent by a server based on equipment behavior simulation program in the browser;
and determining the equipment behavior simulation data according to the monitored equipment debugging message.
5. The device debugging method of claim 1, the device debugging method further comprising, prior to executing a device behavior simulation program in a browser in accordance with the device behavior simulation data:
receiving a device attribute value input by a user through a device behavior simulation script in the browser;
and generating the equipment behavior simulation program according to the equipment attribute value input by the user.
6. The device commissioning method of claim 5, generating the device behavior simulation program from the user-entered device attribute values, comprising:
and when a second trigger event is detected, generating the equipment behavior simulation program according to the equipment attribute value input by the user.
7. The device debugging method of claim 1, further comprising, after executing a device behavior simulation program in a browser according to the device behavior simulation data:
And sending the device debugging data.
8. A device commissioning method, comprising:
transmitting the equipment behavior simulation data to a browser;
receiving device debugging data from the browser, wherein the device debugging data is determined by the browser according to a device behavior simulation program executed by the browser according to the device behavior simulation data;
before sending the device behavior simulation data to the browser, the device debugging method further comprises the following steps:
receiving a device debugging request, wherein the device debugging request comprises the device behavior simulation data;
after receiving device commissioning data from the browser, the device commissioning method further comprises:
feeding back the device debugging data based on the device debugging request;
the device debugging request is sent by the browser through the device attribute value input by the user and received by the webpage in the browser.
9. A device commissioning apparatus comprising:
the receiving module is used for receiving the equipment behavior simulation data;
the determining module is used for executing the equipment behavior simulation program in the browser according to the equipment behavior simulation data and determining equipment debugging data;
the receiving device behavior simulation data includes, for example, at least one manner of:
Receiving the equipment behavior simulation data input by a user through a webpage in the browser;
receiving the device behavior simulation data from a server;
the receiving, by the web page in the browser, the device behavior simulation data input by the user includes:
receiving at least one debugging parameter input by a user through a webpage in the browser;
determining the device behavioral simulation data based on the at least one debug parameter;
before the device behavior simulation data are received from the server, receiving a device attribute value input by a user through a webpage in the browser;
the device debugging apparatus further includes:
the sending module is used for sending a device debugging request according to the device attribute value input by the user;
and determining that the slave server receives the device behavior simulation data according to a response based on the device debugging request.
10. The device commissioning apparatus of claim 9, receiving at least one commissioning parameter entered by a user via a web page in the browser, comprising:
and when the first trigger event is detected, receiving at least one debugging parameter input by a user through a webpage in the browser.
11. The device commissioning apparatus of claim 10, the detecting a trigger event comprising:
a first trigger event for a specified object is detected.
12. The device commissioning apparatus of claim 9, receiving the device behavioral simulation data from a server, comprising:
monitoring equipment debugging information sent by a server based on equipment behavior simulation program in the browser;
and determining the equipment behavior simulation data according to the monitored equipment debugging message.
13. The device debugging apparatus of claim 9, receiving a device attribute value input by a user through a device behavior simulation script in a browser before executing a device behavior simulation program in the browser according to the device behavior simulation data;
the device debugging apparatus further includes:
and the generation module is used for generating the equipment behavior simulation program according to the equipment attribute value input by the user.
14. The device commissioning apparatus of claim 13, generating the device behavior simulation program from the user-entered device attribute values, comprising:
and when a second trigger event is detected, generating the equipment behavior simulation program according to the equipment attribute value input by the user.
15. The device commissioning apparatus of claim 9, the device commissioning apparatus further comprising:
and the sending module is used for sending the equipment debugging data after the equipment behavior simulation program is executed in the browser according to the equipment behavior simulation data.
16. A device commissioning apparatus comprising:
the sending module is used for sending the equipment behavior simulation data to the browser;
the receiving module is used for receiving equipment debugging data from the browser, wherein the equipment debugging data are determined by the browser according to equipment behavior simulation programs executed by the browser according to the equipment behavior simulation data;
before sending equipment behavior simulation data to a browser, receiving an equipment debugging request, wherein the equipment debugging request comprises the equipment behavior simulation data;
after receiving device debug data from the browser, feeding back the device debug data based on the device debug request;
the device debugging request is sent by the browser through the device attribute value input by the user and received by the webpage in the browser.
17. A device commissioning system, comprising:
the browser receives the equipment behavior simulation data, executes an equipment behavior simulation program according to the equipment behavior simulation data and determines equipment debugging data;
A server that receives the device debug data from the browser;
the receiving device behavior simulation data includes, for example, at least one manner of:
receiving the equipment behavior simulation data input by a user through a webpage in the browser;
receiving the device behavior simulation data from a server;
the receiving, by the web page in the browser, the device behavior simulation data input by the user includes:
receiving at least one debugging parameter input by a user through a webpage in the browser;
determining the device behavioral simulation data based on the at least one debug parameter;
the device commissioning method further comprises, prior to said receiving said device behaviour simulation data from the server:
receiving an equipment attribute value input by a user through a webpage in the browser;
sending a device debugging request according to the device attribute value input by the user;
and determining that the slave server receives the device behavior simulation data according to a response based on the device debugging request.
18. The device commissioning system of claim 17, further comprising:
and the client sends the equipment behavior simulation data to the browser through the server and receives the equipment debugging data from the server.
19. An electronic device comprising at least one processor and a memory, the memory storing a program and configured to be executed by the at least one processor to:
receiving device behavior simulation data;
executing a device behavior simulation program in a browser according to the device behavior simulation data, and determining device debugging data;
the receiving device behavior simulation data includes, for example, at least one manner of:
receiving the equipment behavior simulation data input by a user through a webpage in the browser;
receiving the device behavior simulation data from a server;
the receiving, by the web page in the browser, the device behavior simulation data input by the user includes:
receiving at least one debugging parameter input by a user through a webpage in the browser;
determining the device behavioral simulation data based on the at least one debug parameter;
the device commissioning method further comprises, prior to said receiving said device behaviour simulation data from the server:
receiving an equipment attribute value input by a user through a webpage in the browser;
sending a device debugging request according to the device attribute value input by the user;
And determining that the slave server receives the device behavior simulation data according to a response based on the device debugging request.
20. A computer readable storage medium including a program for use with an electronic device, the program being executable by a processor to perform the steps of:
receiving device behavior simulation data;
executing a device behavior simulation program in a browser according to the device behavior simulation data, and determining device debugging data;
the receiving device behavior simulation data includes, for example, at least one manner of:
receiving the equipment behavior simulation data input by a user through a webpage in the browser;
receiving the device behavior simulation data from a server;
the receiving, by the web page in the browser, the device behavior simulation data input by the user includes:
receiving at least one debugging parameter input by a user through a webpage in the browser;
determining the device behavioral simulation data based on the at least one debug parameter;
the device commissioning method further comprises, prior to said receiving said device behaviour simulation data from the server:
receiving an equipment attribute value input by a user through a webpage in the browser;
Sending a device debugging request according to the device attribute value input by the user;
and determining that the slave server receives the device behavior simulation data according to a response based on the device debugging request.
21. An electronic device comprising at least one processor and a memory, the memory storing a program and configured to be executed by the at least one processor to:
transmitting the equipment behavior simulation data to a browser;
receiving device debugging data from the browser, wherein the device debugging data is determined by the browser according to a device behavior simulation program executed by the browser according to the device behavior simulation data;
before sending the device behavior simulation data to the browser, the device debugging method further comprises the following steps:
receiving a device debugging request, wherein the device debugging request comprises the device behavior simulation data;
after receiving device commissioning data from the browser, the device commissioning method further comprises:
feeding back the device debugging data based on the device debugging request;
the device debugging request is sent by the browser through the device attribute value input by the user and received by the webpage in the browser.
22. A computer readable storage medium including a program for use with an electronic device, the program being executable by a processor to perform the steps of:
transmitting the equipment behavior simulation data to a browser;
receiving device debugging data from the browser, wherein the device debugging data is determined by the browser according to a device behavior simulation program executed by the browser according to the device behavior simulation data;
before sending the device behavior simulation data to the browser, the device debugging method further comprises the following steps:
receiving a device debugging request, wherein the device debugging request comprises the device behavior simulation data;
after receiving device commissioning data from the browser, the device commissioning method further comprises:
feeding back the device debugging data based on the device debugging request;
the device debugging request is sent by the browser through the device attribute value input by the user and received by the webpage in the browser.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810813916.7A CN110750437B (en) | 2018-07-23 | 2018-07-23 | Equipment debugging method, device, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810813916.7A CN110750437B (en) | 2018-07-23 | 2018-07-23 | Equipment debugging method, device, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110750437A CN110750437A (en) | 2020-02-04 |
CN110750437B true CN110750437B (en) | 2023-12-22 |
Family
ID=69275095
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810813916.7A Active CN110750437B (en) | 2018-07-23 | 2018-07-23 | Equipment debugging method, device, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110750437B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112559437A (en) * | 2019-09-25 | 2021-03-26 | 阿里巴巴集团控股有限公司 | Debugging unit and processor |
CN111901155B (en) * | 2020-07-06 | 2022-10-14 | 上海庆科信息技术有限公司 | Internet of things debugging method, device and system and storage medium |
CN113760235B (en) * | 2021-09-10 | 2023-12-19 | 深圳市太美亚电子科技有限公司 | BLE development and debugging system and method |
CN114915565B (en) * | 2022-05-06 | 2023-09-19 | 上海哔哩哔哩科技有限公司 | Network debugging method and system |
CN114968015A (en) * | 2022-05-18 | 2022-08-30 | 北京眼神智能科技有限公司 | Method, device and medium for information interaction and network communication module control |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1185564A (en) * | 1997-09-09 | 1999-03-30 | Toshiba Corp | Debugging method and device using web browser |
CN104796929A (en) * | 2014-01-22 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Network debugging method and device |
CN105094120A (en) * | 2015-09-11 | 2015-11-25 | 国家电网公司 | Testing device capable of simulating action behaviors of primary equipment |
CN105450463A (en) * | 2014-08-26 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system |
US9652364B1 (en) * | 2015-03-12 | 2017-05-16 | Amazon Technologies, Inc. | Cloud service for mobile testing and debugging |
CN107005444A (en) * | 2014-09-11 | 2017-08-01 | 森特理克联网家居有限公司 | Equipment is synchronous and tests |
CN107590070A (en) * | 2017-08-18 | 2018-01-16 | 深圳怡化电脑股份有限公司 | A kind of service flow debugging method and device |
-
2018
- 2018-07-23 CN CN201810813916.7A patent/CN110750437B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1185564A (en) * | 1997-09-09 | 1999-03-30 | Toshiba Corp | Debugging method and device using web browser |
CN104796929A (en) * | 2014-01-22 | 2015-07-22 | 腾讯科技(深圳)有限公司 | Network debugging method and device |
CN105450463A (en) * | 2014-08-26 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system |
CN107005444A (en) * | 2014-09-11 | 2017-08-01 | 森特理克联网家居有限公司 | Equipment is synchronous and tests |
US9652364B1 (en) * | 2015-03-12 | 2017-05-16 | Amazon Technologies, Inc. | Cloud service for mobile testing and debugging |
CN105094120A (en) * | 2015-09-11 | 2015-11-25 | 国家电网公司 | Testing device capable of simulating action behaviors of primary equipment |
CN107590070A (en) * | 2017-08-18 | 2018-01-16 | 深圳怡化电脑股份有限公司 | A kind of service flow debugging method and device |
Non-Patent Citations (1)
Title |
---|
SIMSOC模拟器远程调试系统的研究与实现;庞钰宁;龙翔;高小鹏;;微计算机信息(29);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110750437A (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110750437B (en) | Equipment debugging method, device, equipment and system | |
CN108345531B (en) | Test method, device and system | |
CN110532020B (en) | Data processing method, device and system for micro-service arrangement | |
CN106708899B (en) | Automatic point burying method and device | |
KR102150774B1 (en) | Method and apparatus for loading a terminal application | |
CN108924029B (en) | Method and device for sending customer service data | |
CN107040574B (en) | Screenshot and data processing method and device | |
CN101957756A (en) | System and method for rapidly generating intelligent mobile terminal program | |
CN110895503B (en) | Application performance monitoring method and client | |
CN110825594B (en) | Data reporting and issuing method, client and server | |
CN113536174A (en) | Interface loading method, device and equipment | |
CN108304313B (en) | Device, client and method for data testing | |
CN110046100B (en) | Packet testing method, electronic device and medium | |
CN110795353A (en) | Debugging method, device and equipment for fast application and storage medium | |
CN106610845B (en) | Information management method, device, server and system | |
CN112395098A (en) | Application program interface calling method and device, storage medium and electronic equipment | |
CN111324803B (en) | Query request processing method and device of search engine and client | |
CN108664389B (en) | Test method, test device and terminal | |
CN111078435A (en) | Service processing method and device and electronic equipment | |
US20160252974A1 (en) | Communicating with an unsupported input device | |
CN116048977B (en) | Test method and device based on data reduction | |
CN108667902B (en) | Remote control system, method, device and equipment of iOS equipment | |
CN111026800B (en) | Data export method and device, electronic equipment and storage medium | |
CN115237399A (en) | Method for collecting data, storage medium, processor and engineering vehicle | |
CN110109718B (en) | Application program interface calling method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40022284 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |