Control method based on Hong mine configuration system

Through the control method based on the Kuanghong configuration system, the problems of low development efficiency and poor stability of Kuanghong equipment communication control are solved, flexible and efficient equipment communication management is achieved, the cost and development cycle are reduced, and the equipment supports multiple protocols Control at the same time.

CN118535212AActive Publication Date: 2024-08-23HUAINAN WANTAI ELECTRONICS

Patent Information

Application Number
CN202410645515.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-08-23
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

Kuanghong equipment communication control development efficiency is low, flexibility is insufficient, stability is poor, development cycle is long, and cost is high.

Method used

Using a control method based on the Kuanghong configuration system, it loads device information and data frames by reading configuration files, generates query instructions and executes them, uses dual decoupling queue mode to process the instruction results, and supports multiple communication protocols and devices to be controlled at the same time, which is flexible Set device parameters to avoid recompilation.

Benefits of technology

It improves the flexibility and stability of Kuanghong equipment communication, reduces development and maintenance costs, supports simultaneous management and control of equipment with multiple protocols, avoids command squeeze and error processing, and improves data interaction efficiency and reusability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535212A
    Figure CN118535212A
Patent Text Reader

Abstract

The invention relates to the field of red-mine equipment communication, in particular to a control method based on a red-mine equipment configuration system, which comprises the following steps of: D01, reading a configuration file, loading information and data frames of the red-mine equipment to a cache, and reading the configuration file of the red-mine equipment by a red-mine application; d02, loading the variable configuration information of the Hongshu application cache to the Hongshu application cache; d03, starting the red mine equipment according to the cache equipment information; d04, generating a query instruction from the mine red-frame data, and putting the query instruction into an execution queue; d05, popping up the instructions in the execution queue, and executing the instructions according to the order of instruction permissions; d06, putting an instruction execution result into an instruction result queue; and D07, analyzing according to an instruction result and assigning a value to a corresponding red-mine application memory variable. According to the invention, data mode connection is carried out through a zero code configuration mode, and the effects of high efficiency, stability, high flexibility, high reusability and low cost can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mine communication equipment technology, and in particular to a control method based on a mine configuration system. Background Art

[0002] At present, the device communication of Kuanghong applications is often customized and developed. The connection of devices is often achieved by temporarily creating device connection objects in the code. Each application must adjust the code according to the number of devices and device parameters. The development efficiency and flexibility of Kuanghong device communication control are low, which is not conducive to improving the efficiency and reusability of data interaction between Kuanghong applications and Kuanghong devices. The development cycle of Kuanghong applications and Kuanghong device communication is long and the cost is high. Summary of the invention

[0003] The purpose of the present invention is to propose a control method based on a mine configuration system to address the problems in the background technology of low efficiency, insufficient flexibility, poor stability, long development cycle and high development cost of mine equipment communication control development.

[0004] The technical solution of the present invention is a control method based on the mine configuration system, comprising the following steps:

[0005] D01. Read the configuration file to load the Mine Hong device information and data frame into the cache. The Mine Hong application reads the configuration file of the Mine Hong device;

[0006] D02. Load the Kuanghong application cache variable configuration information into the Kuanghong application cache;

[0007] D03. Start the mining equipment according to the cache equipment information;

[0008] D04, putting the query instruction for generating the mining frame data into the execution queue;

[0009] D05. Pop out the instructions in the execution queue and execute them in the order of the highest and lowest authority;

[0010] D06, put the result of instruction execution into the instruction result queue;

[0011] D07. Parse the instruction result and assign the value to the corresponding Mine Application memory variable.

[0012] Preferably, in D01, the parameters of the MineHong device include: the MineHong terminal serial number of the device, the IP address of the device, the port number, permission configuration, baud rate, valid bits, verification method and communication configuration parameters of the MineHong communication protocol. The MineHong data frame information includes the starting address and data length of each request to the MineHong device, and is the unit object of data query.

[0013] Preferably, in D04, the data access frequency and range of the Mine Hong device are determined by the data frame. The Mine Hong data frame will be converted into a corresponding data frame object, and the data frame object will be converted into an execution instruction object and placed in the instruction execution queue.

[0014] Preferably, in D05, the execution instruction queue includes read instructions and modify instructions, the modify instructions are transmitted via events on the interface, and the read instructions are converted from frame objects.

[0015] Preferably, in D07, an object is popped from the instruction execution result queue, parsed according to the sending instruction attribute of the object, a corresponding variable set is found according to the sending instruction starting address and offset, and the value queried from the instruction execution result is assigned to the corresponding variable set.

[0016] Compared with the prior art, the present invention has the following beneficial technical effects:

[0017] 1. Powerful functions. The Mine Hong equipment control in configuration mode supports the communication protocols of various Mine Hong equipment, can support the simultaneous management and control of multiple devices with different protocols, and adopts scientific and systematic algorithms to reasonably schedule and control equipment resources.

[0018] 2. High flexibility. Traditionally, communication access to devices requires creating objects in the code based on demand. This method requires recompilation and release for software upgrades and maintenance, and has poor flexibility. The present invention only requires setting the parameters of the mining equipment to be connected in the configuration interface, and no recompilation is required.

[0019] 3. Strong stability. The present invention adopts a dual decoupled queue mode for the result processing of instruction execution. There are execution order rules and targeted waiting time during instruction execution, and there will be no instruction squeezing and blocking process. The execution results will have various validity judgments, eliminating the situation where erroneous data leads to erroneous processing.

[0020] 4. Low cost. The access method of Kuanghong equipment in configuration mode is improved and optimized from different dimensions compared with the traditional mode through testing, which greatly reduces the workload from the perspective of development and maintenance. Therefore, the cost is greatly reduced compared with the traditional coding mode. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a schematic diagram of how the Kuanghong application configuration mode communicates with Kuanghong equipment.

[0022] Figure 2 Flowchart for converting a mine device frame object into a global frame data object array.

[0023] Figure 3 The flowchart of converting the mining frame data object into a read instruction and pushing it into the instruction execution queue.

[0024] Figure 4 A flowchart for converting Mine Hong interface events into modification instructions and placing them into the instruction execution queue.

[0025] Figure 5 A flowchart for timing the pop-up execution instructions and executing the instructions.

[0026] Figure 6 This is a flowchart for analyzing and processing the execution results of the Mine Hong instruction.

[0027] Figure 7 It is a UML class diagram of the relevant core class information in the present invention.

[0028] Figure 8 It is a flowchart of the generation, execution and analysis of the mining instruction in the present invention. DETAILED DESCRIPTION

[0029] Embodiment 1

[0030] like Figure 1 As shown, a control method based on a mine configuration system proposed by the present invention comprises the following steps:

[0031] D01. Read the configuration file to load the Kuanghong device information and data frame into the cache. The Kuanghong application reads the configuration file of the Kuanghong device. These configuration files have the relevant parameters of the device. The parameters of the Kuanghong device include: the Kuanghong terminal serial number of the device, the IP address of the device, the port number, the permission configuration, the baud rate, the valid bit, the check method and other communication configuration parameters of the Kuanghong communication protocol. The Kuanghong data frame information contains the starting address and data length of each request to the Kuanghong device. It is the unit object of data query. The device information and data frame object are loaded into the memory object array. Reference Figure 7 The class models of Device (mining equipment), Frame (mining data frame) and FrameReadCmd (mining frame reading command) in the UML class diagram. The initialization process of the frame reading command can be referred to in Figure 2 ;

[0032] D02. Load the variable configuration information of the mining application cache into the mining application cache: The mining application cache variable information is a media object in the configuration application development. It is associated with the physical value of the device and the user-oriented operation interface. The variable information contains the device information of the mining device and the address offset corresponding to a mining data frame of a mining data source. Each variable is associated with the register of the specific location of the specific mining device.

[0033] D03. Start the mining device according to the cache device information: According to the memory device object initialized in the D02 stage, dynamically create a connection object to access the mining device according to the device parameters, and start the mining device connection object;

[0034] D04. Put the query instruction generated by the Kuanghong frame data into the execution queue; the data access frequency and range of the Kuanghong device are determined by the data frame. The Kuanghong data frame will be converted into the corresponding data frame object, and the data frame object will be converted into an execution instruction object and put into the instruction execution queue. Figure 7 For the executable command objects in the UML class diagram, refer to the CommandModel (execution command) and CommandQueue (command execution queue) class diagrams. Figure 3 ;

[0035] D05. Pop out the instructions in the execution queue and execute them in the order of the highest and lowest authority. The execution instruction queue contains read instructions and modify instructions. The modify instruction is transmitted by the event on the interface, and the read instruction is converted by the frame object. When the queue pops out the instruction, the modify instruction is used first. If there is a modify instruction in the queue, execute the modify instruction first. After the modify instruction is executed, execute the read instruction. The process of converting the interface event into the modify instruction is referenced in Figure 4 ;

[0036] D06. Put the result of instruction execution into the instruction result queue: After the instruction is executed, the result is converted into an instruction execution result object and the execution result is put into the execution result queue. For this process, refer to Figure 5 ,refer to Figure 7 ReadCmdResultModel (command execution result object) and ReadCommandQueue (command execution result queue) in the UML class diagram;

[0037] D07. Parse the command result and assign the value to the corresponding memory variable of the mining application; pop the object from the command execution result queue, parse it according to the sending command attribute of the object, find the corresponding variable set according to the sending command start address and offset, and assign the value queried by the command execution result to the corresponding variable set. The assignment rules are different according to the type of variable, and they are based on Boolean, integer and decimal types respectively. This process refers to Figure 6 ;

[0038] Please refer to the timeline flow of the generation, storage, execution and processing of the control instructions of the Kuanghong equipment Figure 8 .

[0039] In summary, the configuration method based on the mining system provided by the present invention realizes the communication method of the mining equipment. Compared with the data method of the traditional mining application, it is more flexible, more stable, more reusable and less costly. The specific description is as follows:

[0040] 1. Powerful functions. The Mine Hong equipment control in configuration mode supports the communication protocols of various Mine Hong equipment, can support the simultaneous management and control of multiple devices with different protocols, and adopts scientific and systematic algorithms to reasonably schedule and control equipment resources.

[0041] 2. High flexibility. Traditionally, communication access to devices requires creating objects in the code based on demand. This method requires recompilation and release for software upgrades and maintenance, and has poor flexibility. The present invention only requires setting the parameters of the mining equipment to be connected in the configuration interface, and no recompilation is required.

[0042] 3. Strong stability. The present invention adopts a dual decoupled queue mode for the result processing of instruction execution. There are execution order rules and targeted waiting time during instruction execution, and there will be no instruction squeezing and blocking process. The execution results will have various validity judgments, eliminating the situation where erroneous data leads to erroneous processing.

[0043] 4. Low cost. The access method of Kuanghong equipment in configuration mode is improved and optimized from different dimensions compared with the traditional mode through testing, which greatly reduces the workload from the perspective of development and maintenance. Therefore, the cost is greatly reduced compared with the traditional coding mode.

[0044] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited thereto, and various changes can be made within the knowledge scope of technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A control method based on the mine configuration system, characterized in that: The following steps are involved: D01. Read the configuration file to load the Mine Hong device information and data frame into the cache. The Mine Hong application reads the configuration file of the Mine Hong device; D02. Load the Kuanghong application cache variable configuration information into the Kuanghong application cache; D03. Start the mining equipment according to the cache equipment information; D04, putting the query instruction for generating the mining frame data into the execution queue; D05. Pop out the instructions in the execution queue and execute them in the order of the highest and lowest authority; D06, put the result of instruction execution into the instruction result queue; D07. Parse the instruction result and assign the value to the corresponding Mine Application memory variable.

2. The control method based on the mine configuration system according to claim 1 is characterized in that: In D01, the parameters of the Mine Hong device include: the Mine Hong terminal serial number of the device, the IP address of the device, port number, permission configuration, baud rate, valid bits, verification method and communication configuration parameters of the Mine Hong communication protocol. The Mine Hong data frame information contains the starting address and data length of each request to the Mine Hong device, and is the unit object of data query.

3. The control method based on the mine configuration system according to claim 1 is characterized in that: In D04, the data access frequency and range of the Mine Hong device are determined by the data frame. The Mine Hong data frame will be converted into the corresponding data frame object, and the data frame object will be converted into an execution instruction object and placed in the instruction execution queue.

4. The control method based on the mine configuration system according to claim 1 is characterized in that: In D05, the execution instruction queue includes read instructions and modify instructions. The modify instructions are transmitted by the events on the interface, and the read instructions are converted by the frame objects.

5. The control method based on the mine configuration system according to claim 1 is characterized in that: In D07, an object is popped from the instruction execution result queue, parsed according to the sending instruction attribute of the object, the corresponding variable set is found according to the starting address and offset of the sending instruction, and the value queried from the instruction execution result is assigned to the corresponding variable set.

Citation Information

Patent Citations

  • User data version conversion system and user data version conversion method

    CN102385506A

  • Method and device for transplanting swan gap system, electronic equipment and readable medium

    CN115291946A

  • Method and device for updating swan project file, computer equipment and storage medium

    CN117389579A

  • Hong-mine system-based configuration system

    CN117908868A

  • Application programming interface with inverted memory protocol for embedded software systems

    US6968438B1

Cited By

  • Method and equipment for controlling red-in-mine equipment

    CN120729534A

  • A control method and device for a mining vehicle

    CN120729534B