CN110471845B - Intelligent device online debugging method, device and system and electronic device - Google Patents

Intelligent device online debugging method, device and system and electronic device Download PDF

Info

Publication number
CN110471845B
CN110471845B CN201910651412.4A CN201910651412A CN110471845B CN 110471845 B CN110471845 B CN 110471845B CN 201910651412 A CN201910651412 A CN 201910651412A CN 110471845 B CN110471845 B CN 110471845B
Authority
CN
China
Prior art keywords
debugging
instruction
internet
things platform
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910651412.4A
Other languages
Chinese (zh)
Other versions
CN110471845A (en
Inventor
马侠霖
欧阳国灵
刘莫闲
杨帝海
王晓东
许钧发
刘海波
梅结良
江相君
欧阳砚池
刘轶斌
陈剑锋
胡长鸿
姚专
潘崇
梁湘武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910651412.4A priority Critical patent/CN110471845B/en
Publication of CN110471845A publication Critical patent/CN110471845A/en
Application granted granted Critical
Publication of CN110471845B publication Critical patent/CN110471845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure provides an intelligent device online debugging method, device and system and an electronic device, and belongs to the technical field of computers and communication. The online debugging method of the intelligent equipment comprises the following steps: responding to the debugging parameter input information, and generating a debugging instruction; responding to a confirmation instruction aiming at the debugging control, and sending the debugging instruction to an Internet of things platform so as to issue the debugging instruction to the intelligent equipment through the Internet of things platform; and receiving and displaying an execution message returned by the Internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction. According to the technical scheme of the embodiment of the disclosure, the online debugging of the intelligent device can be realized, the debugging accuracy is improved, and meanwhile, the debugging convenience of the intelligent device can be improved.

Description

Intelligent device online debugging method, device and system and electronic device
Technical Field
The disclosure relates to the technical field of computers and communication, in particular to an intelligent device online debugging method, device and system and electronic equipment.
Background
In the prior art, a debugging method of an intelligent device generally includes connecting an intelligent device to be debugged to a development computer, installing, deploying, developing and debugging an environment in the development computer, and then debugging the intelligent device. Device developers of smart devices need to develop specific debugging tools, and also need to assemble debugging instructions according to functional protocols and communication protocols.
In the debugging method, the installation and deployment of the debugging environment and the development of the debugging tool bring extra cost and trouble to the equipment developer. Meanwhile, the debugging method can only realize off-line debugging, and when intelligent equipment is debugged on line, equipment developers cannot conveniently know the characteristics of the Internet of things platform, so that the developed equipment functions may not be consistent with the on-line environment, and the intelligent equipment may have problems in the on-line operation process.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide an online debugging method, an online debugging device, an online debugging system, and an electronic device, so that convenience and accuracy of debugging of an intelligent device can be improved at least to a certain extent.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the embodiments of the present disclosure, there is provided an online debugging method for an intelligent device, the method including: responding to the debugging parameter input information, and generating a debugging instruction; responding to a confirmation instruction aiming at the debugging control, and sending the debugging instruction to an Internet of things platform so as to issue the debugging instruction to the intelligent equipment through the Internet of things platform; and receiving and displaying an execution message returned by the Internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction.
According to an aspect of the embodiments of the present disclosure, there is provided an online debugging method for an intelligent device, the method including: the network debugging terminal receives debugging parameter input information, generates a debugging instruction according to the debugging parameter input information, and sends the debugging instruction to the Internet of things platform; the Internet of things platform receives the debugging instruction and issues the debugging instruction to the intelligent equipment; the intelligent equipment receives and executes the debugging instruction, generates an execution message and reports the execution message to the Internet of things platform; the Internet of things platform receives the execution message and returns the execution message to the network debugging terminal; and the network debugging terminal receives and displays the execution message.
According to an aspect of the embodiments of the present disclosure, there is provided an online debugging apparatus for an intelligent device, the apparatus including: the debugging instruction generating module is configured to respond to debugging parameter input information and generate debugging instructions; the debugging instruction sending module is configured to respond to a confirmation instruction aiming at the debugging control, and send the debugging instruction to the Internet of things platform so as to send the debugging instruction to the intelligent equipment through the Internet of things platform; and the message receiving and displaying module is configured to receive and display an execution message returned by the internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction.
According to an aspect of the embodiments of the present disclosure, there is provided an online debugging system for a smart device, the system including: the system comprises a network debugging terminal, an Internet of things platform and intelligent equipment; the network debugging terminal is used for receiving debugging parameter input information, generating a debugging instruction according to the debugging parameter input information and sending the debugging instruction to the Internet of things platform; the Internet of things platform is used for receiving the debugging instruction and sending the debugging instruction to the intelligent equipment; the intelligent equipment is used for receiving and executing the debugging instruction, generating an execution message and reporting the execution message to the Internet of things platform; the Internet of things platform is also used for receiving the execution message and returning the execution message to the network debugging terminal; the network debugging terminal is also used for receiving and displaying the execution message.
According to an aspect of an embodiment of the present disclosure, there is provided an electronic device including: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the online debugging method of the intelligent device in the embodiment.
In some embodiments of the present disclosure, a debug instruction is generated by inputting information in response to a debug parameter; responding to a confirmation instruction aiming at the debugging control, and sending the debugging instruction to an Internet of things platform so as to issue the debugging instruction to the intelligent equipment through the Internet of things platform; and receiving and displaying an execution message returned by the Internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction. On one hand, the equipment developer of the intelligent equipment can automatically generate debugging instructions according to the input debugging parameters by inputting the debugging parameters, so that the equipment developer of the intelligent equipment can debug the intelligent equipment without complex environmental deployment; on the other hand, the generated debugging instruction is issued to the current intelligent equipment to be debugged through the Internet of things platform, so that the intelligent equipment can execute the debugging instruction to generate an execution message, the execution message can be reported to the Internet of things platform, and finally the execution message is received and displayed through the Internet of things platform, so that the online debugging of the intelligent equipment can be realized, the functional characteristics of the Internet of things platform where the intelligent equipment is located and the running behavior of the intelligent equipment in the online environment can be more conveniently known, and thus, if the intelligent equipment does not conform to the functional defects of the Internet of things platform, the intelligent equipment can be directly exposed, the debugging depends on the online environment of the Internet of things platform, so that the developed equipment functions conform to the online environment, the problems caused by the inconsistency of the development environment and the online environment are reduced, and equipment manufacturers can more conveniently develop and debug the equipment functions, and the Internet of things platform can be accessed more quickly.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 is a schematic diagram illustrating an exemplary system architecture to which an online smart device debugging method or an online smart device debugging apparatus according to an embodiment of the present disclosure may be applied;
FIG. 2 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device used to implement embodiments of the present disclosure;
FIG. 3 schematically illustrates a flow diagram of a smart device online commissioning method according to one embodiment of the present disclosure;
FIG. 4 shows a flowchart of one embodiment based on step S310 of FIG. 3;
FIG. 5 shows a flowchart of another embodiment based on step S310 of FIG. 3;
FIG. 6 schematically shows a diagram of a debug page according to one embodiment of the present disclosure;
FIG. 7 schematically shows a diagram of a debug page according to another embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow diagram of a smart device online commissioning method according to another embodiment of the present disclosure;
FIG. 9 schematically illustrates a diagram of a debug page according to yet another embodiment of the present disclosure;
FIG. 10 schematically illustrates a flow diagram of a smart device online commissioning method according to yet another embodiment of the present disclosure;
FIG. 11 schematically illustrates a diagram of a debug page, according to yet another embodiment of the present disclosure;
FIG. 12 schematically illustrates a flow diagram of a smart device online commissioning method according to yet another embodiment of the present disclosure;
fig. 13 schematically shows a block diagram of an intelligent device online debugging apparatus according to an embodiment of the present disclosure;
FIG. 14 schematically illustrates a block diagram of a smart device online debugging system, according to one embodiment of the present disclosure;
FIG. 15 schematically illustrates a block diagram of a smart device online debugging system, according to another embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture 100 to which the online debugging method or the online debugging apparatus for an intelligent device according to the embodiment of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and an internet of things platform 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the internet of things platform 105. Network 104 may include various connection types, such as wired communication links, wireless communication links, and so forth.
It should be understood that the number of end devices, networks, and internet of things platforms in fig. 1 is merely illustrative. Any number of terminal devices, networks and internet of things platforms can be provided according to implementation requirements. For example, the internet of things platform 105 may be a server cluster composed of a plurality of servers.
A user may use the terminal devices 101, 102, 103 to interact with the internet of things platform 105 over the network 104 to receive or send messages, etc. The terminal devices 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
The internet of things platform 105 may be a server that provides various services. For example, a user inputs debugging parameters by using the terminal device 103 (or the terminal device 101 or 102), and then the terminal device 103 generates a debugging instruction according to the input debugging parameters, and uploads the debugging instruction to the internet of things platform 105. After receiving the debugging instruction, the internet of things platform 105 may issue the debugging instruction to the current smart device to be debugged, and then the smart device executes the debugging instruction to implement a debugging function for the smart device, generate an execution message, and report the execution message to the internet of things platform 105, and then the internet of things platform 105 may return the execution message to the terminal device 103, and the terminal device 103 may display the received execution message on its display screen.
FIG. 2 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present disclosure.
It should be noted that the computer system 200 of the electronic device shown in fig. 2 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments of the present disclosure.
As shown in fig. 2, the computer system 200 includes a Central Processing Unit (CPU)201 that can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 202 or a program loaded from a storage section 208 into a random-access Memory (RAM) 203. In the RAM 203, various programs and data necessary for system operation are also stored. The CPU 201, ROM202, and RAM 203 are connected to each other via a bus 204. An input/output (I/O) interface 205 is also connected to bus 204.
The following components are connected to the I/O interface 205: an input portion 206 including a keyboard, a mouse, and the like; an output section 207 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 208 including a hard disk and the like; and a communication section 209 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 209 performs communication processing via a network such as the internet. A drive 210 is also connected to the I/O interface 205 as needed. A removable medium 211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 210 as necessary, so that a computer program read out therefrom is mounted into the storage section 208 as necessary.
In particular, the processes described below with reference to the flowcharts may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 209 and/or installed from the removable medium 211. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 201.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard Disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or flash Memory), an optical fiber, a portable Compact disc Read-Only Memory (CD) -ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described modules and/or units may also be disposed in a processor. Wherein the names of such modules and/or units do not in some way constitute a limitation on the modules and/or units themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below. For example, the electronic device may implement the steps shown in fig. 3, fig. 4, fig. 5, fig. 8, fig. 10, or fig. 12.
The implementation details of the technical solution of the embodiment of the present disclosure are set forth in detail below:
fig. 3 schematically shows a flowchart of a smart device online commissioning method according to one embodiment of the present disclosure. The online debugging method for the intelligent device in the embodiment of the disclosure can be applied to the electronic device in the embodiment.
In the embodiment of the present disclosure, the intelligent device is a device that is modified from a conventional device in a manner of combining software and hardware, so that the device has an intelligent function. After the intelligent operation, the equipment has the connection capability, the loading of the internet service is realized, a typical architecture of 'cloud + end' is formed, and the additional values of big data and the like are achieved. The smart devices may include, for example, but are not limited to: intelligent wrist-watch, micro-game machine, virtual reality product, smart mobile phone, intelligent bracelet, intelligent drinking cup, smart TV, intelligent glasses, intelligent lock, intelligent house product (intelligent refrigerator, intelligent air conditioner etc.), smart car, intelligent medical health product, intelligent toy, intelligent robot etc..
Referring to fig. 3, an online debugging method for a smart device provided by an embodiment of the present disclosure may include the following steps.
In step S310, a debug instruction is generated in response to the debug parameter input information.
In the embodiment of the disclosure, a smart device online debugging tool is developed in advance, which may include a web page version and/or an Application (APP), and a user, for example, a device manufacturer of a smart device, may install the smart device online debugging tool that opens the web page version on a web browser of a network debugging terminal (may be any suitable terminal device), and may also install the APP of the smart device online debugging tool on the terminal device.
In step S320, in response to a confirmation instruction for the debugging control, the debugging instruction is sent to the internet of things platform, so that the debugging instruction is sent to the smart device through the internet of things platform.
In the embodiment of the disclosure, a debugging control (for example, a "start debugging" virtual button or other similar function button) may be further displayed on the debugging page, the user may click the debugging control, the system receives a confirmation instruction for the debugging control, and the system may send the debugging instruction to the internet of things platform in response to the confirmation instruction. And then, the platform of the internet of things can issue the debugging instruction to the intelligent equipment.
The Internet of things (IoT), i.e., "Internet of everything connected to" is an extended and expanded network based on the Internet, and combines various information sensing devices with the Internet to form a huge network, thereby realizing interconnection and intercommunication of people, machines and things at any time and any place. Currently, the technology of the internet of things is rapidly developed, and various intelligent devices, applications and platforms of the internet of things are in the future. A device manufacturer of the smart device may obtain the capability of connecting to the internet of things platform by implanting an internet of things SDK (Software Development Kit) provided by an internet of things platform service provider into the smart device.
In step S330, an execution message returned by the internet of things platform is received and displayed, where the execution message is generated by the smart device executing the debugging instruction.
In the embodiment of the disclosure, after receiving the debugging instruction, the smart device may execute the debugging instruction and generate an execution message, the smart device may upload the execution message to the internet of things platform, the internet of things platform may return the execution message to the debugging tool, and the debugging tool may display the execution message on a debugging page of the debugging tool. In other embodiments, the smart device may upload, in addition to the execution message to the internet of things platform, device data (for example, information such as a model, a type, and a state parameter) of the smart device to the internet of things platform, and then the internet of things platform may return the device data of the smart device to the debugging tool and display the device data on the debugging page.
According to the online debugging method of the intelligent equipment, the debugging instruction is generated by responding to the input information of the debugging parameter; responding to a confirmation instruction aiming at the debugging control, and sending the debugging instruction to an Internet of things platform so as to issue the debugging instruction to the intelligent equipment through the Internet of things platform; and receiving and displaying an execution message returned by the Internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction. On one hand, the equipment developer of the intelligent equipment can automatically generate debugging instructions according to the input debugging parameters by inputting the debugging parameters, so that the equipment developer of the intelligent equipment can debug the intelligent equipment without complex environmental deployment; on the other hand, the generated debugging instruction is issued to the current intelligent equipment to be debugged through the Internet of things platform, so that the intelligent equipment can execute the debugging instruction to generate an execution message, the execution message can be reported to the Internet of things platform, and finally the execution message is received and displayed through the Internet of things platform, so that the online debugging of the intelligent equipment can be realized, the functional characteristics of the Internet of things platform where the intelligent equipment is located and the running behavior of the intelligent equipment in the online environment can be more conveniently known, and thus, if the intelligent equipment does not conform to the functional defects of the Internet of things platform, the intelligent equipment can be directly exposed, the debugging depends on the online environment of the Internet of things platform, so that the developed equipment functions conform to the online environment, the problems caused by the inconsistency of the development environment and the online environment are reduced, and equipment manufacturers can more conveniently develop and debug the equipment functions, and the Internet of things platform can be accessed more quickly.
Fig. 4 shows a flowchart of an embodiment based on step S310 of fig. 3. In the embodiment of the present disclosure, the debugging parameter input information may include a target protocol type, a target device type, a target function type, and the like.
In step S311, a debugging page is displayed, and the debugging page may include a parameter setting window, and the parameter setting window may include a protocol type selection component, a device type selection component, and a function type selection component.
In step S312, the target protocol type is determined in response to the first selection information for the protocol type selection component.
In step S313, the target device type is determined in response to the second selection information for the device type selection component.
In the device type selection module, at least one device type currently supported by the commissioning tool may be provided, and any one of smart devices, for example, lighting devices, cameras, fire fighting devices, water meters, electricity meters, and the like, may be selected according to the second selection information of the user.
In step S314, the target function type is determined in response to the third selection information for the function type selection component.
After determining the type of the target device, the user may further select the type of the target function through the function type selection component, for example, if the type of the target device is a lighting device, there are functions of turning on a light, turning off the light, and the like corresponding to the selectable function type; for another example, if the target device type is a video camera, the selectable function types include focusing, screenshot, steering, and the like.
In step S315, the debug instruction is generated according to the target protocol type, the target device type, and the target function type.
In the embodiment of the present disclosure, the function protocol of the smart device may be determined according to the target protocol type, the target device type, and the target function type, where the function protocol refers to a specific protocol operated by a specific device, such as a certain lamp, and the light-on instruction is light _ on and the light-off instruction is light _ off. A communication Protocol between the debugging tool and the platform of the internet of things may also be agreed in advance, where the communication Protocol refers to a mode of communication between devices, such as TCP (Transmission Control Protocol)/HTTP (HyperText Transfer Protocol)/serial communication, and the like. And the debugging tool on the network debugging terminal can automatically assemble the debugging instruction according to the determined functional protocol and the communication protocol.
Fig. 5 shows a flowchart of another embodiment based on step S310 of fig. 3. In the embodiment of the present disclosure, the debugging parameter input information may further include instruction data. Wherein the debug page may further include an instruction data editing window.
In step S311, a debugging page is displayed, and the debugging page may include a parameter setting window, and the parameter setting window may include a protocol type selection component, a device type selection component, and a function type selection component.
In step S312, the target protocol type is determined in response to the first selection information for the protocol type selection component.
In step S313, the target device type is determined in response to the second selection information for the device type selection component.
In step S314, the target function type is determined in response to the third selection information for the function type selection component.
Steps S311 to S314 herein may refer to the embodiment of fig. 4 described above.
In step S316, the instruction data is generated in response to an input operation for the instruction data editing window.
The user can further input the instruction data in the instruction data editing window.
In step S317, the debug instruction is generated according to the target protocol type, the target device type, the target function type, and the instruction data.
This is illustrated in fig. 6 and 7.
FIG. 6 schematically shows a schematic diagram of a debug page according to one embodiment of the present disclosure.
As shown in fig. 6, debug page 600 can include a parameter settings window 610, an instruction data editing window 620, a message window 630, a data point (Datapoint) determination component 640, a debug control (illustrated here by way of example as a start debug button) 650, a get message control (illustrated here by way of example as a get message button) 660, and a clear message control (illustrated here by way of example as a clear message button) 670.
In the FIG. 6 embodiment, parameter settings window 610 may include a protocol type selection component 611 (here including common protocols, customizations), a device type selection component 612, and a functionality type selection component 613.
The "common protocol" refers to a protocol defined by an internet of things platform, which is equivalent to a platform standard protocol, and manufacturers of each intelligent device comply with the protocol, for example, a light _ on command is issued; the 'self-definition' is a function which is not defined in the 'public protocol', and manufacturers of the intelligent devices can customize the protocol. The "common protocol" is defined herein to facilitate communication between manufacturers and communication between devices, but the "common protocol" may not encompass all device functions, and thus allows manufacturers to define their own device protocols.
In the embodiment of fig. 6, the instruction data edit window 620 is an input box in which the user can input detailed data of an instruction as instruction data, for example, the instruction data may be a brightness of 50% or the like assuming that the target function type is lighting.
With continued reference to fig. 6, the instruction data editing window 620 may further include an up-down sliding component 621, which may be used to pull the up-down sliding component 621 to adjust the instruction data to be displayed currently, because the instruction data editing window 620 has a limited display area, and the user may input the instruction data required by the user through the up-down sliding component 621.
FIG. 7 schematically shows a diagram of a debug page according to another embodiment of the present disclosure.
In the embodiment of the present disclosure, the method may further include: and displaying the instruction unique identification corresponding to the target function type on the data point determination component.
As shown in fig. 7, it is assumed here that the type of the target device selected by the user is a video camera, the selected target function type is a video image function setting of the video camera, where each function type has a preset Datapoint, and when the user selects the target function type, the corresponding Datapoint is determined, for example, the displayed Datapoint is 20104.
With continued reference to fig. 7, assume that the instruction data input by the user in the instruction data editing window 620 is:
Figure BDA0002135348320000121
Figure BDA0002135348320000131
wherein the input instruction data represents the following meanings:
h _ Reverse: the picture is horizontally turned over, and the value range can be as follows: on or off.
V _ Reverse: the picture is vertically turned over, and the value range can be as follows: on or off.
sharpness: the sharpness and the value range of the picture can be set according to the actual condition of the camera.
brightness: the brightness and the value range of the picture can be set according to the actual condition of the camera.
contast: the picture contrast and the value range can be set according to the actual condition of the camera.
White _ balance (WB): the picture white balance mode can be selected from the following value ranges:
AWB _ Auto, the product automatically detects the light source and adjusts the color tone;
and (3) Daylight: adjusting the color tone according to sunlight;
shade: adjusting the color tone according to the shadow;
cloudy: adjusting the color temperature according to the cloudy sky;
color temperature can be adjusted according to Incandescent lamps or under bright light (such as a photo studio);
custom1/Custom2/Custom3/Custom 4: the white balance settings saved in the custom are used.
Wide _ Dynamic _ range (wdr): the picture is wide and dynamic, and the value range can be as follows: on or off.
According to the selection of a user, the type of a target protocol (assumed here to be a common protocol), the type of target equipment, the type of a target function and the instruction data are determined, when the user clicks a 'start debugging' button, a debugging tool can automatically assemble a corresponding debugging instruction, the corresponding debugging instruction is issued to the current intelligent equipment to be debugged, such as a camera, through an Internet of things platform, and the video image function setting of the intelligent equipment to be debugged is debugged.
Fig. 8 schematically shows a flowchart of a smart device online commissioning method according to another embodiment of the present disclosure.
As shown in fig. 8, the method provided by the embodiment of the present disclosure is different from the other embodiments described above in that the following steps may be further included.
In step S810, when receiving and displaying an execution message returned by the internet of things platform, a pause control is displayed on the debugging page.
In step S820, in response to the confirmation instruction for the pause control, pausing to receive the execution message returned by the internet of things platform.
This is illustrated below with reference to fig. 9. FIG. 9 schematically shows a diagram of a debug page according to yet another embodiment of the present disclosure.
On the debugging page shown in fig. 6, the user may click the get message control 660, get an execution message, which is returned by the internet of things platform and generated by the smart device in response to the debugging instruction, and also get device data of the smart device, and then may display the execution message and the device data in the message window 630, for example:
no on-line of equipment
On-line of equipment
The success of calling the Api interface is returned as { "code": 0, ", data": { "seq": 461514593}, and "message": OK "}
The query/set reply message, dataPoint: [20104], ret: [0],
errmsg:[],seq:[461514593],value:[{“code”:”0",”message”:”success”}]
at this time, a pause acquiring button 910 (here, a pause control) may be correspondingly displayed on the debugging page. The user may click the pause acquisition button 910 to pause receiving the execution message and the device data returned by the internet of things platform. The user may also click on the clear message control 670 to clear existing execution messages and device data within the message window 630.
In the embodiment of fig. 9, the returned execution message and device data may include not only the above character content but also the video or image content on the right side, and thus, the hidden video button 920 may also be displayed on the debugging page. The user can click the hide video button 920 to hide the returned video or image content from display, displaying only the character content on the left side of the message window 630.
Fig. 10 schematically shows a flowchart of a smart device online commissioning method according to yet another embodiment of the present disclosure.
As shown in fig. 10, the method provided by the embodiment of the present disclosure is different from the other embodiments described above in that the following steps may be further included.
In step S1010, when the execution message returned by the internet of things platform is suspended from being received, a continuation control is displayed on the debugging page.
In step S1020, in response to the confirmation instruction for the continuation control, continuing to receive and display an execution message returned by the internet of things platform.
This is illustrated below with reference to fig. 11. FIG. 11 schematically shows a diagram of a debug page according to yet another embodiment of the present disclosure.
In fig. 9, after the user clicks the pause acquisition button 910, as shown in fig. 11, a resume acquisition button 1110 (here, as a resume control) may be displayed on the debugging page. The user may click the continue acquiring button 1110 to continue receiving the execution message returned by the internet of things platform.
The online debugging method for the intelligent equipment, provided by the embodiment of the disclosure, provides a debugging page which can be displayed on a display screen of a network debugging terminal, wherein the page comprises functions required by equipment debugging:
1) debug instruction issue functionality. A user can edit and input a debugging parameter (for example, in the "function type" item in the "parameter setting" in fig. 6, a certain function can be selected by directly pulling down, and one function corresponds to one instruction, if the device type is lighting device, and the function type is lighting), and instruction data to be sent to the current intelligent device to be debugged, and click a start debugging button, so that a debugging instruction can be issued to the intelligent device through the internet of things platform.
2) Performing message receiving and displaying functions. The debugging tool can receive execution messages and device data reported by the intelligent device through the Internet of things platform and display the execution messages and the device data in a message window of a debugging page.
Further, the user may also perform operations such as pausing, resuming receipt of execution messages and device data.
Fig. 12 schematically shows a flowchart of a smart device online commissioning method according to yet another embodiment of the present disclosure. The online debugging method for the intelligent device in the embodiment of the disclosure can be applied to the electronic device in the embodiment.
Referring to fig. 12, the online debugging method for the intelligent device may include the following steps.
In step S1210, the network debugging terminal receives debugging parameter input information, generates a debugging instruction according to the debugging parameter input information, and sends the debugging instruction to the internet of things platform.
In the embodiment of the disclosure, the network debugging terminal can package the debugging parameters input by the user on the debugging page into the debugging instructions that can be recognized by the internet of things platform, and the specific form of the instructions is different for different internet of things platforms. And then, the network debugging terminal can send the packaged debugging instruction to the Internet of things platform, and the Internet of things platform processes the debugging instruction and sends the debugging instruction to the intelligent equipment to be debugged.
The implementation process of generating the debugging instruction by the network debugging terminal may refer to the above embodiments.
In step S1220, the internet of things platform receives the debugging instruction and issues the debugging instruction to the smart device.
The internet of things platform may receive the debugging instruction from a network debugging terminal in communication connection therewith, and then, the internet of things platform may process the debugging instruction, and convert the debugging instruction into a protocol format that can be received and identified by the current smart device to be debugged, where the converted protocol format includes, but is not limited to, an MQTT (Message queue Telemetry Transport) protocol format. And issuing the converted debugging instruction to the intelligent equipment.
MQTT, among others, is a messaging protocol based on a publish/subscribe paradigm. It works on the TCP/IP suite, a publish/subscribe messaging protocol designed for remote devices with poor hardware performance and in case of poor network conditions, for which it requires a message middleware. The MQTT has the characteristics of small power consumption and the like due to open source codes, and can be used for communication between a sensor and a server and information collection in the field of Internet of things.
Here, the internet of things platform provides the SDK for the device manufacturer of the smart device to develop the smart device that can communicate with the internet of things platform. The equipment manufacturer of the intelligent equipment implants the SDK into the intelligent equipment, the intelligent equipment can communicate with the Internet of things platform, and receives a debugging instruction sent by the Internet of things platform to complete the equipment function.
In step S1230, the smart device receives and executes the debugging instruction, generates an execution message, and reports the execution message to the internet of things platform.
And in the process of executing the debugging instruction, the intelligent device can call an SDK interface to report an execution message, and can also report device data and the like to the Internet of things platform. In the process of reporting the execution message and the device data, the communication between the intelligent device and the internet of things platform may use, but is not limited to, MQTT protocol.
In step S1240, the internet of things platform receives the execution message and returns it to the network debugging terminal.
In the two processes of the instruction sending and the message returning, the communication between the network debugging terminal and the platform of the internet of things may use, but is not limited to, HTTP protocol communication.
In step S1250, the network debug terminal receives and displays the execution message.
It should be noted that, although the foregoing examples all use debugging of the hardware function of the smart device as an example, the present disclosure is not limited thereto, and may also be used to implement an over the air technology (OTA) firmware function for testing the smart device, for example.
According to the online debugging method of the intelligent equipment, a network debugging terminal generates a debugging instruction according to debugging parameter input information, sends the debugging instruction to an Internet of things platform, and issues the debugging instruction to the intelligent equipment through the Internet of things platform; the intelligent equipment executes the debugging instruction to generate an execution message, the execution message is uploaded to the Internet of things platform, and the Internet of things platform returns the execution message to the network debugging terminal for displaying. On one hand, the equipment developer of the intelligent equipment can automatically generate debugging instructions according to the input debugging parameters by inputting the debugging parameters, so that the equipment developer of the intelligent equipment can debug the intelligent equipment without complex environmental deployment; on the other hand, the generated debugging instruction is issued to the current intelligent equipment to be debugged through the Internet of things platform, so that the intelligent equipment can execute the debugging instruction to generate an execution message, the execution message can be reported to the Internet of things platform, and finally the execution message is received and displayed through the Internet of things platform, so that the online debugging of the intelligent equipment can be realized, the functional characteristics of the Internet of things platform where the intelligent equipment is located and the running behavior of the intelligent equipment in the online environment can be more conveniently known, and thus, if the intelligent equipment does not conform to the functional defects of the Internet of things platform, the intelligent equipment can be directly exposed, the debugging depends on the online environment of the Internet of things platform, so that the developed equipment functions conform to the online environment, the problems caused by the inconsistency of the development environment and the online environment are reduced, and equipment manufacturers can more conveniently develop and debug the equipment functions, and the Internet of things platform can be accessed more quickly.
The following describes an embodiment of an apparatus of the present disclosure, which may be used to perform an online debugging method for an intelligent device in the foregoing embodiment of the present disclosure. For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the online debugging method for an intelligent device of the present disclosure.
Fig. 13 schematically shows a block diagram of an online debugging apparatus for a smart device according to an embodiment of the present disclosure. The online debugging device for the intelligent device in the embodiment of the disclosure can be arranged in the electronic device in the embodiment.
Referring to fig. 13, an online smart device commissioning apparatus 1300 according to an embodiment of the present disclosure may include: a debugging instruction generating module 1310, a debugging instruction sending module 1320, and a message receiving and presenting module 1330.
Wherein, the debug instruction generation module 1310 may be configured to generate the debug instruction in response to the debug parameter input information. The debugging instruction sending module 1320 may be configured to send the debugging instruction to the internet of things platform in response to a confirmation instruction for the debugging control, so that the debugging instruction is issued to the smart device through the internet of things platform. The message receiving and presenting module 1330 may be configured to receive and present an execution message returned by the internet of things platform, where the execution message is generated by the smart device executing the debugging instruction.
In an exemplary embodiment, the debug parameter input information may include a target protocol type, a target device type, and a target function type. The debug instruction generating module 1310 may include: the debugging page display unit can be configured to display a debugging page, wherein the debugging page comprises a parameter setting window, and the parameter setting window comprises a protocol type selection component, an equipment type selection component and a function type selection component; a protocol type determination unit configured to determine the target protocol type in response to first selection information for the protocol type selection component; a device type determination unit configured to determine the target device type in response to second selection information for the device type selection component; a function type determination unit configured to determine the target function type in response to third selection information for the function type selection component; a first debug instruction generation unit may be configured to generate the debug instruction according to the target protocol type, the target device type, and the target function type.
In an exemplary embodiment, the debug page can further include a data point determination component. Wherein, the online debugging apparatus 1300 of intelligent device may further include: and the instruction identification display module can be configured to display the instruction unique identification corresponding to the target function type on the data point determination component.
In an exemplary embodiment, the debug parameter input information may further include instruction data. The debug page may also include an instruction data edit window. The debug instruction generating module 1310 may further include: an instruction data generation unit that may be configured to generate the instruction data in response to an input operation for the instruction data editing window; a second debug instruction generation unit may be configured to generate the debug instruction according to the target protocol type, the target device type, the target function type, and the instruction data.
In an exemplary embodiment, the online smart device debugging apparatus 1300 may further include: the pause control display module can be configured to display a pause control on the debugging page when receiving and displaying the execution message returned by the Internet of things platform; the message pause receiving module can be configured to pause receiving the execution message returned by the Internet of things platform in response to the confirmation instruction of the pause control.
In an exemplary embodiment, the online smart device debugging apparatus 1300 may further include: the continuing control display module can be configured to display a continuing control on the debugging page when the execution message returned by the Internet of things platform is suspended from being received; and the message continuing receiving module can be configured to respond to the confirmation instruction of the continuing control and continue to receive and display the execution message returned by the Internet of things platform.
The online debugging device for the intelligent equipment, provided by the embodiment of the disclosure, generates a debugging instruction by responding to the input information of the debugging parameter; responding to a confirmation instruction aiming at the debugging control, and sending the debugging instruction to an Internet of things platform so as to issue the debugging instruction to the intelligent equipment through the Internet of things platform; and receiving and displaying an execution message returned by the Internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction. On one hand, the equipment developer of the intelligent equipment can automatically generate debugging instructions according to the input debugging parameters by inputting the debugging parameters, so that the equipment developer of the intelligent equipment can debug the intelligent equipment without complex environmental deployment; on the other hand, the generated debugging instruction is issued to the current intelligent equipment to be debugged through the Internet of things platform, so that the intelligent equipment can execute the debugging instruction to generate an execution message, the execution message can be reported to the Internet of things platform, and finally the execution message is received and displayed through the Internet of things platform, so that the online debugging of the intelligent equipment can be realized, the functional characteristics of the Internet of things platform where the intelligent equipment is located and the running behavior of the intelligent equipment in the online environment can be more conveniently known, and thus, if the intelligent equipment does not conform to the functional defects of the Internet of things platform, the intelligent equipment can be directly exposed, the debugging depends on the online environment of the Internet of things platform, so that the developed equipment functions conform to the online environment, the problems caused by the inconsistency of the development environment and the online environment are reduced, and equipment manufacturers can more conveniently develop and debug the equipment functions, and the Internet of things platform can be accessed more quickly.
FIG. 14 schematically illustrates a block diagram of a smart device online debugging system, according to one embodiment of the present disclosure.
As shown in fig. 14, an online smart device commissioning system 1400 provided by an embodiment of the present disclosure may include a network commissioning terminal 1410, an internet of things platform 1420, and a smart device 1430.
The network debugging terminal 1410 may be configured to receive debugging parameter input information, generate a debugging instruction according to the debugging parameter input information, and send the debugging instruction to the internet of things platform 1420. The internet of things platform 1420 may be configured to receive the debugging instruction and issue the debugging instruction to the smart device 1430. The smart device 1430 may be configured to receive and execute the debugging instruction, generate an execution message, and report the execution message to the internet of things platform 1420. The internet of things platform 1420 is further configured to receive the execution message and return it to the network debugging terminal 1410. The network debug terminal 1410 may also be configured to receive and display the execution message.
In an exemplary embodiment, an internet of things software development kit is provided in the smart device 1430 for providing communication between the smart device 1430 and the internet of things platform 1420; the internet of things platform 1420 and the intelligent device 1430 can communicate with each other by using an MQTT protocol.
In an exemplary embodiment, the internet of things platform 1420 and the network debugging terminal 1410 may communicate with each other using an HTTP protocol.
According to the online debugging system for the intelligent equipment, a network debugging terminal generates a debugging instruction according to debugging parameter input information, sends the debugging instruction to an Internet of things platform, and issues the debugging instruction to the intelligent equipment through the Internet of things platform; the intelligent equipment executes the debugging instruction to generate an execution message, the execution message is uploaded to the Internet of things platform, and the Internet of things platform returns the execution message to the network debugging terminal for displaying. On one hand, the equipment developer of the intelligent equipment can automatically generate debugging instructions according to the input debugging parameters by inputting the debugging parameters, so that the equipment developer of the intelligent equipment can debug the intelligent equipment without complex environmental deployment; on the other hand, the generated debugging instruction is issued to the current intelligent equipment to be debugged through the Internet of things platform, so that the intelligent equipment can execute the debugging instruction to generate an execution message, the execution message can be reported to the Internet of things platform, and finally the execution message is received and displayed through the Internet of things platform, so that the online debugging of the intelligent equipment can be realized, the functional characteristics of the Internet of things platform where the intelligent equipment is located and the running behavior of the intelligent equipment in the online environment can be more conveniently known, and thus, if the intelligent equipment does not conform to the functional defects of the Internet of things platform, the intelligent equipment can be directly exposed, the debugging depends on the online environment of the Internet of things platform, so that the developed equipment functions conform to the online environment, the problems caused by the inconsistency of the development environment and the online environment are reduced, and equipment manufacturers can more conveniently develop and debug the equipment functions, and the Internet of things platform can be accessed more quickly.
FIG. 15 schematically illustrates a block diagram of a smart device online debugging system, according to another embodiment of the present disclosure. In the embodiment of the disclosure, the online debugging system of the intelligent device may include a network debugging terminal, an internet of things platform and the intelligent device. The intelligent device is embedded with the SDK provided by the Internet of things platform.
As shown in fig. 15, the network debugging terminal may include a debugging instruction generating module, a debugging instruction sending module, and a message receiving and presenting module. The internet of things platform can comprise a data receiving module, a protocol conversion module and a data sending module. The intelligent device can comprise a debugging instruction receiving module, a debugging instruction executing module and a message reporting module.
The debugging instruction generation module is used for packaging debugging parameters and the like input by a user on a debugging page into functional instructions which can be recognized by the platform of the Internet of things at the network debugging terminal side. The debugging instruction sending module is used for sending the packaged instruction to the Internet of things platform, and the platform processes the packaged instruction and sends the packaged instruction to the intelligent equipment. The message receiving and displaying module obtains information such as a debugging result (execution message) of the intelligent device executing the debugging instruction and device data reported by the intelligent device from the Internet of things platform, and displays the information in a text form in a message window in a rolling mode. The above process, the instruction sending part and the message acquiring part relate to communication between the network debugging terminal and the platform of the internet of things, and may use, but are not limited to, HTTP protocol communication.
And on the side of the platform of the Internet of things, the data receiving module receives a debugging instruction from the connected network debugging terminal and transmits the debugging instruction to the protocol conversion module. The protocol conversion module processes the debugging instruction, converts the debugging instruction into a protocol format which can be received and identified by the intelligent device, and converts the debugging instruction into the protocol format including but not limited to the MQTT protocol format. And the converted instruction data is issued to the intelligent equipment through the data sending module. The communication between the internet of things platform and the intelligent device can use, but is not limited to, an MQTT protocol.
On the intelligent device side, the SDK comprises a debugging instruction receiving module and a message reporting module. The debugging instruction receiving module is used for receiving debugging instructions from the Internet of things platform and executing instruction functions by the intelligent equipment. In the process of executing the instruction, the intelligent device can call a message reporting module of the SDK interface to report the execution message and the device data to the Internet of things platform. In the above process, the communication between the smart device and the internet of things platform may use, but is not limited to, MQTT protocol.
According to the technical scheme provided by the embodiment of the disclosure, a production developer of the intelligent equipment can send a debugging instruction to an Internet of things platform on a general web browser or APP through a debugging tool provided by a network debugging terminal, and the Internet of things platform sends the debugging instruction to the intelligent equipment; after the intelligent device executes the debugging instruction, the execution message and the device data can be reported to the browser or the APP and displayed on the browser or the APP. The debugging tool can enable a production developer of the intelligent equipment to debug the intelligent equipment without complex environment deployment, and can also know the functional characteristics of the Internet of things platform in which the intelligent equipment is located more conveniently. The debugging tool depends on the formal online environment of the Internet of things platform, so that the developed functions conform to the online environment, the problem caused by the inconsistency of the development environment and the online environment is reduced, and a production developer of intelligent equipment can develop and debug the functions of the equipment more conveniently and can access the Internet of things platform more quickly.
If the debugging tool is not available, the user can only develop the function of the equipment according to the protocol documents and other data provided by the Internet of things platform during debugging and debug the equipment locally, so that if the function development of the equipment has defects or does not accord with the platform protocol, the equipment can be exposed only when the equipment is formally on-line and connected to the Internet of things platform. In the scheme provided by the embodiment of the disclosure, the debugging tool is directly operated on the platform of the internet of things, and the instruction sent during debugging reaches the intelligent equipment through the platform of the internet of things, so that the intelligent equipment can be directly exposed if the intelligent equipment has a functional defect which is not in line with the platform of the internet of things.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An online debugging method for an intelligent device is characterized by comprising the following steps:
responding to the debugging parameter input information, and generating a debugging instruction;
responding to a confirmation instruction aiming at the debugging control, and sending the debugging instruction to an Internet of things platform so as to issue the debugging instruction to the intelligent equipment through the Internet of things platform;
receiving and displaying an execution message returned by the Internet of things platform, wherein the execution message is generated by the intelligent equipment executing the debugging instruction;
the debugging parameter input information comprises a target protocol type, a target equipment type and a target function type; wherein, in response to the debug parameter input information, generating a debug instruction comprises:
displaying a debugging page, wherein the debugging page comprises a parameter setting window, and the parameter setting window comprises a protocol type selection component, an equipment type selection component and a function type selection component;
determining the target protocol type in response to first selection information for the protocol type selection component;
determining the target device type in response to second selection information for the device type selection component;
determining the target function type in response to third selection information for the function type selection component;
and generating the debugging instruction according to the target protocol type, the target equipment type and the target function type.
2. The intelligent device online debugging method of claim 1, wherein the debugging page further comprises a data point determining component; wherein the method further comprises:
and displaying the instruction unique identification corresponding to the target function type on the data point determination component.
3. The intelligent device online debugging method of claim 1, wherein the debugging parameter input information further comprises instruction data; the debugging page also comprises an instruction data editing window; wherein, respond to debugging parameter input information, generate the debugging instruction, still include:
generating the instruction data in response to an input operation for the instruction data editing window;
and generating the debugging instruction according to the target protocol type, the target equipment type, the target function type and the instruction data.
4. The online debugging method of intelligent equipment according to claim 1, further comprising:
displaying a pause control on the debugging page when receiving and displaying an execution message returned by the Internet of things platform;
and in response to a confirmation instruction aiming at the pause control, pausing and receiving the execution message returned by the Internet of things platform.
5. The intelligent device online debugging method of claim 4, further comprising:
when the execution message returned by the Internet of things platform is suspended from being received, a continuous control is displayed on the debugging page;
and responding to the confirmation instruction aiming at the continuation control, and continuing to receive and display the execution message returned by the Internet of things platform.
6. An online debugging method for an intelligent device is characterized by comprising the following steps:
the network debugging terminal receives debugging parameter input information, generates a debugging instruction according to the debugging parameter input information, and sends the debugging instruction to the Internet of things platform;
the Internet of things platform receives the debugging instruction and issues the debugging instruction to the intelligent equipment;
the intelligent equipment receives and executes the debugging instruction, generates an execution message and reports the execution message to the Internet of things platform;
the Internet of things platform receives the execution message and returns the execution message to the network debugging terminal;
the network debugging terminal receives and displays the execution message;
the debugging parameter input information comprises a target protocol type, a target equipment type and a target function type; the network debugging terminal receives debugging parameter input information and generates a debugging instruction according to the debugging parameter input information, and the method comprises the following steps:
displaying a debugging page, wherein the debugging page comprises a parameter setting window, and the parameter setting window comprises a protocol type selection component, an equipment type selection component and a function type selection component;
determining the target protocol type in response to first selection information for the protocol type selection component;
determining the target device type in response to second selection information for the device type selection component;
determining the target function type in response to third selection information for the function type selection component;
and generating the debugging instruction according to the target protocol type, the target equipment type and the target function type.
7. The utility model provides an online debugging device of smart machine which characterized in that, the device includes:
the debugging instruction generating module is configured to respond to debugging parameter input information and generate debugging instructions;
the debugging instruction sending module is configured to respond to a confirmation instruction aiming at the debugging control, and send the debugging instruction to the Internet of things platform so as to send the debugging instruction to the intelligent equipment through the Internet of things platform;
the message receiving and displaying module is configured to receive and display an execution message returned by the internet of things platform, wherein the execution message is generated by the intelligent device executing the debugging instruction;
the debugging parameter input information comprises a target protocol type, a target equipment type and a target function type; wherein the debugging instruction generating module comprises:
the debugging page display unit is configured to display a debugging page, the debugging page comprises a parameter setting window, and the parameter setting window comprises a protocol type selection component, an equipment type selection component and a function type selection component;
a protocol type determination unit configured to determine the target protocol type in response to first selection information for the protocol type selection component;
a device type determination unit configured to determine the target device type in response to second selection information for the device type selection component;
a function type determination unit configured to determine the target function type in response to third selection information for the function type selection component;
a first debug instruction generation unit configured to generate the debug instruction according to the target protocol type, the target device type, and the target function type.
8. The intelligent device online debugging apparatus of claim 7, wherein the debugging page further comprises a data point determining component; wherein the apparatus further comprises:
and the instruction identification display module is configured to display the instruction unique identification corresponding to the target function type on the data point determination component.
9. The intelligent device online debugging apparatus of claim 7, wherein the debugging parameter input information further comprises instruction data; the debugging page also comprises an instruction data editing window; wherein the debugging instruction generating module further comprises:
an instruction data generation unit configured to generate the instruction data in response to an input operation for the instruction data editing window;
a second debug instruction generation unit configured to generate the debug instruction according to the target protocol type, the target device type, the target function type, and the instruction data.
10. The online debugging device for intelligent equipment according to claim 7, wherein said device further comprises:
the pause control display module is configured to display a pause control on the debugging page when receiving and displaying an execution message returned by the Internet of things platform;
and the message pause receiving module is configured to pause receiving the execution message returned by the Internet of things platform in response to the confirmation instruction aiming at the pause control.
11. The online debugging apparatus for intelligent devices according to claim 10, further comprising:
the continuous control display module is configured to display a continuous control on the debugging page when the execution message returned by the Internet of things platform is suspended from being received;
and the message continuous receiving module is configured to continuously receive and display the execution message returned by the Internet of things platform in response to the confirmation instruction aiming at the continuous control.
12. An intelligent device online debugging system, characterized in that the system comprises: the system comprises a network debugging terminal, an Internet of things platform and intelligent equipment; wherein the content of the first and second substances,
the network debugging terminal is used for receiving debugging parameter input information, generating a debugging instruction according to the debugging parameter input information and sending the debugging instruction to the Internet of things platform;
the Internet of things platform is used for receiving the debugging instruction and sending the debugging instruction to the intelligent equipment;
the intelligent equipment is used for receiving and executing the debugging instruction, generating an execution message and reporting the execution message to the Internet of things platform;
the Internet of things platform is also used for receiving the execution message and returning the execution message to the network debugging terminal;
the network debugging terminal is also used for receiving and displaying the execution message;
the debugging parameter input information comprises a target protocol type, a target equipment type and a target function type; wherein, the network debugging terminal is used for: displaying a debugging page, wherein the debugging page comprises a parameter setting window, and the parameter setting window comprises a protocol type selection component, an equipment type selection component and a function type selection component; determining the target protocol type in response to first selection information for the protocol type selection component; determining the target device type in response to second selection information for the device type selection component; determining the target function type in response to third selection information for the function type selection component; and generating the debugging instruction according to the target protocol type, the target equipment type and the target function type.
13. The online debugging system of claim 12, wherein an internet of things software development kit is provided in the smart device for providing communication between the smart device and the internet of things platform; and the Internet of things platform and the intelligent equipment are communicated by adopting an MQTT protocol.
14. The intelligent device online debugging system of claim 12, wherein the internet of things platform and the network debugging terminal communicate with each other using an HTTP protocol.
15. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the smart device online debugging method of any one of claims 1-6.
CN201910651412.4A 2019-07-16 2019-07-16 Intelligent device online debugging method, device and system and electronic device Active CN110471845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910651412.4A CN110471845B (en) 2019-07-16 2019-07-16 Intelligent device online debugging method, device and system and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910651412.4A CN110471845B (en) 2019-07-16 2019-07-16 Intelligent device online debugging method, device and system and electronic device

Publications (2)

Publication Number Publication Date
CN110471845A CN110471845A (en) 2019-11-19
CN110471845B true CN110471845B (en) 2022-02-25

Family

ID=68508459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910651412.4A Active CN110471845B (en) 2019-07-16 2019-07-16 Intelligent device online debugging method, device and system and electronic device

Country Status (1)

Country Link
CN (1) CN110471845B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061630A (en) * 2019-11-26 2020-04-24 歌尔股份有限公司 Product debugging method, debugging device and readable storage medium
CN111162960B (en) * 2019-12-03 2022-12-02 支付宝实验室(新加坡)有限公司 Method and server for starting debugging panel
CN111143147A (en) * 2019-12-30 2020-05-12 珠海格力电器股份有限公司 Automatic instrument debugging method and device, computer equipment and readable storage medium
CN111309543A (en) * 2020-02-11 2020-06-19 广州视源电子科技股份有限公司 Debugging method and device, electronic equipment and storage medium
CN111552630A (en) * 2020-03-24 2020-08-18 北京声智科技有限公司 Skill debugging method and device and storage medium
CN112631174A (en) * 2020-12-09 2021-04-09 中交一航局安装工程有限公司 On-site electrical debugging method based on Internet of things
CN112653738B (en) * 2020-12-11 2022-11-11 浙江大学 Internet of things network debugging system and method
CN113419920B (en) * 2021-06-28 2022-07-19 国网山东省电力公司电力科学研究院 Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2358492B (en) * 2000-01-18 2004-07-07 Mitel Semiconductor Ltd Software debugging
CN104093080A (en) * 2014-06-27 2014-10-08 四川长虹电器股份有限公司 Intelligent television remote debugging system and method
CN104991857B (en) * 2015-06-08 2019-02-12 小米科技有限责任公司 Trace debug method and device

Also Published As

Publication number Publication date
CN110471845A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN110471845B (en) Intelligent device online debugging method, device and system and electronic device
CN109416762B (en) Techniques for distributed behavior and knowledge of the internet of things
KR101706479B1 (en) Method and terminal for controlling internet of things and controlled electronic device
US20190064759A1 (en) Method for creating prototype and apparatus therefor
EP4141797A1 (en) Method and apparatus of processing information, method and apparatus of rendering image, and electronic device
TW201843550A (en) environment control system and method of guiding occupant to make demand response to environment status thereof
CN113590101B (en) Intelligent device function page configuration method, server and client
CN106027631B (en) Data transmission method and device
JP2018129747A (en) Remote control device, controlled device, remote control system, remote control method, controlled method, and program
CN113672146A (en) Light control method, device, system, electronic equipment and storage medium
CN109040729B (en) Image white balance correction method and device, storage medium and terminal
CN113873122A (en) Independent flash control method, system and device for double-flash camera and storage medium
WO2023226768A1 (en) Device control method and apparatus, device, and storage medium
CN105227597A (en) A kind of method, Apparatus and system obtaining terminal equipment screen-picture
CN115422058A (en) Method and device for testing face recognition application
CN115437628A (en) apk application program development method, terminal, server and system
JP7179205B2 (en) Providing Notifications for Lighting Devices Without User-Specified Power Switch Behavior
US20230033157A1 (en) Displaying a light control ui on a device upon detecting interaction with a light control device
CN113903481A (en) Internet of things application processing method and system based on artificial intelligence and virtual chip
CN105049338A (en) Interface generating method and device of smart device based on instant communication
CN112597022A (en) Remote diagnosis method, device, storage medium and electronic equipment
CN112860367B (en) Equipment interface visualization method, intelligent terminal and computer readable storage medium
CN117555527B (en) Development method, device, equipment and storage medium of Internet of things application
CN114286478B (en) Lamp control method and related equipment thereof
WO2022227089A1 (en) Method and apparatus for device pairing, computer device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant