Operation equipment control method, device, operation system and computer equipment
By obtaining the operating data of the operating equipment and generating operating instructions, combined with the toolkit in the control catalog, the operating equipment is directly controlled, which solves the problems of low efficiency and poor simplicity under multi-processor collaborative control, and achieves high efficiency and accuracy. device control.
Patent Information
- Application Number
- CN202410874227.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-02
AI Technical Summary
In embedded software development, collaborative control of multiple processors leads to increased data transmission power consumption and low control efficiency. The control process is not simple enough, making it difficult to achieve efficient device synchronization refresh and peripheral control.
By obtaining the operating data of the operating equipment, generating operating instructions based on feedback signals, and pressing them into the operating instruction table, reading the control directory table to determine the corresponding control tool kit, and controlling the operating equipment according to the operating instructions and tool kits, simplifying The control process is controlled and additional data interaction is avoided.
It improves the efficiency and convenience of operating equipment control, achieves accurate control of operating equipment, reduces power consumption and development difficulty, and simplifies control logic.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present application relates to the field of embedded software control technology, and in particular to an operating device control method, device, operating system, computer device, computer-readable storage medium and computer program product. Background Art
[0002] With the development of embedded technology, the functional complexity of various industrial products or operating equipment continues to increase, and the synchronization requirements for data interaction are gradually increasing. For example, the connection between the display screen and the peripherals requires the synchronization of data refresh between the peripherals and the display screen. How to effectively refresh the display and control the peripherals usually becomes the focus of quality and efficiency in embedded software development.
[0003] Normally, multiple processors may be used to work together. However, the collaborative control of multiple processors will increase data transmission power consumption and data cross-coupling, resulting in low control efficiency and a simple control process. Summary of the invention
[0004] Based on this, it is necessary to provide an operating equipment control method, device, operating system, computer equipment, computer-readable storage medium and computer program product that can ensure the control efficiency and convenience of the operating equipment in response to the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a method for controlling an operating device, the method comprising:
[0006] Obtaining operation data of running equipment;
[0007] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0008] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0009] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0010] In one embodiment, generating an operation instruction based on the feedback signal and pushing it into an operation instruction table includes:
[0011] Determine the controlled operating device based on the feedback signal, and obtain the operation requirements corresponding to the controlled operating device;
[0012] An operation instruction is generated according to the operation requirements corresponding to the controlled operating device, and is pushed into an operation instruction table.
[0013] In one embodiment, the operation requirement corresponding to the controlled operation device includes an operation type and operation data, and the generating of the operation instruction according to the operation requirement corresponding to the controlled operation device and pushing it into the operation instruction table includes:
[0014] Determine an operation instruction sequence identifier according to the priority of the operation type, and bind the operation type and operation data with the operation instruction sequence identifier to generate an operation instruction;
[0015] The operation instruction is pushed into a corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0016] In one embodiment, the reading the operation instruction table and determining the control toolkit corresponding to the operation instruction table based on the control catalog table includes:
[0017] Read the operation instruction table and call the control directory table as a reference;
[0018] The control catalog table is queried for a control sequence corresponding to the operation instruction table, and a corresponding control toolkit is determined from the corresponding control sequence.
[0019] In one embodiment, the operating device includes an execution device and a display device, and the obtaining of operating data of the operating device includes:
[0020] Obtain the execution parameters of the execution device and the response data of the display device;
[0021] The step of obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table includes:
[0022] Determining adjustment data corresponding to the response data based on configuration parameters of the display device;
[0023] generating a feedback signal according to the execution parameter and the adjustment data;
[0024] An operation instruction is generated based on the feedback signal and pushed into an operation instruction table.
[0025] In one embodiment, after controlling the operating device according to the operating instruction and the corresponding control toolkit, the operating device control method further includes:
[0026] The operation instruction table is released and updated.
[0027] In a second aspect, the present application further provides a running equipment control device, the device comprising:
[0028] The bottom input module is used to obtain the operation data of the running equipment;
[0029] A core operation module, used to obtain a feedback signal according to the operation data, generate an operation instruction based on the feedback signal, and push the operation instruction into an operation instruction table;
[0030] A bottom-level analysis module, used for reading the operation instruction table and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0031] The bottom control module is used to control the operating device according to the operating instruction and the corresponding control toolkit.
[0032] In a third aspect, the present application further provides an operation system, including an operation device and a controller, wherein the operation device is connected to the controller, and the controller is used to execute the operation device control method as described in the above embodiments.
[0033] In one of the embodiments, the operating device includes an execution device and a display device, and both the execution device and the display device are connected to the controller.
[0034] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0035] Obtaining operation data of running equipment;
[0036] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0037] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0038] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0039] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0040] Obtaining operation data of running equipment;
[0041] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0042] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0043] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0044] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0045] Obtaining operation data of running equipment;
[0046] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0047] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0048] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0049] The above-mentioned operating equipment control method, device, operating system, computer equipment, computer-readable storage medium and computer program product include obtaining operating data of the operating equipment, obtaining a feedback signal based on the operating data, generating an operating instruction based on the feedback signal, and pressing it into an operating instruction table. Read the operating instruction table, determine the control toolkit corresponding to the operating instruction table based on the control catalog table, and control the operating equipment according to the operating instruction and the corresponding control toolkit. By establishing a control catalog table as a control reference, the control behavior is converted into an operating instruction table, and the corresponding control toolkit is obtained by comparing the control catalog table to perform corresponding control, so that the control behavior can be simply and clearly responded to, and the operating equipment can be accurately controlled. There is no need for additional data interaction with the outside, which improves the efficiency and convenience of the control process. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0051] FIG1 is a schematic diagram of the structure of an operating system in one embodiment;
[0052] FIG2 is a schematic diagram of a flow chart of a method for controlling a running device in one embodiment;
[0053] FIG3 is a flowchart of steps of generating an operation instruction based on a feedback signal and pressing it into an operation instruction table in one embodiment;
[0054] FIG4 is a flowchart showing steps of generating an operation instruction according to an operation requirement corresponding to a controlled running device and pressing the operation instruction table in one embodiment;
[0055] 5 is a flow chart of steps for reading an operation instruction table and determining a control toolkit corresponding to the operation instruction table based on a control catalog table in one embodiment;
[0056] FIG6 is a schematic diagram of a flow chart of a method for controlling a running device in another embodiment;
[0057] FIG7 is a schematic diagram of a flow chart of a method for controlling a running device in another embodiment;
[0058] FIG8 is a structural block diagram of a running device control device in one embodiment;
[0059] FIG. 9 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.
[0062] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.
[0063] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0064] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0065] The operating device control method provided in the embodiment of the present application can be applied to the operating system as shown in Figure 1. As shown in Figure 1, the operating system includes an operating device 102 and a controller 104, and the operating device 102 is connected to the controller 104. The operating device 102 refers to a device that implements various functions in the operating system, such as WiFi devices, motors, sensors, display screens, keyboards and other devices with operating functions and interactive functions. The controller 104 is a chip with a computing function, which can control the operating device 102 according to the operating device 102 control method recorded in each embodiment of the present application. Furthermore, the controller 104 can be divided into an outer module and a core computing module according to different operating functions, and the operating device control method is realized through data interaction and processing between the outer module and the core computing module.
[0066] Furthermore, the operation device 102 includes an execution device and a display device, both of which are connected to the controller 104. The execution device includes a device that implements the hardware execution function in the operation system, such as a WiFi device that transmits WiFi signals, a motor that outputs kinetic energy, and a sensor that detects and obtains data. The display device includes an output device that implements data display and an input device that changes data in the operation system, such as a display screen, a keyboard, and a touch screen.
[0067] Normally, the operating device 102 will be controlled by multiple processors, but the present application can control the operating device 102 through the controller 104, and solve the complex operating problems such as display, control, and interaction brought by the single-core chip through the operating device 102 control method recorded in the following embodiments.
[0068] In an exemplary embodiment, as shown in FIG2 , a method for controlling an operating device is provided, and the method is applied to the controller 104 in FIG1 as an example for description, and includes the following steps 202 to 208 . Among them:
[0069] Step 202, obtaining operation data of the operation device.
[0070] Among them, the operating device refers to the device that realizes various functions in the operating system, such as WiFi devices, motors, sensors, display screens, keyboards and other devices with operating functions and interactive functions. Specifically, the operating device is connected to the controller and can transmit the operating data of the operating device to the controller. The operating device can actively send the operating data to the controller at a certain frequency, or the controller can send a control request to the operating device, and the operating device sends the operating data to the controller after responding. Furthermore, the outer module of the controller can receive the operating data, and the outer module completes the data interaction with the operating device.
[0071] Optionally, the operation data of the operation device may be the current state of the operation device, such as the operation state of the WiFi device, the operation state of the motor, etc. The operation state of the motor may specifically be whether the motor is started, the speed of the motor, and circuit parameters in the motor, etc.
[0072] Step 204 , obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pushing the operation instruction table.
[0073] Among them, an operation instruction table is built into the controller, and the operation instruction table is used as the operation basis for operation control. When the controller wants to control the connected operation equipment, it needs to perform corresponding control based on the columns in the operation instruction table. Each column in the operation instruction table can store an operation instruction. After obtaining the operation data, the core operation module of the controller can push the corresponding operation instruction into the operation instruction table.
[0074] After receiving the operation data, it is necessary to perform calculations and analysis on the operation data and unify the operation data so as to realize the data linkage between various operation devices in the future. The core operation module of the controller can convert the operation data. According to the different operation devices corresponding to each data in the operation data, the corresponding conversion obtains accurate feedback signals, which can be used by the controller for further overall calculation and generate corresponding operation instructions for each operation device. After obtaining the operation instruction, the core operation module of the controller pushes the operation instruction into the corresponding column of the operation instruction table.
[0075] Step 206: read the operation instruction table, and determine the control toolkit corresponding to the operation instruction table based on the control catalog table.
[0076] The control catalog table is a control master table pre-stored in the controller, which includes control tool packages of different functions of different operating devices, arranged in a certain sequence, and can be called and read at any time. Therefore, there are multiple control tool packages in the control catalog table, and the type and number of control tool packages are determined by the operating devices in the operating system, that is, according to the type and number of operating devices connected to the controller.
[0077] Optionally, when constructing the operating system, the engineering personnel compile a control catalog table according to the determined types and quantities of the operating equipment, record multiple control toolkits and establish their corresponding relationships, and then enter the control catalog table into the controller. For example, when the operating equipment includes a motor, a heater, and a display screen, the control methods corresponding to the three are made into control toolkits, arranged in the control catalog table, and the corresponding serial numbers are compiled.
[0078] Exemplarily, the operating device that needs to be operated is taken as the first level of the control catalog table, the control operation behavior of the operating device is taken as the second level, and the control method (control toolkit) that can implement the control operation behavior is taken as the third level, so as to construct the control catalog table.
[0079] Specifically, the outer module of the controller reads the operation instruction table and calls the control directory table. According to the operation instruction in the operation instruction table, the control directory table is queried to determine the control toolkit corresponding to the operation instruction table and call it. Exemplarily, the outer module of the controller can read the operation instruction table in the background at a certain frequency (e.g., 10ms) according to the timing of the timer. When the operation instruction table is empty, it indicates that there is no control demand.
[0080] Step 208, controlling the operating device according to the operating instruction and the corresponding control toolkit.
[0081] Specifically, after calling the control toolkit, the outer module of the controller will control the running device according to the operation instructions and the corresponding control toolkit, realize the maintenance of the running system, and quickly respond to and update the data of the running device. If the running device includes a display device, the display content of the display device can be updated according to the control toolkit corresponding to the display device and the operation instructions related to the display device. The outer module of the controller can also directly combine the running data with the control toolkit to realize the control of the running device.
[0082] For example, the control toolkit of the display device includes RGB control or 8080 control (a screen display driving method). When the operating data of the heater includes a temperature of 100°C, when the controller updates the display content of the display device, it can directly use the operating data of the heater, combined with the control method in the control toolkit, to update the temperature of the heater on the display device.
[0083] The above-mentioned operating equipment control method includes obtaining the operating data of the operating equipment, obtaining a feedback signal based on the operating data, generating an operating instruction based on the feedback signal, and pressing it into an operating instruction table. The operating instruction table is read, and the control toolkit corresponding to the operating instruction table is determined based on the control catalog table, and the operating equipment is controlled according to the operating instruction and the corresponding control toolkit. By establishing a control catalog table as a control reference, the control behavior is converted into an operating instruction table, and the corresponding control toolkit is obtained by comparing the control catalog table to perform corresponding control, so that the control behavior can be simply and clearly responded to, and the operating equipment can be accurately controlled. There is no need for additional data interaction with the outside, which improves the efficiency and convenience of the control process.
[0084] In an exemplary embodiment, as shown in FIG3 , in step 204 , an operation instruction is generated based on the feedback signal and is pushed into the operation instruction table, including steps 302 to 306 . Among them:
[0085] Step 302: determine the controlled operating device based on the feedback signal, and obtain the operation requirements corresponding to the controlled operating device.
[0086] Specifically, after the processor converts the feedback signal, it analyzes the feedback signal to determine the corresponding operating device that needs to be controlled, that is, the operating device involved in this control and needs to be adjusted. The feedback signal is further analyzed, and after determining the controlled operating device, the operation requirements that need to be performed are further determined. Different operating devices have different operation requirements. In this controller, the operation requirements are analyzed and a connection is established with the corresponding operating device to avoid disorder and cross-flow during data interaction.
[0087] Step 304: Generate an operation instruction according to the operation requirements corresponding to the controlled operating device, and push it into the operation instruction table.
[0088] Specifically, since the controller has a built-in operation instruction table, and the operation instruction table is used as the basis for subsequent operations, the controller calls the control toolkit based on the control catalog table when controlling the running device. Therefore, the data processing of the controller needs to fill the operation instruction table according to the arrangement logic of the control catalog table. Therefore, the core computing module of the controller needs to generate an operation instruction according to the operation requirements corresponding to the controlled running device, and the operation instruction at least includes a corresponding specified running device and an operation requirement for controlling the specified running device. After obtaining the operation instruction, the controller pushes the operation instruction into the operation instruction table.
[0089] In this embodiment, the operation instruction table is used as a medium to push the operation instruction into the operation instruction table so that the outer module of the controller can read it. The operations to be performed can be listed simply and clearly, thereby increasing the accuracy and stability of control and reducing power consumption.
[0090] In an exemplary embodiment, the operation requirements corresponding to the controlled operating equipment include operation types and operation data. As shown in FIG4 , step 304 includes step 402 and step 404 .
[0091] Step 402: determine the operation instruction sequence identifier according to the priority of the operation type, and bind the operation type, operation data and the operation instruction sequence identifier to generate an operation instruction.
[0092] The operation requirement includes the operation type and the operation data. For example, when the controlled operating device is a motor, the operation type may be motor speed control, and the operation data may be motor target speed. Different operation types may have different priorities depending on the operating system. For example, the priority of motor power-off control is generally higher than that of motor speed control. The priority of heater power-off control is higher than that of display screen drive control.
[0093] Specifically, when the operation instruction is pressed into the operation instruction table, the columns of the operation instruction table have a sequence relationship, and the order of the sequence will affect the execution of the operation instruction. Therefore, when generating the operation instruction, the core operation module of the controller will determine the operation instruction sequence identifier according to the priority of the operation type in different operation requirements. The operation data of the same operation requirement is bound to the determined operation instruction sequence identifier, and the operation instruction sequence identifier, operation type and operation data of the same operation requirement are taken as a whole to generate the operation instruction.
[0094] Step 404: Push the operation instruction into the corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0095] According to the determined operation instruction sequence identifier, each operation instruction is sorted, and the operation instructions are pressed into the corresponding position of the operation instruction table in the sorted order. In this way, when the outer module of the processor reads the operation instruction table, it can read, respond and execute control in sequence according to the order of the operation instruction sequence identifier, thereby improving the processing logic of the operation device control and making the control more efficient and orderly.
[0096] In an exemplary embodiment, as shown in FIG. 5 , step 206 includes steps 502 to 504 .
[0097] Step 502, read the operation instruction table, and call the control directory table as a reference.
[0098] Specifically, the outer module of the controller reads the operation instruction table and calls the control directory table as a reference for executing the corresponding control of the operation instruction table. The control directory table includes multiple control toolkits. When the running device is to be controlled, the outer module of the controller will control the specified running device based on the determined control toolkit.
[0099] Step 504, query the control catalog table for a control sequence corresponding to the operation instruction table, and determine the corresponding control toolkit from the corresponding control sequence.
[0100] The control catalog table can be divided into two layers. The first layer is the operating device, which is divided according to different operating devices. Each operating device has a control sequence. Each operating device corresponds to multiple control toolkits, where each control toolkit is divided as the second layer and has a different sequence. For example, if the operating device is a motor, the corresponding control sequence of the motor is 1, and the sequence corresponding to the control toolkit corresponding to the motor speed control method in the motor is 1a. In this way, the control catalog table is constructed.
[0101] Specifically, the controller queries the control sequence corresponding to the operation instruction table in the control directory table. Since the operation instruction table is pressed with operation instructions, the operation instructions include operation types and operation data. The controller can obtain the operating device that needs to be controlled according to the operation type, that is, obtain the corresponding control sequence in the control directory table. The operation type itself can correspond to a control method, that is, it can determine the control toolkit to be used. Therefore, the controller can poll each operation instruction in the operation instruction table and confirm its corresponding control toolkit in the control directory table respectively.
[0102] In this embodiment, by establishing a correspondence between the operation instruction table and the control catalog table, the control toolkit required for this control is determined, which can accurately match the operation requirements, execute the corresponding control, and improve the accuracy of the operating equipment control.
[0103] In an exemplary embodiment, the running device includes an execution device and a display device. As shown in FIG6 , step 202 includes step 602 .
[0104] Step 602: Obtain execution parameters of the execution device and response data of the display device.
[0105] As described above, the operating device may include an execution device and a display device. The execution device includes a device that implements the hardware execution function in the operating system, such as a WiFi device that transmits WiFi signals, a motor that outputs kinetic energy, and a sensor that detects and obtains data. The display device includes an output device that implements data display and an input device that changes data in the operating system, such as a display screen, a keyboard, and a touch screen.
[0106] Specifically, the controller is connected to the execution device and the display device, and can obtain the execution parameters of the execution device and the response data of the display device. The execution device and the display device can actively send the operation data to the controller at a certain frequency, or the controller can send a control request to the execution device and the display device, and the execution device and the display device will send the execution parameters and response data to the controller after responding.
[0107] Correspondingly, step 204 includes steps 604 to 608 .
[0108] Step 604: determining adjustment data corresponding to the response data based on the configuration parameters of the display device.
[0109] Among them, the configuration parameters of the display device refer to relevant data including the basic settings, type specifications and data protocols of the display device. In layman's terms, they include the display area, number of pixels, display functions corresponding to different pixel areas, and instructions corresponding to the state of each pixel.
[0110] Since the response data of the display device is more complex than the execution parameters of the execution device, there may be interactive behaviors such as the user touching the display device such as the touch screen, so the core computing device of the processor needs to analyze the response data according to the configuration parameters of the display device, such as what instructions the coordinates of the pixel points in the response data represent, etc. Through such corresponding analysis, it is determined that the response parameters represent which control function of the execution device the user uses to adjust using the display device, and the corresponding adjustment data is generated.
[0111] Optionally, the response data and the execution parameters may be sent from the outer module of the controller to the core computing module of the controller in the form of an interrupt.
[0112] Step 606: Generate a feedback signal according to the execution parameters and the adjustment data.
[0113] Specifically, the controller combines the execution parameters of the execution device and the generated adjustment data, performs unified adjustment and format conversion, and obtains accurate feedback signals according to the different operating devices corresponding to the execution parameters and each data in the adjustment data.
[0114] Step 608: Generate an operation instruction based on the feedback signal and push it into the operation instruction table.
[0115] The feedback signal can be used by the controller to further coordinate the operation and generate corresponding operation instructions for each operating device. After obtaining the operation instruction, the core operation module of the controller pushes the operation instruction into the corresponding column of the operation instruction table. It has been recorded above and will not be repeated here.
[0116] In this embodiment, by processing the data of the display device, the operating device control method provided in this embodiment can respond to user needs in a timely manner and improve the control efficiency.
[0117] In an exemplary embodiment, as shown in FIG. 7 , step 208 further includes step 702 : releasing and updating the operation instruction table.
[0118] In the running device control method, the core computing module of the controller will push the operation instructions into the operation instruction table, and then the outer module of the controller will read the operation instruction table. In order to avoid redundant occupation of the operation instruction table, the operation instruction table needs to be updated in time. After the controller completes the control of the running device using the corresponding control toolkit, the controller will release the operation instructions in the operation instruction table and update the operation instruction table.
[0119] Furthermore, after the controller releases the operation instruction in the operation instruction table and updates the operation instruction table, the controller also releases the control toolkit corresponding to the operation instruction.
[0120] Optionally, the controller may release the operation instructions in the operation instruction table and update the operation instruction table after all the control toolkits corresponding to the operation instruction table complete control. The controller may also release only the operation instruction in the operation instruction table and then update the operation instruction after the control toolkit corresponding to the operation instruction in the operation instruction table completes control.
[0121] In this embodiment, by releasing and updating the operation instruction table in time, the occupancy of the operation instruction table is reduced, and repeated reading and repeated control can be avoided, which is beneficial to improving the control reliability and stability of the operating device control method, and the accuracy is also improved.
[0122] Based on the same technical concept, the present application also provides an operation system. As shown in FIG1 , in one embodiment, the operation system includes an operation device and a controller. The operation device is connected to the controller, and the controller is used to execute the operation device control method described in the above embodiments.
[0123] The operation system includes an operation device 102 and a controller 104, and the operation device 102 is connected to the controller 104. The operation device 102 refers to a device that implements various functions in the operation system, such as a WiFi device, a motor, a sensor, a display screen, a keyboard, and other devices with operation functions and interactive functions. The controller 104 is a chip with a computing function, which can control the operation device 102 according to the control method of the operation device 102 recorded in each embodiment of the present application. Furthermore, the controller 104 can be divided into an outer module and a core computing module according to different operation functions, and the operation device control method is realized through data interaction and processing between the outer module and the core computing module.
[0124] Furthermore, in one embodiment, the operation device 102 includes an execution device and a display device, and both the execution device and the display device are connected to the controller 104. The execution device includes a device that implements a hardware execution function in the operation system, such as a WiFi device that transmits a WiFi signal, a motor that outputs kinetic energy, and a sensor that detects and obtains data. The display device includes an output device that implements data display and an input device that changes data in the operation system, such as a display screen, a keyboard, and a touch screen.
[0125] In this embodiment, the controller 104 is used to control the running device 102. On the one hand, the single controller 104 is used to control the running, thus avoiding the data interaction of multiple processors and improving the data transmission rate. On the other hand, the control logic in the controller 104 is split, so that the software execution process in the controller 104 is carried out in a modular manner, which reduces the running power consumption and improves the convenience of data processing. In this way, the running efficiency and convenience of the control process are improved.
[0126] In order to better understand the above solution, in combination with the operating system shown in FIG1 , the operating device control method is explained in detail below in combination with a specific embodiment.
[0127] In one embodiment, the controller is divided into an outer module and a core computing module. The outer module is responsible for the underlying layer and hardware control, and the core computing module is responsible for logic processing and data processing, similar to the relationship between limbs and the brain. The outer module includes a bottom layer input module, a bottom layer analysis module, a bottom layer control module, and a reset module. The operating device control method executed by the controller includes:
[0128] The bottom-level input module of the controller obtains the execution parameters of the execution device and the response data of the display device.
[0129] The core computing module of the controller determines the adjustment data corresponding to the response data based on the configuration parameters of the display device, and generates a feedback signal according to the execution parameters and the adjustment data. The controlled operating device is determined based on the feedback signal, and the operation requirements corresponding to the controlled operating device are obtained. The operation requirements corresponding to the controlled operating device include the operation type and the operation data. The operation instruction sequence identifier is determined according to the priority of the operation type, and the operation type, operation data and the operation instruction sequence identifier are bound to generate an operation instruction, and the operation instruction is pushed into the corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0130] The bottom-level analysis module of the controller reads the operation instruction table, and calls the control directory table as a reference, queries the control sequence corresponding to the operation instruction table in the control directory table, and determines the corresponding control toolkit from the corresponding control sequence.
[0131] The bottom control module of the controller controls the running device according to the operation instruction and the corresponding control tool package. The reset module of the controller can release and update the operation instruction table after the bottom control module controls the running device according to the operation instruction and the corresponding control tool package.
[0132] For example, when it is in the initialization state after power-on, the display screen needs to be controlled so that the display screen displays the data of the motor and the heater. The engineering staff arranges the three control methods of motor speed control, heater temperature control, and display screen display data control in the control directory table according to the level of operating equipment, control operation, and control toolkit in advance, corresponding to table numbers 1, 2, and 3. The outer module reads the motor data and heater data, and then the outer module sends the data to the core operation module, which processes the data, separates and converts the speed, temperature value, etc. that the display screen needs to display, generates operation instructions, and presses them into the operation instruction table, and the core operation module ends its work. After the outer module detects that there are operation instructions in the operation instruction table, it queries the control directory table according to the operation instructions, and queries the corresponding control method in the control directory table, that is, the control toolkit with table number 3, and uses the control toolkit to perform RGB or 8080 control according to the operation data to achieve screen control.
[0133] If the screen needs to be clicked to control the motor speed: the user touches it, the outer module receives the touch data in an interrupt manner, and then transmits it to the core operation module. The core operation module determines that the "speed increase" button has been touched based on the coordinates and other data in the touch data, and the speed data needs to be increased. At this time, it is necessary to display and control the motor to adjust the speed. The core operation module pushes the corresponding operation instructions into the operation instruction table in sequence, and the core operation module ends its work. After the outer module detects that there is an operation instruction in the operation instruction table, it queries the control directory table according to the operation instruction, and queries the corresponding control method in the control directory table. That is, first take the control tool package with table sequence 3, release the operation instruction in the operation instruction table after the control screen is displayed, and update the operation instruction table, and release the control tool package at the same time. Then take the control tool package with table sequence 1, perform corresponding PWM control according to the operation data, realize the control of the motor speed, and then release the operation instruction in the operation instruction table and update the operation instruction table, and release the control tool package at the same time.
[0134] In this embodiment, the display and the underlying control are separated, and a set of mechanisms based on the control catalog table is provided to unify the planning and processing, so that the display and control are clearly organized and each performs its own functions, reducing the difficulty of development and maintenance. The display and external device control can be realized more clearly, the intersection between display and control is eliminated, the coupling degree is reduced, the interactive processing is unified, and the effect of efficient processing is achieved.
[0135] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0136] Based on the same inventive concept, the embodiment of the present application also provides an operating device control device for implementing the operating device control method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more operating device control device embodiments provided below can refer to the limitations of the operating device control method above, and will not be repeated here.
[0137] In an exemplary embodiment, as shown in FIG8 , a running device control apparatus is provided, comprising: a bottom layer input module 802, a core operation module 804, a bottom layer analysis module 806 and a bottom layer control module 808, wherein:
[0138] The bottom input module 802 is used to obtain the operation data of the operation equipment;
[0139] The core operation module 804 is used to obtain a feedback signal according to the operation data, generate an operation instruction based on the feedback signal, and push it into the operation instruction table;
[0140] The bottom analysis module 806 is used to read the operation instruction table and determine the control toolkit corresponding to the operation instruction table based on the control catalog table;
[0141] The bottom control module 808 is used to control the running equipment according to the operation instructions and the corresponding control toolkit.
[0142] In one embodiment, the core operation module 804 is further used to determine the controlled operating device based on the feedback signal, and obtain the operating requirements corresponding to the controlled operating device, generate operating instructions according to the operating requirements corresponding to the controlled operating device, and push them into the operating instruction table.
[0143] In one embodiment, the operation requirements corresponding to the controlled operating device include operation types and operation data. The core operation module 804 is also used to determine the operation instruction sequence identifier according to the priority of the operation type, and bind the operation type, operation data and the operation instruction sequence identifier to generate an operation instruction. The operation instruction is pushed into the corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0144] In one embodiment, the bottom layer analysis module 806 is further used to read the operation instruction table and call the control directory table as a reference, query the control sequence corresponding to the operation instruction table in the control directory table, and determine the corresponding control toolkit from the corresponding control sequence.
[0145] In one embodiment, the operating device includes an execution device and a display device. The bottom input module 802 is also used to obtain the execution parameters of the execution device and the response data of the display device. Correspondingly, the core operation module 804 is also used to determine the adjustment data corresponding to the response data based on the configuration parameters of the display device, generate a feedback signal based on the execution parameters and the adjustment data, generate an operation instruction based on the feedback signal, and press it into the operation instruction table.
[0146] In one embodiment, the operating device control apparatus further includes a reset module, which is used to release and update the operating instruction table after the bottom control module 808 controls the operating device according to the operating instruction and the corresponding control toolkit.
[0147] Each module in the above-mentioned operation device control device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0148] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG9. The computer device includes a processor, a memory, an input / output interface, and a communication interface. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, a near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for controlling an operating device is implemented.
[0149] Those skilled in the art will understand that the structure shown in FIG. 9 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0150] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0151] Obtaining operation data of running equipment;
[0152] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0153] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0154] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] The controlled running device is determined based on the feedback signal, and the operation requirements corresponding to the controlled running device are obtained. The operation instructions are generated according to the operation requirements corresponding to the controlled running device, and are pushed into the operation instruction table.
[0157] In one embodiment, the operation requirements corresponding to the controlled operating device include an operation type and operation data. When the processor executes the computer program, the processor also implements the following steps:
[0158] The operation instruction sequence identifier is determined according to the priority of the operation type, and the operation type, operation data and the operation instruction sequence identifier are bound to generate the operation instruction. The operation instruction is pushed into the corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0160] Read the operation instruction table and call the control catalog table as a reference. Query the control sequence corresponding to the operation instruction table in the control catalog table and determine the corresponding control toolkit from the corresponding control sequence.
[0161] In one embodiment, the running device includes an execution device and a display device. When the processor executes the computer program, the processor also implements the following steps:
[0162] Obtain execution parameters of the execution device and response data of the display device. Determine adjustment data corresponding to the response data based on configuration parameters of the display device, generate feedback signals based on the execution parameters and the adjustment data, generate operation instructions based on the feedback signals, and push them into the operation instruction table.
[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0164] Release and update the operation instruction table.
[0165] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0166] Obtaining operation data of running equipment;
[0167] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0168] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0169] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0171] The controlled running device is determined based on the feedback signal, and the operation requirements corresponding to the controlled running device are obtained. The operation instructions are generated according to the operation requirements corresponding to the controlled running device, and are pushed into the operation instruction table.
[0172] In one embodiment, the operation requirements corresponding to the controlled operating device include an operation type and operation data. When the computer program is executed by the processor, the following steps are also implemented:
[0173] The operation instruction sequence identifier is determined according to the priority of the operation type, and the operation type, operation data and the operation instruction sequence identifier are bound to generate the operation instruction. The operation instruction is pushed into the corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0175] Read the operation instruction table and call the control catalog table as a reference. Query the control sequence corresponding to the operation instruction table in the control catalog table and determine the corresponding control toolkit from the corresponding control sequence.
[0176] In one embodiment, the running device includes an execution device and a display device. When the computer program is executed by the processor, the following steps are also implemented:
[0177] Obtain execution parameters of the execution device and response data of the display device. Determine adjustment data corresponding to the response data based on configuration parameters of the display device, generate feedback signals based on the execution parameters and the adjustment data, generate operation instructions based on the feedback signals, and push them into the operation instruction table.
[0178] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0179] Release and update the operation instruction table.
[0180] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0181] Obtaining operation data of running equipment;
[0182] Obtaining a feedback signal according to the operation data, generating an operation instruction based on the feedback signal, and pressing the operation instruction table;
[0183] Reading the operation instruction table, and determining a control toolkit corresponding to the operation instruction table based on a control catalog table;
[0184] The operating device is controlled according to the operating instruction and the corresponding control toolkit.
[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0186] The controlled running device is determined based on the feedback signal, and the operation requirements corresponding to the controlled running device are obtained. The operation instructions are generated according to the operation requirements corresponding to the controlled running device, and are pushed into the operation instruction table.
[0187] In one embodiment, the operation requirements corresponding to the controlled operating device include an operation type and operation data. When the computer program is executed by the processor, the following steps are also implemented:
[0188] The operation instruction sequence identifier is determined according to the priority of the operation type, and the operation type, operation data and the operation instruction sequence identifier are bound to generate the operation instruction. The operation instruction is pushed into the corresponding position of the operation instruction table according to the operation instruction sequence identifier.
[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0190] Read the operation instruction table and call the control catalog table as a reference. Query the control sequence corresponding to the operation instruction table in the control catalog table and determine the corresponding control toolkit from the corresponding control sequence.
[0191] In one embodiment, the running device includes an execution device and a display device. When the computer program is executed by the processor, the following steps are also implemented:
[0192] Obtain execution parameters of the execution device and response data of the display device. Determine adjustment data corresponding to the response data based on configuration parameters of the display device, generate feedback signals based on the execution parameters and the adjustment data, generate operation instructions based on the feedback signals, and push them into the operation instruction table.
[0193] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0194] Release and update the operation instruction table.
[0195] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0196] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0197] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for controlling a running device, characterized in that: The method comprises: Acquire operation data of an operation device; the operation device includes an execution device and a display device, and the operation data includes execution parameters of the execution device and response data of the display device; A feedback signal is obtained according to the operation data, and an operation instruction is generated based on the feedback signal and pushed into an operation instruction table; the method includes: determining adjustment data corresponding to the response data based on configuration parameters of the display device; generating a feedback signal according to the execution parameters and the adjustment data; generating an operation instruction based on the feedback signal and pushing the operation instruction into the operation instruction table; The operation instruction table is read by polling at a certain frequency, and a control toolkit corresponding to the operation instruction table is determined based on a control catalog table; the type and quantity of the control toolkit are determined based on the operating device; The operating device is controlled according to the operating instruction and the corresponding control toolkit.
2. The method according to claim 1, characterized in that The generating of the operation instruction based on the feedback signal and pushing the operation instruction table includes: Determine the controlled operating device based on the feedback signal, and obtain the operation requirements corresponding to the controlled operating device; An operation instruction is generated according to the operation requirements corresponding to the controlled operating device, and is pushed into an operation instruction table.
3. The method according to claim 2, characterized in that The operation requirements corresponding to the controlled operation equipment include operation types and operation data, and the generating of operation instructions according to the operation requirements corresponding to the controlled operation equipment and pushing them into the operation instruction table include: Determine an operation instruction sequence identifier according to the priority of the operation type, and bind the operation type and operation data with the operation instruction sequence identifier to generate an operation instruction; The operation instruction is pushed into a corresponding position of the operation instruction table according to the operation instruction sequence identifier.
4. The method according to claim 1, characterized in that The step of reading the operation instruction table and determining a control toolkit corresponding to the operation instruction table based on a control catalog table includes: Read the operation instruction table and call the control directory table as a reference; The control catalog table is queried for a control sequence corresponding to the operation instruction table, and a corresponding control toolkit is determined from the corresponding control sequence.
5. The method according to claim 1, characterized in that After controlling the operating device according to the operation instruction and the corresponding control toolkit, the operating device control method further includes: The operation instruction table is released and updated.
6. The method according to claim 5, characterized in that The releasing and updating the operation instruction table includes: After the control toolkit corresponding to the operation instruction table completes the control of the running device, the operation instructions in the operation instruction table are released and the operation instruction table is updated.
7. A running equipment control device, characterized in that: The device comprises: The bottom layer input module is used to obtain the operation data of the operation device; the operation device includes an execution device and a display device, and the operation data includes the execution parameters of the execution device and the response data of the display device; A core operation module, used to obtain a feedback signal according to the operation data, generate an operation instruction based on the feedback signal, and push it into an operation instruction table; including: determining the adjustment data corresponding to the response data based on the configuration parameters of the display device; generating a feedback signal according to the execution parameters and the adjustment data; generating an operation instruction based on the feedback signal, and pushing it into the operation instruction table; A bottom-level analysis module, configured to read the operation instruction table by polling at a certain frequency, and determine a control toolkit corresponding to the operation instruction table based on a control catalog table; the type and quantity of the control toolkit are determined based on the operating device; The bottom control module is used to control the operating device according to the operating instruction and the corresponding control toolkit.
8. An operating system, characterized in that: It comprises an operating device and a controller, wherein the operating device is connected to the controller, and the controller is used to execute the operating device control method according to any one of claims 1 to 6.
9. The operating system according to claim 8, characterized in that: The running device includes an execution device and a display device, and both the execution device and the display device are connected to the controller.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
