WO2023103248A1 - Automatic device commissioning method, apparatus, device, system, and storage medium - Google Patents

Automatic device commissioning method, apparatus, device, system, and storage medium Download PDF

Info

Publication number
WO2023103248A1
WO2023103248A1 PCT/CN2022/087225 CN2022087225W WO2023103248A1 WO 2023103248 A1 WO2023103248 A1 WO 2023103248A1 CN 2022087225 W CN2022087225 W CN 2022087225W WO 2023103248 A1 WO2023103248 A1 WO 2023103248A1
Authority
WO
WIPO (PCT)
Prior art keywords
debugging
target
parameters
type
object model
Prior art date
Application number
PCT/CN2022/087225
Other languages
French (fr)
Chinese (zh)
Inventor
梁肖
蔡昌俊
俞军燕
杨宽宽
陆桥
艾义
张聪
谢良
胡天祥
黄朝晖
张�杰
赖文海
石芳铭
方特
厉智
Original Assignee
腾讯科技(深圳)有限公司
广州地铁集团有限公司
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 腾讯科技(深圳)有限公司, 广州地铁集团有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2023103248A1 publication Critical patent/WO2023103248A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements
    • G06F9/3012Organisation of register space, e.g. banked or distributed register file
    • G06F9/30134Register stacks; shift registers

Definitions

  • the present application relates to the technical field of data device debugging, and in particular to a method, device, device, system and storage medium for automatic device debugging.
  • equipment commissioning is to conduct a trial run on the equipment to confirm whether the equipment can operate normally.
  • Embodiments of the present application provide a method, device, device, system, and storage medium for automatic equipment debugging, and the method can improve equipment debugging efficiency.
  • the first aspect of the present application provides a device debugging method, the method includes:
  • Verifying the response information according to the verification reference information corresponding to the debugging type to obtain a verification result the verification reference information is based on the debugging type from the debugging parameters and the status information of the first simulated device determined in;
  • an equipment debugging device which includes:
  • An acquisition unit configured to acquire a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, the device debugging instruction indicating a debugging type and debugging parameters corresponding to the debugging type;
  • a processing unit configured to perform an input operation on the object model according to the debugging parameters, so as to obtain the state information of the first simulation device corresponding to the object model after the input operation;
  • a triggering unit configured to trigger the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtain response information of the target simulation device for the debugging operation from the device simulator;
  • a verification unit configured to verify the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, the verification reference information is based on the debugging type from the debugging parameters and the determined in the status information of the first simulated device;
  • An output unit configured to output the debugging result of the target simulation device according to the verification result.
  • the processing unit includes:
  • a processing subunit configured to perform input operations on the object model according to the debugging parameters, to obtain an object model after input parameters
  • the conversion subunit is used to convert the input object model into the first register status information of the target analog device according to the preset mapping relationship table, and obtain the first analog device status information.
  • the preset mapping relationship table includes the object model The mapping relationship between the model and the register state information.
  • the processing subunit includes;
  • the first processing module is configured to, when the debugging type is device control function debugging, fill the debugging parameters into the preset area of the object model, and obtain the object model after inputting parameters;
  • the second processing module is used to modify the corresponding attribute value of the object model according to the debugging parameters when the debugging type is attribute data reporting function debugging, so as to obtain the object model after inputting parameters;
  • the third processing module is configured to modify the corresponding event value of the object model according to the debugging parameters when the debugging type is event data reporting function debugging, so as to obtain the object model after inputting parameters.
  • the verification unit includes:
  • comparison subunit configured to compare the response information with the verification reference information corresponding to the debugging type
  • a first determination subunit configured to determine that the verification result is a verification pass when the response information is consistent with the verification reference information corresponding to the debugging type
  • the second determining subunit is configured to determine that the verification result is a verification failure when the response information is inconsistent with the verification reference information corresponding to the debugging type.
  • the acquisition unit includes:
  • the first obtaining subunit is used to obtain simulated device information from the IoT platform and display a list of simulated devices;
  • a display subunit configured to display a debugging parameter setting interface of the target analog device in response to a selection operation of the target analog device in the simulated device list;
  • a generating subunit is configured to generate a device debugging instruction for the target analog device according to the debugging parameters received by the debugging parameter setting interface.
  • the trigger unit includes:
  • the first sending subunit is configured to send the debugging parameters to the device simulator when the debugging type includes device control function debugging, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters , and returns the status information of the second register of the target analog device after the control function is debugged;
  • a receiving subunit configured to receive the second register status information returned by the device simulator, and obtain second simulated device status information
  • the verification unit is also used for:
  • the sending subunit includes;
  • a generating module configured to generate a debugging request including the debugging parameters, and convert the debugging request into a target debugging request supported by the communication protocol of the target simulation device;
  • a first sending module configured to send the target debugging request to the device emulator.
  • the generating module includes;
  • the sending submodule is configured to send a debugging request generation instruction including the debugging parameters to the IoT platform, the debugging request generation instruction instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, And instruct the IoT platform to return a target debugging request supported by the communication protocol of the target simulation device according to the third register state information;
  • the receiving submodule is used to receive the target debugging request returned by the IoT platform.
  • the trigger unit includes:
  • the second sending subunit is configured to send the first simulated device status information to the device simulator when the debugging type includes debugging with a data reporting function, so that the device simulator uses the first simulated device status information Perform data reporting function debugging on the target simulation device, and return the fourth register status information of the target simulation device after the data reporting function debugging;
  • a third determining subunit configured to determine the reported data returned by the device simulator according to the fourth register state information
  • the verification unit is also used for:
  • the third determining subunit includes:
  • the second sending module is used to send the reported data acquisition request to the IoT platform
  • the receiving module is configured to receive the reported data returned by the IoT platform according to the reported data acquisition request, the reported data is generated by the IoT platform according to the status information of the fourth register.
  • the device automatic debugging device also includes;
  • the second obtaining subunit is used to obtain the object model corresponding to each simulation device from the Internet of Things platform;
  • the fourth determination subunit is used to determine the theoretical register status information corresponding to each analog device according to the preset mapping relationship table
  • the third obtaining subunit is used to obtain the actual register status information corresponding to each simulated device from the device simulator;
  • the verification subunit is used to verify the physical model of each simulated device according to the comparison result of the theoretical register state information and the actual register state information.
  • the third aspect of the present application also provides an automatic equipment debugging system, the automatic equipment debugging system includes at least one equipment debugger and at least one equipment simulator:
  • the device debugger is configured to obtain a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type; according to the debugging Parameters are input to the object model to obtain the state information of the first analog device corresponding to the object model after the input operation; trigger the target analog device in the device simulator to perform the debugging operation corresponding to the debugging type, and from The device simulator obtains the response information of the target simulation device for the debugging operation; verifies the response information according to the verification reference information corresponding to the debugging type, and obtains a verification result, and the verification reference The information is determined based on the debugging type from the debugging parameters and the status information of the first simulated device; outputting the debugging result of the target simulated device according to the verification result;
  • the device simulator is configured to execute a debugging operation corresponding to the debugging type and send response information of the target simulation device to the debugging operation to the device debugger.
  • the fourth aspect of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the automatic operation of the device provided in the first aspect of the present application. Steps in the debug method.
  • the fifth aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the computer program, the first aspect of the present application is implemented. On the one hand, it provides the steps in the equipment automatic debugging method.
  • a sixth aspect of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium.
  • the processor of the computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the device automatic debugging method provided in the first aspect.
  • the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; Perform the parameter input operation to obtain the simulated device status information corresponding to the object model after the parameter input operation; trigger the target simulated device in the device simulator to perform the debug operation corresponding to the debug type, and obtain the response of the target simulated device to the debug operation from the device simulator information; verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result.
  • the verification reference information is determined from the debugging parameters and the status information of the simulation device based on the debugging type; output the target simulation device according to the verification result Debug results.
  • the equipment debugging method analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result.
  • This method can effectively improve the efficiency of equipment debugging.
  • Fig. 1 is a schematic diagram of a scene of the equipment automatic debugging method in the present application
  • Fig. 2 is a schematic flow chart of the equipment automatic debugging method provided by the present application.
  • Fig. 3 is another schematic flow chart of the equipment automatic debugging method provided by the present application.
  • FIG. 4a is a schematic diagram of the equipment list provided by this application.
  • Figure 4b is a schematic diagram of the debugging parameter setting interface corresponding to the debugging of the attribute data reporting function in this application;
  • Fig. 4c is a schematic diagram of the debugging results of the simulated equipment provided in this application.
  • Fig. 5a is an interactive sequence diagram of device control function debugging provided by the present application.
  • Figure 5b is an interactive sequence diagram for debugging the attribute data reporting function provided by the present application.
  • Fig. 5c is an interactive sequence diagram of event data reporting function debugging provided by the present application.
  • Fig. 6 is a schematic structural view of the equipment automatic debugging device provided by the present application.
  • Fig. 7 is a topological diagram of the equipment automatic debugging system provided by the present application.
  • FIG. 8 is a schematic structural diagram of a computer device provided by the present application.
  • Embodiments of the present invention provide a device automatic debugging method, device, device, system and storage medium.
  • the device debugging method can be used in a device debugging device.
  • the device debugging device can be integrated in a computer device, and the computer device can be a terminal or a server.
  • the terminal may be a mobile phone, a tablet computer, a notebook computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and the like.
  • the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, intermediate Cloud servers for basic cloud computing services such as mail service, domain name service, security service, network acceleration service (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
  • the server can be a node in the block chain.
  • FIG. 1 is a schematic diagram of a scenario of the device automatic debugging method provided in this application.
  • computer device A receives the debugging instruction sent by terminal B, obtains the object model corresponding to the target simulation device corresponding to the debugging instruction according to the debugging instruction, and then performs input operation on the object model according to the debugging parameters contained in the debugging instruction , to obtain the status information of the simulated equipment corresponding to the input parameter operation object model.
  • the present application provides a device debugging method, so as to improve the efficiency of device debugging.
  • the automatic equipment debugging device may be integrated in a computer device.
  • the computer device may be a terminal or a server.
  • the terminal may be a mobile phone, a tablet computer, a notebook computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and a vehicle-mounted terminal.
  • the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, intermediate Cloud servers for basic cloud computing services such as mail service, domain name service, security service, network acceleration service (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
  • FIG 2 it is a schematic flow chart of the equipment debugging method provided by the present application, which includes:
  • step 101 a device debugging instruction for a target simulation device and a physical model corresponding to the target simulation device are acquired.
  • the equipment automatic debugging method provided in the present application can be applied to a rail transit system to automatically debug equipment in the rail transit system.
  • rail transit refers to a type of vehicle or transportation system that operating vehicles need to run on specific tracks.
  • the most typical rail transit is a railway system composed of traditional trains and standard railways.
  • rail transit technology there are more and more types of rail transit, such as subways, urban rails, light rails, trams, and maglev rail systems.
  • the target simulated device may be a simulated device generated by the target device to be debugged in the device simulator.
  • the device simulator technology may simulate a real device in a physical space in a simulation environment, specifically, different states of a plurality of registers may be used to simulate different states of the device.
  • the register can be used to store binary code, which can be composed of flip-flops with storage function, and one flip-flop stores one binary code.
  • the manufacturer will provide a register state table that matches the factory setting state of the device.
  • the register state table stores the state information of multiple registers. According to the state information of the register, the device emulator can Simulate the factory setting state of the device.
  • the target simulated device may be one of multiple simulated devices in the device simulator.
  • the real equipment in the physical space simulated by the simulation equipment may be equipment in any industry or field, such as production equipment, communication equipment, transportation equipment, and rail transit equipment.
  • rail transit equipment can be subways, high-speed rails, subway station operation and maintenance equipment, and high-speed rail station operation and maintenance equipment, etc., which are not limited here.
  • the device debugging instruction of the target simulation device may be sent to the device automatic debugging device by other devices, or may be generated internally by the device automatic debugging device. For example, when the device automatic debugging device is set to perform automatic device debugging on the target device every preset time, then when the detected interval reaches the preset time, the device automatic debugging device will automatically generate device debugging instructions for the target analog device .
  • the device debugging instruction of the target analog device indicates a debugging type for debugging the target analog device and debugging parameters corresponding to the debugging type.
  • the debugging type of the target simulation device may be device control function debugging or data reporting function debugging, wherein the data reporting function debugging may include attribute data reporting function debugging and event data reporting function debugging.
  • the corresponding debugging parameters can be control parameters; when the device debugging type is attribute data reporting function debugging, the corresponding debugging parameters can be specific attribute values; when the device debugging type is When debugging the event data reporting function, the corresponding debugging parameter can be event data.
  • the object model is a digital abstract description of the device. Specifically, it can be a digital abstract description of the device's functions, attributes and other information, and a formatted representation of the physical device in the physical space on the cloud. That is, the data in the preset format is used to describe the equipment in detail, thereby constructing a data model that can describe the physical equipment.
  • obtaining device debugging instructions for the target simulated device includes:
  • relevant information of the simulated device can be obtained from the IoT platform and a list of simulated devices can be displayed, and the user can select from the displayed list of simulated devices to determine the target simulated device that needs to be debugged.
  • the debug parameter setting interface for debugging the simulated device can be further displayed.
  • the user can input the debug type for debugging the target simulated device and the The debugging parameter corresponding to the debugging type.
  • the device automatic debugging device can generate a device debugging instruction for the target analog device according to the debugging type and debugging parameters input by the user.
  • the device automatic debugging device can be used according to the parameter type (such as attribute value, event value and control event) of the target simulation device. Automatically generate debugging parameters. After one debugging is finished, the equipment automatic debugging device can also automatically change the debugging parameters, so as to traverse each parameter of each parameter type, and realize automatic and comprehensive debugging of the target simulation equipment.
  • the parameter type such as attribute value, event value and control event
  • the IoT platform may be an IoT cloud platform.
  • the simulated device before automatically debugging the simulated device, the simulated device can be built in the device simulator according to the device point table provided by the manufacturer (that is, the register status table corresponding to the device), that is, the device provided by the manufacturer The point table is imported into the device simulator, so that the simulated device corresponding to the point table is generated in the device simulator. Every time the device simulator imports a device point table and generates its corresponding simulated device, it will send a registration request of the object model corresponding to the simulated device to the IoT platform, and the IoT platform will register the simulated device according to the registration request.
  • an object model corresponding to each device to be debugged can also be created on the IoT platform in advance.
  • the equipment automatic debugging device can obtain the information of the property model in the IoT platform from the IoT platform, and then according to the acquired Generate a list of physical models based on the obtained physical model information and display them.
  • the physical model information is in one-to-one correspondence with the simulated devices, so the physical model list may also be called a simulated device list.
  • the user can select one or more target analog devices that need to be debugged in the simulated device list, and then generate the corresponding device debugging for each target simulated device according to the debug type and debug parameters received in the debug parameter setting interface displayed later. instruction.
  • the Internet of Things platform can be provided with an Internet of Things access gateway, which can be adapted to access a variety of analog devices that support different interface protocols and data formats, and then provide a unified and
  • the standard access method can specifically be the Hyper Text Transfer Protocol over SecureSocket Layer (HTTPS) or the NATS protocol, where the NATS protocol refers to "message-oriented middleware", which means it is a software foundation Facility that provides the exchange of data that is segmented into messages between computer applications and services.
  • HTTPS Hyper Text Transfer Protocol over SecureSocket Layer
  • NATS protocol refers to "message-oriented middleware"
  • the device automatic debugging device automatically debugs different analog devices, it does not need to adapt the interface protocols and data formats of different analog devices one by one, thereby improving the debugging efficiency of automatic device debugging.
  • the device automatic debugging method provided by the present application may also include:
  • the device automatic debugging device may verify the generated object model. Specifically, the device automatic debugging device can obtain the object model corresponding to any target analog device, and then determine the theoretical register state information corresponding to the object model according to the mapping relationship table between the object model and the register state information, that is, according to the target analog device The corresponding Thing Model defines the register state information of the target simulated device. Then, the device automatic debugging device can also directly obtain the actual register state information of the target simulated device from the device simulator, and verify the actual register state information and the theoretical register state information.
  • Step 102 perform an input operation on the object model according to the debugging parameters, so as to obtain state information of the first simulation device corresponding to the object model after the input operation.
  • the physical model corresponding to the target simulation device may be updated according to the debugging type and debugging parameters. Specifically, the physical model can be entered according to the debugging parameters to obtain the physical model after the parameterization. Then, the theoretical state information of the target simulation device after debugging according to the aforementioned debugging type and debugging parameters can be predicted according to the input object model, and the state information of the first simulation device can be obtained.
  • adding parameters to the physical model according to the debugging parameters may be filling or modifying corresponding parameters of the physical model according to the debugging parameters.
  • different debugging parameters may be corresponding.
  • the debugging parameters can be the parameters corresponding to the specific control instructions of the target simulation device.
  • the control instruction is to control the manipulator to drop 10cm
  • the debugging parameters include the target manipulator information (such as the manipulator number) , the specific control operation (here is the drop) and the degree of control (here is 10cm).
  • the input operation of the physical model at this time can be to fill the parameters corresponding to these control instructions into the parameter filling position of the physical model.
  • the debugging type is the debugging of the device attribute data reporting function
  • the debugging parameters can be the specific attributes of the target simulated device and the corresponding attribute values
  • the debugging operation is to modify the attribute values of the specific attributes of the target device to the attribute values in the debugging parameters.
  • adding parameters to the object model can be to modify the attribute value of the corresponding attribute in the object model to the attribute value in the debugging parameter.
  • the input operation is performed on the object model according to the debugging parameters, so as to obtain the state information of the first simulation device corresponding to the object model after the input operation, including:
  • the preset mapping relationship table includes the relationship between the object model and the register status information. Mapping relations.
  • the first simulated device state information may be register state information of the target simulated device.
  • the device automatic debugging device can first perform a parameter input operation on the object model according to the debugging parameters, update the information of the object model, and obtain the object model after inputting parameters. Further, the device automatic debugging device can obtain a preset mapping relationship table, which stores the mapping relationship between different object model information and the status information of the register of the analog device. Then, the register status information corresponding to the object model after inputting parameters can be determined in the preset mapping relationship table according to the object model information after inputting parameters. In order to distinguish it from the register state information corresponding to other subsequent states, it can be referred to as the first register state information here.
  • the first register state information indicates the theoretical register state information after the target simulation device is debugged according to the debugging parameters, that is, the aforementioned State information of the first simulated device.
  • the parameter input operation is performed on the object model according to the debugging parameters to obtain the object model after input parameters, including:
  • the debugging type is equipment control function debugging, fill the debugging parameters into the preset area of the object model, and obtain the object model after entering the parameters;
  • the debugging types for debugging analog devices can be divided into device control function debugging, attribute data reporting function debugging, and event data reporting function debugging.
  • the debugging results of these three aspects of functional debugging are qualified, it can generally be determined that the debugging results of the simulated equipment are qualified, and the functions of the simulated equipment can also be determined to be qualified, and it can also be further confirmed that the functions of the physical equipment corresponding to the simulated equipment are qualified .
  • the object model can abstract devices into three types of paradigms: device control methods (Services), device attribute reporting (Properties), and device event reporting (Events).
  • Device control methods Services
  • Properties device attribute reporting
  • Events device event reporting
  • the debugging type is attribute data reporting function debugging
  • you can according to The debugging parameters use the attribute data modification method to modify the property value of the object model Properties to realize the input of the object model
  • the event data modification method can be used to modify the object model Events according to the debugging parameters. Modify the event value of the event to realize the entry of the object model.
  • Step 103 triggering the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtaining response information of the target simulation device for the debugging operation from the device simulator.
  • the equipment automatic debugging device performs input processing on the physical model corresponding to the target simulation equipment according to the debugging type and debugging parameters, and after obtaining the state information of the first simulation equipment corresponding to the physical model after inputting parameters, it can further trigger the process in the equipment simulator.
  • the target simulated device performs a debug operation corresponding to the debug type according to the debug parameters, and then obtains a response result of the target simulated device for the debug operation from the device simulator.
  • the first simulation device state information corresponding to the target simulation device is the theoretical response result corresponding to the response of the target simulation device to the debugging operation estimated according to the physical model of the target simulation device, and the target simulation device obtained here
  • the response result of the simulated device to the debugging operation is the actual response result. In this way, the debugging result of the target analog device can be obtained by comparing the two.
  • the target simulation device in the device simulator is triggered to perform a debugging operation corresponding to the debugging type, and the response information of the target simulation device for the debugging operation is obtained from the device simulator, including:
  • the debugging type includes device control function debugging, send debugging parameters to the device simulator, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters, and return the second register of the target simulation device after the control function debugging status information;
  • the device automatic debugging device may use different methods to trigger the target simulation device to execute the debugging operation corresponding to the debugging type according to the debugging parameters.
  • debugging types can generally be divided into device control function debugging, attribute data reporting function debugging, and event data reporting function debugging, among which attribute data reporting function debugging and event data reporting function debugging can be collectively referred to as data reporting function debugging.
  • the embodiment of the present application divides two types of debugging into two situations, and respectively describes the method for triggering the target simulation device to perform the debugging operation by the device automatic debugging device.
  • a simulated device control instruction may be sent to the device simulator, and the simulated device control instruction includes the aforementioned debugging parameters.
  • the debugging parameters may include specific control modules for the simulated device, and specific control operation information that needs to be executed for specific modules.
  • the device simulator receives the simulation device control instruction sent by the device automatic debugging device, it controls the target simulation device according to the debugging parameters contained in the instruction. After the target simulation device executes the above control, its own register status information will also follow. changes happened.
  • the device simulator can further send the controlled and adjusted register state information of the target simulated device to the device automatic debugging device, which can be called the second register state information here to distinguish it from the aforementioned first register state information.
  • the device automatic debugging device After receiving the second register status information returned by the device simulator, the device automatic debugging device generates second simulated device status information according to the second register status information.
  • sending debug parameters to the device emulator includes:
  • the device automatic debugging device sends the debugging parameters to the device simulator, specifically, it may send the debugging parameters to the device simulator through a debugging request.
  • the device automatic debugging device can first generate a debugging request including debugging parameters, and then, the device automatic debugging device can convert the data format and communication protocol of the debugging request into a target debugging request supported by the communication protocol of the target simulation device.
  • the device automatic debugging device can first obtain the communication protocol corresponding to the target simulation device, and then perform data conversion on the debugging request including the debugging parameters to obtain the target debugging request.
  • the process of converting the debugging request into the target debugging request by the device automatic debugging device may be processed by a preset gateway.
  • the device automatic debugging device may further send the target debugging request to the device simulator, so that the device simulator initiates a debugging operation on the target simulated device according to the target debugging request.
  • generating a debugging request including debugging parameters, and converting the debugging request into a target debugging request supported by a communication protocol of the target simulation device includes:
  • 1.1.1 Send a debugging request generation command containing debugging parameters to the IoT platform, and the debugging request generation command instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, and instructs the IoT platform to determine the status information of the third register according to the third register status
  • the information returns the target debugging request supported by the communication protocol of the target simulation device;
  • the process of generating the target debugging request may be performed by the IoT platform. Specifically, it is possible to first send a debugging request generation command containing debugging parameters to the IoT platform. After receiving the debugging request generation command containing debugging parameters, the IoT platform determines the specific control operation for the object model based on the debugging parameters. and mapping the change of the control of the object model to the change of the register state of the target analog device to obtain the third register state information of the target analog device. Then, the IoT platform returns a target debugging request supported by the communication protocol of the target simulation device according to the state information of the third register.
  • the IoT gateway of the IoT platform can obtain the communication protocol supported by the target simulation device, and convert the debugging request including the status information of the third register into a target debugging request. Then, the IoT platform returns the target debugging request to the equipment automatic debugging device.
  • the IoT platform after the IoT platform generates the target debugging request including the third register status information, it can directly send the target debugging request to the device simulator, so that the device simulator can simulate the target according to the third register status information.
  • the register state of the device is adjusted.
  • triggering the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtaining the response information of the target simulation device for the debugging operation from the device simulator may also include:
  • the debugging type includes data reporting function debugging
  • the debugging type when the debugging type is the debugging of the data reporting function, it may specifically be the debugging of the attribute data reporting function or the debugging of the event data reporting function.
  • the register state information of the target analog device After receiving the aforementioned first analog device state information, the register state information of the target analog device can be adjusted according to the first analog device state information to obtain the fourth register state information, which is the target analog device according to the first Register status information Adjusted actual register status information. Then, the report data returned by the device simulator may be constructed according to the state information of the first register.
  • determining the reported data returned by the device simulator according to the fourth register state information includes:
  • the reported data may be generated through the IoT platform.
  • the device automatic debugging device may send a report data acquisition request to the IoT platform, and the request may include the status information of the fourth register.
  • the Internet of Things platform can map the fourth register state information to relevant data of the object model to generate reported data.
  • the IoT platform further returns the generated reported data to the equipment automatic debugging device.
  • the IoT platform can scan the simulated device in real time through the Internet of Things
  • the actual register state information of the target analog device in the device is mapped to the relevant data of the object model according to the actual register state information of the target analog device obtained by scanning, and the corresponding reporting data of the relevant data is constructed.
  • the IoT platform when the debugging of the data reporting function is the debugging of the attribute data reporting function, the IoT platform obtains the attribute data of the object model according to the state information of the fourth register; when the debugging of the data reporting function is debugging of the event data reporting function, the IoT platform according to the first The state information of the four registers is mapped to the event data of the object model. Then, the IoT platform further returns the reported data to the equipment automatic debugging device.
  • Step 104 verifying the response information according to the verification reference information corresponding to the debugging type, and obtaining a verification result.
  • the verification reference information for verifying the response information may be determined according to the debugging type, specifically, may be determined according to the debugging type in the status information of the first simulated device and the debugging parameters.
  • the debugging type is device control function debugging
  • the debugging type is data reporting function debugging
  • the data reporting function can be either an attribute data reporting function or an event data reporting function, Make sure to verify the reference message as a debugging parameter.
  • the response information is verified according to the verification reference information corresponding to the debugging type, and the verification result is obtained, including:
  • the verification result may be determined according to a comparison result between the response information and the verification reference message corresponding to the debugging type. If the response information is consistent with the verification reference information, it may be determined that the verification result is a verification pass; if the response information is inconsistent with the verification reference information, it may be determined that the verification result is a verification failure.
  • Step 105 output the debugging result of the target simulation device according to the verification result.
  • the debugging result of the target simulation device may be further determined according to the verification result.
  • the verification result is that the verification is passed, it is determined that the response of the target simulation device is consistent with the expected response result, which means that the debugging result of the target simulation device is qualified; when the verification result is that the verification is not passed, it means that the target If the response of the simulated device is not consistent with the expected response, it means that the debugging result of the target simulated device is unqualified for debugging.
  • the device automatic debugging method obtains the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device, and the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type;
  • the debugging parameters are used to enter the physical model to obtain the simulated device status information corresponding to the physical model after the parameterized operation; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debug type, and obtain the target simulated device from the device simulator Response information for debugging operations; verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result.
  • the verification reference information is determined from the debugging parameters and simulated device status information based on the debugging type; according to the verification result Output debug results for the target simulated device.
  • the equipment debugging method analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result.
  • This method can effectively improve the efficiency of equipment debugging.
  • the present application also provides a device debugging method, which can be used in a computer device.
  • the computer device can be a terminal or a server.
  • the computer device can be a device debugger.
  • Figure 3 it is another schematic flow chart of the equipment automatic debugging method provided by this application, and the method specifically includes:
  • Step 201 the computer device obtains and displays the device list from the IoT platform.
  • the equipment automatic debugging method provided by the present application can be applied to the intelligent transportation system, specifically, it can be applied to the intelligent rail transportation system to debug all kinds of equipment in the rail transportation system.
  • Intelligent Traffic System Intelligent Traffic System
  • Intelligent Transportation System Intelligent Transportation System
  • advanced science and technology information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory , operations research, artificial intelligence, etc.
  • advanced science and technology information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory , operations research, artificial intelligence, etc.
  • Integrated transportation system for energy for energy.
  • the device debugging is applied to the device simulator technology.
  • the device point table (register status table) of each device provided by the manufacturer can be imported into the device simulator , generate a simulated device corresponding to each device in the device simulator.
  • the device simulator registers on the IoT platform according to the point table information of each simulated device.
  • an object model corresponding to each device can also be constructed and stored on the IoT platform based on the device's functions, attributes, and services provided.
  • the computer device Before initiating device debugging, the computer device can obtain the device list information from the IoT platform, and then the computer device can display the device list information on the display interface, so that the user can select the target device that needs to be debugged in the device list.
  • FIG. 4 a which is a schematic diagram of a device list provided in this application, a device list 11 is displayed on a display interface 10 of a computer device, and a user can select a device to be debugged in the device list 11 .
  • the device list 11 here only shows a list of one level, and in specific implementation, the device list may have multiple levels.
  • equipment in the field of rail transit, equipment can be divided into equipment for multiple lines, such as Line 1, Line 2, etc.; the lower layer of the line can be divided into multiple stations, such as Hengli Station, Shiguang Road Station, etc.;
  • the lower layer of each station can be subdivided into different systems, such as broadcasting system, access control system, etc.; the lower layer of the system can be subdivided into different devices.
  • the device list can have multiple levels, and the user can select layer by layer until the specific device that needs to be debugged is selected.
  • the display interface 10 may further include a scroll control, and the device list may be scrolled and displayed through the scroll control.
  • Step 202 the computer device obtains the object model of each device from the IoT platform.
  • the computer device can further obtain the object model corresponding to each device from the IoT platform.
  • the object model is a digital abstract description of the device, which is a formatted representation of the physical device in the physical space on the cloud.
  • obtaining the object model corresponding to any device means obtaining the description data corresponding to each device.
  • the corresponding description information of the device is obtained.
  • the object model corresponding to each device has a one-to-one correspondence with the device controls displayed on the display interface.
  • Step 203 the computer device receives a device debugging instruction for the target simulated device.
  • the user may select a target device to be debugged from the device list displayed on the display interface of the computer device, and input a debugging type and debugging parameters for the target device.
  • a simulated device is used to simulate the operation of a real device. Therefore, the above-mentioned device debugging instruction for the target device may specifically be a device debugging instruction for a target simulated device corresponding to the target device.
  • the debugging type selection interface can pop up on the display interface, and the following three types of selection controls can be displayed on the debugging type selection interface: device control function debugging, attribute data reporting function debugging, and Event data reporting function debugging.
  • the debugging parameter setting interface corresponding to the debugging type can be further displayed. For example, as shown in Figure 4b, it is the debugging parameter setting interface corresponding to the attribute data reporting function debugging.
  • the user can input the name of the debugging task, and can also select the specific line and station that need to modify the attribute data.
  • the OK control can be clicked to enter the specific attribute data input interface, and the user can further input the specific attribute value to be set in the attribute data input interface.
  • the debugging of the attribute data reporting function here is just an example of the debugging type.
  • the debugging parameter setting can also be performed in the above manner.
  • the computer device can determine the device debugging instructions for debugging the target analog device according to the debugging type and the debugging parameters input by the user.
  • Step 204 when the debugging type is device control function debugging, the computer device initiates debugging control to the object model corresponding to the target simulation device in the IoT platform according to the debugging parameters.
  • debugging methods are different for different debugging types.
  • the computer device will initiate the debugging control of the object model corresponding to the target simulation device to the IoT platform according to the control parameters in the debugging parameters.
  • the IoT platform analyzes the object model according to the debugging parameters to determine the register status information for controlling the target analog device. Then, the IoT platform sends a register state modification instruction to the target simulation device in the device simulator according to the register state information, so that the device simulator modifies the register state of the target simulation device.
  • Step 205 the computer device obtains the first register state information after the target simulated device responds to the debugging control in the device simulator.
  • the computer device can further obtain the current actual register status information of the target simulation device in the device simulator, which is recorded as the first Register status information.
  • Step 206 the computer device verifies the first register state information by using the register state information obtained from the input object model mapping, and obtains a verification result.
  • the computer device can convert the input object model into corresponding register state information according to the association rules between the register state of the analog device and the object model, which can be referred to as theoretical register state information here.
  • the computer device may further use the theoretical register state information to verify the actual first register state information of the target analog device. If the two are consistent, it is determined that the verification result is qualified, and if the two are not consistent, it is determined that the verification result is unqualified.
  • Step 207 when the debugging type is debugging of the data reporting function, the computer device inputs the object model according to the debugging parameters, and obtains the second register state information corresponding to the object model after inputting the parameters.
  • the debugging type is the debugging of the attribute data reporting function or the debugging of the event data reporting function
  • the debugging processes of the two are consistent. Therefore, in the embodiment of the present application, the debugging of the data reporting function is uniformly used to describe the specific process in detail.
  • the computer device can perform input operations on the physical model corresponding to the target simulation device according to the debugging parameters, and modify the attributes or events of the physical model to the values corresponding to the debugging parameters. Then, according to the association rule between the analog device register state and the object model, the register state information corresponding to the input object model is determined, which may be referred to as the second register state information herein.
  • Step 208 the computer device initiates modification of the register state of the target simulated device in the device emulator according to the second register state information.
  • the computer device sends a debugging instruction including the second register state information to the device simulator, so that the device simulator modifies the register state of the target simulated device according to the second register state information.
  • the device simulator can modify the register state information of the target simulated device according to the second register state information contained in the debugging instruction.
  • Step 209 the computer device receives the reported data returned by the IoT platform, and verifies the reported data according to the debugging parameters to obtain a verification result.
  • the IoT platform can scan the register status of the target simulation device in real time using the IoT gateway to obtain the actual register status information of the target simulation device .
  • the IoT platform converts the actual register state information of the target analog device into corresponding response data, and generates reported data based on the response data.
  • the IoT platform returns the generated reported data to the computer device, and the computer device verifies the corresponding data in the reported data according to the corresponding data in the debugging parameters. When the two are consistent, it is determined that the verification result is qualified; if the two are not consistent, it is determined that the verification result is unqualified.
  • Step 210 the computer device determines the debugging result of the target simulation device according to the verification result.
  • the device simulator first enters the point table provided by the manufacturer to record the status information of the simulated device registers, and generates the corresponding simulation of each device. equipment. Then, the device simulator sends a device registration request to the IoT platform, and the IoT platform registers the simulated device in the IoT platform after receiving the device registration request sent by the device simulator. Before the computer device debugs the simulated device, it first sends the device list of the simulated device and the acquisition request of the physical model of each simulated device to the IoT platform. After receiving the request, the IoT platform sends the device list information and An object model for each simulated device.
  • the computer device receives the debugging instruction for the target analog device input by the user.
  • the debugging instruction contains the debugging parameters for the target analog device, and then sends the device debugging instruction to the IoT platform according to the debugging parameters, that is, according to the unified data transmission protocol Initiate control to the object model corresponding to the target simulation device in the IoT platform.
  • the IoT platform determines the parameterized object model according to the debugging parameters in the debugging command, and then determines the object model corresponding to the parameterized object model according to the association rules between the device register status and the physical model. Theoretical register state information for the target simulated device.
  • the IoT platform sends the theoretical register state information to the device simulator, and the device simulator modifies the register state information of the target simulated device accordingly after receiving the theoretical register state information. Further, the device simulator sends the modified actual register state information of the target simulated device to the computer device. After the computer device obtains the theoretical register state information, it uses the theoretical register state information to verify the actual register state information, and generates and outputs a debugging result according to the verification result.
  • the interactive timing diagram for the debugging of the attribute data reporting function provided by this application.
  • Analog device Then, the device simulator sends a device registration request to the IoT platform, and the IoT platform registers the simulated device in the IoT platform after receiving the device registration request sent by the device simulator.
  • the computer device debugs the simulated device, it first sends the device list of the simulated device and the acquisition request of the physical model of each simulated device to the IoT platform. After receiving the request, the IoT platform sends the device list information and An object model for each simulated device.
  • the computer device receives the debugging instruction for the target simulation device input by the user, and the debugging instruction includes the debugging parameters for the target simulation device.
  • the computer device inputs the physical model corresponding to the target simulation device according to the debugging parameters, and determines the theoretical register status information corresponding to the physical model after parameter input.
  • the computer device sends a device debugging instruction including the theoretical register state information to the device simulator.
  • the device simulator modifies the register state of the target simulation device according to the theoretical register state information contained in the device debugging instruction, and sends the modified actual register state information to the IoT platform.
  • the IoT platform maps the actual register state information to the state of the object model according to the association rules between the register state information of the simulated device and the object model, and constructs an attribute report message according to the state of the object model. Then, the IoT platform sends the attribute report message to the computer device, and the computer device verifies the attribute value in the attribute report message according to the attribute value set in the debugging parameter, and generates and outputs the debugging result according to the verification result.
  • the interactive timing diagram for debugging the event data reporting function provided by this application.
  • Analog device Then, the device simulator sends a device registration request to the IoT platform, and the IoT platform registers the simulated device in the IoT platform after receiving the device registration request sent by the device simulator.
  • the computer device debugs the simulated device, it first sends the device list of the simulated device and the acquisition request of the physical model of each simulated device to the IoT platform. After receiving the request, the IoT platform sends the device list information and An object model for each simulated device.
  • the computer device receives the debugging instruction for the target simulation device input by the user, and the debugging instruction includes the debugging parameters for the target simulation device.
  • the computer device inputs the physical model corresponding to the target simulation device according to the debugging parameters, and determines the theoretical register status information corresponding to the physical model after parameter input.
  • the computer device sends a device debugging instruction including the theoretical register state information to the device simulator.
  • the device simulator modifies the register state of the target simulation device according to the theoretical register state information contained in the device debugging instruction, and sends the modified actual register state information to the IoT platform.
  • the IoT platform maps the actual register state information to the state of the object model according to the association rules between the register state information of the simulated device and the object model, and constructs an event reporting message according to the state of the object model. Then, the IoT platform sends the event report message to the computer device, and the computer device verifies the event value in the event report message according to the event value set in the debugging parameter, and generates and outputs a debugging result according to the verification result.
  • the device automatic debugging method obtains the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device, and the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type;
  • the debugging parameters are used to enter the physical model to obtain the simulated device status information corresponding to the physical model after the parameterized operation; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debug type, and obtain the target simulated device from the device simulator Response information for debugging operations; verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result.
  • the verification reference information is determined from the debugging parameters and simulated device status information based on the debugging type; according to the verification result Output debug results for the target simulated device.
  • the equipment debugging method analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result.
  • This method can effectively improve the efficiency of equipment debugging.
  • an embodiment of the present application further provides a device automatic debugging device, and the device debugging device may be integrated in a terminal or a server.
  • the device debugging device may include an acquisition unit 301, a processing unit 302, a trigger unit 303, a verification unit 304, and an output unit 305, as follows :
  • An acquisition unit 301 configured to acquire a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, where the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type;
  • the processing unit 302 is configured to perform an input operation on the object model according to the debugging parameters, so as to obtain the first simulation device status information corresponding to the object model after the input operation;
  • the trigger unit 303 is configured to trigger the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtain the response information of the target simulation device for the debugging operation from the device simulator;
  • the verification unit 304 is configured to verify the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, and the verification reference information is determined from the debugging parameters and the status information of the first simulated device based on the debugging type;
  • the output unit 305 is configured to output the debugging result of the target simulation device according to the verification result.
  • the processing unit includes:
  • the processing sub-unit is used to perform input operation on the object model according to the debugging parameters, and obtain the object model after input parameters;
  • the conversion subunit is used to convert the input object model into the first register status information of the target analog device according to the preset mapping relationship table, and obtain the first analog device status information.
  • the preset mapping relationship table includes the object model and the register status Mapping relationship between information.
  • the processing subunit includes;
  • the first processing module is used to fill the debugging parameters into the preset area of the physical model when the debugging type is equipment control function debugging, and obtain the physical model after entering the parameters;
  • the second processing module is used to modify the corresponding attribute values of the object model according to the debugging parameters when the debugging type is attribute data reporting function debugging, so as to obtain the object model after inputting parameters;
  • the third processing module is used to modify the corresponding event value of the object model according to the debugging parameters when the debugging type is event data reporting function debugging, so as to obtain the object model after inputting parameters.
  • the verification unit includes:
  • the comparison subunit is used to compare the response information with the verification reference information corresponding to the debugging type
  • the first determination subunit is configured to determine that the verification result is a verification pass when the response information is consistent with the verification reference information corresponding to the debugging type;
  • the second determination subunit is configured to determine that the verification result is a verification failure when the response information is inconsistent with the verification reference information corresponding to the debugging type.
  • the acquisition unit includes:
  • the first obtaining subunit is used to obtain simulated device information from the IoT platform and display a list of simulated devices;
  • the display subunit is used to display the debugging parameter setting interface of the target analog device in response to the selection operation of the target analog device in the simulated device list;
  • a generating subunit is used to generate device debugging instructions for the target analog device according to the debugging parameters received by the debugging parameter setting interface.
  • the trigger unit includes:
  • the first sending subunit is used to send debugging parameters to the device simulator when the debugging type includes device control function debugging, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters, and return the target after the control function debugging second register state information of the simulated device;
  • the receiving subunit is configured to receive the second register state information returned by the device simulator, and obtain the second simulated device state information;
  • Calibration unit also used for:
  • the status information of the second simulated device is checked according to the status information of the first simulated device.
  • the sending subunit includes;
  • a generating module configured to generate a debugging request including debugging parameters, and convert the debugging request into a target debugging request supported by a communication protocol of the target simulation device;
  • the first sending module is configured to send a target debugging request to the device simulator.
  • the generating module includes;
  • the sending sub-module is used to send a debugging request generation command containing debugging parameters to the IoT platform, and the debugging request generation command instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, and instructs the IoT platform to determine the third register status information of the target simulation device according to the third
  • the register status information returns the target debugging request supported by the communication protocol of the target analog device;
  • the receiving sub-module is used to receive the target debugging request returned by the IoT platform.
  • the trigger unit includes:
  • the second sending subunit is used to send the first simulated device state information to the device simulator when the debugging type includes data reporting function debugging, so that the device simulator performs the data reporting function on the target simulated device according to the first simulated device state information Debug, and return the status information of the fourth register of the target analog device after the data reporting function is debugged;
  • the third determining subunit is used to determine the reported data returned by the device simulator according to the status information of the fourth register;
  • Calibration unit also used for:
  • the third determining subunit includes:
  • the second sending module is used to send the reported data acquisition request to the IoT platform
  • the receiving module is configured to receive the reported data returned by the IoT platform according to the reported data acquisition request, and the reported data is generated by the IoT platform according to the status information of the fourth register.
  • the equipment automatic debugging device also includes;
  • the second obtaining subunit is used to obtain the object model corresponding to each simulation device from the Internet of Things platform;
  • the fourth determination subunit is used to determine the theoretical register status information corresponding to each analog device according to the preset mapping relationship table
  • the third obtaining subunit is used to obtain the actual register status information corresponding to each simulated device from the device simulator;
  • the verification subunit is used to verify the physical model of each simulated device according to the comparison result of the theoretical register state information and the actual register state information.
  • each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities.
  • the specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.
  • the device debugging device obtains the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device through the acquisition unit 301, and the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type
  • the processing unit 302 performs an input operation on the object model according to the debugging parameters, so as to obtain the simulated device status information corresponding to the object model after the input operation;
  • the trigger unit 303 triggers the target analog device in the device simulator to perform a debugging operation corresponding to the debugging type, and Obtain the response information of the target simulation device for the debugging operation from the device simulator;
  • the verification unit 304 verifies the response information according to the verification reference information corresponding to the debugging type, and obtains the verification result, and the verification reference information is based on the debugging type from the debugging parameters and the status information of the simulated device;
  • the output unit 305 outputs the debugging result of
  • the equipment debugging method analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result.
  • This method can effectively improve the efficiency of equipment debugging.
  • the embodiment of the present application also provides an automatic device debugging system, as shown in FIG. 7 , which is a topology diagram of the device automatic debugging system provided by the present application.
  • the device automatic debugging system includes at least one device debugger 401 and at least one device simulator 402.
  • the device debugger 401 is used to obtain the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device.
  • the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; operation to obtain the status information of the first simulated device corresponding to the object model after the input parameter operation; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulated device for the debugging operation from the device simulator ; Verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result.
  • the verification reference information is determined from the debugging parameters and the status information of the first simulation device based on the debugging type; output the target simulation device according to the verification result The debugging results;
  • the device simulator 402 is configured to execute a debugging operation corresponding to the debugging type and send response information of the target simulation device to the debugging operation to the device debugger.
  • the device automatic debugging system provided by the present application may also include an IoT platform 403, which is used to manage the object model corresponding to each simulated device, and the device debugging command Convert the target device debugging instructions supported by the communication protocol of the target simulation device, and convert the target simulator status change information fed back by the device simulator into the reported data during the debugging process of the device data reporting function.
  • IoT platform 403 which is used to manage the object model corresponding to each simulated device
  • the device debugging command Convert the target device debugging instructions supported by the communication protocol of the target simulation device, and convert the target simulator status change information fed back by the device simulator into the reported data during the debugging process of the device data reporting function.
  • the embodiment of the present application also provides a computer device, which may be a terminal or a server, as shown in FIG. 8 , which is a schematic structural diagram of the computer device provided in the present application. Specifically:
  • the computer device may include a processing module 501 of one or more processing cores, a storage module 502 of one or more storage media, a power supply module 503, an input module 504 and other components.
  • a processing module 501 of one or more processing cores may include a storage module 502 of one or more storage media, a power supply module 503, an input module 504 and other components.
  • FIG. 8 does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
  • the processing module 501 is the control center of the computer equipment, uses various interfaces and lines to connect various parts of the entire computer equipment, runs or executes the software programs and/or modules stored in the storage module 502, and calls the software programs and/or modules stored in the storage module 502 Perform various functions of computer equipment and process data, so as to monitor the computer equipment as a whole.
  • the processing module 501 may include one or more processing cores; preferably, the processing module 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processing module 501 .
  • the storage module 502 can be used to store software programs and modules, and the processing module 501 executes various functional applications and data processing by running the software programs and modules stored in the storage module 502 .
  • the storage module 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, and web page access, etc.); The area may store data and the like created according to use of the computer device.
  • the storage module 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the storage module 502 may further include a memory controller to provide the processing module 501 with access to the storage module 502 .
  • the computer device also includes a power supply module 503 for supplying power to each component.
  • the power supply module 503 can be logically connected to the processing module 501 through a power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
  • the power module 503 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
  • the computer device can also include an input module 504, which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • an input module 504 can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the computer device may also include a display module, etc., which will not be repeated here.
  • the processing module 501 in the computer device will load the executable files corresponding to the process of one or more application programs into the storage module 502 according to the following instructions, and the processing module 501 will run the stored
  • the application programs in the storage module 502, thereby realizing various functions, are as follows:
  • the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; perform parameter input operations on the physical model according to the debugging parameters to obtain the physical model after the parameter input operation.
  • the status information of the simulated device corresponding to the model trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulated device for the debugging operation from the device simulator; according to the verification reference information corresponding to the debugging type
  • the response information is verified to obtain the verification result, and the verification reference information is determined from the debugging parameters and the status information of the simulated device based on the debugging type; the debugging result of the target simulated device is output according to the verification result.
  • an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods provided in the embodiments of the present invention.
  • the command can perform the following steps:
  • the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; perform parameter input operations on the physical model according to the debugging parameters to obtain the physical model after the parameter input operation.
  • the status information of the simulated device corresponding to the model trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulated device for the debugging operation from the device simulator; according to the verification reference information corresponding to the debugging type
  • the response information is verified to obtain the verification result, and the verification reference information is determined from the debugging parameters and the status information of the simulated device based on the debugging type; the debugging result of the target simulated device is output according to the verification result.
  • the computer-readable storage medium may include: a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
  • a computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium.
  • the processor of the computer device reads the computer instruction from the storage medium, and the processor executes the computer instruction, so that the computer device executes the methods provided in the various optional implementation manners above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present application discloses an automatic device commissioning method, an apparatus, a device, a system, and a storage medium. The method is applicable to the field of rail transit, and comprises: obtaining a device commissioning instruction for a target simulated device and an object model corresponding to the target simulated device, wherein the device commissioning instruction indicates a commissioning type and commissioning parameters corresponding to the commissioning type; performing a parameter input operation on the object model according to the commissioning parameters, so as to obtain simulated device state information corresponding to the object model having undergone the parameter input operation; triggering the target simulated device in a device simulator to perform a commissioning operation corresponding to the commissioning type, and obtaining, from the device simulator, response information of the target simulated device regarding the commissioning operation; verifying, according to verification reference information corresponding to the commissioning type, the response information so as to obtain a verification result, wherein the verification reference information is determined from the commissioning parameters and the simulated device state information on the basis of the commissioning type; and outputting a commissioning result of the target simulated device according to the verification result. The method can effectively improve the efficiency of device commissioning.

Description

一种设备自动调试的方法、装置、设备、系统及存储介质A method, device, device, system and storage medium for automatic equipment debugging 技术领域technical field
本申请涉及数据设备调试技术领域,具体涉及一种设备自动调试的方法、装置、设备、系统及存储介质。The present application relates to the technical field of data device debugging, and in particular to a method, device, device, system and storage medium for automatic device debugging.
背景技术Background technique
在工业化社会中,机器设备扮演着十分重要的作用,它解放了人的双手,甚至可以完成凭借人的肉体所不能完成的任务,从而大大提升了生产效率。In an industrialized society, machinery and equipment play a very important role. It liberates people's hands and can even complete tasks that cannot be done with the human body, thus greatly improving production efficiency.
为了保证机器设备的正常运行,在设备安装完成后,需要对设备进行调试。一般情况下,设备调试就是对设备进行试运行,以确认设备是否能够正常运行。In order to ensure the normal operation of the machinery and equipment, after the installation of the equipment is completed, the equipment needs to be debugged. In general, equipment commissioning is to conduct a trial run on the equipment to confirm whether the equipment can operate normally.
目前,设备调试仍由人工进行,在一些恶劣环境下,人工进行设备调试效率十分低下。At present, equipment debugging is still carried out manually. In some harsh environments, the efficiency of manual equipment debugging is very low.
发明内容Contents of the invention
本申请实施例提供一种设备自动调试的方法、装置、设备、系统及存储介质,该方法可以提高设备调试的效率。Embodiments of the present application provide a method, device, device, system, and storage medium for automatic equipment debugging, and the method can improve equipment debugging efficiency.
本申请第一方面提供一种设备调试方法,方法包括:The first aspect of the present application provides a device debugging method, the method includes:
获取针对目标模拟设备的设备调试指令以及所述目标模拟设备对应的物模型,所述设备调试指令指示调试类型和所述调试类型对应的调试参数;Obtain a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, where the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type;
根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;Performing an input operation on the object model according to the debugging parameters, to obtain state information of the first simulation device corresponding to the object model after the input operation;
触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息;triggering the target simulation device in the device simulator to execute a debugging operation corresponding to the debugging type, and obtaining response information of the target simulation device for the debugging operation from the device simulator;
根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,所述校验参考信息基于所述调试类型从所述调试参数和所述第一模拟设备状态信息中确定;Verifying the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, the verification reference information is based on the debugging type from the debugging parameters and the status information of the first simulated device determined in;
根据所述校验结果输出所述目标模拟设备的调试结果。Outputting the debugging result of the target simulation device according to the verification result.
相应的,本申请第二方面提供一种设备调试装置,装置包括:Correspondingly, the second aspect of the present application provides an equipment debugging device, which includes:
获取单元,用于获取针对目标模拟设备的设备调试指令以及所述目标模拟设备对应的物模型,所述设备调试指令指示调试类型和所述调试类型对应的调试参数;An acquisition unit, configured to acquire a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, the device debugging instruction indicating a debugging type and debugging parameters corresponding to the debugging type;
处理单元,用于根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;A processing unit, configured to perform an input operation on the object model according to the debugging parameters, so as to obtain the state information of the first simulation device corresponding to the object model after the input operation;
触发单元,用于触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息;A triggering unit, configured to trigger the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtain response information of the target simulation device for the debugging operation from the device simulator;
校验单元,用于根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,所述校验参考信息基于所述调试类型从所述调试参数和所述第一模拟设备状态信息中确定;A verification unit, configured to verify the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, the verification reference information is based on the debugging type from the debugging parameters and the determined in the status information of the first simulated device;
输出单元,用于根据所述校验结果输出所述目标模拟设备的调试结果。An output unit, configured to output the debugging result of the target simulation device according to the verification result.
在一些实施例中,所述处理单元,包括:In some embodiments, the processing unit includes:
处理子单元,用于根据所述调试参数对所述物模型进行入参操作,得到入参后的物模型;A processing subunit, configured to perform input operations on the object model according to the debugging parameters, to obtain an object model after input parameters;
转化子单元,用于根据预设映射关系表将所述入参后的物模型转化成目标模拟设备的第一寄存器状态信息,得到第一模拟设备状态信息,所述预设映射关系表包括物模型与寄存器 状态信息之间的映射关系。The conversion subunit is used to convert the input object model into the first register status information of the target analog device according to the preset mapping relationship table, and obtain the first analog device status information. The preset mapping relationship table includes the object model The mapping relationship between the model and the register state information.
在一些实施例中,所述处理子单元,包括;In some embodiments, the processing subunit includes;
第一处理模块,用于当所述调试类型为设备控制功能调试时,将所述调试参数填充至所述物模型的预设区域,得到入参后的物模型;The first processing module is configured to, when the debugging type is device control function debugging, fill the debugging parameters into the preset area of the object model, and obtain the object model after inputting parameters;
第二处理模块,用于当所述调试类型为属性数据上报功能调试时,按照所述调试参数对所述物模型的相应属性值进行修改,得到入参后的物模型;The second processing module is used to modify the corresponding attribute value of the object model according to the debugging parameters when the debugging type is attribute data reporting function debugging, so as to obtain the object model after inputting parameters;
第三处理模块,用于当所述调试类型为事件数据上报功能调试时,按照所述调试参数对所述物模型的相应事件值进行修改,得到入参后的物模型。The third processing module is configured to modify the corresponding event value of the object model according to the debugging parameters when the debugging type is event data reporting function debugging, so as to obtain the object model after inputting parameters.
在一些实施例中,所述校验单元,包括:In some embodiments, the verification unit includes:
对比子单元,用于将所述响应信息与所述调试类型对应的校验参考信息进行对比;a comparison subunit, configured to compare the response information with the verification reference information corresponding to the debugging type;
第一确定子单元,用于当所述响应信息与所述调试类型对应的校验参考信息一致时,确定校验结果为校验通过;A first determination subunit, configured to determine that the verification result is a verification pass when the response information is consistent with the verification reference information corresponding to the debugging type;
第二确定子单元,用于当所述响应信息与所述调试类型对应的校验参考信息不一致时,确定校验结果为校验不通过。The second determining subunit is configured to determine that the verification result is a verification failure when the response information is inconsistent with the verification reference information corresponding to the debugging type.
在一些实施例中,所述获取单元,包括:In some embodiments, the acquisition unit includes:
第一获取子单元,用于从物联平台获取模拟设备信息并显示模拟设备列表;The first obtaining subunit is used to obtain simulated device information from the IoT platform and display a list of simulated devices;
显示子单元,用于响应于针对模拟设备列表中目标模拟设备的选择操作,显示所述目标模拟设备的调试参数设置界面;A display subunit, configured to display a debugging parameter setting interface of the target analog device in response to a selection operation of the target analog device in the simulated device list;
生成子单元,用于根据所述调试参数设置界面接收到的调试参数生成针对所述目标模拟设备的设备调试指令。A generating subunit is configured to generate a device debugging instruction for the target analog device according to the debugging parameters received by the debugging parameter setting interface.
在一些实施例中,所述触发单元,包括:In some embodiments, the trigger unit includes:
第一发送子单元,用于当所述调试类型包括设备控制功能调试时,向设备模拟器发送所述调试参数,以使得所述设备模拟器根据所述调试参数对目标模拟设备进行控制功能调试,并返回控制功能调试后目标模拟设备的第二寄存器状态信息;The first sending subunit is configured to send the debugging parameters to the device simulator when the debugging type includes device control function debugging, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters , and returns the status information of the second register of the target analog device after the control function is debugged;
接收子单元,用于接收所述设备模拟器返回的所述第二寄存器状态信息,得到第二模拟设备状态信息;a receiving subunit, configured to receive the second register status information returned by the device simulator, and obtain second simulated device status information;
所述校验单元,还用于:The verification unit is also used for:
根据所述第一模拟设备状态信息对所述第二模拟设备状态信息进行校验。Verifying the second analog device state information according to the first analog device state information.
在一些实施例中,所述发送子单元,包括;In some embodiments, the sending subunit includes;
生成模块,用于生成包含所述调试参数的调试请求,并将所述调试请求转化为所述目标模拟设备的通讯协议支持的目标调试请求;A generating module, configured to generate a debugging request including the debugging parameters, and convert the debugging request into a target debugging request supported by the communication protocol of the target simulation device;
第一发送模块,用于向所述设备模拟器发送所述目标调试请求。A first sending module, configured to send the target debugging request to the device emulator.
在一些实施例中,所述生成模块,包括;In some embodiments, the generating module includes;
发送子模块,用于向物联平台发送包含所述调试参数的调试请求生成指令,所述调试请求生成指令指示所述物联平台根据所述调试参数确定目标模拟设备的第三寄存器状态信息,并指示所述物联平台根据所述第三寄存器状态信息返回所述目标模拟设备的通讯协议支持的目标调试请求;The sending submodule is configured to send a debugging request generation instruction including the debugging parameters to the IoT platform, the debugging request generation instruction instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, And instruct the IoT platform to return a target debugging request supported by the communication protocol of the target simulation device according to the third register state information;
接收子模块,用于接收所述物联平台返回的目标调试请求。The receiving submodule is used to receive the target debugging request returned by the IoT platform.
在一些实施例中,所述触发单元,包括:In some embodiments, the trigger unit includes:
第二发送子单元,用于当所述调试类型包括数据上报功能调试时,向设备模拟器发送所述第一模拟设备状态信息,以使得所述设备模拟器根据所述第一模拟设备状态信息对所述目 标模拟设备进行数据上报功能调试,并返回数据上报功能调试后所述目标模拟设备的第四寄存器状态信息;The second sending subunit is configured to send the first simulated device status information to the device simulator when the debugging type includes debugging with a data reporting function, so that the device simulator uses the first simulated device status information Perform data reporting function debugging on the target simulation device, and return the fourth register status information of the target simulation device after the data reporting function debugging;
第三确定子单元,用于根据所述第四寄存器状态信息确定所述设备模拟器返回的上报数据;A third determining subunit, configured to determine the reported data returned by the device simulator according to the fourth register state information;
所述校验单元,还用于:The verification unit is also used for:
根据所述调试参数对所述上报数据进行校验。Verifying the reported data according to the debugging parameters.
在一些实施例中,所述第三确定子单元,包括:In some embodiments, the third determining subunit includes:
第二发送模块,用于向物联平台发送上报数据获取请求;The second sending module is used to send the reported data acquisition request to the IoT platform;
接收模块,用于接收所述物联平台根据所述上报数据获取请求返回的上报数据,所述上报数据为所述物联平台根据所述第四寄存器状态信息生成。The receiving module is configured to receive the reported data returned by the IoT platform according to the reported data acquisition request, the reported data is generated by the IoT platform according to the status information of the fourth register.
在一些实施例中,所述设备自动调试装置,还包括;In some embodiments, the device automatic debugging device also includes;
第二获取子单元,用于从物联平台获取每一模拟设备对应的物模型;The second obtaining subunit is used to obtain the object model corresponding to each simulation device from the Internet of Things platform;
第四确定子单元,用于根据预设映射关系表确定每一模拟设备对应的理论寄存器状态信息;The fourth determination subunit is used to determine the theoretical register status information corresponding to each analog device according to the preset mapping relationship table;
第三获取子单元,用于从设备模拟器中获取每一模拟设备对应的实际寄存器状态信息;The third obtaining subunit is used to obtain the actual register status information corresponding to each simulated device from the device simulator;
校验子单元,用于根据所述理论寄存器状态信息与所述实际寄存器状态信息的比对结果对每一模拟设备的物模型进行校验。The verification subunit is used to verify the physical model of each simulated device according to the comparison result of the theoretical register state information and the actual register state information.
本申请第三方面还提供一种设备自动调试系统,所述设备自动调试系统包括至少一个设备调试器和至少一个设备模拟器:The third aspect of the present application also provides an automatic equipment debugging system, the automatic equipment debugging system includes at least one equipment debugger and at least one equipment simulator:
所述设备调试器,用于获取针对目标模拟设备的设备调试指令以及所述目标模拟设备对应的物模型,所述设备调试指令指示调试类型和所述调试类型对应的调试参数;根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息;根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,所述校验参考信息基于所述调试类型从所述调试参数和所述第一模拟设备状态信息中确定;根据所述校验结果输出所述目标模拟设备的调试结果;The device debugger is configured to obtain a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type; according to the debugging Parameters are input to the object model to obtain the state information of the first analog device corresponding to the object model after the input operation; trigger the target analog device in the device simulator to perform the debugging operation corresponding to the debugging type, and from The device simulator obtains the response information of the target simulation device for the debugging operation; verifies the response information according to the verification reference information corresponding to the debugging type, and obtains a verification result, and the verification reference The information is determined based on the debugging type from the debugging parameters and the status information of the first simulated device; outputting the debugging result of the target simulated device according to the verification result;
所述设备模拟器,用于执行所述调试类型对应的调试操作并向所述设备调试器发送所述目标模拟设备针对所述调试操作的响应信息。The device simulator is configured to execute a debugging operation corresponding to the debugging type and send response information of the target simulation device to the debugging operation to the device debugger.
本申请第四方面还提供一种计算机可读存储介质,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行本申请第一方面所提供的设备自动调试方法中的步骤。The fourth aspect of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the automatic operation of the device provided in the first aspect of the present application. Steps in the debug method.
本申请第五方面提供一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可以在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请第一方面所提供的设备自动调试方法中的步骤。The fifth aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor executes the computer program, the first aspect of the present application is implemented. On the one hand, it provides the steps in the equipment automatic debugging method.
本申请第六方面提供一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在存储介质中。计算机设备的处理器从存储介质读取所述计算机指令,处理器执行所述计算机指令,使得所述计算机设备执行第一方面所提供的设备自动调试方法中的步骤。A sixth aspect of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium. The processor of the computer device reads the computer instructions from the storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the device automatic debugging method provided in the first aspect.
本申请实施例提供的设备自动调试方法,通过获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;根 据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的模拟设备状态信息;触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和模拟设备状态信息中确定;根据校验结果输出目标模拟设备的调试结果。In the device automatic debugging method provided in the embodiment of the present application, by obtaining the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device, the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; Perform the parameter input operation to obtain the simulated device status information corresponding to the object model after the parameter input operation; trigger the target simulated device in the device simulator to perform the debug operation corresponding to the debug type, and obtain the response of the target simulated device to the debug operation from the device simulator information; verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result. The verification reference information is determined from the debugging parameters and the status information of the simulation device based on the debugging type; output the target simulation device according to the verification result Debug results.
以此,本申请提供的设备调试方法,通过设备的物模型对调试指令进行解析,并联动设备模拟器生成的模拟设备,自动检测模拟设备对调试指令的响应结果,再结合物模型的解析结果对响应结果进行校验,从而自动对待调试设备对应的模拟设备进行调试,得到调试结果。该方法可以有效提升设备调试的效率。Therefore, the equipment debugging method provided by this application analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result. This method can effectively improve the efficiency of equipment debugging.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1是本申请中设备自动调试方法的一个场景示意图;Fig. 1 is a schematic diagram of a scene of the equipment automatic debugging method in the present application;
图2是本申请提供的设备自动调试方法的流程示意图;Fig. 2 is a schematic flow chart of the equipment automatic debugging method provided by the present application;
图3是本申请提供的设备自动调试方法的另一流程示意图;Fig. 3 is another schematic flow chart of the equipment automatic debugging method provided by the present application;
图4a是本申请提供的设备列表示意图;Figure 4a is a schematic diagram of the equipment list provided by this application;
图4b是本申请中属性数据上报功能调试对应的调试参数设置界面示意图;Figure 4b is a schematic diagram of the debugging parameter setting interface corresponding to the debugging of the attribute data reporting function in this application;
图4c是本申请中提供的模拟设备调试结果的示意图;Fig. 4c is a schematic diagram of the debugging results of the simulated equipment provided in this application;
图5a是本申请提供的设备控制功能调试的交互时序图;Fig. 5a is an interactive sequence diagram of device control function debugging provided by the present application;
图5b是本申请提供的属性数据上报功能调试的交互时序图;Figure 5b is an interactive sequence diagram for debugging the attribute data reporting function provided by the present application;
图5c是本申请提供的事件数据上报功能调试的交互时序图;Fig. 5c is an interactive sequence diagram of event data reporting function debugging provided by the present application;
图6是本申请提供的设备自动调试装置的结构示意图;Fig. 6 is a schematic structural view of the equipment automatic debugging device provided by the present application;
图7是本申请提供的设备自动调试系统的拓扑图;Fig. 7 is a topological diagram of the equipment automatic debugging system provided by the present application;
图8是本申请提供的计算机设备的结构示意图。FIG. 8 is a schematic structural diagram of a computer device provided by the present application.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明实施例提供一种设备自动调试方法、装置、设备、系统及存储介质。其中,该设备调试方法可以使用于设备调试装置中。该设备调试装置可以集成在计算机设备中,该计算机设备可以是终端也可以是服务器。其中,终端可以为手机、平板电脑、笔记本电脑、智能电视、穿戴式智能设备、个人计算机(PC,Personal Computer)等设备。服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、网络加速服务(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。其中,服务器可以为区块链中的节点。Embodiments of the present invention provide a device automatic debugging method, device, device, system and storage medium. Wherein, the device debugging method can be used in a device debugging device. The device debugging device can be integrated in a computer device, and the computer device can be a terminal or a server. Wherein, the terminal may be a mobile phone, a tablet computer, a notebook computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and the like. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, intermediate Cloud servers for basic cloud computing services such as mail service, domain name service, security service, network acceleration service (Content Delivery Network, CDN), and big data and artificial intelligence platforms. Wherein, the server can be a node in the block chain.
请参阅图1,为本申请提供的设备自动调试方法的一场景示意图。如图所示,计算机设 备A接收终端B发送的调试指令,根据该调试指令获取与调试指令对应的目标模拟设备对应的物模型,然后根据调试指令中包含的调试参数对物模型进行入参操作,以获取入参操作后物模型对应的模拟设备状态信息。触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息,根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,根据校验结果确定目标模拟设备的调试结果。然后,计算机设备A再将调试结果返回给终端B。Please refer to FIG. 1 , which is a schematic diagram of a scenario of the device automatic debugging method provided in this application. As shown in the figure, computer device A receives the debugging instruction sent by terminal B, obtains the object model corresponding to the target simulation device corresponding to the debugging instruction according to the debugging instruction, and then performs input operation on the object model according to the debugging parameters contained in the debugging instruction , to obtain the status information of the simulated equipment corresponding to the input parameter operation object model. Trigger the target simulation device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulation device for the debugging operation from the device simulator, verify the response information according to the verification reference information corresponding to the debugging type, and obtain the calibration According to the verification result, the debugging result of the target simulation device is determined. Then, the computer device A returns the debugging result to the terminal B.
需要说明的是,图1所示的设备自动调试方法的场景示意图仅仅是一个示例,本申请实施例描述的设备自动调试场景是为了更加清楚地说明本申请的技术方案,并不构成对于本申请提供的技术方案的限定。本领域普通技术人员可知,随着设备自动调试场景演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。It should be noted that the schematic diagram of the scene of the device automatic debugging method shown in Figure 1 is just an example, and the device automatic debugging scene described in the embodiment of the application is to illustrate the technical solution of the application more clearly, and does not constitute a The limitations of the technical solution provided. Those skilled in the art know that with the evolution of automatic equipment debugging scenarios and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.
基于上述实施场景以下分别进行详细说明。Based on the above implementation scenarios, detailed descriptions will be given below.
在相关技术中,对设备进行调试,需要技术人员现场对设备进行人工调试。然而,在对大批量的设备进行调试时,人工进行调试一方面效率低下,另一方面,在一些恶劣的环境下,人工调试的困难很多,导致设备调试的效率非常低下。对此,本申请提供了一种设备调试方法,以提高设备调试的效率。In the related art, to debug the equipment, technicians need to manually debug the equipment on site. However, when debugging large quantities of equipment, manual debugging is inefficient on the one hand, and on the other hand, in some harsh environments, manual debugging is very difficult, resulting in very low efficiency of equipment debugging. In this regard, the present application provides a device debugging method, so as to improve the efficiency of device debugging.
为方便对本申请技术方案的理解,下面对本申请提供的方案进行详细介绍。In order to facilitate the understanding of the technical solutions of the present application, the solutions provided by the present application are introduced in detail below.
本申请实施例将从设备自动调试装置的角度进行描述,该设备自动调试装置可以集成在计算机设备中。其中,计算机设备可以是终端也可以是服务器。其中,终端可以为手机、平板电脑、笔记本电脑、智能电视、穿戴式智能设备、个人计算机(PC,Personal Computer)以及车载终端等设备。服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、网络加速服务(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。如图2所示,为本申请提供的设备调试方法的流程示意图,该方法包括:Embodiments of the present application will be described from the perspective of an automatic equipment debugging device, and the automatic equipment debugging device may be integrated in a computer device. Wherein, the computer device may be a terminal or a server. Wherein, the terminal may be a mobile phone, a tablet computer, a notebook computer, a smart TV, a wearable smart device, a personal computer (PC, Personal Computer) and a vehicle-mounted terminal. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, intermediate Cloud servers for basic cloud computing services such as mail service, domain name service, security service, network acceleration service (Content Delivery Network, CDN), and big data and artificial intelligence platforms. As shown in Figure 2, it is a schematic flow chart of the equipment debugging method provided by the present application, which includes:
步骤101,获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型。In step 101, a device debugging instruction for a target simulation device and a physical model corresponding to the target simulation device are acquired.
其中,本申请提供的设备自动调试方法可以应用于轨道交通系统中,对轨道交通系统中的设备进行自动调试。其中,轨道交通是指运营车辆需要在特定轨道上行驶的一类交通工具或运输系统,最典型的轨道交通就是由传统火车和标准铁路所组成的铁路系统。随着轨道交通技术的多元化发展,轨道交通呈现出越来越多的类型,例如地铁、城轨、轻轨、有轨电车以及磁悬浮轨道系统等。Wherein, the equipment automatic debugging method provided in the present application can be applied to a rail transit system to automatically debug equipment in the rail transit system. Among them, rail transit refers to a type of vehicle or transportation system that operating vehicles need to run on specific tracks. The most typical rail transit is a railway system composed of traditional trains and standard railways. With the diversified development of rail transit technology, there are more and more types of rail transit, such as subways, urban rails, light rails, trams, and maglev rail systems.
其中,目标模拟设备可以为待调试的目标设备在设备模拟器中生成的模拟设备。其中,设备模拟器技术可以为在仿真环境下对物理空间的真实设备进行模拟,具体地,可以采用多个寄存器的不同状态来模拟设备的不同状态。其中,寄存器可以用于存储二进制码,其可以由具有存储功能的触发器组合起来构成的,一个触发器存储有一个二进制代码。一般情况下,设备在出厂时,厂家会提供一个与设备出厂设置状态匹配的寄存器状态表,该寄存器状态表中存储了多个寄存器的状态信息,根据该寄存器的状态信息可以在设备模拟器中模拟出设备的出厂设置状态。设备模拟器中可以存在多个模拟设备,即设备模拟器中可以存在多个模拟设备对应的寄存器状态信息,这些多个模拟设备对应的寄存器状态信息构成了一张点表。目标模拟设备可以是设备模拟器中的多个模拟设备中的一个。Wherein, the target simulated device may be a simulated device generated by the target device to be debugged in the device simulator. Wherein, the device simulator technology may simulate a real device in a physical space in a simulation environment, specifically, different states of a plurality of registers may be used to simulate different states of the device. Wherein, the register can be used to store binary code, which can be composed of flip-flops with storage function, and one flip-flop stores one binary code. Generally, when the device leaves the factory, the manufacturer will provide a register state table that matches the factory setting state of the device. The register state table stores the state information of multiple registers. According to the state information of the register, the device emulator can Simulate the factory setting state of the device. There may be multiple simulated devices in the device simulator, that is, there may be register status information corresponding to multiple simulated devices in the device simulator, and the register status information corresponding to the multiple simulated devices constitutes a point table. The target simulated device may be one of multiple simulated devices in the device simulator.
在本申请实施例中,模拟设备所模拟的物理空间的真实设备可以为任何行业或者领域中的设备,例如生产设备、通讯设备、运输设备以及轨道交通设备。具体地,轨道交通设备可 以为地铁、高铁、地铁站运营维护设备以及高铁站运营维护设备等,此处不作限制。In the embodiment of the present application, the real equipment in the physical space simulated by the simulation equipment may be equipment in any industry or field, such as production equipment, communication equipment, transportation equipment, and rail transit equipment. Specifically, rail transit equipment can be subways, high-speed rails, subway station operation and maintenance equipment, and high-speed rail station operation and maintenance equipment, etc., which are not limited here.
其中,目标模拟设备的设备调试指令,可以由其他装置发送给设备自动调试装置,也可以由设备自动调试装置内部生成。例如,当设置设备自动调试装置每隔预设时间对目标设备进行一次设备自动调试,那么当检测到间隔时间达到预设时间时,设备自动调试装置便会自动生成针对目标模拟设备的设备调试指令。目标模拟设备的设备调试指令指示了对目标模拟设备进行调试的调试类型以及和调试类型对应的调试参数。其中,对目标模拟设备的调试类型可以为设备控制功能调试或者数据上报功能调试,其中数据上报功能调试可以包括属性数据上报功能调试和事件数据上报功能调试。当设备调试类型为设备控制功能调试时,对应的调试参数便可以为控制参数;当设备调试类型为属性数据上报功能调试时,对应的调试参数便可以为具体的属性数值;当设备调试类型为事件数据上报功能调试时,对应的调试参数便可以为事件数据。Wherein, the device debugging instruction of the target simulation device may be sent to the device automatic debugging device by other devices, or may be generated internally by the device automatic debugging device. For example, when the device automatic debugging device is set to perform automatic device debugging on the target device every preset time, then when the detected interval reaches the preset time, the device automatic debugging device will automatically generate device debugging instructions for the target analog device . The device debugging instruction of the target analog device indicates a debugging type for debugging the target analog device and debugging parameters corresponding to the debugging type. Wherein, the debugging type of the target simulation device may be device control function debugging or data reporting function debugging, wherein the data reporting function debugging may include attribute data reporting function debugging and event data reporting function debugging. When the device debugging type is device control function debugging, the corresponding debugging parameters can be control parameters; when the device debugging type is attribute data reporting function debugging, the corresponding debugging parameters can be specific attribute values; when the device debugging type is When debugging the event data reporting function, the corresponding debugging parameter can be event data.
另外,当确定了需要进行设备调试的目标模拟设备后,还需要进一步对目标模拟设备的物模型进行获取。其中,物模型为设备的数字化抽象描述,具体地,可以为对设备的功能、属性等信息进行数字化抽象描述,将物理空间的实体设备在云端进行格式化的表示。即采用预设格式的数据对设备进行详细的描述,从而构建了一个能够描述实体设备的数据模型。In addition, after the target simulation device that needs to be debugged is determined, it is necessary to further acquire the object model of the target simulation device. Among them, the object model is a digital abstract description of the device. Specifically, it can be a digital abstract description of the device's functions, attributes and other information, and a formatted representation of the physical device in the physical space on the cloud. That is, the data in the preset format is used to describe the equipment in detail, thereby constructing a data model that can describe the physical equipment.
在一些实施例中,获取针对目标模拟设备的设备调试指令,包括:In some embodiments, obtaining device debugging instructions for the target simulated device includes:
1、从物联平台获取模拟设备信息并显示模拟设备列表;1. Obtain the simulated device information from the IoT platform and display the list of simulated devices;
2、响应于针对模拟设备列表中目标模拟设备的选择操作,显示目标模拟设备的调试参数设置界面;2. In response to the selection operation of the target simulation device in the simulation device list, display the debugging parameter setting interface of the target simulation device;
3、根据调试参数设置界面接收到的调试参数生成针对目标模拟设备的设备调试指令。3. Generate a device debugging instruction for the target analog device according to the debugging parameters received in the debugging parameter setting interface.
其中,在本申请实施例中,可以将从物联平台获取到模拟设备的相关信息并展示模拟设备列表,用户可以在展示的模拟设备列表中进行选择,以确定需要进行调试的目标模拟设备。当用户选中了需要进行调试的目标模拟设备后,可以进一步显示对该模拟设备进行调试的调试参数设置界面,在该调试参数设备界面,用户可以输入对目标模拟设备进行调试的调试类型以及与该调试类型对应的调试参数。然后,设备自动调试装置便可以根据用户输入的调试类型以及调试参数生成针对目标模拟设备的设备调试指令。Wherein, in the embodiment of the present application, relevant information of the simulated device can be obtained from the IoT platform and a list of simulated devices can be displayed, and the user can select from the displayed list of simulated devices to determine the target simulated device that needs to be debugged. When the user selects the target analog device that needs to be debugged, the debug parameter setting interface for debugging the simulated device can be further displayed. In the debug parameter device interface, the user can input the debug type for debugging the target simulated device and the The debugging parameter corresponding to the debugging type. Then, the device automatic debugging device can generate a device debugging instruction for the target analog device according to the debugging type and debugging parameters input by the user.
其中,在一些实施例中,也可以无需用户在调试参数设置界面进行人工设置调试参数,而是可以由设备自动调试装置根据目标模拟设备的参数类型(例如属性值、事件值和控制事件)来自动生成调试参数。在一次调试结束后,设备自动调试装置还可以自动更改调试参数,以实现遍历每一参数类型的每一参数,实现对目标模拟设备的自动且全面的调试。Among them, in some embodiments, it is also unnecessary for the user to manually set the debugging parameters on the debugging parameter setting interface, but the device automatic debugging device can be used according to the parameter type (such as attribute value, event value and control event) of the target simulation device. Automatically generate debugging parameters. After one debugging is finished, the equipment automatic debugging device can also automatically change the debugging parameters, so as to traverse each parameter of each parameter type, and realize automatic and comprehensive debugging of the target simulation equipment.
其中,物联平台可以为物联网云平台。在本申请实施例中,在对模拟设备进行自动调试之前,可以先根据厂家提供的设备点表(即设备对应的寄存器状态表)在设备模拟器中构建模拟设备,也就是将厂家提供的设备点表导入到设备模拟器中,从而在设备模拟器中生成该点表对应的模拟设备。设备模拟器每导入一个设备点表,生成其对应的模拟设备后,都会向物联平台发送该模拟设备对应的物模型的注册请求,物联平台根据该注册请求对该模拟设备进行注册。此外,在模拟设备进行自动调试之前,还可以预先在物联平台上创建每一待调试设备对应的物模型。Wherein, the IoT platform may be an IoT cloud platform. In the embodiment of this application, before automatically debugging the simulated device, the simulated device can be built in the device simulator according to the device point table provided by the manufacturer (that is, the register status table corresponding to the device), that is, the device provided by the manufacturer The point table is imported into the device simulator, so that the simulated device corresponding to the point table is generated in the device simulator. Every time the device simulator imports a device point table and generates its corresponding simulated device, it will send a registration request of the object model corresponding to the simulated device to the IoT platform, and the IoT platform will register the simulated device according to the registration request. In addition, before the automatic debugging of the simulated device, an object model corresponding to each device to be debugged can also be created on the IoT platform in advance.
如此,在本申请实施例中,当需要对设备模拟器中的模拟设备进行调试时,设备自动调试装置便可以从物联平台中获取到物联平台中的所有物模型的信息,然后根据获取到的物模型的信息生成物模型列表并进行展示。可以理解的是,这些物模型信息与模拟设备一一对应,因此该物模型列表也可以称为模拟设备列表。用户可以在模拟设备列表中选中一个或者多个 需要进行调试的目标模拟设备,然后便可以根据后续显示的调试参数设置界面中接收到的调试类型和调试参数生成每一目标模拟设备对应的设备调试指令。In this way, in the embodiment of the present application, when the simulated equipment in the equipment simulator needs to be debugged, the equipment automatic debugging device can obtain the information of the property model in the IoT platform from the IoT platform, and then according to the acquired Generate a list of physical models based on the obtained physical model information and display them. It can be understood that the physical model information is in one-to-one correspondence with the simulated devices, so the physical model list may also be called a simulated device list. The user can select one or more target analog devices that need to be debugged in the simulated device list, and then generate the corresponding device debugging for each target simulated device according to the debug type and debug parameters received in the debug parameter setting interface displayed later. instruction.
在本申请实施例中,物联平台可以设置有物联接入网关,该物联网关可以适配接入多种支持不同接口协议以及数据格式的模拟设备,然后对设备自动调试装置提供统一且标准的访问方式,具体可以为超文本传输安全协议(Hyper Text Transfer Protocol over SecureSocket Layer,HTTPS)或者NATS协议,其中NATS协议指的是“面向消息的中间件”,意思是它是一种软件基础设施,提供数据交换,这些数据被分割为计算机应用程序和服务之间的消息。如此,设备自动调试装置在对不同的模拟设备进行自动调试时,便无需再逐一去对不同模拟设备的接口协议以及数据格式进行适配,从而提高了设备自动调试的调试效率。In this embodiment of the application, the Internet of Things platform can be provided with an Internet of Things access gateway, which can be adapted to access a variety of analog devices that support different interface protocols and data formats, and then provide a unified and The standard access method can specifically be the Hyper Text Transfer Protocol over SecureSocket Layer (HTTPS) or the NATS protocol, where the NATS protocol refers to "message-oriented middleware", which means it is a software foundation Facility that provides the exchange of data that is segmented into messages between computer applications and services. In this way, when the device automatic debugging device automatically debugs different analog devices, it does not need to adapt the interface protocols and data formats of different analog devices one by one, thereby improving the debugging efficiency of automatic device debugging.
在一些实施例中,本申请提供的设备自动调试方法,还可以包括:In some embodiments, the device automatic debugging method provided by the present application may also include:
A、从物联平台获取每一模拟设备对应的物模型;A. Obtain the object model corresponding to each simulated device from the IoT platform;
B、根据预设映射关系表确定每一模拟设备对应的理论寄存器状态信息,预设映射关系表包括物模型与寄存器状态信息之间的映射关系;B. Determine the theoretical register status information corresponding to each analog device according to the preset mapping relationship table, and the preset mapping relationship table includes the mapping relationship between the object model and the register status information;
C、从设备模拟器中获取每一模拟设备对应的实际寄存器状态信息;C. Obtain the actual register status information corresponding to each simulated device from the device simulator;
D、根据理论寄存器状态信息与实际寄存器状态信息的比对结果对每一模拟设备的物模型进行校验。D. Verifying the physical model of each simulated device according to the comparison result of the theoretical register state information and the actual register state information.
其中,在本申请实施例中,在物联平台上生成每个模拟设备对应的物模型后,设备自动调试装置可以对生成的物模型进行校验。具体地,设备自动调试装置可以获取任一目标模拟设备对应的物模型,然后根据物模型与寄存器状态信息之间的映射关系表确定该物模型对应的理论寄存器状态信息,也就是根据目标模拟设备对应的物模型确定目标模拟设备的寄存器状态信息。然后,设备自动调试装置还可以直接从设备模拟器中获取该目标模拟设备的实际寄存器状态信息,并将实际寄存器状态信息和理论寄存器状态信息进行校验,如果两者一致,则说明对模拟设备的物模型校验合格;若不一致,则说明对物模型的校验结果不合格,此时便需要排查边缘设备网关是否存在异常,并对此异常进行完善,从而进一步保证设备调试结果的准确性。Wherein, in the embodiment of the present application, after the object model corresponding to each simulated device is generated on the IoT platform, the device automatic debugging device may verify the generated object model. Specifically, the device automatic debugging device can obtain the object model corresponding to any target analog device, and then determine the theoretical register state information corresponding to the object model according to the mapping relationship table between the object model and the register state information, that is, according to the target analog device The corresponding Thing Model defines the register state information of the target simulated device. Then, the device automatic debugging device can also directly obtain the actual register state information of the target simulated device from the device simulator, and verify the actual register state information and the theoretical register state information. If the two are consistent, it means that the simulated device If it is inconsistent, it means that the verification result of the physical model is unqualified. At this time, it is necessary to check whether there is an abnormality in the edge device gateway and improve the abnormality, so as to further ensure the accuracy of the device debugging results. .
步骤102,根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息。 Step 102 , perform an input operation on the object model according to the debugging parameters, so as to obtain state information of the first simulation device corresponding to the object model after the input operation.
其中,获取到待调试的目标模拟设备对应的物模型以及调试指令中包含的调试类型和调试参数后,可以根据调试类型和调试参数对目标模拟设备对应的物模型进行更新。具体地,可以根据调试参数对物模型进行入参,得到入参后的物模型。然后,可以根据入参后的物模型来预测目标模拟设备根据前述调试类型和调试参数进行调试后的理论状态信息,得到第一模拟设备状态信息。Wherein, after obtaining the physical model corresponding to the target simulation device to be debugged and the debugging type and debugging parameters included in the debugging instruction, the physical model corresponding to the target simulation device may be updated according to the debugging type and debugging parameters. Specifically, the physical model can be entered according to the debugging parameters to obtain the physical model after the parameterization. Then, the theoretical state information of the target simulation device after debugging according to the aforementioned debugging type and debugging parameters can be predicted according to the input object model, and the state information of the first simulation device can be obtained.
其中,根据调试参数对物模型进行入参,可以为根据调试参数对物模型的相应参数进行填充或者修改。具体地,对于不同的调试类型,可以对应不同的调试参数。例如,当调试类型为设备控制功能调试时,调试参数可以为对目标模拟设备的具体控制指令对应的参数,例如控制指令为控制机械手下降10cm,那么调试参数便包括目标机械手信息(例如机械手编号)、具体控制操作(此处为下降)以及控制程度(此处为10cm)。由于物模型也是数据格式的存在,此时对该物模型进行入参操作便可以为将这些控制指令对应的参数填充到物模型的参数填充位置。当调试类型为设备属性数据上报功能调试时,调试参数可以为对目标模拟设备的具体属性以及对应的属性值,调试操作就是将目标设备的具体属性的属性值修改为调试参数中的属性值。此时对物模型进行入参便可以为将物模型中对应的属性的属性值修改为调试参 数中的属性值。Wherein, adding parameters to the physical model according to the debugging parameters may be filling or modifying corresponding parameters of the physical model according to the debugging parameters. Specifically, for different debugging types, different debugging parameters may be corresponding. For example, when the debugging type is equipment control function debugging, the debugging parameters can be the parameters corresponding to the specific control instructions of the target simulation device. For example, the control instruction is to control the manipulator to drop 10cm, then the debugging parameters include the target manipulator information (such as the manipulator number) , the specific control operation (here is the drop) and the degree of control (here is 10cm). Since the physical model also exists in a data format, the input operation of the physical model at this time can be to fill the parameters corresponding to these control instructions into the parameter filling position of the physical model. When the debugging type is the debugging of the device attribute data reporting function, the debugging parameters can be the specific attributes of the target simulated device and the corresponding attribute values, and the debugging operation is to modify the attribute values of the specific attributes of the target device to the attribute values in the debugging parameters. At this point, adding parameters to the object model can be to modify the attribute value of the corresponding attribute in the object model to the attribute value in the debugging parameter.
在一些实施例中,根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息,包括:In some embodiments, the input operation is performed on the object model according to the debugging parameters, so as to obtain the state information of the first simulation device corresponding to the object model after the input operation, including:
1、根据调试参数对物模型进行入参操作,得到入参后的物模型;1. According to the debugging parameters, perform parameter input operation on the object model to obtain the object model after input parameters;
2、根据预设映射关系表将入参后的物模型转化成目标模拟设备的第一寄存器状态信息,得到第一模拟设备状态信息,预设映射关系表包括物模型与寄存器状态信息之间的映射关系。2. Convert the input object model into the first register status information of the target analog device according to the preset mapping relationship table, and obtain the first analog device status information. The preset mapping relationship table includes the relationship between the object model and the register status information. Mapping relations.
其中,在本申请实施例中,第一模拟设备状态信息可以为目标模拟设备的寄存器状态信息。具体地,设备自动调试装置可以先根据调试参数对物模型进行入参操作,更新物模型的信息,得到入参后的物模型。进一步地,设备自动调试装置可以获取预设映射关系表,该预设映射表中保存了不同物模型信息与模拟设备的寄存器的状态信息之间的映射关系。然后可以根据入参后的物模型信息在预设映射关系表中确定入参后的物模型对应的寄存器状态信息。为了与后续其他状态对应的寄存器状态信息进行区分,此处可以称之为第一寄存器状态信息,该第一寄存器状态信息指示了目标模拟设备根据调试参数进行调试后的理论寄存器状态信息,即前述第一模拟设备状态信息。Wherein, in the embodiment of the present application, the first simulated device state information may be register state information of the target simulated device. Specifically, the device automatic debugging device can first perform a parameter input operation on the object model according to the debugging parameters, update the information of the object model, and obtain the object model after inputting parameters. Further, the device automatic debugging device can obtain a preset mapping relationship table, which stores the mapping relationship between different object model information and the status information of the register of the analog device. Then, the register status information corresponding to the object model after inputting parameters can be determined in the preset mapping relationship table according to the object model information after inputting parameters. In order to distinguish it from the register state information corresponding to other subsequent states, it can be referred to as the first register state information here. The first register state information indicates the theoretical register state information after the target simulation device is debugged according to the debugging parameters, that is, the aforementioned State information of the first simulated device.
在一些实施例中,根据调试参数对物模型进行入参操作,得到入参后的物模型,包括:In some embodiments, the parameter input operation is performed on the object model according to the debugging parameters to obtain the object model after input parameters, including:
1.1、当调试类型为设备控制功能调试时,将调试参数填充至物模型的预设区域,得到入参后的物模型;1.1. When the debugging type is equipment control function debugging, fill the debugging parameters into the preset area of the object model, and obtain the object model after entering the parameters;
1.2、当调试类型为属性数据上报功能调试时,按照调试参数对物模型的相应属性值进行修改,得到入参后的物模型;1.2. When the debugging type is attribute data reporting function debugging, modify the corresponding attribute value of the physical model according to the debugging parameters to obtain the physical model after entering the parameters;
1.3、当调试类型为事件数据上报功能调试时,按照调试参数对物模型的相应事件值进行修改,得到入参后的物模型。1.3. When the debugging type is event data reporting function debugging, modify the corresponding event value of the physical model according to the debugging parameters to obtain the physical model after entering the parameters.
其中,在本申请实施例中,对于不同的调试类型,可以采用不同的入参方法对物模型进行入参。一般情况下,对模拟设备进行调试的调试类型可以分为设备控制功能调试、属性数据上报功能调试以及事件数据上报功能调试。当这三方面的功能调试的调试结果为合格时,一般就可以确定模拟设备的调试结果合格,也就可以确定模拟设备的各项功能合格,也可以进一步确定模拟设备对应的实体设备的功能合格。Wherein, in the embodiment of the present application, for different debugging types, different input methods may be used to input parameters to the object model. In general, the debugging types for debugging analog devices can be divided into device control function debugging, attribute data reporting function debugging, and event data reporting function debugging. When the debugging results of these three aspects of functional debugging are qualified, it can generally be determined that the debugging results of the simulated equipment are qualified, and the functions of the simulated equipment can also be determined to be qualified, and it can also be further confirmed that the functions of the physical equipment corresponding to the simulated equipment are qualified .
具体地,对于不同的调试类型,物模型可以将设备抽象为三类范式:设备控制方法(Services)、设备属性上报(Properties)以及设备事件上报(Events)。当调试类型为设备控制功能调试时,可以根据调试参数采用对物模型进行参数填充的方法填充物模型Services,从而实现对物模型的入参;当调试类型为属性数据上报功能调试时,可以根据调试参数采用属性数据修改的方法对物模型Properties属性值进行修改,实现对物模型的入参;当调试类型为事件数据上报功能调试时,可以根据调试参数采用事件数据修改的方法对物模型Events的事件值进行修改,实现对物模型的入参。Specifically, for different debugging types, the object model can abstract devices into three types of paradigms: device control methods (Services), device attribute reporting (Properties), and device event reporting (Events). When the debugging type is device control function debugging, you can use the method of filling the object model to fill in the object model Services according to the debugging parameters, so as to realize the input parameters of the object model; when the debugging type is attribute data reporting function debugging, you can according to The debugging parameters use the attribute data modification method to modify the property value of the object model Properties to realize the input of the object model; when the debugging type is event data reporting function debugging, the event data modification method can be used to modify the object model Events according to the debugging parameters. Modify the event value of the event to realize the entry of the object model.
步骤103,触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息。 Step 103, triggering the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtaining response information of the target simulation device for the debugging operation from the device simulator.
其中,设备自动调试装置在根据调试类型以及调试参数对目标模拟设备对应的物模型进行入参处理,得到入参后的物模型对应的第一模拟设备状态信息后,可以进一步触发设备模拟器中的目标模拟设备根据调试参数执行调试类型对应的调试操作,然后再从设备模拟器中获取目标模拟设备针对该调试操作的响应结果。其中,可以理解的是,前述目标模拟设备对应的第一模拟设备状态信息为根据目标模拟设备的物模型来推测目标模拟设备对调试操作的响应对应的理论响应结果,而此处获取到的目标模拟设备对该调试操作的响应结果为实际响 应结果。如此可以通过对两者进行比对来得到对目标模拟设备的调试结果。Among them, the equipment automatic debugging device performs input processing on the physical model corresponding to the target simulation equipment according to the debugging type and debugging parameters, and after obtaining the state information of the first simulation equipment corresponding to the physical model after inputting parameters, it can further trigger the process in the equipment simulator. The target simulated device performs a debug operation corresponding to the debug type according to the debug parameters, and then obtains a response result of the target simulated device for the debug operation from the device simulator. Among them, it can be understood that the first simulation device state information corresponding to the target simulation device is the theoretical response result corresponding to the response of the target simulation device to the debugging operation estimated according to the physical model of the target simulation device, and the target simulation device obtained here The response result of the simulated device to the debugging operation is the actual response result. In this way, the debugging result of the target analog device can be obtained by comparing the two.
在一些实施例中,触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息,包括:In some embodiments, the target simulation device in the device simulator is triggered to perform a debugging operation corresponding to the debugging type, and the response information of the target simulation device for the debugging operation is obtained from the device simulator, including:
1、当调试类型包括设备控制功能调试时,向设备模拟器发送调试参数,以使得设备模拟器根据调试参数对目标模拟设备进行控制功能调试,并返回控制功能调试后目标模拟设备的第二寄存器状态信息;1. When the debugging type includes device control function debugging, send debugging parameters to the device simulator, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters, and return the second register of the target simulation device after the control function debugging status information;
2、接收设备模拟器返回的第二寄存器状态信息,得到第二模拟设备状态信息。2. Receive the status information of the second register returned by the device simulator, and obtain the status information of the second simulated device.
其中,在本申请实施例中,对于不同的调试类型,设备自动调试装置可以采用不同的方法来触发目标模拟设备根据调试参数执行调试类型对应的调试操作。如前所述,调试类型一般情况下可以分为设备控制功能调试、属性数据上报功能调试以及事件数据上报功能调试,其中属性数据上报功能调试和事件数据上报功能调试可以统一称之为数据上报功能调试。以此,本申请实施例分两种情况的调试类型,分别对设备自动调试装置触发目标模拟设备执行调试操作的方法进行描述。Wherein, in the embodiment of the present application, for different debugging types, the device automatic debugging device may use different methods to trigger the target simulation device to execute the debugging operation corresponding to the debugging type according to the debugging parameters. As mentioned above, debugging types can generally be divided into device control function debugging, attribute data reporting function debugging, and event data reporting function debugging, among which attribute data reporting function debugging and event data reporting function debugging can be collectively referred to as data reporting function debugging. In this way, the embodiment of the present application divides two types of debugging into two situations, and respectively describes the method for triggering the target simulation device to perform the debugging operation by the device automatic debugging device.
当调试类型为设备控制功能调试时,可以向设备模拟器发送模拟设备控制指令,该模拟设备控制指令包含了前述调试参数。调试参数中可以包括对模拟设备的具体控制的模块,以及对具体模块需要执行的具体控制操作信息。设备模拟器接收到设备自动调试装置发送的模拟设备控制指令后,便根据该指令中包含的调试参数对目标模拟设备进行控制,目标模拟设备执行上述控制后,自身的寄存器状态信息也会随之发生改变。设备模拟器可以进一步将目标模拟设备进行控制调整后的寄存器状态信息发送给设备自动调试装置,此处为与前述第一寄存器状态信息作区分,可以称之为第二寄存器状态信息。When the debugging type is device control function debugging, a simulated device control instruction may be sent to the device simulator, and the simulated device control instruction includes the aforementioned debugging parameters. The debugging parameters may include specific control modules for the simulated device, and specific control operation information that needs to be executed for specific modules. After the device simulator receives the simulation device control instruction sent by the device automatic debugging device, it controls the target simulation device according to the debugging parameters contained in the instruction. After the target simulation device executes the above control, its own register status information will also follow. changes happened. The device simulator can further send the controlled and adjusted register state information of the target simulated device to the device automatic debugging device, which can be called the second register state information here to distinguish it from the aforementioned first register state information.
设备自动调试装置接收到设备模拟器返回的第二寄存器状态信息后,根据该第二寄存器状态信息生成第二模拟设备状态信息。After receiving the second register status information returned by the device simulator, the device automatic debugging device generates second simulated device status information according to the second register status information.
在一些实施例中,向设备模拟器发送调试参数,包括:In some embodiments, sending debug parameters to the device emulator includes:
1.1、生成包含调试参数的调试请求,并将调试请求转化为目标模拟设备的通讯协议支持的目标调试请求;1.1. Generate a debugging request containing debugging parameters, and convert the debugging request into a target debugging request supported by the communication protocol of the target simulation device;
1.2、向设备模拟器发送目标调试请求。1.2. Send a target debugging request to the device simulator.
其中,在本申请实施例中,设备自动调试装置向设备模拟器发送调试参数,具体可以为通过调试请求的方式将调试参数发送给设备模拟器。具体地,设备自动调试装置可以先生成包含调试参数的调试请求,然后,设备自动调试装置可以将调试请求的数据格式以及通讯协议进行转化,转化为目标模拟设备的通讯协议支持的目标调试请求。具体地,设备自动调试装置可以先获取目标模拟设备对应的通讯协议,然后据此对包含调试参数的调试请求进行数据转换,得到目标调试请求。其中,设备自动调试装置将调试请求转换为目标调试请求的过程,可以采用预设的网关进行处理。Wherein, in the embodiment of the present application, the device automatic debugging device sends the debugging parameters to the device simulator, specifically, it may send the debugging parameters to the device simulator through a debugging request. Specifically, the device automatic debugging device can first generate a debugging request including debugging parameters, and then, the device automatic debugging device can convert the data format and communication protocol of the debugging request into a target debugging request supported by the communication protocol of the target simulation device. Specifically, the device automatic debugging device can first obtain the communication protocol corresponding to the target simulation device, and then perform data conversion on the debugging request including the debugging parameters to obtain the target debugging request. Wherein, the process of converting the debugging request into the target debugging request by the device automatic debugging device may be processed by a preset gateway.
生成目标调试请求后,设备自动调试装置可以进一步将该目标调试请求发送给设备模拟器,以使得设备模拟器根据目标调试请求发起对目标模拟设备的调试操作。After the target debugging request is generated, the device automatic debugging device may further send the target debugging request to the device simulator, so that the device simulator initiates a debugging operation on the target simulated device according to the target debugging request.
在一些实施例中,生成包含调试参数的调试请求,并将调试请求转化为目标模拟设备的通讯协议支持的目标调试请求,包括:In some embodiments, generating a debugging request including debugging parameters, and converting the debugging request into a target debugging request supported by a communication protocol of the target simulation device includes:
1.1.1、向物联平台发送包含调试参数的调试请求生成指令,调试请求生成指令指示物联平台根据调试参数确定目标模拟设备的第三寄存器状态信息,并指示物联平台根据第三寄存器状态信息返回目标模拟设备的通讯协议支持的目标调试请求;1.1.1. Send a debugging request generation command containing debugging parameters to the IoT platform, and the debugging request generation command instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, and instructs the IoT platform to determine the status information of the third register according to the third register status The information returns the target debugging request supported by the communication protocol of the target simulation device;
1.1.2、接收物联平台返回的目标调试请求。1.1.2. Receive the target debugging request returned by the IoT platform.
其中,在本申请实施例中,生成目标调试请求的过程,可以由物联平台执行。具体地,可以先向物联平台发送包含调试参数的调试请求生成指令,当物联平台接收到包含调试参数的调试请求生成指令后,根据调试参数确定给调试参数对物模型的具体控制操作,并将物模型的控制更改映射到对目标模拟设备的寄存器状态变更,得到目标模拟设备的第三寄存器状态信息。然后,物联平台根据该第三寄存器状态信息返回目标模拟设备的通讯协议支持的目标调试请求。在本实施例中,物联平台的物联网关可以获取目标模拟设备支持的通讯协议,并将包含第三寄存器状态信息的调试请求转换为目标调试请求。然后,物联平台再将目标调试请求返回给设备自动调试装置。Wherein, in the embodiment of the present application, the process of generating the target debugging request may be performed by the IoT platform. Specifically, it is possible to first send a debugging request generation command containing debugging parameters to the IoT platform. After receiving the debugging request generation command containing debugging parameters, the IoT platform determines the specific control operation for the object model based on the debugging parameters. and mapping the change of the control of the object model to the change of the register state of the target analog device to obtain the third register state information of the target analog device. Then, the IoT platform returns a target debugging request supported by the communication protocol of the target simulation device according to the state information of the third register. In this embodiment, the IoT gateway of the IoT platform can obtain the communication protocol supported by the target simulation device, and convert the debugging request including the status information of the third register into a target debugging request. Then, the IoT platform returns the target debugging request to the equipment automatic debugging device.
在一些实施例中,物联平台生成了上述包含第三寄存器状态信息的目标调试请求后,可以直接将目标调试请求发送给设备模拟器,以使得设备模拟器根据第三寄存器状态信息对目标模拟设备的寄存器状态进行调整。In some embodiments, after the IoT platform generates the target debugging request including the third register status information, it can directly send the target debugging request to the device simulator, so that the device simulator can simulate the target according to the third register status information. The register state of the device is adjusted.
在一些实施例中,触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息,还可以包括:In some embodiments, triggering the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtaining the response information of the target simulation device for the debugging operation from the device simulator may also include:
A、当调试类型包括数据上报功能调试时,向设备模拟器发送第一模拟设备状态信息,以使得设备模拟器根据第一模拟设备状态信息对目标模拟设备进行数据上报功能调试,并返回数据上报功能调试后目标模拟设备的第四寄存器状态信息;A. When the debugging type includes data reporting function debugging, send the first simulated device status information to the device simulator, so that the device simulator can perform data reporting function debugging on the target simulated device according to the first simulated device status information, and return data reporting The fourth register status information of the target analog device after functional debugging;
B、根据第四寄存器状态信息确定设备模拟器返回的上报数据。B. Determine the reported data returned by the device simulator according to the state information of the fourth register.
其中,当调试类型为数据上报功能调试时,具体可以为属性数据上报功能调试也可以为事件数据上报功能调试,设备自动调试装置可以将第一模拟设备状态信息发送给设备模拟器,设备模拟器接收到前述第一模拟设备状态信息后,可以根据第一模拟设备状态信息对目标模拟设备的寄存器状态信息进行调整,得到第四寄存器状态信息,该第四寄存器状态信息为目标模拟设备根据第一寄存器状态信息进行调整后的实际寄存器状态信息。然后,可以根据第一寄存器状态信息构造设备模拟器返回的上报数据。Wherein, when the debugging type is the debugging of the data reporting function, it may specifically be the debugging of the attribute data reporting function or the debugging of the event data reporting function. After receiving the aforementioned first analog device state information, the register state information of the target analog device can be adjusted according to the first analog device state information to obtain the fourth register state information, which is the target analog device according to the first Register status information Adjusted actual register status information. Then, the report data returned by the device simulator may be constructed according to the state information of the first register.
在一些实施例中,根据第四寄存器状态信息确定设备模拟器返回的上报数据,包括:In some embodiments, determining the reported data returned by the device simulator according to the fourth register state information includes:
B1、向物联平台发送上报数据获取请求;B1. Send a report data acquisition request to the IoT platform;
B2、接收物联平台根据上报数据获取请求返回的上报数据,上报数据为物联平台根据第四寄存器状态信息生成。B2. Receive the reported data returned by the IoT platform according to the reported data acquisition request, and the reported data is generated by the IoT platform according to the status information of the fourth register.
其中,在本申请实施例中,可以通过物联平台生成上报数据。具体地,设备自动调试装置可以向物联平台发送上报数据获取请求,该请求中可以包含第四寄存器状态信息。然后,物联平台可以将该第四寄存器状态信息映射到物模型的相关数据,生成上报数据。然后,物联平台进一步将生成的上报数据返回给设备自动调试装置。Wherein, in the embodiment of the present application, the reported data may be generated through the IoT platform. Specifically, the device automatic debugging device may send a report data acquisition request to the IoT platform, and the request may include the status information of the fourth register. Then, the Internet of Things platform can map the fourth register state information to relevant data of the object model to generate reported data. Then, the IoT platform further returns the generated reported data to the equipment automatic debugging device.
在一些实施例中,设备模拟器在根据接收到的第一模拟设备状态信息中的第一寄存器状态信息对目标模拟设备的寄存器状态进行调整后,物联平台可以通过物联网关实时扫描设备模拟器中目标模拟设备的实际寄存器状态信息,然后根据扫描得到的目标模拟设备的实际寄存器状态信息映射到物模型的相关数据,并构造该相关数据对应的上报数据。其中,当数据上报功能调试为属性数据上报功能调试时,物联平台根据第四寄存器状态信息映射得到物模型的属性数据;当数据上报功能调试为事件数据上报功能调试时,物联平台根据第四寄存器状态信息映射得到物模型的事件数据。然后,物联平台再进一步将上报数据返回给设备自动调试装置。In some embodiments, after the device simulator adjusts the register state of the target simulated device according to the first register state information in the received first simulated device state information, the IoT platform can scan the simulated device in real time through the Internet of Things The actual register state information of the target analog device in the device is mapped to the relevant data of the object model according to the actual register state information of the target analog device obtained by scanning, and the corresponding reporting data of the relevant data is constructed. Among them, when the debugging of the data reporting function is the debugging of the attribute data reporting function, the IoT platform obtains the attribute data of the object model according to the state information of the fourth register; when the debugging of the data reporting function is debugging of the event data reporting function, the IoT platform according to the first The state information of the four registers is mapped to the event data of the object model. Then, the IoT platform further returns the reported data to the equipment automatic debugging device.
步骤104,根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果。 Step 104, verifying the response information according to the verification reference information corresponding to the debugging type, and obtaining a verification result.
其中,在接收到设备模拟器返回的响应信息后,需要对该响应信息进行校验,并根据校 验结果确定目标模拟设备的调试结果。其中,对响应信息进行校验的校验参考信息可以根据调试类型进行确定,具体地,可以根据调试类型在第一模拟设备状态信息和调试参数中进行确定。当调试类型为设备控制功能调试时,确定校验参考信息为第一模拟设备状态信息;当调试类型为数据上报功能调试时,数据上报功能可以是属性数据上报功能也可以是事件数据上报功能,确定校验参考消息为调试参数。Among them, after receiving the response information returned by the device simulator, it is necessary to verify the response information, and determine the debugging result of the target simulation device according to the verification result. Wherein, the verification reference information for verifying the response information may be determined according to the debugging type, specifically, may be determined according to the debugging type in the status information of the first simulated device and the debugging parameters. When the debugging type is device control function debugging, determine that the verification reference information is the first simulated device status information; when the debugging type is data reporting function debugging, the data reporting function can be either an attribute data reporting function or an event data reporting function, Make sure to verify the reference message as a debugging parameter.
在一些实施例中,根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,包括:In some embodiments, the response information is verified according to the verification reference information corresponding to the debugging type, and the verification result is obtained, including:
1、将响应信息与调试类型对应的校验参考信息进行对比;1. Compare the response information with the verification reference information corresponding to the debugging type;
2、当响应信息与调试类型对应的校验参考信息一致时,确定校验结果为校验通过;2. When the response information is consistent with the verification reference information corresponding to the debugging type, it is determined that the verification result is passed;
3、当响应信息与调试类型对应的校验参考信息不一致时,确定校验结果为校验不通过。3. When the response information is inconsistent with the verification reference information corresponding to the debugging type, it is determined that the verification result is a verification failure.
在本申请实施例中,可以根据响应信息与调试类型对应的校验参考消息的对比结果来判定校验结果。如果响应信息和校验参考信息一致,则可以确定校验结果为校验通过;如果响应信息和校验参考信息不一致,则可以确定校验结果为校验不通过。In this embodiment of the present application, the verification result may be determined according to a comparison result between the response information and the verification reference message corresponding to the debugging type. If the response information is consistent with the verification reference information, it may be determined that the verification result is a verification pass; if the response information is inconsistent with the verification reference information, it may be determined that the verification result is a verification failure.
步骤105,根据校验结果输出目标模拟设备的调试结果。 Step 105, output the debugging result of the target simulation device according to the verification result.
其中,将设备模拟器返回的目标模拟设备的响应信息和调试类型对应的校验参考信息进行校验后,可以进一步根据校验结果确定目标模拟设备的调试结果。其中,当校验结果为校验通过时,确定目标模拟设备的响应与预期响应结果一致,则说明对目标模拟设备的调试结果为调试合格;当校验结果为校验不通过,则说明目标模拟设备的响应与预期响应并不一致,则说明对目标模拟设备的调试结果为调试不合格。Wherein, after verifying the response information of the target simulation device returned by the device simulator and the verification reference information corresponding to the debugging type, the debugging result of the target simulation device may be further determined according to the verification result. Among them, when the verification result is that the verification is passed, it is determined that the response of the target simulation device is consistent with the expected response result, which means that the debugging result of the target simulation device is qualified; when the verification result is that the verification is not passed, it means that the target If the response of the simulated device is not consistent with the expected response, it means that the debugging result of the target simulated device is unqualified for debugging.
根据上述描述可知,本申请实施例提供的设备自动调试方法,通过获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的模拟设备状态信息;触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和模拟设备状态信息中确定;根据校验结果输出目标模拟设备的调试结果。According to the above description, it can be seen that the device automatic debugging method provided by the embodiment of the present application obtains the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device, and the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; The debugging parameters are used to enter the physical model to obtain the simulated device status information corresponding to the physical model after the parameterized operation; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debug type, and obtain the target simulated device from the device simulator Response information for debugging operations; verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result. The verification reference information is determined from the debugging parameters and simulated device status information based on the debugging type; according to the verification result Output debug results for the target simulated device.
以此,本申请提供的设备调试方法,通过设备的物模型对调试指令进行解析,并联动设备模拟器生成的模拟设备,自动检测模拟设备对调试指令的响应结果,再结合物模型的解析结果对响应结果进行校验,从而自动对待调试设备对应的模拟设备进行调试,得到调试结果。该方法可以有效提升设备调试的效率。Therefore, the equipment debugging method provided by this application analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result. This method can effectively improve the efficiency of equipment debugging.
本申请还提供了一种设备调试方法,该方法可以使用于计算机设备中,该计算机设备可以为终端也可以为服务器,该计算机设备具体可以为设备调试器。如图3所示,为本申请提供的设备自动调试方法的另一流程示意图,方法具体包括:The present application also provides a device debugging method, which can be used in a computer device. The computer device can be a terminal or a server. Specifically, the computer device can be a device debugger. As shown in Figure 3, it is another schematic flow chart of the equipment automatic debugging method provided by this application, and the method specifically includes:
步骤201,计算机设备从物联平台获取设备列表并展示。 Step 201, the computer device obtains and displays the device list from the IoT platform.
其中,本申请提供的设备自动调试方法可以应用于智能交通系统中,具体可以应用于智能轨道交通系统中对轨道交通系统中的各类设备进行调试。其中,智能交通系统(Intelligent Traffic System,ITS)又称智能运输系统(Intelligent Transportation System),是将先进的科学技术(信息技术、计算机技术、数据通信技术、传感器技术、电子控制技术、自动控制理论、运筹学、人工智能等)有效地综合运用于交通运输、服务控制和车辆制造,加强车辆、道路、使用者三者之间的联系,从而形成一种保障安全、提高效率、改善环境、节约能源的综合运输系统。Wherein, the equipment automatic debugging method provided by the present application can be applied to the intelligent transportation system, specifically, it can be applied to the intelligent rail transportation system to debug all kinds of equipment in the rail transportation system. Among them, Intelligent Traffic System (Intelligent Traffic System, ITS), also known as Intelligent Transportation System (Intelligent Transportation System), is the combination of advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory , operations research, artificial intelligence, etc.) are effectively and comprehensively applied to transportation, service control, and vehicle manufacturing to strengthen the connection between vehicles, roads, and users, thereby forming a system that ensures safety, improves efficiency, improves the environment, and saves energy. Integrated transportation system for energy.
在本申请实施例中,对设备进行调试应用到设备模拟器技术,在对设备进行自动调试之前,可以先将厂家提供的每台设备的设备点表(寄存器状态表)导入到设备模拟器中,在设备模拟器中生成每台设备对应的模拟设备。然后,设备模拟器根据每个模拟设备的点表信息在物联平台上进行注册。另外,还可以根据设备的功能、属性和提供的服务等信息在物联平台上构建并存储每一设备对应的物模型。In the embodiment of this application, the device debugging is applied to the device simulator technology. Before the device is automatically debugged, the device point table (register status table) of each device provided by the manufacturer can be imported into the device simulator , generate a simulated device corresponding to each device in the device simulator. Then, the device simulator registers on the IoT platform according to the point table information of each simulated device. In addition, an object model corresponding to each device can also be constructed and stored on the IoT platform based on the device's functions, attributes, and services provided.
在发起设备调试之前,计算机设备可以从物联平台上获取到设备列表信息,然后,计算机设备可以将设备列表信息在展示界面上进行展示,以便用户在设备列表中选取需要进行调试的目标设备。如图4a所示,为本申请中提供的设备列表示意图,在计算机设备的展示界面10上,展示了设备列表11,用户可以在设备列表11中选择需要进行调试的设备。其中,可以理解的是,此处的设备列表11只显示了一个层级的列表,具体实施时,设备列表可以具有多个层级。例如在轨道交通领域中,设备可以分为多条线路的设备,例如一号线、二号线等;线路下一层可以具体分为多个车站,例如横沥站、市广路站等;每个车站的下一层,可以具体细分为不同的系统,例如广播系统、门禁系统等;系统的下一层,又可以细分为不同的设备。即设备列表可以具有多个层级,用户可以逐层选择直至选中需要进行调试的具体设备。此外,展示界面10中还可以包括滚动控件,通过滚动控件可以使得设备列表滚动展示。Before initiating device debugging, the computer device can obtain the device list information from the IoT platform, and then the computer device can display the device list information on the display interface, so that the user can select the target device that needs to be debugged in the device list. As shown in FIG. 4 a , which is a schematic diagram of a device list provided in this application, a device list 11 is displayed on a display interface 10 of a computer device, and a user can select a device to be debugged in the device list 11 . Wherein, it can be understood that the device list 11 here only shows a list of one level, and in specific implementation, the device list may have multiple levels. For example, in the field of rail transit, equipment can be divided into equipment for multiple lines, such as Line 1, Line 2, etc.; the lower layer of the line can be divided into multiple stations, such as Hengli Station, Shiguang Road Station, etc.; The lower layer of each station can be subdivided into different systems, such as broadcasting system, access control system, etc.; the lower layer of the system can be subdivided into different devices. That is, the device list can have multiple levels, and the user can select layer by layer until the specific device that needs to be debugged is selected. In addition, the display interface 10 may further include a scroll control, and the device list may be scrolled and displayed through the scroll control.
步骤202,计算机设备从物联平台获取每一设备的物模型。 Step 202, the computer device obtains the object model of each device from the IoT platform.
其中,计算机设备可以进一步从物联平台上获取到每一设备对应的物模型。其中,物模型为设备的数字化抽象描述,将物理空间的实体设备在云端进行格式化的表示。那么,获取么一设备对应的物模型,即获取每一设备对应的描述数据。获取到了设备的物模型,便获取到了设备相应的描述信息。每一设备对应的物模型,与其在展示界面上展示的设备控件之间一一对应。Wherein, the computer device can further obtain the object model corresponding to each device from the IoT platform. Among them, the object model is a digital abstract description of the device, which is a formatted representation of the physical device in the physical space on the cloud. Then, obtaining the object model corresponding to any device means obtaining the description data corresponding to each device. After the object model of the device is obtained, the corresponding description information of the device is obtained. The object model corresponding to each device has a one-to-one correspondence with the device controls displayed on the display interface.
步骤203,计算机设备接收针对目标模拟设备的设备调试指令。 Step 203, the computer device receives a device debugging instruction for the target simulated device.
在本申请实施例中,用户可以在计算机设备的展示界面上展示的设备列表中选择需要进行调试的目标设备,并输入针对该目标设备的调试类型以及调试参数。本申请实施例中采用模拟设备来模拟真实设备的运行情况,因此,上述针对目标设备的设备调试指令具体可以为针对目标设备对应的目标模拟设备的设备调试指令。In the embodiment of the present application, the user may select a target device to be debugged from the device list displayed on the display interface of the computer device, and input a debugging type and debugging parameters for the target device. In the embodiment of the present application, a simulated device is used to simulate the operation of a real device. Therefore, the above-mentioned device debugging instruction for the target device may specifically be a device debugging instruction for a target simulated device corresponding to the target device.
当用户在设备列表中选择了目标模拟设备后,可以在展示界面上弹出调试类型选择界面,在调试类型选择界面上可以展示如下三个类型选择控件:设备控制功能调试、属性数据上报功能调试以及事件数据上报功能调试。用户选择任意一个调试类型后,可以进一步显示该调试类型对应的调试参数设置界面。例如,如图4b所示,为属性数据上报功能调试对应的调试参数设置界面,在该调试参数设置界面20中,用户可以输入调试任务名称,也可以选择需要进行属性数据修改的具体线路、车站以及子系统,选中后可以点击确定控件以进入具体的属性数据输入界面,用户可以进一步在属性数据输入界面中输入需要进行设置的具体属性值。可以理解的是,此处属性数据上报功能调试只是调试类型中的一个示例,当调试类型为其他类型时,同样可以按照上述方式进行调试参数设置。When the user selects the target analog device in the device list, the debugging type selection interface can pop up on the display interface, and the following three types of selection controls can be displayed on the debugging type selection interface: device control function debugging, attribute data reporting function debugging, and Event data reporting function debugging. After the user selects any debugging type, the debugging parameter setting interface corresponding to the debugging type can be further displayed. For example, as shown in Figure 4b, it is the debugging parameter setting interface corresponding to the attribute data reporting function debugging. In the debugging parameter setting interface 20, the user can input the name of the debugging task, and can also select the specific line and station that need to modify the attribute data. As well as the subsystem, after selection, the OK control can be clicked to enter the specific attribute data input interface, and the user can further input the specific attribute value to be set in the attribute data input interface. It can be understood that the debugging of the attribute data reporting function here is just an example of the debugging type. When the debugging type is other types, the debugging parameter setting can also be performed in the above manner.
调试参数设置完成后,计算机设备便可以根据用户输入的调试类型和调试参数确定对目标模拟设备进行调试的设备调试指令。After the debugging parameters are set, the computer device can determine the device debugging instructions for debugging the target analog device according to the debugging type and the debugging parameters input by the user.
步骤204,当调试类型为设备控制功能调试时,计算机设备根据调试参数向物联平台中目标模拟设备对应的物模型发起调试控制。 Step 204, when the debugging type is device control function debugging, the computer device initiates debugging control to the object model corresponding to the target simulation device in the IoT platform according to the debugging parameters.
其中,在本申请实施例中,对于不同的调试类型,其具体调试方式并不相同。具体地,当调试类型为设备控制功能调试时,计算机设备会根据调试参数中的控制参数向物联平台发 起针对目标模拟设备对应的物模型的调试控制。物联平台接收到该调试控制对应的指令后,根据调试参数对物模型进行解析,以确定对目标模拟设备进行控制的寄存器状态信息。然后,物联平台再根据该寄存器状态信息向设备模拟器中的目标模拟设备发送寄存器状态修改指令,以使得设备模拟器将目标模拟设备的寄存器状态进行修改。Wherein, in the embodiment of the present application, specific debugging methods are different for different debugging types. Specifically, when the debugging type is device control function debugging, the computer device will initiate the debugging control of the object model corresponding to the target simulation device to the IoT platform according to the control parameters in the debugging parameters. After receiving the instruction corresponding to the debugging control, the IoT platform analyzes the object model according to the debugging parameters to determine the register status information for controlling the target analog device. Then, the IoT platform sends a register state modification instruction to the target simulation device in the device simulator according to the register state information, so that the device simulator modifies the register state of the target simulation device.
步骤205,计算机设备获取设备模拟器中目标模拟设备响应调试控制后的第一寄存器状态信息。 Step 205, the computer device obtains the first register state information after the target simulated device responds to the debugging control in the device simulator.
其中,在设备模拟器根据物联平台发送的寄存器状态信息对目标模拟设备的寄存器状态进行修改后,计算机设备可以进一步获取设备模拟器中的目标模拟设备当前的实际寄存器状态信息,记为第一寄存器状态信息。Among them, after the device simulator modifies the register status of the target simulation device according to the register status information sent by the IoT platform, the computer device can further obtain the current actual register status information of the target simulation device in the device simulator, which is recorded as the first Register status information.
步骤206,计算机设备采用入参后的物模型映射得到的寄存器状态信息对第一寄存器状态信息进行校验,得到校验结果。 Step 206, the computer device verifies the first register state information by using the register state information obtained from the input object model mapping, and obtains a verification result.
其中,计算机设备可以根据模拟设备的寄存器状态与物模型之间的关联规则,将入参后的物模型转化为对应的寄存器状态信息,此处可以称之为理论寄存器状态信息。Among them, the computer device can convert the input object model into corresponding register state information according to the association rules between the register state of the analog device and the object model, which can be referred to as theoretical register state information here.
然后,计算机设备可以进一步采用理论寄存器状态信息对目标模拟设备实际的第一寄存器状态信息进行校验。若两者一致,则确定校验结果为校验合格,若两者不一致,则确定校验结果为校验不合格。Then, the computer device may further use the theoretical register state information to verify the actual first register state information of the target analog device. If the two are consistent, it is determined that the verification result is qualified, and if the two are not consistent, it is determined that the verification result is unqualified.
步骤207,当调试类型为数据上报功能调试时,计算机设备根据调试参数对物模型进行入参,得到入参后的物模型对应的第二寄存器状态信息。 Step 207, when the debugging type is debugging of the data reporting function, the computer device inputs the object model according to the debugging parameters, and obtains the second register state information corresponding to the object model after inputting the parameters.
其中,当调试类型为属性数据上报功能调试或者事件数据上报功能调试时,两者的调试过程一致。因此在本申请实施例中,统一采用数据上报功能调试来详细说明具体过程。Wherein, when the debugging type is the debugging of the attribute data reporting function or the debugging of the event data reporting function, the debugging processes of the two are consistent. Therefore, in the embodiment of the present application, the debugging of the data reporting function is uniformly used to describe the specific process in detail.
当调试类型为数据上报功能调试时,计算机设备可以根据调试参数对目标模拟设备对应的物模型进行入参操作,将物模型的属性或者事件修改为调试参数对应的数值。然后,根据模拟设备寄存器状态与物模型的关联规则确定入参后的物模型对应的寄存器状态信息,此处可以称之为第二寄存器状态信息。When the debugging type is debugging with data reporting function, the computer device can perform input operations on the physical model corresponding to the target simulation device according to the debugging parameters, and modify the attributes or events of the physical model to the values corresponding to the debugging parameters. Then, according to the association rule between the analog device register state and the object model, the register state information corresponding to the input object model is determined, which may be referred to as the second register state information herein.
步骤208,计算机设备根据第二寄存器状态信息发起对设备模拟器中目标模拟设备的寄存器状态的修改。 Step 208, the computer device initiates modification of the register state of the target simulated device in the device emulator according to the second register state information.
进一步地,计算机设备向设备模拟器发送包含上述第二寄存器状态信息的调试指令,使得设备模拟器根据第二寄存器状态信息对目标模拟设备的寄存器状态进行修改。设备模拟器在接收到该调试指令后,便可以根据该调试指令中包含的第二寄存器状态信息对目标模拟设备的寄存器状态信息进行修改。Further, the computer device sends a debugging instruction including the second register state information to the device simulator, so that the device simulator modifies the register state of the target simulated device according to the second register state information. After receiving the debugging instruction, the device simulator can modify the register state information of the target simulated device according to the second register state information contained in the debugging instruction.
步骤209,计算机设备接收物联平台返回的上报数据,并根据调试参数对上报数据进行校验,得到校验结果。 Step 209, the computer device receives the reported data returned by the IoT platform, and verifies the reported data according to the debugging parameters to obtain a verification result.
其中,在本申请实施例中,设备模拟器在对目标模拟设备的寄存器状态进行修改后,物联平台可以采用物联网关实时扫描目标模拟设备的寄存器状态,得到目标模拟设备的实际寄存器状态信息。物联平台根据寄存器状态信息与物模型之间的关联规则,将目标模拟设备的实际寄存器状态信息转化为相应的响应数据,并根据该响应数据生成上报数据。Among them, in the embodiment of the present application, after the device simulator modifies the register status of the target simulation device, the IoT platform can scan the register status of the target simulation device in real time using the IoT gateway to obtain the actual register status information of the target simulation device . According to the association rules between the register state information and the object model, the IoT platform converts the actual register state information of the target analog device into corresponding response data, and generates reported data based on the response data.
进一步地,物联平台将生成的上报数据返回给计算机设备,计算机设备根据调试参数中的相应数据来校验上报数据中的相应数据。当两者一致时,确定校验结果合格;若两者不一致,则确定校验结果不合格。Further, the IoT platform returns the generated reported data to the computer device, and the computer device verifies the corresponding data in the reported data according to the corresponding data in the debugging parameters. When the two are consistent, it is determined that the verification result is qualified; if the two are not consistent, it is determined that the verification result is unqualified.
步骤210,计算机设备根据校验结果确定对目标模拟设备的调试结果。 Step 210, the computer device determines the debugging result of the target simulation device according to the verification result.
其中,在确定校验结果后,便可以确定对目标模拟设备的调试是否成功,即目标模拟设 备的相应功能是否正常。然后,再进一步结合目标模拟设备的相关信息以及调试过程的相关信息生成目标模拟设备的完整的调试结果,其中,该调试结果也是目标模拟设备对应的真实设备的调试结果。如图4c所示,为本申请提供的模拟设备调试结果的示意图。Wherein, after the verification result is determined, it can be determined whether the debugging of the target simulation device is successful, that is, whether the corresponding function of the target simulation device is normal. Then, a complete debugging result of the target simulation device is generated by further combining the relevant information of the target simulation device and the relevant information of the debugging process, wherein the debugging result is also a debugging result of a real device corresponding to the target simulation device. As shown in Figure 4c, it is a schematic diagram of the debugging results of the simulation equipment provided by this application.
如图5a所示,为本申请提供的设备控制功能调试的交互时序图,如图所示,设备模拟器先录入厂家提供的记载模拟设备寄存器状态信息的点表,生成每个设备对应的模拟设备。然后,设备模拟器向物联平台发送设备注册请求,物联平台接收到设备模拟器发送的设备注册请求后,在物联平台中对该模拟设备进行注册。计算机设备在对模拟设备进行调试前,先向物联平台发送模拟设备的设备列表以及每一模拟设备的物模型的获取请求,接收到该请求后,物联平台向计算机设备发送设备列表信息以及每一模拟设备对应的物模型。As shown in Figure 5a, the interactive timing diagram for the debugging of device control functions provided by this application, as shown in the figure, the device simulator first enters the point table provided by the manufacturer to record the status information of the simulated device registers, and generates the corresponding simulation of each device. equipment. Then, the device simulator sends a device registration request to the IoT platform, and the IoT platform registers the simulated device in the IoT platform after receiving the device registration request sent by the device simulator. Before the computer device debugs the simulated device, it first sends the device list of the simulated device and the acquisition request of the physical model of each simulated device to the IoT platform. After receiving the request, the IoT platform sends the device list information and An object model for each simulated device.
然后,计算机设备接收用户输入的针对目标模拟设备的调试指令,调试指令中包含了针对目标模拟设备的调试参数,然后根据该调试参数向物联平台发送设备调试指令,即根据统一的数据传输协议向物联平台中的目标模拟设备对应的物模型发起控制。物联平台接收到该设备调试指令后,确定根据调试指令中的调试参数确定入参后的物模型,然后根据设备寄存器状态和物模型之间的关联规则,确定入参后的物模型对应的目标模拟设备的理论寄存器状态信息。然后,物联平台向设备模拟器发送该理论寄存器状态信息,设备模拟器接收到该理论寄存器状态信息后,据此对目标模拟设备的寄存器状态信息进行修改。进一步地,设备模拟器向计算机设备发送修改后的目标模拟设备的实际寄存器状态信息。计算机设备获取理论寄存器状态信息后,采用理论寄存器状态信息对实际寄存器状态信息进行校验,并根据校验结果生成调试结果并输出。Then, the computer device receives the debugging instruction for the target analog device input by the user. The debugging instruction contains the debugging parameters for the target analog device, and then sends the device debugging instruction to the IoT platform according to the debugging parameters, that is, according to the unified data transmission protocol Initiate control to the object model corresponding to the target simulation device in the IoT platform. After receiving the debugging command of the device, the IoT platform determines the parameterized object model according to the debugging parameters in the debugging command, and then determines the object model corresponding to the parameterized object model according to the association rules between the device register status and the physical model. Theoretical register state information for the target simulated device. Then, the IoT platform sends the theoretical register state information to the device simulator, and the device simulator modifies the register state information of the target simulated device accordingly after receiving the theoretical register state information. Further, the device simulator sends the modified actual register state information of the target simulated device to the computer device. After the computer device obtains the theoretical register state information, it uses the theoretical register state information to verify the actual register state information, and generates and outputs a debugging result according to the verification result.
如图5b所示,为本申请提供的属性数据上报功能调试的交互时序图,如图所示,设备模拟器先录入厂家提供的记载模拟设备寄存器状态信息的点表,生成每个设备对应的模拟设备。然后,设备模拟器向物联平台发送设备注册请求,物联平台接收到设备模拟器发送的设备注册请求后,在物联平台中对该模拟设备进行注册。计算机设备在对模拟设备进行调试前,先向物联平台发送模拟设备的设备列表以及每一模拟设备的物模型的获取请求,接收到该请求后,物联平台向计算机设备发送设备列表信息以及每一模拟设备对应的物模型。As shown in Figure 5b, the interactive timing diagram for the debugging of the attribute data reporting function provided by this application. Analog device. Then, the device simulator sends a device registration request to the IoT platform, and the IoT platform registers the simulated device in the IoT platform after receiving the device registration request sent by the device simulator. Before the computer device debugs the simulated device, it first sends the device list of the simulated device and the acquisition request of the physical model of each simulated device to the IoT platform. After receiving the request, the IoT platform sends the device list information and An object model for each simulated device.
然后,计算机设备接收用户输入的针对目标模拟设备的调试指令,调试指令中包含了针对目标模拟设备的调试参数。计算机设备根据该调试参数对目标模拟设备对应的物模型进行入参,并确定入参后的物模型对应的理论寄存器状态信。然后,计算机设备向设备模拟器发送包含该理论寄存器状态信息的设备调试指令。设备模拟器在接收到计算机设备发送的设备调试指令后,根据设备调试指令中包含的理论寄存器状态信息修改目标模拟设备的寄存器状态,并将修改后的实际寄存器状态信息发送给物联平台。物联平台根据模拟设备寄存器状态信息与物模型的关联规则将实际寄存器状态信息映射为物模型状态,并根据物模型状态构建属性上报消息。然后,物联平台将属性上报消息发送给计算机设备,计算机设备根据调试参数中设置的属性值校验属性上报消息中的属性值,并根据校验结果生成调试结果以及输出调试结果。Then, the computer device receives the debugging instruction for the target simulation device input by the user, and the debugging instruction includes the debugging parameters for the target simulation device. The computer device inputs the physical model corresponding to the target simulation device according to the debugging parameters, and determines the theoretical register status information corresponding to the physical model after parameter input. Then, the computer device sends a device debugging instruction including the theoretical register state information to the device simulator. After receiving the device debugging instruction sent by the computer device, the device simulator modifies the register state of the target simulation device according to the theoretical register state information contained in the device debugging instruction, and sends the modified actual register state information to the IoT platform. The IoT platform maps the actual register state information to the state of the object model according to the association rules between the register state information of the simulated device and the object model, and constructs an attribute report message according to the state of the object model. Then, the IoT platform sends the attribute report message to the computer device, and the computer device verifies the attribute value in the attribute report message according to the attribute value set in the debugging parameter, and generates and outputs the debugging result according to the verification result.
如图5c所示,为本申请提供的事件数据上报功能调试的交互时序图,如图所示,设备模拟器先录入厂家提供的记载模拟设备寄存器状态信息的点表,生成每个设备对应的模拟设备。然后,设备模拟器向物联平台发送设备注册请求,物联平台接收到设备模拟器发送的设备注册请求后,在物联平台中对该模拟设备进行注册。计算机设备在对模拟设备进行调试前,先向物联平台发送模拟设备的设备列表以及每一模拟设备的物模型的获取请求,接收到该请求后,物联平台向计算机设备发送设备列表信息以及每一模拟设备对应的物模型。As shown in Figure 5c, the interactive timing diagram for debugging the event data reporting function provided by this application. Analog device. Then, the device simulator sends a device registration request to the IoT platform, and the IoT platform registers the simulated device in the IoT platform after receiving the device registration request sent by the device simulator. Before the computer device debugs the simulated device, it first sends the device list of the simulated device and the acquisition request of the physical model of each simulated device to the IoT platform. After receiving the request, the IoT platform sends the device list information and An object model for each simulated device.
然后,计算机设备接收用户输入的针对目标模拟设备的调试指令,调试指令中包含了针对目标模拟设备的调试参数。计算机设备根据该调试参数对目标模拟设备对应的物模型进行入参,并确定入参后的物模型对应的理论寄存器状态信。然后,计算机设备向设备模拟器发送包含该理论寄存器状态信息的设备调试指令。设备模拟器在接收到计算机设备发送的设备调试指令后,根据设备调试指令中包含的理论寄存器状态信息修改目标模拟设备的寄存器状态,并将修改后的实际寄存器状态信息发送给物联平台。物联平台根据模拟设备寄存器状态信息与物模型的关联规则将实际寄存器状态信息映射为物模型状态,并根据物模型状态构建事件上报消息。然后,物联平台将事件上报消息发送给计算机设备,计算机设备根据调试参数中设置的事件值校验事件上报消息中的事件值,并根据校验结果生成调试结果以及输出调试结果。Then, the computer device receives the debugging instruction for the target simulation device input by the user, and the debugging instruction includes the debugging parameters for the target simulation device. The computer device inputs the physical model corresponding to the target simulation device according to the debugging parameters, and determines the theoretical register status information corresponding to the physical model after parameter input. Then, the computer device sends a device debugging instruction including the theoretical register state information to the device simulator. After receiving the device debugging instruction sent by the computer device, the device simulator modifies the register state of the target simulation device according to the theoretical register state information contained in the device debugging instruction, and sends the modified actual register state information to the IoT platform. The IoT platform maps the actual register state information to the state of the object model according to the association rules between the register state information of the simulated device and the object model, and constructs an event reporting message according to the state of the object model. Then, the IoT platform sends the event report message to the computer device, and the computer device verifies the event value in the event report message according to the event value set in the debugging parameter, and generates and outputs a debugging result according to the verification result.
根据上述描述可知,本申请实施例提供的设备自动调试方法,通过获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的模拟设备状态信息;触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和模拟设备状态信息中确定;根据校验结果输出目标模拟设备的调试结果。According to the above description, it can be seen that the device automatic debugging method provided by the embodiment of the present application obtains the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device, and the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; The debugging parameters are used to enter the physical model to obtain the simulated device status information corresponding to the physical model after the parameterized operation; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debug type, and obtain the target simulated device from the device simulator Response information for debugging operations; verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result. The verification reference information is determined from the debugging parameters and simulated device status information based on the debugging type; according to the verification result Output debug results for the target simulated device.
以此,本申请提供的设备调试方法,通过设备的物模型对调试指令进行解析,并联动设备模拟器生成的模拟设备,自动检测模拟设备对调试指令的响应结果,再结合物模型的解析结果对响应结果进行校验,从而自动对待调试设备对应的模拟设备进行调试,得到调试结果。该方法可以有效提升设备调试的效率。Therefore, the equipment debugging method provided by this application analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result. This method can effectively improve the efficiency of equipment debugging.
为了更好地实施以上方法,本申请实施例还提供一种设备自动调试装置,该设备调试装置可以集成在终端或服务器中。In order to better implement the above method, an embodiment of the present application further provides a device automatic debugging device, and the device debugging device may be integrated in a terminal or a server.
例如,如图6所示,为本申请实施例提供的设备调试装置的结构示意图,该设备调试装置可以包括获取单元301、处理单元302、触发单元303、校验单元304以及输出单元305,如下:For example, as shown in FIG. 6, it is a schematic structural diagram of a device debugging device provided in the embodiment of the present application. The device debugging device may include an acquisition unit 301, a processing unit 302, a trigger unit 303, a verification unit 304, and an output unit 305, as follows :
获取单元301,用于获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;An acquisition unit 301, configured to acquire a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, where the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type;
处理单元302,用于根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;The processing unit 302 is configured to perform an input operation on the object model according to the debugging parameters, so as to obtain the first simulation device status information corresponding to the object model after the input operation;
触发单元303,用于触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;The trigger unit 303 is configured to trigger the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtain the response information of the target simulation device for the debugging operation from the device simulator;
校验单元304,用于根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和第一模拟设备状态信息中确定;The verification unit 304 is configured to verify the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, and the verification reference information is determined from the debugging parameters and the status information of the first simulated device based on the debugging type;
输出单元305,用于根据校验结果输出目标模拟设备的调试结果。The output unit 305 is configured to output the debugging result of the target simulation device according to the verification result.
在一些实施例中,处理单元,包括:In some embodiments, the processing unit includes:
处理子单元,用于根据调试参数对物模型进行入参操作,得到入参后的物模型;The processing sub-unit is used to perform input operation on the object model according to the debugging parameters, and obtain the object model after input parameters;
转化子单元,用于根据预设映射关系表将入参后的物模型转化成目标模拟设备的第一寄存器状态信息,得到第一模拟设备状态信息,预设映射关系表包括物模型与寄存器状态信息之间的映射关系。The conversion subunit is used to convert the input object model into the first register status information of the target analog device according to the preset mapping relationship table, and obtain the first analog device status information. The preset mapping relationship table includes the object model and the register status Mapping relationship between information.
在一些实施例中,处理子单元,包括;In some embodiments, the processing subunit includes;
第一处理模块,用于当调试类型为设备控制功能调试时,将调试参数填充至物模型的预设区域,得到入参后的物模型;The first processing module is used to fill the debugging parameters into the preset area of the physical model when the debugging type is equipment control function debugging, and obtain the physical model after entering the parameters;
第二处理模块,用于当调试类型为属性数据上报功能调试时,按照调试参数对物模型的相应属性值进行修改,得到入参后的物模型;The second processing module is used to modify the corresponding attribute values of the object model according to the debugging parameters when the debugging type is attribute data reporting function debugging, so as to obtain the object model after inputting parameters;
第三处理模块,用于当调试类型为事件数据上报功能调试时,按照调试参数对物模型的相应事件值进行修改,得到入参后的物模型。The third processing module is used to modify the corresponding event value of the object model according to the debugging parameters when the debugging type is event data reporting function debugging, so as to obtain the object model after inputting parameters.
在一些实施例中,校验单元,包括:In some embodiments, the verification unit includes:
对比子单元,用于将响应信息与调试类型对应的校验参考信息进行对比;The comparison subunit is used to compare the response information with the verification reference information corresponding to the debugging type;
第一确定子单元,用于当响应信息与调试类型对应的校验参考信息一致时,确定校验结果为校验通过;The first determination subunit is configured to determine that the verification result is a verification pass when the response information is consistent with the verification reference information corresponding to the debugging type;
第二确定子单元,用于当响应信息与调试类型对应的校验参考信息不一致时,确定校验结果为校验不通过。The second determination subunit is configured to determine that the verification result is a verification failure when the response information is inconsistent with the verification reference information corresponding to the debugging type.
在一些实施例中,获取单元,包括:In some embodiments, the acquisition unit includes:
第一获取子单元,用于从物联平台获取模拟设备信息并显示模拟设备列表;The first obtaining subunit is used to obtain simulated device information from the IoT platform and display a list of simulated devices;
显示子单元,用于响应于针对模拟设备列表中目标模拟设备的选择操作,显示目标模拟设备的调试参数设置界面;The display subunit is used to display the debugging parameter setting interface of the target analog device in response to the selection operation of the target analog device in the simulated device list;
生成子单元,用于根据调试参数设置界面接收到的调试参数生成针对目标模拟设备的设备调试指令。A generating subunit is used to generate device debugging instructions for the target analog device according to the debugging parameters received by the debugging parameter setting interface.
在一些实施例中,触发单元,包括:In some embodiments, the trigger unit includes:
第一发送子单元,用于当调试类型包括设备控制功能调试时,向设备模拟器发送调试参数,以使得设备模拟器根据调试参数对目标模拟设备进行控制功能调试,并返回控制功能调试后目标模拟设备的第二寄存器状态信息;The first sending subunit is used to send debugging parameters to the device simulator when the debugging type includes device control function debugging, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters, and return the target after the control function debugging second register state information of the simulated device;
接收子单元,用于接收设备模拟器返回的第二寄存器状态信息,得到第二模拟设备状态信息;The receiving subunit is configured to receive the second register state information returned by the device simulator, and obtain the second simulated device state information;
校验单元,还用于:Calibration unit, also used for:
根据第一模拟设备状态信息对第二模拟设备状态信息进行校验。The status information of the second simulated device is checked according to the status information of the first simulated device.
在一些实施例中,发送子单元,包括;In some embodiments, the sending subunit includes;
生成模块,用于生成包含调试参数的调试请求,并将调试请求转化为目标模拟设备的通讯协议支持的目标调试请求;A generating module, configured to generate a debugging request including debugging parameters, and convert the debugging request into a target debugging request supported by a communication protocol of the target simulation device;
第一发送模块,用于向设备模拟器发送目标调试请求。The first sending module is configured to send a target debugging request to the device simulator.
在一些实施例中,生成模块,包括;In some embodiments, the generating module includes;
发送子模块,用于向物联平台发送包含调试参数的调试请求生成指令,调试请求生成指令指示物联平台根据调试参数确定目标模拟设备的第三寄存器状态信息,并指示物联平台根据第三寄存器状态信息返回目标模拟设备的通讯协议支持的目标调试请求;The sending sub-module is used to send a debugging request generation command containing debugging parameters to the IoT platform, and the debugging request generation command instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, and instructs the IoT platform to determine the third register status information of the target simulation device according to the third The register status information returns the target debugging request supported by the communication protocol of the target analog device;
接收子模块,用于接收物联平台返回的目标调试请求。The receiving sub-module is used to receive the target debugging request returned by the IoT platform.
在一些实施例中,触发单元,包括:In some embodiments, the trigger unit includes:
第二发送子单元,用于当调试类型包括数据上报功能调试时,向设备模拟器发送第一模拟设备状态信息,以使得设备模拟器根据第一模拟设备状态信息对目标模拟设备进行数据上报功能调试,并返回数据上报功能调试后目标模拟设备的第四寄存器状态信息;The second sending subunit is used to send the first simulated device state information to the device simulator when the debugging type includes data reporting function debugging, so that the device simulator performs the data reporting function on the target simulated device according to the first simulated device state information Debug, and return the status information of the fourth register of the target analog device after the data reporting function is debugged;
第三确定子单元,用于根据第四寄存器状态信息确定设备模拟器返回的上报数据;The third determining subunit is used to determine the reported data returned by the device simulator according to the status information of the fourth register;
校验单元,还用于:Calibration unit, also used for:
根据调试参数对上报数据进行校验。Verify the reported data according to the debugging parameters.
在一些实施例中,第三确定子单元,包括:In some embodiments, the third determining subunit includes:
第二发送模块,用于向物联平台发送上报数据获取请求;The second sending module is used to send the reported data acquisition request to the IoT platform;
接收模块,用于接收物联平台根据上报数据获取请求返回的上报数据,上报数据为物联平台根据第四寄存器状态信息生成。The receiving module is configured to receive the reported data returned by the IoT platform according to the reported data acquisition request, and the reported data is generated by the IoT platform according to the status information of the fourth register.
在一些实施例中,设备自动调试装置,还包括;In some embodiments, the equipment automatic debugging device also includes;
第二获取子单元,用于从物联平台获取每一模拟设备对应的物模型;The second obtaining subunit is used to obtain the object model corresponding to each simulation device from the Internet of Things platform;
第四确定子单元,用于根据预设映射关系表确定每一模拟设备对应的理论寄存器状态信息;The fourth determination subunit is used to determine the theoretical register status information corresponding to each analog device according to the preset mapping relationship table;
第三获取子单元,用于从设备模拟器中获取每一模拟设备对应的实际寄存器状态信息;The third obtaining subunit is used to obtain the actual register status information corresponding to each simulated device from the device simulator;
校验子单元,用于根据理论寄存器状态信息与实际寄存器状态信息的比对结果对每一模拟设备的物模型进行校验。The verification subunit is used to verify the physical model of each simulated device according to the comparison result of the theoretical register state information and the actual register state information.
具体实施时,以上各个单元可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现,以上各个单元的具体实施可参见前面的方法实施例,在此不再赘述。During specific implementation, each of the above units may be implemented as an independent entity, or may be combined arbitrarily as the same or several entities. The specific implementation of each of the above units may refer to the previous method embodiments, and will not be repeated here.
根据上述描述可知,本申请实施例提供的设备调试装置,通过获取单元301获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;处理单元302根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的模拟设备状态信息;触发单元303触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;校验单元304根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和模拟设备状态信息中确定;输出单元305根据校验结果输出目标模拟设备的调试结果。According to the above description, it can be seen that the device debugging device provided by the embodiment of the present application obtains the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device through the acquisition unit 301, and the device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type The processing unit 302 performs an input operation on the object model according to the debugging parameters, so as to obtain the simulated device status information corresponding to the object model after the input operation; the trigger unit 303 triggers the target analog device in the device simulator to perform a debugging operation corresponding to the debugging type, and Obtain the response information of the target simulation device for the debugging operation from the device simulator; the verification unit 304 verifies the response information according to the verification reference information corresponding to the debugging type, and obtains the verification result, and the verification reference information is based on the debugging type from the debugging parameters and the status information of the simulated device; the output unit 305 outputs the debugging result of the target simulated device according to the verification result.
以此,本申请提供的设备调试方法,通过设备的物模型对调试指令进行解析,并联动设备模拟器生成的模拟设备,自动检测模拟设备对调试指令的响应结果,再结合物模型的解析结果对响应结果进行校验,从而自动对待调试设备对应的模拟设备进行调试,得到调试结果。该方法可以有效提升设备调试的效率。Therefore, the equipment debugging method provided by this application analyzes the debugging instructions through the physical model of the equipment, and links the simulated equipment generated by the equipment simulator to automatically detect the response result of the simulated equipment to the debugging instructions, and then combines the analytical results of the physical model Verify the response result, so as to automatically debug the analog device corresponding to the device to be debugged, and obtain the debugging result. This method can effectively improve the efficiency of equipment debugging.
本申请实施例还提供一种设备自动调试系统,如图7所示,为本申请提供的设备自动调试系统的拓扑图,该设备自动调试系统包括至少一个设备调试器401和至少一个设备模拟器402。The embodiment of the present application also provides an automatic device debugging system, as shown in FIG. 7 , which is a topology diagram of the device automatic debugging system provided by the present application. The device automatic debugging system includes at least one device debugger 401 and at least one device simulator 402.
其中,设备调试器401,用于获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和第一模拟设备状态信息中确定;根据校验结果输出目标模拟设备的调试结果;Among them, the device debugger 401 is used to obtain the device debugging instruction for the target simulation device and the object model corresponding to the target simulation device. The device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; operation to obtain the status information of the first simulated device corresponding to the object model after the input parameter operation; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulated device for the debugging operation from the device simulator ; Verify the response information according to the verification reference information corresponding to the debugging type, and obtain the verification result. The verification reference information is determined from the debugging parameters and the status information of the first simulation device based on the debugging type; output the target simulation device according to the verification result The debugging results;
设备模拟器402,用于执行调试类型对应的调试操作并向设备调试器发送目标模拟设备针对调试操作的响应信息。The device simulator 402 is configured to execute a debugging operation corresponding to the debugging type and send response information of the target simulation device to the debugging operation to the device debugger.
在一些实施例中,本申请提供的设备自动调试系统,还可以包括物联平台403,物联平台403用于管理每一模拟设备对应的物模型,在设备控制功能调试过程中将设备调试指令转化为目标模拟设备的通讯协议支持的目标设备调试指令,以及在设备数据上报功能调试过程 中将设备模拟器反馈的目标模拟器状态变更信息转化为上报数据。In some embodiments, the device automatic debugging system provided by the present application may also include an IoT platform 403, which is used to manage the object model corresponding to each simulated device, and the device debugging command Convert the target device debugging instructions supported by the communication protocol of the target simulation device, and convert the target simulator status change information fed back by the device simulator into the reported data during the debugging process of the device data reporting function.
本申请实施例还提供一种计算机设备,该计算机设备可以为终端或服务器,如图8所示,为本申请提供的计算机设备的结构示意图。具体来讲:The embodiment of the present application also provides a computer device, which may be a terminal or a server, as shown in FIG. 8 , which is a schematic structural diagram of the computer device provided in the present application. Specifically:
该计算机设备可以包括一个或者一个以上处理核心的处理模块501、一个或一个以上存储介质的存储模块502、电源模块503和输入模块504等部件。本领域技术人员可以理解,图8中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The computer device may include a processing module 501 of one or more processing cores, a storage module 502 of one or more storage media, a power supply module 503, an input module 504 and other components. Those skilled in the art can understand that the structure of the computer device shown in FIG. 8 does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
处理模块501是该计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储模块502内的软件程序和/或模块,以及调用存储在存储模块502内的数据,执行计算机设备的各种功能和处理数据,从而对计算机设备进行整体监控。可选的,处理模块501可包括一个或多个处理核心;优选的,处理模块501可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理模块501中。The processing module 501 is the control center of the computer equipment, uses various interfaces and lines to connect various parts of the entire computer equipment, runs or executes the software programs and/or modules stored in the storage module 502, and calls the software programs and/or modules stored in the storage module 502 Perform various functions of computer equipment and process data, so as to monitor the computer equipment as a whole. Optionally, the processing module 501 may include one or more processing cores; preferably, the processing module 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processing module 501 .
存储模块502可用于存储软件程序以及模块,处理模块501通过运行存储在存储模块502的软件程序以及模块,从而执行各种功能应用以及数据处理。存储模块502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能以及网页访问等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储模块502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储模块502还可以包括存储器控制器,以提供处理模块501对存储模块502的访问。The storage module 502 can be used to store software programs and modules, and the processing module 501 executes various functional applications and data processing by running the software programs and modules stored in the storage module 502 . The storage module 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, and web page access, etc.); The area may store data and the like created according to use of the computer device. In addition, the storage module 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the storage module 502 may further include a memory controller to provide the processing module 501 with access to the storage module 502 .
计算机设备还包括给各个部件供电的电源模块503,优选的,电源模块503可以通过电源管理系统与处理模块501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源模块503还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The computer device also includes a power supply module 503 for supplying power to each component. Preferably, the power supply module 503 can be logically connected to the processing module 501 through a power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system. The power module 503 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
该计算机设备还可包括输入模块504,该输入模块504可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The computer device can also include an input module 504, which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
尽管未示出,计算机设备还可以包括显示模块等,在此不再赘述。具体在本实施例中,计算机设备中的处理模块501会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储模块502中,并由处理模块501来运行存储在存储模块502中的应用程序,从而实现各种功能,如下:Although not shown, the computer device may also include a display module, etc., which will not be repeated here. Specifically, in this embodiment, the processing module 501 in the computer device will load the executable files corresponding to the process of one or more application programs into the storage module 502 according to the following instructions, and the processing module 501 will run the stored The application programs in the storage module 502, thereby realizing various functions, are as follows:
获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的模拟设备状态信息;触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和模拟设备状态信息中确定;根据校验结果输出目标模拟设备的调试结果。Obtain the device debugging instruction for the target simulation device and the physical model corresponding to the target simulation device. The device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; perform parameter input operations on the physical model according to the debugging parameters to obtain the physical model after the parameter input operation. The status information of the simulated device corresponding to the model; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulated device for the debugging operation from the device simulator; according to the verification reference information corresponding to the debugging type The response information is verified to obtain the verification result, and the verification reference information is determined from the debugging parameters and the status information of the simulated device based on the debugging type; the debugging result of the target simulated device is output according to the verification result.
应当说明的是,本申请实施例提供的计算机设备与上文实施例中的方法属于同一构思,以上各个操作的具体实施可参见前面的实施例,在此不作赘述。It should be noted that the computer equipment provided in the embodiments of the present application and the methods in the above embodiments belong to the same idea, and the specific implementation of the above operations can refer to the above embodiments, and details are not repeated here.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指 令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and is loaded and executed by the processor.
为此,本发明实施例提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本发明实施例所提供的任一种方法中的步骤。例如,该指令可以执行如下步骤:To this end, an embodiment of the present invention provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the methods provided in the embodiments of the present invention. For example, the command can perform the following steps:
获取针对目标模拟设备的设备调试指令以及目标模拟设备对应的物模型,设备调试指令指示调试类型和调试类型对应的调试参数;根据调试参数对物模型进行入参操作,以获得入参操作后物模型对应的模拟设备状态信息;触发设备模拟器中目标模拟设备执行调试类型对应的调试操作,并从设备模拟器获取目标模拟设备针对调试操作的响应信息;根据调试类型对应的校验参考信息对响应信息进行校验,得到校验结果,校验参考信息基于调试类型从调试参数和模拟设备状态信息中确定;根据校验结果输出目标模拟设备的调试结果。Obtain the device debugging instruction for the target simulation device and the physical model corresponding to the target simulation device. The device debugging instruction indicates the debugging type and the debugging parameters corresponding to the debugging type; perform parameter input operations on the physical model according to the debugging parameters to obtain the physical model after the parameter input operation. The status information of the simulated device corresponding to the model; trigger the target simulated device in the device simulator to perform the debugging operation corresponding to the debugging type, and obtain the response information of the target simulated device for the debugging operation from the device simulator; according to the verification reference information corresponding to the debugging type The response information is verified to obtain the verification result, and the verification reference information is determined from the debugging parameters and the status information of the simulated device based on the debugging type; the debugging result of the target simulated device is output according to the verification result.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
其中,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the computer-readable storage medium may include: a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.
由于该计算机可读存储介质中所存储的指令,可以执行本发明实施例所提供的任一种方法中的步骤,因此,可以实现本发明实施例所提供的任一种方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Due to the instructions stored in the computer-readable storage medium, the steps in any method provided by the embodiments of the present invention can be executed, and therefore, the benefits that can be realized by any method provided by the embodiments of the present invention can be realized. For the effect, refer to the previous embodiments for details, and will not be repeated here.
其中,根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在存储介质中。计算机设备的处理器从存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各种可选实现方式中提供的方法。Wherein, according to one aspect of the present application, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, and the computer instructions are stored in a storage medium. The processor of the computer device reads the computer instruction from the storage medium, and the processor executes the computer instruction, so that the computer device executes the methods provided in the various optional implementation manners above.
以上对本发明实施例所提供的设备自动调试方法、装置、设备、系统及存储介质进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a detailed introduction to the equipment automatic debugging method, device, equipment, system and storage medium provided by the embodiment of the present invention. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only It is used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification does not It should be understood as a limitation of the present invention.

Claims (15)

  1. 一种设备自动调试的方法,其特征在于,所述方法包括:A method for automatic debugging of equipment, characterized in that the method comprises:
    获取针对目标模拟设备的设备调试指令以及所述目标模拟设备对应的物模型,所述设备调试指令指示调试类型和所述调试类型对应的调试参数;Obtain a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, where the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type;
    根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;Performing an input operation on the object model according to the debugging parameters, to obtain state information of the first simulation device corresponding to the object model after the input operation;
    触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息;triggering the target simulation device in the device simulator to execute a debugging operation corresponding to the debugging type, and obtaining response information of the target simulation device for the debugging operation from the device simulator;
    根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,所述校验参考信息基于所述调试类型从所述调试参数和所述第一模拟设备状态信息中确定;Verifying the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, the verification reference information is based on the debugging type from the debugging parameters and the status information of the first simulated device determined in;
    根据所述校验结果输出所述目标模拟设备的调试结果。Outputting the debugging result of the target simulation device according to the verification result.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息,包括:The method according to claim 1, characterized in that, the input operation is performed on the object model according to the debugging parameters, so as to obtain the state information of the first analog device corresponding to the object model after the input operation, comprising:
    根据所述调试参数对所述物模型进行入参操作,得到入参后的物模型;performing an input operation on the object model according to the debugging parameters, to obtain an input object model;
    根据预设映射关系表将所述入参后的物模型转化成目标模拟设备的第一寄存器状态信息,得到第一模拟设备状态信息,所述预设映射关系表包括物模型与寄存器状态信息之间的映射关系。Convert the input object model into the first register status information of the target analog device according to the preset mapping relationship table, and obtain the first analog device status information, and the preset mapping relationship table includes the relationship between the object model and the register status information mapping relationship between them.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述调试参数对所述物模型进行入参操作,得到入参后的物模型,包括:The method according to claim 2, characterized in that, said input operation is performed on said object model according to said debugging parameters to obtain an object model after input parameters, comprising:
    当所述调试类型为设备控制功能调试时,将所述调试参数填充至所述物模型的预设区域,得到入参后的物模型;When the debugging type is equipment control function debugging, filling the debugging parameters into the preset area of the object model to obtain the object model after inputting parameters;
    当所述调试类型为属性数据上报功能调试时,按照所述调试参数对所述物模型的相应属性值进行修改,得到入参后的物模型;When the debugging type is attribute data reporting function debugging, modify the corresponding attribute values of the object model according to the debugging parameters to obtain the object model after inputting parameters;
    当所述调试类型为事件数据上报功能调试时,按照所述调试参数对所述物模型的相应事件值进行修改,得到入参后的物模型。When the debugging type is event data reporting function debugging, modify the corresponding event value of the object model according to the debugging parameters to obtain the object model after inputting parameters.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,包括:The method according to claim 1, wherein the verification of the response information according to the verification reference information corresponding to the debugging type to obtain a verification result includes:
    将所述响应信息与所述调试类型对应的校验参考信息进行对比;comparing the response information with the verification reference information corresponding to the debugging type;
    当所述响应信息与所述调试类型对应的校验参考信息一致时,确定校验结果为校验通过;When the response information is consistent with the verification reference information corresponding to the debugging type, determine that the verification result is passed;
    当所述响应信息与所述调试类型对应的校验参考信息不一致时,确定校验结果为校验不通过。When the response information is inconsistent with the verification reference information corresponding to the debugging type, it is determined that the verification result is a verification failure.
  5. 根据权利要求1所述的方法,其特征在于,所述获取针对目标模拟设备的设备调试指令,包括:The method according to claim 1, wherein said obtaining the device debugging instruction for the target simulation device comprises:
    从物联平台获取模拟设备信息并显示模拟设备列表;Obtain simulated device information from the IoT platform and display a list of simulated devices;
    响应于针对模拟设备列表中目标模拟设备的选择操作,显示所述目标模拟设备的调试参数设置界面;In response to the selection operation of the target analog device in the simulated device list, display the debugging parameter setting interface of the target analog device;
    根据所述调试参数设置界面接收到的调试参数生成针对所述目标模拟设备的设备调试指 令。Generate device debugging instructions for the target analog device according to the debugging parameters received by the debugging parameter setting interface.
  6. 根据权利要求2所述的方法,其特征在于,所述触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息,包括:The method according to claim 2, wherein the target simulation device in the trigger device simulator executes the debugging operation corresponding to the debugging type, and obtains the target simulation device for the target simulation device from the device simulator. Response information for debugging operations described above, including:
    当所述调试类型包括设备控制功能调试时,向设备模拟器发送所述调试参数,以使得所述设备模拟器根据所述调试参数对目标模拟设备进行控制功能调试,并返回控制功能调试后目标模拟设备的第二寄存器状态信息;When the debugging type includes device control function debugging, send the debugging parameters to the device simulator, so that the device simulator can debug the control function of the target simulation device according to the debugging parameters, and return the target after the control function debugging second register state information of the simulated device;
    接收所述设备模拟器返回的所述第二寄存器状态信息,得到第二模拟设备状态信息;receiving the second register state information returned by the device simulator to obtain second simulated device state information;
    所述根据所述调试类型对应的校验参考信息对所述响应信息进行校验,包括:The verifying the response information according to the verification reference information corresponding to the debugging type includes:
    根据所述第一模拟设备状态信息对所述第二模拟设备状态信息进行校验。Verifying the second analog device state information according to the first analog device state information.
  7. 根据权利要求6所述的方法,其特征在于,所述向设备模拟器发送所述调试参数,包括:The method according to claim 6, wherein the sending the debugging parameters to the device emulator comprises:
    生成包含调试参数的调试请求,并将所述调试请求转化为目标模拟设备的通讯协议支持的目标调试请求;Generate a debugging request including debugging parameters, and convert the debugging request into a target debugging request supported by the communication protocol of the target simulation device;
    向所述设备模拟器发送所述目标调试请求。sending the target debugging request to the device emulator.
  8. 根据权利要求7所述的方法,其特征在于,所述生成包含所述调试参数的调试请求,并将所述调试请求转化为所述目标模拟设备的通讯协议支持的目标调试请求,包括:The method according to claim 7, wherein the generating a debugging request including the debugging parameters, and converting the debugging request into a target debugging request supported by the communication protocol of the target simulation device includes:
    向物联平台发送包含所述调试参数的调试请求生成指令,所述调试请求生成指令指示所述物联平台根据所述调试参数确定目标模拟设备的第三寄存器状态信息,并指示所述物联平台根据所述第三寄存器状态信息返回所述目标模拟设备的通讯协议支持的目标调试请求;Send a debugging request generation instruction containing the debugging parameters to the IoT platform, the debugging request generation instruction instructs the IoT platform to determine the third register status information of the target simulation device according to the debugging parameters, and instructs the IoT platform to The platform returns a target debugging request supported by the communication protocol of the target simulation device according to the state information of the third register;
    接收所述物联平台返回的目标调试请求。Receive the target debugging request returned by the IoT platform.
  9. 根据权利要求2所述的方法,其特征在于,所述触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息,包括:The method according to claim 2, wherein the target simulation device in the trigger device simulator executes the debugging operation corresponding to the debugging type, and obtains the target simulation device for the target simulation device from the device simulator. Response information for debugging operations described above, including:
    当所述调试类型包括数据上报功能调试时,向设备模拟器发送所述第一模拟设备状态信息,以使得所述设备模拟器根据所述第一模拟设备状态信息对所述目标模拟设备进行数据上报功能调试,并返回数据上报功能调试后所述目标模拟设备的第四寄存器状态信息;When the debugging type includes data reporting function debugging, send the first simulated device state information to the device simulator, so that the device simulator performs data processing on the target simulated device according to the first simulated device state information Report function debugging, and return the fourth register status information of the target analog device after data reporting function debugging;
    根据所述第四寄存器状态信息确定所述设备模拟器返回的上报数据;determining the reported data returned by the device simulator according to the fourth register state information;
    根据所述调试类型对应的校验参考信息对所述响应信息进行校验,包括:Verifying the response information according to the verification reference information corresponding to the debugging type, including:
    根据所述调试参数对所述上报数据进行校验。Verifying the reported data according to the debugging parameters.
  10. 根据权利要求9所述的方法,其特征在于,所述根据所述第四寄存器状态信息确定所述设备模拟器返回的上报数据,包括:The method according to claim 9, wherein the determining the reported data returned by the device simulator according to the status information of the fourth register comprises:
    向物联平台发送上报数据获取请求;Send a report data acquisition request to the IoT platform;
    接收所述物联平台根据所述上报数据获取请求返回的上报数据,所述上报数据为所述物联平台根据所述第四寄存器状态信息生成。receiving the reported data returned by the IoT platform according to the reported data acquisition request, where the reported data is generated by the IoT platform according to the status information of the fourth register.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    从物联平台获取每一模拟设备对应的物模型;Obtain the object model corresponding to each simulated device from the IoT platform;
    根据预设映射关系表确定每一模拟设备对应的理论寄存器状态信息,所述预设映射关系 表包括物模型与寄存器状态信息之间的映射关系;Determine the theoretical register status information corresponding to each analog device according to the preset mapping relationship table, and the preset mapping relationship table includes the mapping relationship between the object model and the register status information;
    从设备模拟器中获取每一模拟设备对应的实际寄存器状态信息;Obtain the actual register status information corresponding to each simulated device from the device simulator;
    根据所述理论寄存器状态信息与所述实际寄存器状态信息的比对结果对每一模拟设备的物模型进行校验。The physical model of each simulated device is verified according to the comparison result of the theoretical register state information and the actual register state information.
  12. 一种设备自动调试的装置,其特征在于,所述装置包括:A device for automatic debugging of equipment, characterized in that the device includes:
    获取单元,用于获取针对目标模拟设备的设备调试指令以及所述目标模拟设备对应的物模型,所述设备调试指令指示调试类型和所述调试类型对应的调试参数;An acquisition unit, configured to acquire a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, the device debugging instruction indicating a debugging type and debugging parameters corresponding to the debugging type;
    处理单元,用于根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;A processing unit, configured to perform an input operation on the object model according to the debugging parameters, so as to obtain the state information of the first simulation device corresponding to the object model after the input operation;
    触发单元,用于触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息;A triggering unit, configured to trigger the target simulation device in the device simulator to perform a debugging operation corresponding to the debugging type, and obtain response information of the target simulation device for the debugging operation from the device simulator;
    校验单元,用于根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,所述校验参考信息基于所述调试类型从所述调试参数和所述第一模拟设备状态信息中确定;A verification unit, configured to verify the response information according to the verification reference information corresponding to the debugging type to obtain a verification result, the verification reference information is based on the debugging type from the debugging parameters and the determined in the status information of the first simulated device;
    输出单元,用于根据所述校验结果输出所述目标模拟设备的调试结果。An output unit, configured to output the debugging result of the target simulation device according to the verification result.
  13. 一种计算机设备,其特征在于,包括存储器、处理器以及存储在所述存储器中并可以在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现权利要求1至11中任一项所述的设备自动调试的方法中的步骤。A computer device, characterized by comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor implements claims 1 to 11 when executing the computer program The steps in the method for automatic debugging of equipment described in any one.
  14. 一种设备自动调试系统,其特征在于,包括至少一个设备调试器和至少一个设备模拟器:A device automatic debugging system is characterized in that it includes at least one device debugger and at least one device simulator:
    所述设备调试器,用于获取针对目标模拟设备的设备调试指令以及所述目标模拟设备对应的物模型,所述设备调试指令指示调试类型和所述调试类型对应的调试参数;根据所述调试参数对所述物模型进行入参操作,以获得入参操作后物模型对应的第一模拟设备状态信息;触发设备模拟器中所述目标模拟设备执行所述调试类型对应的调试操作,并从所述设备模拟器获取所述目标模拟设备针对所述调试操作的响应信息;根据所述调试类型对应的校验参考信息对所述响应信息进行校验,得到校验结果,所述校验参考信息基于所述调试类型从所述调试参数和所述第一模拟设备状态信息中确定;根据所述校验结果输出所述目标模拟设备的调试结果;The device debugger is configured to obtain a device debugging instruction for the target simulation device and a physical model corresponding to the target simulation device, the device debugging instruction indicates a debugging type and debugging parameters corresponding to the debugging type; according to the debugging Parameters are input to the object model to obtain the state information of the first analog device corresponding to the object model after the input operation; trigger the target analog device in the device simulator to perform the debugging operation corresponding to the debugging type, and from The device simulator obtains the response information of the target simulation device for the debugging operation; verifies the response information according to the verification reference information corresponding to the debugging type, and obtains a verification result, and the verification reference The information is determined based on the debugging type from the debugging parameters and the status information of the first simulated device; outputting the debugging result of the target simulated device according to the verification result;
    所述设备模拟器,用于执行所述调试类型对应的调试操作并向所述设备调试器发送所述目标模拟设备针对所述调试操作的响应信息。The device simulator is configured to execute a debugging operation corresponding to the debugging type and send response information of the target simulation device to the debugging operation to the device debugger.
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行权利要求1至11中任一项所述的设备自动调试的方法中的步骤。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the device according to any one of claims 1 to 11 Steps in a method for automatic debugging.
PCT/CN2022/087225 2021-12-09 2022-04-15 Automatic device commissioning method, apparatus, device, system, and storage medium WO2023103248A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111497524.2 2021-12-09
CN202111497524.2A CN114936062B (en) 2021-12-09 2021-12-09 Method, device, equipment, system and storage medium for automatic debugging of equipment

Publications (1)

Publication Number Publication Date
WO2023103248A1 true WO2023103248A1 (en) 2023-06-15

Family

ID=82861805

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/087225 WO2023103248A1 (en) 2021-12-09 2022-04-15 Automatic device commissioning method, apparatus, device, system, and storage medium

Country Status (2)

Country Link
CN (1) CN114936062B (en)
WO (1) WO2023103248A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118244746A (en) * 2024-05-30 2024-06-25 国网山东省电力公司枣庄供电公司 Automatic test system for functional parameters of refrigeration insulation box controller

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116170307B (en) * 2023-04-26 2023-06-30 江西联创精密机电有限公司 Communication simulation device configuration method and device, readable storage medium and electronic device
CN116383014B (en) * 2023-06-02 2023-08-01 北京集度科技有限公司 Monitoring computer, software debugging method, software debugging system, medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598280A (en) * 2019-08-28 2019-12-20 杭州友电科技有限公司 Equipment simulation system and method and computer readable storage medium
CN113138562A (en) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 Terminal control system and terminal control method based on Internet of things
CN114036113A (en) * 2021-11-19 2022-02-11 深圳市商汤科技有限公司 Device management method, device, electronic device and storage medium
CN114124694A (en) * 2021-11-17 2022-03-01 招商局金融科技有限公司 Configuration method and configuration device of Internet of things equipment, electronic equipment and medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6763153B2 (en) * 2016-03-09 2020-09-30 株式会社明電舎 Hardware / software co-verification device and hardware / software co-verification method
WO2018027018A1 (en) * 2016-08-03 2018-02-08 Intel Corporation Remote debugging and management
CN111934908A (en) * 2020-07-06 2020-11-13 上海庆科信息技术有限公司 Internet of things simulation method, device and system and storage medium
CN112988485B (en) * 2021-03-26 2024-01-26 国网冀北电力有限公司信息通信分公司 Simulation test method and device for electric power Internet of things equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598280A (en) * 2019-08-28 2019-12-20 杭州友电科技有限公司 Equipment simulation system and method and computer readable storage medium
CN113138562A (en) * 2021-06-22 2021-07-20 武汉慧联无限科技有限公司 Terminal control system and terminal control method based on Internet of things
CN114124694A (en) * 2021-11-17 2022-03-01 招商局金融科技有限公司 Configuration method and configuration device of Internet of things equipment, electronic equipment and medium
CN114036113A (en) * 2021-11-19 2022-02-11 深圳市商汤科技有限公司 Device management method, device, electronic device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118244746A (en) * 2024-05-30 2024-06-25 国网山东省电力公司枣庄供电公司 Automatic test system for functional parameters of refrigeration insulation box controller

Also Published As

Publication number Publication date
CN114936062B (en) 2024-01-30
CN114936062A (en) 2022-08-23

Similar Documents

Publication Publication Date Title
WO2023103248A1 (en) Automatic device commissioning method, apparatus, device, system, and storage medium
WO2022120717A1 (en) Simulation task scheduling method, execution method, simulation implementation method and device
CN106648945A (en) Interface data testing method and device and electronic equipment
GB2538020B (en) Method and device for automatically processing static test data of rail transit vehicle
CN106154865A (en) Vehicle-mounted bus simulation model self-generation method and system
CN108306804A (en) A kind of Ethercat main station controllers and its communication means and system
CN113485881B (en) Test method and device of temporary speed limiting server, electronic equipment and medium
CN103327051A (en) Long-distance desktop management system and method
EP3982268B1 (en) Chassis simulation method and apparatus, server, storage medium and program product
CN106982140B (en) Information flow simulation method and system
CN115277882A (en) CAN message database establishing method and device, vehicle-mounted electronic equipment and storage medium
CN107817789A (en) CAN emulation test system
KR101387347B1 (en) Dcs logic diagram simulation apparatus for power plant and the method thereof
Feng et al. Research on function test method of intelligent high-speed railway centralized traffic control system
CN107404405B (en) Intelligent substation IEC61850 consistency test method and system
CN116451434A (en) New energy truck simulation scheduling method and equipment with cooperation of vehicles Lu Yun
CN107241234B (en) AS5643 network simulation method and system
CN106204326B (en) Power distribution terminal IED equipment detection method for power distribution system
CN109739106B (en) Intelligent manufacturing platform and method for adaptively accessing intelligent manufacturing platform
CN112233208B (en) Robot state processing method, apparatus, computing device and storage medium
CN109408358A (en) Interoperability Test Method and system between a kind of operating system
CN117574649A (en) Distributed simulation method, system, equipment and storage medium
CN117057171B (en) Semi-packaging simulation method combining measured data and simulation data
CN116723187A (en) Terminal equipment simulation method, device, equipment and medium in rail transit scene
WO2023004970A1 (en) Method and device for dynamic calculation of parameters based on ctc simulation training process

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22902688

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE