CN115562986A - Equipment debugging method and device, electronic equipment and storage medium - Google Patents

Equipment debugging method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115562986A
CN115562986A CN202211210580.8A CN202211210580A CN115562986A CN 115562986 A CN115562986 A CN 115562986A CN 202211210580 A CN202211210580 A CN 202211210580A CN 115562986 A CN115562986 A CN 115562986A
Authority
CN
China
Prior art keywords
variable
debugging
preset
debugged
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211210580.8A
Other languages
Chinese (zh)
Inventor
安志华
邹瑞先
潘磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Inovance Technology Co Ltd
Original Assignee
Shenzhen Inovance Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Inovance Technology Co Ltd filed Critical Shenzhen Inovance Technology Co Ltd
Priority to CN202211210580.8A priority Critical patent/CN115562986A/en
Publication of CN115562986A publication Critical patent/CN115562986A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Landscapes

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

Abstract

The application discloses a device debugging method, a device, an electronic device and a storage medium, wherein the device debugging method comprises the following steps: responding to a variable import instruction, and acquiring variable data of the equipment to be debugged; matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data; responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control; and generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface. The method and the device solve the technical problem that the device debugging effect of the existing device debugging method is low.

Description

Equipment debugging method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of device debugging technologies, and in particular, to a device debugging method and apparatus, an electronic device, and a storage medium.
Background
During the production process of large-scale equipment, developers generally use software of a debugging program to configure the functional parameters of the equipment and test the complete machine. However, the human-computer interface of the industrial control industry at the present stage does not have a separate debugging program background, and development and debugging are integrated in the same background, so that debugging work of developers is inserted in each link, and complete information cannot be acquired from equipment by debugging the equipment in stages. Before debugging the equipment at each stage, the picture is firstly configured, the debugging data is set, and then the picture control and the data are bound and issued, so that the whole process needs to consume a large amount of time, the operation steps are multiple and complicated, and the efficiency of debugging the equipment is low.
Disclosure of Invention
The present application mainly aims to provide a device debugging method, an apparatus, an electronic device, and a storage medium, and aims to solve the technical problem of a lower device debugging effect of the existing device debugging method.
In order to achieve the above object, the present application provides an apparatus debugging method, including:
responding to a variable import instruction, and acquiring variable data of the equipment to be debugged;
matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data;
responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control;
and generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface.
Optionally, before the step of acquiring variable data of the device to be debugged in response to the variable import instruction, the method further includes:
acquiring variable data of the equipment to be debugged, and storing the variable data in a preset storage unit;
the step of acquiring the variable data of the device to be debugged in response to the variable import instruction comprises the following steps:
and responding to a variable import instruction, and reading the variable data of the equipment to be debugged from the preset storage unit.
Optionally, before the step of acquiring variable data of the device to be debugged and storing the variable data in a preset storage unit, the step includes:
acquiring the connection state of the equipment to be debugged;
when the connection state is normal connection, executing the following steps: responding to a variable import instruction, and acquiring variable data of equipment to be debugged;
and outputting preset prompt information when the connection state is abnormal connection.
Optionally, the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page includes:
setting a preset debugging control corresponding to each variable type according to all variable types, and determining a matching rule between each variable type and the preset debugging control;
the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises the following steps:
determining a preset debugging control corresponding to the variable type of the variable data according to the matching rule;
and generating a corresponding variable page according to the variable data and a preset debugging control corresponding to the variable data, and outputting the variable page.
Optionally, the preset debugging control at least includes one of a switch control, a button control, a progress bar control and an input frame control.
Optionally, the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page includes:
when the number of the devices to be debugged is two or more, dividing the variable data into sub-variable data corresponding to each debugging device;
and respectively matching corresponding preset debugging controls according to the variable types of the sub-variable data, and outputting variable pages corresponding to the devices to be debugged.
Optionally, the step of generating and displaying a corresponding debugging interface according to the target variable and the target debugging control, so as to debug the device to be debugged through the debugging interface includes:
generating a debugging interface corresponding to the target variable and the target debugging control according to a preset layout rule, and downloading the debugging interface to a preset debugging terminal so as to display the debugging interface on the preset debugging terminal;
and responding to the debugging operation of a debugging interface on a preset debugging terminal, and adjusting the target variable of the equipment to be debugged so as to debug the equipment to be debugged.
In order to achieve the above object, the present application further provides an apparatus debugging device, including:
the variable import module is used for responding to the variable import instruction and acquiring variable data of the equipment to be debugged;
the control matching module is used for matching a corresponding preset debugging control according to the variable type of the variable data and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data;
the variable screening module is used for responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control;
and the equipment debugging module is used for generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface.
Optionally, the variable import module is further configured to:
acquiring variable data of the equipment to be debugged, and storing the variable data in a preset storage unit;
and responding to a variable import instruction, and reading the variable data of the equipment to be debugged from the preset storage unit.
Optionally, the device commissioning apparatus is further configured to:
acquiring the connection state of the equipment to be debugged;
when the connection state is normal connection, executing the following steps: responding to a variable import instruction, and acquiring variable data of the equipment to be debugged;
and outputting preset prompt information when the connection state is abnormal connection.
Optionally, the control matching module is further configured to:
setting a preset debugging control corresponding to each variable type according to all variable types, and determining a matching rule between each variable type and the preset debugging control;
determining a preset debugging control corresponding to the variable type of the variable data according to the matching rule;
and generating a corresponding variable page according to the variable data and a preset debugging control corresponding to the variable data, and outputting the variable page.
Optionally, the preset debugging control at least includes one of a switch control, a button control, a progress bar control and an input frame control.
Optionally, the control matching module is further configured to:
when the number of the devices to be debugged is two or more, dividing the variable data into sub-variable data corresponding to each debugging device;
and respectively matching corresponding preset debugging controls according to the variable types of the sub-variable data, and outputting variable pages corresponding to the devices to be debugged.
Optionally, the device debugging module is further configured to:
generating a debugging interface corresponding to the target variable and the target debugging control according to a preset layout rule, and downloading the debugging interface to a preset debugging terminal so as to display the debugging interface on the preset debugging terminal;
and responding to the debugging operation of a debugging interface on a preset debugging terminal, and adjusting the target variable of the equipment to be debugged so as to debug the equipment to be debugged.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the device commissioning method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the device commissioning method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a device commissioning method, which when executed by a processor implements the steps of the device commissioning method as described above.
Compared with the prior art that the equipment is debugged in multiple stages, before the equipment is debugged in each stage, firstly configuring a picture, setting debugging data and binding and issuing picture controls and data, the equipment debugging method responds to a variable import instruction to acquire variable data of the equipment to be debugged; matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data; responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control; and generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface. From this, this application will wait to debug all variables of equipment and have integrated, then match the corresponding debugging controlling of predetermineeing, then based on the target variable and the target debugging controlling that the target variable corresponds has generated the debugging interface to saved a large amount of repetitive work on the one hand, effectively reduced debugging personnel's work load, on the other hand, with the process of binding between variable and the debugging controlling and the generation process automation of debugging interface, reduced the debugging operation degree of difficulty of equipment, thereby improved the efficiency of equipment debugging. Therefore, the technical problem that the equipment debugging effect of the existing equipment debugging method is low is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a first embodiment of a device debugging method according to the present application;
FIG. 2 is an exemplary diagram of a variable page according to an embodiment of a device debugging method of the present application;
FIG. 3 is a diagram illustrating an exemplary debugging interface according to an embodiment of an apparatus debugging method of the present application;
fig. 4 is a schematic structural diagram of an apparatus debugging device in the embodiment of the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a device debugging method in the embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanying figures are described in detail below. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
In a first embodiment of the apparatus debugging method of the present application, the apparatus debugging method includes:
step S10, responding to a variable import instruction, and acquiring variable data of equipment to be debugged;
step S20, matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data;
step S30, responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control;
and S40, generating and displaying a corresponding debugging interface according to the target variable and the target debugging control, so as to debug the equipment to be debugged through the debugging interface.
In this embodiment, it should be noted that the variable data may include variable related data such as a variable name, a variable type, and a variable value. Wherein the variable types may include pool (i.e., boolean type, generally defining properties of two states, such as on and off); int16 (i.e., a 16-bit integer type, which generally defines attributes without decimal numbers, such as multiple operating modes, multiple gears, etc.); string (i.e., a character type that generally defines a character, such as a specific numerical value of a linear velocity value, a rotational velocity value, etc.), etc.
As an example, steps S10 to S40 include: and responding to a variable import instruction input by debugging personnel, and communicating with the connected equipment to be debugged to obtain variable data of the equipment to be debugged. And then matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data. Therefore, debugging personnel can determine the adjustable variable of the equipment to be debugged through the variable page, and then the debugging personnel can issue a variable screening instruction to the variable page according to specific service requirements. And responding to a variable screening instruction of a debugging worker on the variable page, and determining a variable (namely a target variable) which needs to be adjusted by the debugging worker based on a specific service requirement and a target debugging control corresponding to the target variable. And then generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface.
In another embodiment, when the device to be debugged is two or more devices, the variable data of the device to be debugged is obtained by communicating with the connected device to be debugged in response to a variable import instruction input by a debugging person. And then dividing the variable data into sub-variable data corresponding to each debugging device, respectively matching corresponding preset debugging controls according to the variable type of each sub-variable data, and outputting a variable page corresponding to each device to be debugged. Therefore, debugging personnel can issue variable screening instructions for the variable pages of the equipment to be debugged according to specific service requirements. And responding to a variable screening instruction of a debugging worker to each variable page, and determining variables (namely target variables) which are required to be adjusted by the debugging worker based on specific business requirements and target debugging controls corresponding to the target variables. And then generating a debugging interface corresponding to each device to be debugged according to the target variable and the target debugging control, so as to debug each device to be debugged through the debugging interface.
The step of obtaining the variable data of the device to be debugged in response to the variable import instruction further includes:
s11, acquiring variable data of the equipment to be debugged, and storing the variable data in a preset storage unit;
the step of acquiring the variable data of the device to be debugged in response to the variable import instruction comprises the following steps:
and S12, responding to a variable import instruction, and reading the variable data of the equipment to be debugged from the preset storage unit.
In this embodiment, it should be noted that the preset storage unit may be an independent storage unit independent from the electronic device that can execute the embodiment of the present application, or may be an integrated storage unit integrated with the electronic device that can execute the embodiment of the present application.
As an example, steps S11 to S12 include: the method comprises the steps of communicating with connected equipment to be debugged, acquiring variable data of the equipment to be debugged according to a preset acquisition cycle, and storing the variable data in a preset storage unit. And when a variable import instruction of a debugging person is received, responding to the variable import instruction, and reading the variable data of the equipment to be debugged from the preset storage unit. Illustratively, an "import variable" button may be provided, wherein the "import variable" button may be a virtual button or a physical button. When a debugger presses an "import variable" button, the variable data of the device to be debugged can be read from the preset storage unit if the variable import instruction of the debugger is received. In the embodiment, the variable data of the equipment to be debugged is acquired before the debugging personnel issues the variable import instruction, and the variable data is stored in the preset storage unit, so that the efficiency of acquiring the variable data of the equipment to be debugged is improved.
The method comprises the following steps of acquiring variable data of the equipment to be debugged, and storing the variable data in a preset storage unit:
step A10, acquiring the connection state of the equipment to be debugged;
step A20, when the connection state is normal connection, executing the steps of: responding to a variable import instruction, and acquiring variable data of the equipment to be debugged;
and step A30, outputting preset prompt information when the connection state is abnormal connection.
In this embodiment, it should be noted that the preset prompting information may include an abnormal connection event and an abnormally connected device to be debugged, and is used to prompt a debugger that a connection state of the device to be debugged is abnormal connection. The preset prompting message can be output in one or more forms of characters, images and sounds.
As an example, steps a10 to a30 include: before the connection state of the device to be debugged is obtained, the device to be debugged needs to be in communication connection with the device to be debugged, a power supply is connected, and then the connection state of the device to be debugged can be obtained through communication with the device to be debugged. When the connection state is normal connection, executing the following steps: and responding to the variable import instruction, and acquiring variable data of the equipment to be debugged. And when the connection state is abnormal connection, outputting preset prompt information to prompt a debugging person that the connection state of the equipment to be debugged is abnormal connection, and executing subsequent steps until the connection state is normal connection.
The step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises the following steps:
step S21, setting preset debugging controls corresponding to the variable types according to all the variable types, and determining matching rules between the variable types and the preset debugging controls;
the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises the following steps:
step S22, determining a preset debugging control corresponding to the variable type of the variable data according to the matching rule;
and S23, generating a corresponding variable page according to the variable data and a preset debugging control corresponding to the variable data, and outputting the variable page.
In this embodiment, it should be noted that the preset debugging control at least includes one of a switch control, a button control, a progress bar control, and an input box control.
In addition, it should be noted that the variable attributes defined by different variable types are different, for example, the pool generally defines the attributes of two states, such as on and off; int16 generally defines attributes without decimal numbers, such as various working modes, various gears, and the like; string generally defines a character, such as a line speed value, a rotation speed value, and other specific numerical values. Therefore, adjusting the variables of different types requires setting corresponding preset debugging controls.
As one example, steps S21 to S23 include: and setting a preset debugging control corresponding to each variable type according to all the variable types, and determining a matching rule between each variable type and the preset debugging control. For example, if the variable type is bol, the matched preset debugging control is a switch; if the variable type is int16, the matched preset debugging control is a button; and if the variable type is string, the matched preset debugging control is an input box. And then, according to the matching rule, determining a preset debugging control corresponding to the variable type of the variable data, generating a corresponding variable page according to the variable data and the preset debugging control corresponding to the variable data, and outputting the variable page. Referring to fig. 2, fig. 2 is an exemplary diagram of a variable page according to an embodiment of the device debugging method of the present application, where the names in the diagram are names of preset debugging controls, such as switches, buttons, output boxes, and the like; the data type in the graph is a variable type corresponding to each variable in the variable data; the control style in the figure is the appearance style of the preset debugging control. Therefore, debugging personnel can intuitively know all the variables of the equipment to be debugged and the preset debugging controls corresponding to all the variables.
The step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises the following steps:
step B10, when the number of the devices to be debugged is two or more, dividing the variable data into sub-variable data corresponding to each debugging device;
and step B20, respectively matching corresponding preset debugging controls according to the variable types of the sub-variable data, and outputting variable pages corresponding to the devices to be debugged.
As an example, steps B10 to B20 include: when the number of the devices to be debugged is two or more, the variable data can be divided into sub-variable data corresponding to each debugging device; and then respectively matching corresponding preset debugging controls according to the variable types of the sub-variable data, and outputting variable pages corresponding to the devices to be debugged. And debugging personnel can issue variable screening instructions for the variable pages of the equipment to be debugged according to specific service requirements. And responding to a variable screening instruction of a debugging worker to each variable page, and determining variables (namely target variables) which are required to be adjusted by the debugging worker based on specific business requirements and target debugging controls corresponding to the target variables. And then generating a debugging interface corresponding to each device to be debugged according to the target variable and the target debugging control, so as to debug each device to be debugged through the debugging interface. In the embodiment, multiple devices to be debugged can be debugged simultaneously, so that the debugging efficiency of the devices is further improved.
The step of generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the device to be debugged through the debugging interface comprises the following steps:
step S41, generating a debugging interface corresponding to the target variable and the target debugging control according to a preset layout rule, and downloading the debugging interface to a preset debugging terminal so as to display the debugging interface on the preset debugging terminal;
and S42, responding to the debugging operation of a debugging interface on a preset debugging terminal, and adjusting the target variable of the equipment to be debugged so as to debug the equipment to be debugged.
In this embodiment, it should be noted that the preset layout rule is a rule in which the layout positions, sizes, and layouts of the target variables and the target debug controls corresponding to the target variables are preset in a test page. The layout rules can be adjusted according to the requirements of the debugging personnel.
In addition, it should be noted that the preset debugging terminal may be a terminal device such as a touch screen, a tablet computer, a notebook computer, a desktop computer, or the like.
As an example, steps S41 to S42 include: and generating a debugging interface corresponding to the target variable and the target debugging control according to a preset layout rule, and downloading the debugging interface to a preset debugging terminal so as to display the debugging interface on the preset debugging terminal. Therefore, debugging personnel can perform corresponding debugging operation on the target debugging control corresponding to each target variable in the debugging interface on the preset debugging terminal. And then responding to the debugging operation of a debugging person on a debugging interface on a preset debugging terminal, and adjusting the target variable of the equipment to be debugged so as to debug the equipment to be debugged.
Compared with the prior art, the method and the device have the advantages that the device debugging working atmosphere is in multiple stages, the picture is firstly configured before the device is debugged in each stage, the debugging data is set, and then the picture control and the data are bound and issued.
Compared with the prior art that the working atmosphere of equipment debugging is in multiple stages, before the equipment is debugged in each stage, firstly configuring a picture, setting debugging data, and then binding and issuing picture controls and data, the method for debugging the equipment responds to a variable import instruction to obtain variable data of the equipment to be debugged; matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data; responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control; and generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface. From this, this application will wait to debug all variables of equipment and have integrated, then match the corresponding debugging controlling of predetermineeing, then based on the target variable and the target debugging controlling that the target variable corresponds has generated the debugging interface to saved a large amount of repetitive work on the one hand, effectively reduced debugging personnel's work load, on the other hand, with the process of binding between variable and the debugging controlling and the generation process automation of debugging interface, reduced the debugging operation degree of difficulty of equipment, thereby improved the efficiency of equipment debugging. Therefore, the technical problem that the equipment debugging effect of the existing equipment debugging method is low is solved.
Example two
Referring to fig. 4, fig. 4 is a schematic structural diagram of a device debugging apparatus in the embodiment of the present application.
The present application further provides an apparatus debugging device, the apparatus debugging device is applied to the apparatus debugging device, the apparatus debugging device includes:
the variable import module 10 is configured to respond to a variable import instruction and obtain variable data of the device to be debugged;
the control matching module 20 is configured to match a corresponding preset debugging control according to a variable type of the variable data and output a variable page, where the variable page includes the variable data and at least one preset debugging control corresponding to the variable data;
the variable screening module 30 is configured to determine, in response to a variable screening instruction for the variable page, a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control;
and the equipment debugging module 40 is used for generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface.
Optionally, the variable import module 10 is further configured to:
acquiring variable data of the equipment to be debugged, and storing the variable data in a preset storage unit;
and responding to a variable import instruction, and reading the variable data of the equipment to be debugged from the preset storage unit.
Optionally, the device commissioning apparatus is further configured to:
acquiring the connection state of the equipment to be debugged;
when the connection state is normal connection, executing the following steps: responding to a variable import instruction, and acquiring variable data of the equipment to be debugged;
and outputting preset prompt information when the connection state is abnormal connection.
Optionally, the control matching module, 20, is further configured to:
setting a preset debugging control corresponding to each variable type according to all variable types, and determining a matching rule between each variable type and the preset debugging control;
determining a preset debugging control corresponding to the variable type of the variable data according to the matching rule;
and generating a corresponding variable page according to the variable data and a preset debugging control corresponding to the variable data, and outputting the variable page.
Optionally, the preset debugging control at least includes one of a switch control, a button control, a progress bar control, and an input box control.
Optionally, the control matching module 20 is further configured to:
when the number of the devices to be debugged is two or more, dividing the variable data into sub-variable data corresponding to each debugging device;
and respectively matching corresponding preset debugging controls according to the variable types of the sub-variable data, and outputting variable pages corresponding to the devices to be debugged.
Optionally, the device debugging module 40 is further configured to:
generating a debugging interface corresponding to the target variable and the target debugging control according to a preset layout rule, and downloading the debugging interface to a preset debugging terminal so as to display the debugging interface on the preset debugging terminal;
and responding to the debugging operation of a debugging interface on a preset debugging terminal, and adjusting the target variable of the equipment to be debugged so as to debug the equipment to be debugged.
The device debugging device provided by the application adopts the device debugging method in the embodiment, and solves the technical problem that the device debugging effect of the existing device debugging method is low. Compared with the prior art, the beneficial effects of the device debugging apparatus provided by the embodiment of the present application are the same as the beneficial effects of the device debugging method provided by the above embodiment, and other technical features in the device debugging apparatus are the same as the features disclosed in the above embodiment method, which are not repeated herein.
EXAMPLE III
An embodiment of the present application provides an electronic device, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the device debugging method in the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
By adopting the device debugging method in the embodiment, the electronic device provided by the application solves the technical problem of low device debugging effect of the existing device debugging method. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present application are the same as the beneficial effects of the device debugging method provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the first embodiment, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Example four
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method for debugging a device in the first embodiment.
The computer readable storage medium provided by the embodiments of the present application may be, for example, a usb disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or a combination of any of the above. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: responding to a variable import instruction, and acquiring variable data of the equipment to be debugged; matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data; responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control; and generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface. Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the application stores a computer-readable program instruction for executing the device debugging method, and solves the technical problem that the device debugging effect of the existing device debugging method is low. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present application are the same as the beneficial effects of the device debugging method provided by the above embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A device debugging method is characterized by comprising the following steps:
responding to a variable import instruction, and acquiring variable data of equipment to be debugged;
matching corresponding preset debugging controls according to the variable types of the variable data, and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data;
responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control;
and generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface.
2. The device debugging method according to claim 1, wherein the step of obtaining variable data of the device to be debugged in response to the variable import instruction further comprises:
acquiring variable data of the equipment to be debugged, and storing the variable data in a preset storage unit;
the step of acquiring the variable data of the device to be debugged in response to the variable import instruction comprises the following steps:
and responding to a variable import instruction, and reading the variable data of the equipment to be debugged from the preset storage unit.
3. The device debugging method of claim 2, wherein the step of collecting variable data of the device to be debugged and storing the variable data in a preset storage unit comprises:
acquiring the connection state of the equipment to be debugged;
when the connection state is normal connection, executing the following steps: responding to a variable import instruction, and acquiring variable data of equipment to be debugged;
and outputting preset prompt information when the connection state is abnormal connection.
4. The device debugging method according to claim 1, wherein the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises:
setting a preset debugging control corresponding to each variable type according to all variable types, and determining a matching rule between each variable type and the preset debugging control;
the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises the following steps:
determining a preset debugging control corresponding to the variable type of the variable data according to the matching rule;
and generating a corresponding variable page according to the variable data and a preset debugging control corresponding to the variable data, and outputting the variable page.
5. The device debugging method of claim 1, wherein the preset debugging control comprises at least one of a switch control, a button control, a progress bar control, and an input box control.
6. The device debugging method of claim 1, wherein the step of matching the corresponding preset debugging control according to the variable type of the variable data and outputting a variable page comprises:
when the number of the devices to be debugged is two or more, dividing the variable data into sub-variable data corresponding to each debugging device;
and respectively matching corresponding preset debugging controls according to the variable types of the sub-variable data, and outputting variable pages corresponding to the devices to be debugged.
7. The device debugging method according to any one of claims 1 to 6, wherein the step of generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the device to be debugged through the debugging interface comprises:
generating a debugging interface corresponding to the target variable and the target debugging control according to a preset layout rule, and downloading the debugging interface to a preset debugging terminal so as to display the debugging interface on the preset debugging terminal;
and responding to the debugging operation of a debugging interface on a preset debugging terminal, and adjusting the target variable of the equipment to be debugged so as to debug the equipment to be debugged.
8. An apparatus commissioning device, comprising:
the variable import module is used for responding to the variable import instruction and acquiring variable data of the equipment to be debugged;
the control matching module is used for matching a corresponding preset debugging control according to the variable type of the variable data and outputting a variable page, wherein the variable page comprises the variable data and at least one preset debugging control corresponding to the variable data;
the variable screening module is used for responding to a variable screening instruction of the variable page, and determining a target variable in the variable data and a target debugging control corresponding to the target variable in the preset debugging control;
and the equipment debugging module is used for generating and displaying a corresponding debugging interface according to the target variable and the target debugging control so as to debug the equipment to be debugged through the debugging interface.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the device commissioning method of any one of claims 1 to 7.
10. A computer-readable storage medium, having a program for implementing a device commissioning method stored thereon, the program being executed by a processor to implement the steps of the device commissioning method as recited in any one of claims 1 to 7.
CN202211210580.8A 2022-09-30 2022-09-30 Equipment debugging method and device, electronic equipment and storage medium Pending CN115562986A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211210580.8A CN115562986A (en) 2022-09-30 2022-09-30 Equipment debugging method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211210580.8A CN115562986A (en) 2022-09-30 2022-09-30 Equipment debugging method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115562986A true CN115562986A (en) 2023-01-03

Family

ID=84743615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211210580.8A Pending CN115562986A (en) 2022-09-30 2022-09-30 Equipment debugging method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115562986A (en)

Similar Documents

Publication Publication Date Title
KR102521734B1 (en) Wearable device for executing a plurality of applications and method of operating the same
EP2148259A1 (en) Field device management apparatus and field device management system
CN113377365B (en) Code display method, apparatus, device, computer readable storage medium and product
CN108170425B (en) Program code modification method and device and terminal equipment
KR20190021042A (en) Method for changing the size of contents displayed on display and electronic device thereof
CN111428165A (en) Three-dimensional model display method and device and electronic equipment
CN117406965B (en) Visual output method, device, equipment and medium of artificial intelligent model
KR101431995B1 (en) Facility management device, screen display method, and recording medium
CN115562986A (en) Equipment debugging method and device, electronic equipment and storage medium
CN109857503B (en) Page interaction effect self-adaption method and device and electronic equipment
CN115129946A (en) Data model generation optimization method and device, electronic equipment and readable storage medium
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN114967612A (en) Method and device for generating control system configuration diagram, electronic equipment and storage medium
CN113676677A (en) Dynamic picture synthesis method and device, electronic equipment and readable storage medium
CN113961127A (en) Visualization server management method and device, electronic equipment and computer storage medium
CN110908711A (en) Control development method and device of application program and electronic equipment
CN112799521B (en) Electronic device and method for operating electronic device
CN115129315A (en) Customized page development method and device, electronic equipment and readable storage medium
CN111666028B (en) Method, apparatus, medium, and computer device for creating a multi-page sliding view
TWM462860U (en) Debug system and apparatus for providing graphical pin interface
CN103810312A (en) Method and device of computer aided design for man-machine interface animated graphic elements
CN116257313A (en) Visual platform industrial configuration display method and device, electronic equipment and medium
JP2021182306A (en) Engineering device and engineering method
CN118819972A (en) Online debugging method, device and equipment of memory and calculation integrated chip and storage medium
CN117850392A (en) Test method, device, system, equipment, medium and product of vehicle-mounted system

Legal Events

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