Method for business processing of detonator based on LINUX system and detonator

文档序号:7336 发布日期:2021-09-17 浏览:54次 中文

1. A method for business processing of an initiator based on a LINUX system is provided, wherein the initiator is used for controlling an electronic detonator, and the method comprises the following steps:

acquiring a plurality of service processing logic messages, wherein the service processing logic messages are logic messages of services required to be controlled when the electronic detonator is controlled by the initiator;

and the LINUX system is adopted to respectively carry out operation processing on the plurality of service processing logic messages by using independent threads, so that the initiator carries out separate operation processing on the plurality of service processing logic messages in a thread form.

2. The method for business processing of the initiator based on the LINUX system according to claim 1, wherein the business processing logic packet comprises: the system comprises a voltage detection logic message, a single shot detection logic message, a delay scheme logic message, a networking detection logic message, an initiation control logic message and a blasting authorization logic message.

3. The method for business processing of an initiator based on a LINUX system according to claim 2, wherein the initiator is provided with a data transmission module and a plurality of communication modules;

the service processing logic message further comprises:

a data interaction service processing logic message used for data interaction between the initiator and the data interaction platform;

enabling the detonator to process a man-machine interaction service processing logic message of man-machine interaction;

a data storage service processing logic message for storing the data to be stored preset in the detonator;

and a plurality of communication interaction service processing logic messages between the data transmission module and the communication modules.

4. The method of claim 3, wherein the business process logic packet comprises the DataStory business process logic packet, and when the LINUX system is used to run and process the DataStory business process logic packet in a single thread, the method further comprises:

and storing the data to be stored through a database arranged in the initiator.

5. The method for the detonator to perform the service processing based on the LINUX system of claim 3, wherein the communication module comprises a wifi connection module, a Bluetooth connection module, a scanning head, an antenna receiving module and a Micro Control Unit (MCU), and each communication module is respectively in communication connection with the data transmission module.

6. The method for business processing of the initiator based on the LINUX system according to claim 3 or 4, wherein the data to be stored comprises blasting authorization data and blasting record data.

7. An initiator, characterized in that it is provided with a central processing unit CPU for performing the steps of the method:

acquiring a plurality of service processing logic messages, wherein the service processing logic messages are logic messages of services required to be controlled when the electronic detonator is controlled by the initiator;

and the LINUX system is adopted to respectively carry out operation processing on the plurality of service processing logic messages by using independent threads, so that the initiator carries out separate operation processing on the plurality of service processing logic messages in a thread form.

Background

The 'bare chip microcomputer directly operating embedded program' is a common control mode of an initiator for controlling an electronic detonator at present, the initiator directly completes the control of the electronic detonator by the mutual cooperation of two or even three micro control unit MCUs, therefore, in the prior art, because the 'bare chip microcomputer directly operating embedded program' completes the data interaction between the initiator and a data interaction platform through one micro control unit MCU program, the initiator manages and stores various required data, the input and output of human-computer interaction, and processes the business functions such as the control of the electronic detonator, and the like, the conversion of the initiator between each working business link can have larger time delay and even the risk of losing the required data due to the single-thread characteristic of the micro control unit MCU and the complexity of data processing.

Disclosure of Invention

The embodiment of the invention provides a method for business processing of an exploder based on a LINUX system and the exploder, which are used for solving the problem that in the prior art, due to the single-thread characteristic of a Micro Control Unit (MCU) and the complexity of data processing, the conversion of the exploder among all working business links has larger time delay.

According to a first aspect of the embodiments of the present invention, there is provided a method for an initiator to perform service processing based on a LINUX system, where the initiator is configured to control an electronic detonator, and the method includes:

acquiring a plurality of service processing logic messages, wherein the service processing logic messages are logic messages of services required to be controlled when the electronic detonator is controlled by the initiator;

and the LINUX system is adopted to respectively carry out operation processing on the plurality of service processing logic messages by using independent threads, so that the initiator carries out separate operation processing on the plurality of service processing logic messages in a thread form.

The embodiment of the invention has the beneficial effects that: the LINUX system is adopted to separately operate and process a plurality of service processing logic messages of the initiator in a thread form, so that each service processing logic of the initiator operates in a multi-thread form, each service does not interfere with each other, the real-time performance of each service processing process is ensured, and the conversion of the initiator among each working service link does not have large delay.

On the basis of the technical scheme, the invention can be further improved as follows.

Optionally, the service processing logic packet includes: the system comprises a voltage detection logic message, a single shot detection logic message, a delay scheme logic message, a networking detection logic message, an initiation control logic message and a blasting authorization logic message.

Optionally, the initiator is provided with a data transmission module and a plurality of communication modules;

the service processing logic message further comprises:

a data interaction service processing logic message used for data interaction between the initiator and the data interaction platform;

enabling the detonator to process a man-machine interaction service processing logic message of man-machine interaction;

a data storage service processing logic message for storing the data to be stored preset in the detonator;

and a plurality of communication interaction service processing logic messages between the data transmission module and the communication modules.

The alternative scheme adopted by the embodiment of the invention has the beneficial effects that the LINUX system is adopted to separately operate and process each service processing logic message of the initiator in a thread form, so that the initiator operates in a multi-thread form when processing each service processing logic, all services are not interfered with each other, and the real-time performance of each service processing process is ensured.

Optionally, the service processing logic packet includes the data storage service processing logic packet, and when the LINUX system is used to perform operation processing on the data storage service processing logic packet by using an individual thread, the method further includes:

and storing the data to be stored through a database arranged in the initiator.

The embodiment of the invention adopting the alternative scheme has the advantages that the process of storing the data to be stored by operating the program of the data storage service and the process of storing by adopting the database are separately operated and independently carried out, the data storage does not completely depend on the program of the data storage service, so that the expansibility of the data storage mode is strong, in addition, the data to be stored is stored by adopting the database, the storage speed is high, the time of occupying a main program due to the stored data can be reduced, when the program of the data storage service is run away and the like, the data stored by the database can be directly and independently extracted, the data loss caused by the program problem can be prevented, and the data storage mode also has maintainability.

Optionally, the communication module includes a wifi connection module, a bluetooth connection module, a scanning head, an antenna receiving module and a micro control unit MCU.

Optionally, the data to be stored includes blasting authorization data and blasting record data.

The embodiment of the invention adopting the alternative scheme has the advantages that the process of storing the data to be stored by operating the data storage service program and the process of storing by adopting the database are separately operated and independently carried out, the data storage does not completely depend on the data storage service program, so that the expansibility of the data storage mode is strong, in addition, the database is adopted to store blasting authorization data, blasting record data and the like, the storage speed is high, the time of occupying a main program due to the stored data can be reduced, when the data storage service program runs and flies and the like, the blasting record data stored in the database can be directly and independently extracted according to the requirements, and the risk of losing the required data due to the problem of the program is prevented.

According to a second aspect of embodiments of the present invention there is provided an initiator, the initiator being provided with a central processing unit, CPU, for performing the steps of the method of:

acquiring a plurality of service processing logic messages, wherein the service processing logic messages are logic messages of services required to be controlled when the electronic detonator is controlled by the initiator;

and the LINUX system is adopted to respectively carry out operation processing on the plurality of service processing logic messages by using independent threads, so that the initiator carries out separate operation processing on the plurality of service processing logic messages in a thread form.

The embodiment of the invention has the beneficial effects that: the method is characterized in that an exploder runs an application program controlled by an electronic detonator and developed on a LINUX system through a central processing unit CPU, the problems that in the prior art, data processing is complex, conversion among links has large delay and data loss risks and the like when the electronic detonator is controlled through mutual matching of a plurality of MCUs are solved, specifically, after a plurality of required service processing logic messages are obtained, the LINUX system is adopted to separately run and process the plurality of service processing logic messages of the exploder in a thread form, each service processing logic of the exploder runs in a multi-thread form, each service processing logic is not interfered with each other, the real-time performance of each service processing process is ensured, and the conversion of the exploder among all working service links cannot have large delay.

The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.

Drawings

Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:

fig. 1 is a schematic flowchart of a method for business processing of an initiator based on a LINUX system according to an embodiment of the present invention;

fig. 2 is a schematic diagram of a connection structure of a central processing unit CPU of the initiator, other parts of the initiator, and a data interaction platform according to an embodiment of the present invention.

In the figure: 1-an exploder, 11-a central processing unit CPU, 12-a database, 13-a data transmission module, 14-a wifi connection module, 15-a Bluetooth connection module, 16-a scanning head, 17-an antenna receiving module, 18-a micro control unit MCU and 2-a data interaction platform.

Detailed Description

Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

A first embodiment of the present invention provides a method for an initiator to perform service processing based on a LINUX system, where the initiator is used to control an electronic detonator, and referring to fig. 1, the method for the initiator to perform service processing based on the LINUX system includes the following steps:

step S11, acquiring a plurality of service processing logic messages, where the service processing logic messages are logic messages of a control service required when the initiator 1 controls the electronic detonator, and the service processing logic messages include: the control services of the voltage detection logic message, the single shot detection logic message, the delay scheme logic message, the networking detection logic message, the detonation control logic message and the blasting authorization logic message, which are performed by the detonator 1 on the electronic detonator, are all control services known to those skilled in the art.

And step S12, operating and processing the plurality of service processing logic messages by using separate threads respectively by using the LINUX system, so that the initiator 1 performs separate operation and processing on the plurality of service processing logic messages in a thread form.

The embodiment of the invention adopts the LINUX system to separately operate and process a plurality of service processing logic messages of the initiator 1 in a thread form, so that each service processing logic of the initiator 1 is operated in a multi-thread form, each service is not interfered with each other, the real-time performance of each service processing process is ensured, and the conversion of the initiator 1 in each working service link does not have large delay. Moreover, since each business processing logic of the initiator 1 is operated in a multi-thread form, the initiation control of the initiator 1 on the electronic detonator is operated by a single thread and is not influenced by other business processing, and the real-time performance of the initiator 1 on the control process of the electronic detonator is ensured.

In the embodiment of the present invention, the initiator 1 is provided with a data transmission module 13 and a plurality of communication modules, and the service processing logic packet further includes: the data interaction service processing logic message is used for data interaction between the initiator 1 and the data interaction platform 2, so that the initiator 1 performs man-machine interaction, the data storage service processing logic message is used for storing data to be stored preset in the initiator 1, and the communication interaction service processing logic messages between the data transmission module 13 and the communication modules, wherein optionally, in the embodiment of the invention, the communication modules comprise a wifi connection module 14, a bluetooth connection module 15, a scanning head 16, an antenna receiving module 17 and a micro control unit MCU 18. In the embodiment of the invention, the LINUX system is adopted to separately run and process each service processing logic message of the initiator 1 in a thread form through the step S12, so that the initiator 1 runs in a multi-thread form when processing each service processing logic, and each service is not interfered with each other, thereby ensuring the real-time performance of each service processing process.

Optionally, in the embodiment of the present invention, if the service processing logic packet includes a data storage service processing logic packet, then when the LINUX system is used to perform operation processing on the data storage service processing logic packet by using a single thread in step S12, the method further includes the following steps:

the data to be stored is stored by means of a database 12 provided within the initiator 1.

Therefore, the embodiment of the invention separately operates the process of storing the data to be stored by running the program of the data storage service processing logic message and the process of storing by adopting the database 12, and independently performs the process, the storage of the data does not completely depend on the program of running the data storage service processing logic message, so that the expansibility of the data storage mode is strong, and the data to be stored by adopting the database 12 is high in storage speed, the time of occupying the main program due to the stored data can be reduced, when the data storage service program runs and flies, the data stored by the database 12 can be directly and independently extracted, so that the data loss caused by the problem of the program can be prevented, and the data storage mode has maintainability. Optionally, in the embodiment of the present invention, the data to be stored includes blasting authorization data and blasting record data, and when a data storage service program runs away, the blasting record data stored in the database 12 may be directly and independently extracted according to a requirement, so as to prevent a risk of loss of the required data due to a problem of the program.

In a second embodiment of the invention, an initiator 1 is provided, referring to fig. 1-2, the initiator 1 being provided with a central processing unit CPU11, referring to fig. 1, the central processing unit CPU11 being adapted to perform the steps of the method as follows:

step S11, acquiring a plurality of service processing logic messages, where the service processing logic messages are logic messages of a control service required when the initiator 1 controls the electronic detonator, and the service processing logic messages include: voltage detection logic message, single shot detection logic message, delay scheme logic message, networking detection logic message, detonation control logic message and blasting authorization logic message;

and step S12, operating and processing the plurality of service processing logic messages by using separate threads respectively by using the LINUX system, so that the initiator 1 performs separate operation and processing on the plurality of service processing logic messages in a thread form.

The initiator 1 provided by the embodiment of the invention runs an application program controlled by an electronic detonator developed on a LINUX system through a central processing unit CPU11, and avoids the problems of tedious data processing, large delay and risk of data loss in the conversion among links, and the like caused by the fact that a plurality of MCUs are mutually matched to complete the control of the electronic detonator in the prior art.

Optionally, in the embodiment of the present invention, the initiator 1 further includes a data transmission module 13 and a plurality of communication modules. The service processing logic message further comprises: the data interaction service processing logic message is used for data interaction between the initiator 1 and the data interaction platform 2, the man-machine interaction service processing logic message is used for man-machine interaction of the initiator 1, the data storage service processing logic message is used for storing data to be stored preset in the initiator 1, and the communication interaction service processing logic messages between the data transmission module 13 and the communication modules are used. The initiator 1 provided by the embodiment of the invention separately operates and processes each service processing logic message of the initiator 1 in a thread form by adopting the LINUX system through the central processing unit CPU11, so that the initiator 1 operates in a multi-thread form when processing each service processing logic, each service is not interfered with each other, and the real-time performance of each service processing process is ensured.

Optionally, the initiator 1 provided in the embodiment of the present invention is further provided with the database 12, and the service processing logic message includes a data storage service processing logic message, and when the central processing unit CPU11 uses the LINUX system to perform operation processing on the data storage service processing logic message in a single thread, the central processing unit CPU11 further executes the following steps of the method: the data to be stored is stored by the database 12. The embodiment of the invention separately operates the process of storing the data to be stored by operating the program of the data storage service processing logic message and the process of storing by adopting the database 12, and independently performs the data storage, the data storage does not completely depend on the program of the data storage service processing logic message, and the database 12 is adopted to store the data to be stored, so that the storage speed is high, the time of occupying the main program due to the stored data can be reduced, the maintainability is realized, and when the data storage service program runs away and flies, the data stored in the database 12 can be directly and independently extracted, thereby preventing the data from being lost due to the problem of the program.

Therefore, in the embodiment of the invention, the main operation chip of the initiator 1, namely the central processing unit CPU11, operates the application program controlled by the electronic detonator developed on the LINUX system, so as to implement multi-thread operation of each control service processing process of the initiator 1, perform data interaction between the initiator 1 and the data interaction platform 2, manage and store various required data (such as authorization, data of blasting records and the like), input and output of man-machine interaction, control of the electronic detonator, and separate operation of communication interaction and other service processing processes between the data transmission function and the wifi connection module 14, the bluetooth connection module 15, the scanning head 16, the antenna receiving module 17, the MCU18 and other modules in a multi-thread form, wherein the service processing processes are not interfered with each other, so that the real-time performance of communication can be ensured, and the experience of use can be improved. Because each business process is operated in a multi-thread mode, the control of the detonator 1 on the electronic detonator is operated in a single thread mode, the control of the detonator 1 on the electronic detonator is not influenced by other business processes, because data to be stored (such as data of authorization, blasting record and the like) can be stored by adopting the database 12 arranged in the detonator 1, the storage mode of the data to be stored does not completely depend on a program of a data storage business, and even if the program of the data storage business is wrong, a required data table can be independently exported and processed, so that the risk of data loss caused by the problem of the program is avoided.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), and includes a plurality of instructions for controlling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.

While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:计算资源规划方法以及电子设备、存储装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!