CN116302603A - Electronic detonator communication establishment and control method and device, storage medium and electronic equipment - Google Patents

Electronic detonator communication establishment and control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN116302603A
CN116302603A CN202310198980.XA CN202310198980A CN116302603A CN 116302603 A CN116302603 A CN 116302603A CN 202310198980 A CN202310198980 A CN 202310198980A CN 116302603 A CN116302603 A CN 116302603A
Authority
CN
China
Prior art keywords
communication
electronic
algebraic
generations
electronic detonator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310198980.XA
Other languages
Chinese (zh)
Inventor
李大云
徐承敏
张小龙
陆晓戈
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guizhou Qaml Of Science And Technology Co ltd
Original Assignee
Guizhou Qaml Of Science And Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guizhou Qaml Of Science And Technology Co ltd filed Critical Guizhou Qaml Of Science And Technology Co ltd
Priority to CN202310198980.XA priority Critical patent/CN116302603A/en
Publication of CN116302603A publication Critical patent/CN116302603A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method for establishing electronic detonator communication, and belongs to the technical field of electronic detonator communication and control. It comprises the following steps: obtaining a plurality of communication driving subroutines according to the multi-generation electronic detonator to be communicated, wherein the plurality of communication driving subroutines are contained in the same communication driving program, and the plurality of communication driving subroutines respectively belong to a part of the communication driving program; the one or more communication driving subroutines are matched with the one or more generations of electronic detonators, so that the one or more communication driving subroutines are communicated with the one or more generations of electronic detonators, and each communication driving subroutine can be communicated with the one or more generations of electronic detonators matched with the communication driving subroutines. The method can obtain a plurality of communication driving subroutines, realize that one or a plurality of communication driving subroutines are communicated with one or a plurality of generations of electronic detonators, and is beneficial to establishing communication for the plurality of generations of electronic detonators.

Description

Electronic detonator communication establishment and control method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of electronic detonator communication and control technologies, and in particular, to a method and apparatus for establishing and controlling electronic detonator communication, a storage medium, and an electronic device.
Background
At present, with the wide use of electronic detonators, the algebra of the electronic detonators is increasing, and the algebra of the electronic detonators is increasing; however, the electronic detonator is controlled by a driving program for driving the electronic detonator, and a main control program and a driving communication program are matched with each other to control only one generation of matched electronic detonator.
When the electronic detonators used in the blasting site are provided with multiple generations or the blasting site needs to be provided with the multiple generations, the control chips in the multiple generations of electronic detonators need to be controlled, so that multiple driving communication programs need to be developed on the same hardware platform, and the matched driving communication programs need to be updated and downloaded respectively according to the control chips in the multiple generations of electronic detonators of different generations when the electronic detonators are used, otherwise, the communication control cannot be carried out on the electronic detonators of all the current generations, inconvenience is brought to the blasting site use, and program updating errors are easily caused by updating the matched driving communication programs respectively; in addition, a plurality of driving communication programs are developed on the same hardware platform, so that development cost and maintenance cost are increased, and the probability of program errors is increased. Further, the key for realizing the control of the multi-generation electronic detonator is to realize the establishment of communication of the multi-generation electronic detonator; thus, there is a need for a method of establishing communication for multiple generations of electronic detonators.
Disclosure of Invention
The invention aims to overcome at least one defect of the prior art and provide an electronic detonator communication establishment method which is beneficial to establishing communication for a plurality of generations of electronic detonators; in addition, a device for establishing the communication of the electronic detonator, a computer readable storage medium and an electronic device are also provided.
The technical scheme for solving the technical problems is as follows:
according to an aspect of the present application, there is provided an electronic detonator communication establishment method, the electronic detonator having multiple generations, each generation of electronic detonator having a different communication, the electronic detonator communication establishment method including:
obtaining a plurality of communication driving subroutines according to a plurality of generations of electronic detonators to be communicated, wherein the communication driving subroutines are contained in the same communication driving program, and the communication driving subroutines respectively belong to a part of the communication driving program;
and matching one or more communication driving subroutines with one or more generations of electronic detonators, so as to establish communication between the one or more communication driving subroutines and the one or more generations of electronic detonators, wherein each communication driving subroutine can establish communication for the electronic detonator matched with the communication driving subroutine.
According to one embodiment of the present invention, the obtaining a plurality of communication driving subroutines according to the multi-generation electronic detonator to be communicated comprises:
identifying algebraic characteristic attributes of control chips arranged in the multiple generations of electronic detonators respectively to obtain algebraic information of the multiple generations of electronic detonators, wherein the algebraic characteristic attributes are used for representing algebra of the electronic detonators, and algebraic characteristic attributes of the electronic detonators in different algebra are different;
and programming corresponding to the multiple generations of electronic detonators respectively based on the obtained algebraic feature attributes of the multiple generations of electronic detonators respectively to obtain multiple communication driving subroutines which can be matched with the multiple generations of electronic detonators respectively, and packaging the multiple communication driving subroutines into the same communication driving program, wherein each communication driving subroutine can establish communication for the generation of electronic detonators with the algebraic feature attributes matched.
According to one embodiment of the present invention, said matching one or more of said communication driving sub-programs with one or more generations of said electronic detonators, enabling to establish communication between one or more of said communication driving sub-programs and one or more generations of said electronic detonators, comprises:
When the electronic detonator to be communicated has a generation, calling a communication driving subprogram matched with the algebraic characteristic attribute of the electronic detonator to be communicated with the algebraic matched electronic detonator according to the algebraic characteristic attribute of the electronic detonator of the generation to be communicated;
when the electronic detonator to be communicated is provided with multiple generations, calling a plurality of communication driving subroutines which are matched with the algebraic characteristic attribute of the electronic detonator respectively according to the algebraic characteristic attribute of the electronic detonator to be communicated and the algebraic matched electronic detonator.
According to an embodiment of the present invention, the identifying the algebraic feature attribute of the control chip provided in the electronic detonator in multiple generations to obtain algebraic information of the electronic detonator in multiple generations includes:
identifying algebraic identification marks of the electronic detonators in multiple generations, and judging the algebraic identification marks, wherein the algebraic identification marks are respectively arranged in control chips of the electronic detonators in multiple generations and are used for respectively representing algebra of the control chips, and the algebraic identification marks of the electronic detonators in different algebra are different;
And confirming algebra of the multi-generation electronic detonator based on the judgment result of the algebraic identification mark.
According to an embodiment of the present invention, the identifying the algebraic feature attribute of the control chip provided in the electronic detonator in multiple generations to obtain algebraic information of the electronic detonator in multiple generations includes:
respectively sending chip algebra detection instructions to control chips in the multi-generation electronic detonator;
based on the chip algebra detection instruction, the control chips in the multi-generation electronic detonator respectively feed back chip algebra detection results;
based on a plurality of chip algebraic detection results, respectively setting identification parameter items for control chips in the plurality of generations of electronic detonators to obtain a plurality of algebraic identification parameter items;
and respectively reading a plurality of algebraic identification parameter items to realize the confirmation of the algebra of the electronic detonator, wherein each algebraic identification parameter item corresponds to the control chip in the electronic detonator, and each algebraic identification parameter item is used for correspondingly calling one communication driving subprogram.
According to another aspect of the present application, there is also provided an electronic detonator control method, including:
the main control program is used for respectively matching one or more communication driving subprograms in the communication driving program with one or more generations of electronic detonators, so that the steps in the electronic detonator communication establishment method are implemented, and the one or more communication driving subprograms are communicated with the one or more generations of electronic detonators to be communicated;
And sending a first instruction to the communication driving program through the main control program, calling one or more communication driving subprograms by the communication driving program in response to the first instruction, sending a second instruction to one or more generations of electronic detonators, and executing the second instruction by the one or more generations of electronic detonators.
According to one embodiment of the present invention, the sending, by the main control program, a first instruction to the communication driver, the communication driver calling one or more communication driver subroutines in response to the first instruction, and sending, to one or more generations of the electronic detonator, a second instruction, includes:
extracting a data frame in the first instruction, and calling an API (application program interface) associated with the data frame in the first instruction according to the data frame in the first instruction, wherein the communication driving subprograms respectively comprise API functions, the API functions in different communication driving subprograms are different, and the API functions are called by calling the API interfaces;
and sending a second instruction to the electronic detonator of one generation or more generations corresponding to the API function through the called API function associated with the API interface.
According to one embodiment of the present invention, before the electronic detonator of one or more generations executes the second instruction, the electronic detonator control method further includes:
one or more generations of the electronic detonator responds to the first instruction and feeds back a third instruction based on the first instruction;
extracting a data frame in the third instruction;
comparing each byte in the data frame in the third instruction with the corresponding byte in the data frame in the second instruction;
judging whether bytes of data frames in the second instruction and the third instruction are consistent, and if the bytes are consistent, executing the second instruction by the electronic detonator of one or more generations; if the bytes are inconsistent, prompting communication faults, and enabling the electronic detonator of one generation or more generations not to execute the second instruction.
According to still another aspect of the present application, there is also provided an apparatus for establishing communication between electronic detonators, including:
the program editing module is used for obtaining a plurality of communication driving subroutines through programming according to the multi-generation electronic detonator;
and the communication establishment module is used for matching one or more communication driving subroutines with one or more generations of electronic detonators, so that the one or more communication driving subroutines can establish communication with the one or more generations of electronic detonators.
According to yet another aspect of the present application, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, implements the above-mentioned method.
According to yet another aspect of the present application, there is also provided an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above method when executing the computer program.
The technical scheme provided by the embodiment of the application at least brings the following beneficial effects:
in the embodiment of the application, a plurality of communication driving subroutines are obtained according to the multi-generation electronic detonator to be communicated, and the plurality of communication driving subroutines are contained in the same communication driving program, so that only one communication driving program is required to be developed, and the communication can be established for the multi-generation electronic detonator through the communication driving subroutines in the communication driving program; when the communication driving program is used for establishing communication with the electronic detonator, the matched communication driving subprogram can be respectively called according to algebraic conditions of the electronic detonator used in the blasting site to establish communication with the algebraic matched electronic detonator, so that communication can be established with all algebraic electronic detonators in the blasting site, the workload of program development can be greatly reduced, the program development period is shortened, various problems and uncertain factors caused by developing a plurality of programs are avoided, and the workload of a test program and the maintenance cost in the later period are also reduced; furthermore, a matched communication driving subprogram can be selected for establishing communication according to the algebra of the electronic detonator, so that the flexibility of establishing communication for the electronic detonator is improved, and repeated replacement of the driving program due to algebraic change of the electronic detonator used in a blasting site is avoided;
Furthermore, in the electronic detonator control method of the embodiment of the application, the communication driving subprogram is matched with the algebraic matched electronic detonator through the main control program, the communication driving subprogram is used for establishing communication with the algebraic matched electronic detonator to be communicated, and then an instruction is sent to the algebraic matched electronic detonator, so that the control of the multi-generation electronic detonator is realized, the matched communication driving subprogram can be selected for control according to the algebra of the electronic detonator, and the control flexibility of the electronic detonator is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a multi-generation electronic detonator connected to a communication bus and an electronic detonator initiation control system wired to an electronic detonator initiation controller in an embodiment of the present invention;
FIG. 2 is a schematic diagram of a wireless connection between an electronic detonator initiation control system and an electronic detonator initiation controller in an embodiment of the present invention;
FIG. 3 is a flow chart of a method for establishing electronic detonator communications in an embodiment of the invention;
FIG. 4 is a flow chart of checking a second instruction according to an embodiment of the present invention;
fig. 5 is a block diagram of a device for establishing communication between electronic detonators in an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In order that the above-recited objects, features and advantages of the present invention will be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
The method for establishing communication between electronic detonators provided in this embodiment includes, as shown in fig. 3, steps of:
step S302, a plurality of communication driving subroutines are obtained according to the multi-generation electronic detonator to be communicated, wherein the plurality of communication driving subroutines are contained in the same communication driving program, and the plurality of communication driving subroutines respectively belong to a part of the communication driving program;
step S304, one or more communication driving subroutines are matched with the electronic detonator of one or more generations, so that the communication between the one or more communication driving subroutines and the electronic detonator of one or more generations is established, wherein each communication driving subroutine can establish communication for the electronic detonator matched with the communication driving subroutine of one generation.
In this embodiment, as shown in fig. 3, according to the multi-generation electronic detonator to be communicated, a plurality of communication driving subroutines are obtained, and the plurality of communication driving subroutines are contained in the same communication driving program, so that only one communication driving program needs to be developed, only one assembly and one verification are needed, the time and cost for developing the communication driving program are saved, and the communication can be established for the multi-generation electronic detonator through the communication driving subroutines in the communication driving program; when the communication driving program is used for establishing communication with the electronic detonator, the matched communication driving subprogram can be respectively called according to algebraic conditions of the electronic detonator used in the blasting site to establish communication with the algebraic matched electronic detonator, so that communication can be established with all algebraic electronic detonators in the blasting site, the workload of program development can be greatly reduced, the program development period is shortened, various problems and uncertain factors caused by developing a plurality of programs are avoided, and the workload of a test program and the maintenance cost in the later period are also reduced; furthermore, the matched communication driving subprogram can be selected for establishing communication according to the algebraic generation of the electronic detonator, so that the flexibility of establishing communication for the electronic detonator is improved, and the repeated replacement of the driving subprogram due to algebraic change of the electronic detonator used in the blasting site is avoided.
In this embodiment, "each communication driving sub-program can establish communication with the electronic detonator of the generation that is matched with the communication driving sub-program" in step S304 means that the electronic detonator to be subjected to communication establishment can establish communication by the corresponding communication driving sub-program; each communication driving subroutine in the present embodiment is a program obtained for realizing editing procedures for controlling electronic detonators of different generations. In addition, the plurality of communication driving subroutines are packaged in the same communication driving program in a modularized mode, and the plurality of communication driving subroutines can respectively realize corresponding functions.
In this embodiment, as shown in fig. 1 and 2, the communication driving program is stored in the communication circuit board of the electronic detonator initiation controller 2, and in addition, each generation of electronic detonator in this embodiment includes multiple electronic detonators, which are connected with the electronic detonator initiation controller 2 through the communication bus, and are connected to the first communication connection line 20 and the second communication connection line 21, respectively; furthermore, the number of blasters of each generation of electronic blasters can be set according to the blasting requirement of a blasting site, and in general, each generation of electronic blasters is provided with multiple electronic blasters, but when one generation of electronic blasters is only required to be provided with one electronic blaster, the electronic blasters are only provided with one electronic blaster.
Further, in this embodiment, the electronic detonator initiation controller 2 is controlled by the electronic detonator initiation control system 1, as shown in fig. 1, the electronic detonator initiation control system 1 is connected with the electronic detonator initiation controller 2 by a wired connection mode, the electronic detonator initiation control system 1 is connected with the electronic detonator initiation controller 2 by an RS232 serial port, and the electronic detonator initiation control system 1 and the electronic detonator initiation controller 2 realize RS232 data communication. In addition, control software is installed in the electronic detonator initiation control system 1 in the embodiment, and an upper computer can be adopted as the electronic detonator initiation control system 1.
Further, as shown in fig. 2, wireless connection modules may be respectively disposed in the electronic detonator initiation control system 1 and the electronic detonator initiation controller 2 in this embodiment, so that the electronic detonator initiation control system 1 and the electronic detonator initiation controller 2 are wirelessly connected. In addition, control software corresponding to the electronic detonator initiation control system 1 in the embodiment is installed in the mobile phone, so that remote wireless control can be realized through the mobile phone; furthermore, the control software corresponding to the electronic detonator initiation control system 1 can also be installed in other wireless control equipment.
According to one embodiment of the invention, a plurality of communication driving subroutines are obtained according to a plurality of generations of electronic detonators to be communicated, comprising:
respectively identifying algebraic characteristic attributes of control chips arranged in the multiple-generation electronic detonators to obtain algebraic information of the multiple-generation electronic detonators, wherein the algebraic characteristic attributes are used for representing algebra of the electronic detonators, and algebraic characteristic attributes of the electronic detonators of different algebra are different;
based on the algebraic characteristic attributes of the acquired multiple-generation electronic detonators, programming is carried out corresponding to the multiple-generation electronic detonators respectively to obtain a plurality of communication driving subroutines which can be matched with the multiple-generation electronic detonators respectively, and the communication driving subroutines are packaged in the same communication driving program, wherein each communication driving subroutine can establish communication for the multiple-generation electronic detonators with the algebraic characteristic attributes matched with each communication driving subroutine.
One embodiment of the present invention matches one or more communication driving subroutines with one or more generations of electronic detonators to enable the one or more communication driving subroutines to establish communication with the one or more generations of electronic detonators, comprising:
when the electronic detonator to be communicated has a generation, according to the algebraic characteristic attribute of the generation electronic detonator to be communicated, calling a communication driving subprogram matched with the algebraic characteristic attribute of the electronic detonator to be communicated to establish communication with the algebraic matched electronic detonator;
When the electronic detonator to be communicated has multiple generations, calling a plurality of communication driving subroutines which are matched with the algebraic characteristic attributes of the electronic detonator respectively according to the algebraic characteristic attributes of the multiple generations of electronic detonators to be communicated, and establishing communication with the algebraic matched electronic detonators.
In this embodiment, as shown in fig. 1 and 2, the electronic detonator illustrated in this embodiment has three generations, the first electronic detonator 22 is a first generation electronic detonator, the second electronic detonator 23 is a second generation electronic detonator, the third electronic detonator 24 is a third generation electronic detonator, and when communication needs to be established between the third generation electronic detonator and the third generation electronic detonator, the communication is established between the three communication driving subroutines and the first generation electronic detonator 22 respectively. In addition, when only one of the first-generation electronic detonator, the second-generation electronic detonator, and the third-generation electronic detonator shown in fig. 1 and 2 is provided at the initiation site, for example, only the second-generation electronic detonator is provided at the initiation site, only one communication driving subroutine matched with the second-generation electronic detonator is required to establish communication with the second-generation electronic detonator.
It should be noted that, fig. 1 and fig. 2 are used for showing a manner that the multi-generation electronic detonators are connected to the communication bus, and are not used for limiting the actual number of the electronic detonators, and the actual number of the electronic detonators arranged according to the requirement in the detonation site is generally tens to hundreds; in addition, in the electronic detonator actually arranged in the detonation site, one generation or two generations of the three-generation electronic detonators shown in fig. 1 and 2 can be provided, and other generations of electronic detonators can be provided.
In one embodiment of the present invention, algebraic feature attributes of a control chip provided in a multi-generation electronic detonator are respectively identified, so as to obtain algebraic information of the multi-generation electronic detonator, including:
the algebraic identification marks of the multi-generation electronic detonators are identified, and the algebraic identification marks are judged, wherein the algebraic identification marks are respectively arranged in the control chips of the multi-generation electronic detonators and are used for respectively representing algebra of the control chips, and algebraic identification marks of the electronic detonators with different algebraic generations are different;
and confirming algebra of the multi-generation electronic detonator based on the judgment result of the algebraic identification mark.
In this embodiment, the algebraic identification flag is a number for marking the algebra of the electronic detonator stored in the control chip in the electronic detonator, as shown in fig. 1, the electronic detonator illustrated in this embodiment has three generations, the electronic detonator one 22 is a first generation electronic detonator, the algebraic identification flag for marking the first generation electronic detonator is a binary number corresponding to the number 1, the electronic detonator two 23 is a second generation electronic detonator, the algebraic identification flag for marking the second generation electronic detonator is a binary number corresponding to the number 2, the electronic detonator three 24 is a third generation electronic detonator, and the algebraic identification flag for marking the third generation electronic detonator is a binary number corresponding to the number 3. Furthermore, the algebraic identification mark can also adopt letters or characters and the like, so that algebraic algorism of the multi-generation electronic detonator can be conveniently confirmed.
In one embodiment of the present invention, algebraic feature attributes of a control chip provided in a multi-generation electronic detonator are respectively identified, so as to obtain algebraic information of the multi-generation electronic detonator, including:
respectively sending chip algebra detection instructions to control chips in the multi-generation electronic detonator;
based on the chip algebra detection instruction, the control chips in the multi-generation electronic detonator respectively feed back chip algebra detection results;
based on algebraic detection results of a plurality of chips, respectively setting identification parameter items for control chips in the multi-generation electronic detonator to obtain a plurality of algebraic identification parameter items;
and respectively reading a plurality of algebraic identification parameter items to realize the algebra confirmation of the electronic detonator, wherein each algebraic identification parameter item corresponds to a control chip in the electronic detonator of one generation, and each algebraic identification parameter item is used for correspondingly calling a communication driving subprogram.
In the embodiment, chip algebra detection instructions are sent to the control chips in the multi-generation electronic detonators respectively through the upper computer, and after the upper computer receives the chip algebra detection results, identification parameter items are set for the control chips in the multi-generation electronic detonators respectively; for example, the algebraic detection result of the first generation electronic detonator is set to be 1, the algebraic detection result of the second generation electronic detonator is set to be 2, and the algebraic detection result of the third generation electronic detonator is set to be 3.
In another aspect of the present application, there is provided an electronic detonator control method, including:
the method comprises the steps that one or more communication driving subprograms in a communication driving program are respectively matched with one or more generations of electronic detonators through a main control program, so that the steps in the electronic detonator communication establishment method are implemented, and the one or more communication driving subprograms are communicated with the one or more generations of electronic detonators to be communicated;
and the communication driving program responds to the first instruction, calls one or more communication driving subprograms, sends a second instruction to the electronic detonator of one or more generations, and executes the second instruction.
In the electronic detonator control method, the communication driving subprogram is matched with the algebraic matched electronic detonator through the main control program, the communication driving subprogram is used for establishing communication with the algebraic matched electronic detonator to be communicated, then an instruction is sent to the algebraic matched electronic detonator, so that the control of the multi-generation electronic detonator is realized, the matched communication driving subprogram can be selected for control according to the algebra of the electronic detonator, and the control flexibility of the electronic detonator is improved.
In this embodiment, the main control program is stored in a main control chip in the upper computer, the upper computer is used as the electronic detonator initiation control system 1 in this embodiment, the communication driving program is stored in the electronic detonator initiation controller 2, and the upper computer is connected with the electronic detonator initiation controller 2 through an RS232 serial port connection; in addition, the main control program can be stored in a mobile phone or other wireless control equipment to realize wireless control of the electronic detonator initiation controller 2.
Further, the electronic detonator control method in the present embodiment may be controlled by an electronic detonator control device capable of implementing the electronic detonator control method, the electronic detonator control device including: a program editing module 50, a communication establishing module 51, an instruction transmitting module, an instruction receiving module, and the like.
In one embodiment of the present invention, the method for sending a first instruction to a communication driver by a main control program, the communication driver calling one or more communication driver subroutines in response to the first instruction, and sending a second instruction to one or more generations of electronic detonators, includes:
extracting a data frame in a first instruction, and calling an API (application program interface) associated with the data frame in the first instruction according to the data frame in the first instruction, wherein the communication driving subprograms respectively comprise API functions, the API functions in different communication driving subprograms are different, and the API functions are called through calling the API interfaces;
And sending a second instruction to the generation or multiple generations of electronic detonators corresponding to the API functions through the called API functions associated with the API interfaces.
In this embodiment, the main control program is stored in the main control chip in the upper computer, and the upper computer sends out the data frame of the first instruction according to the need to call the API interface associated with the data frame in the first instruction, and further call the API function associated with the API interface, so as to control and communicate the electronic detonator of different generations.
In one embodiment of the present invention, before the electronic detonator of one or more generations executes the second instruction, as shown in fig. 4, the electronic detonator control method further comprises:
step S402, one or more generations of electronic detonators respond to the first instruction and feed back a third instruction based on the first instruction;
step S404, extracting the data frame in the third instruction;
step S406, each byte in the data frame in the third instruction is compared with the corresponding byte in the data frame in the second instruction;
step S408, judging whether the bytes of the data frames in the second instruction and the third instruction are consistent, if so, executing the second instruction by the first or multiple generations of electronic detonators (step S410); if the bytes are not consistent, a communication failure is prompted (step S412), and the one or more generations of electronic detonators do not execute the second instruction.
In this embodiment, as shown in fig. 4, by determining whether bytes of the data frames in the second instruction and the third instruction are consistent, it is beneficial to ensure that the instructions received by the first-generation or multi-generation electronic detonator are matched, and accuracy and safety of electronic detonator initiation control are improved.
In this embodiment, when only the first-generation electronic detonator, the second-generation electronic detonator, and the third-generation electronic detonator shown in fig. 1 and 2 are provided at the initiation site, and the third-generation electronic detonator is a third-generation electronic detonator, then three communication driving subroutines are required to be called to respectively send second instructions to the third-generation electronic detonator, and the API functions in the three communication driving subroutines are different, for example, the API function for controlling the first-generation electronic detonator is a first API function, the API function for controlling the second-generation electronic detonator is a second API function, the API function for controlling the third-generation electronic detonator is a third API function, the first API function is associated with the first API interface, the second API function is associated with the second API interface, and the third API function is associated with the third API interface. In addition, the electronic detonator in the embodiment executes the second instruction to complete the detonation.
Further, when only any one of the first-generation electronic detonator, the second-generation electronic detonator, and the third-generation electronic detonator shown in fig. 1 and 2 is provided at the initiation site, for example, when only the second-generation electronic detonator is provided at the initiation site, the second communication driving subroutine needs to be invoked to send the second instructions to the second-generation electronic detonator, respectively.
In still another aspect of the present application, there is provided an apparatus for establishing electronic detonator communication, as shown in fig. 5, the apparatus for establishing electronic detonator communication including:
a program editing module 50, configured to obtain a plurality of communication driving subroutines according to the multi-generation electronic detonator by programming;
the communication establishment module 51 is configured to match one or more communication driving subroutines with one or more generation electronic detonators, so as to establish communication between the one or more communication driving subroutines and the one or more generation electronic detonators.
In this embodiment, the device for establishing communication between electronic detonators can obtain a plurality of communication driving subroutines according to the multi-generation electronic detonators to be established, and the plurality of communication driving subroutines are contained in the same communication driving program, so that only one communication driving program needs to be developed, and communication between the multi-generation electronic detonators can be established through the communication driving subroutines in the communication driving program; when the communication driving program is used for establishing communication with the electronic detonator, the matched communication driving subprogram can be respectively called according to algebraic conditions of the electronic detonator used in the blasting site to establish communication with the algebraic matched electronic detonator, so that communication can be established with all algebraic electronic detonators in the blasting site, the workload of program development can be greatly reduced, the program development period is shortened, various problems and uncertain factors caused by developing a plurality of programs are avoided, and the workload of a test program and the maintenance cost in the later period are also reduced; furthermore, the matched communication driving subprogram can be selected for establishing communication according to the algebraic generation of the electronic detonator, so that the flexibility of establishing communication for the electronic detonator is improved, and the repeated replacement of the driving subprogram due to algebraic change of the electronic detonator used in the blasting site is avoided.
In yet another aspect of the present application, a computer readable storage medium is provided, in which a computer program is stored, wherein the computer program, when executed by a processor, implements the method described above.
In this embodiment, the computer program, when executed by a processor, implements the method described above, as shown in fig. 2, and includes:
step S302, a plurality of communication driving subroutines are obtained according to the multi-generation electronic detonator to be communicated, wherein the plurality of communication driving subroutines are contained in the same communication driving program, and the plurality of communication driving subroutines respectively belong to a part of the communication driving program;
step S304, one or more communication driving subroutines are matched with the electronic detonator of one or more generations, so that the communication between the one or more communication driving subroutines and the electronic detonator of one or more generations is established, wherein each communication driving subroutine can establish communication for the electronic detonator matched with the communication driving subroutine of one generation.
Further, the steps of implementing the method described above when the computer program in this embodiment is executed by the processor further include other steps included in the electronic detonator communication establishment method.
In yet another aspect of the present application, an electronic device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method described above when executing the computer program.
In this embodiment, the computer program, when executed by a processor, implements the method described above, as shown in fig. 2, and includes:
step S302, a plurality of communication driving subroutines are obtained according to the multi-generation electronic detonator to be communicated, wherein the plurality of communication driving subroutines are contained in the same communication driving program, and the plurality of communication driving subroutines respectively belong to a part of the communication driving program;
step S304, one or more communication driving subroutines are matched with the electronic detonator of one or more generations, so that the communication between the one or more communication driving subroutines and the electronic detonator of one or more generations is established, wherein each communication driving subroutine can establish communication for the electronic detonator matched with the communication driving subroutine of one generation.
Further, the steps of implementing the method described above when the computer program in this embodiment is executed by the processor further include other steps included in the electronic detonator communication establishment method.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments. In addition, for the specific operation of the program upgrade, reference may be made to the related art in the field, and a detailed description thereof will be omitted herein.
The technical solution of the present application may be essentially or a part contributing to the related technology or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
A schematic block diagram of the electronic device in the present embodiment is shown in fig. 5; electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
In this embodiment, the program code for carrying out the methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In addition, in addition to the technical solutions disclosed in the present embodiment, the structures of the electronic detonator, the control chip, the electronic detonator initiation controller 2, the electronic detonator initiation control system 1, the working principle thereof, and the like in the present invention may refer to conventional technical solutions in the art, and these conventional technical solutions are not important to the present invention, and the present invention is not described in detail herein.
In the description of the present specification, the terms "one embodiment," "some embodiments," "particular embodiments," and the like, mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions provided by the present disclosure are achieved, and are not limited herein.
The foregoing is merely a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and variations may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (11)

1. A method for establishing communication of electronic detonators, wherein the electronic detonators have multiple generations, and the communication of each generation of electronic detonators is different, the method comprising the following steps:
obtaining a plurality of communication driving subroutines according to a plurality of generations of electronic detonators to be communicated, wherein the communication driving subroutines are contained in the same communication driving program, and the communication driving subroutines respectively belong to a part of the communication driving program;
And matching one or more communication driving subroutines with one or more generations of electronic detonators, so as to establish communication between the one or more communication driving subroutines and the one or more generations of electronic detonators, wherein each communication driving subroutine can establish communication for the electronic detonator matched with the communication driving subroutine.
2. The method of claim 1, wherein the obtaining a plurality of communication drive subroutines based on the multi-generation electronic detonator to be communicated comprises:
identifying algebraic characteristic attributes of control chips arranged in the multiple generations of electronic detonators respectively to obtain algebraic information of the multiple generations of electronic detonators, wherein the algebraic characteristic attributes are used for representing algebra of the electronic detonators, and algebraic characteristic attributes of the electronic detonators in different algebra are different;
and programming corresponding to the multiple generations of electronic detonators respectively based on the obtained algebraic feature attributes of the multiple generations of electronic detonators respectively to obtain multiple communication driving subroutines which can be matched with the multiple generations of electronic detonators respectively, and packaging the multiple communication driving subroutines into the same communication driving program, wherein each communication driving subroutine can establish communication for the generation of electronic detonators with the algebraic feature attributes matched.
3. The method of claim 2, wherein said matching one or more of said communication drive subroutines with one or more generations of said electronic detonators is accomplished by establishing communication between one or more of said communication drive subroutines with one or more generations of said electronic detonators, comprising:
when the electronic detonator to be communicated has a generation, calling a communication driving subprogram matched with the algebraic characteristic attribute of the electronic detonator to be communicated with the algebraic matched electronic detonator according to the algebraic characteristic attribute of the electronic detonator of the generation to be communicated;
when the electronic detonator to be communicated is provided with multiple generations, calling a plurality of communication driving subroutines which are matched with the algebraic characteristic attribute of the electronic detonator respectively according to the algebraic characteristic attribute of the electronic detonator to be communicated and the algebraic matched electronic detonator.
4. The method according to claim 2, wherein the identifying algebraic feature attributes of the control chips provided in the multiple generations of the electronic detonators to obtain algebraic information of the multiple generations of the electronic detonators includes:
Identifying algebraic identification marks of the electronic detonators in multiple generations, and judging the algebraic identification marks, wherein the algebraic identification marks are respectively arranged in control chips of the electronic detonators in multiple generations and are used for respectively representing algebra of the control chips, and the algebraic identification marks of the electronic detonators in different algebra are different;
and confirming algebra of the multi-generation electronic detonator based on the judgment result of the algebraic identification mark.
5. The method according to claim 2, wherein the identifying algebraic feature attributes of the control chips provided in the multiple generations of the electronic detonators to obtain algebraic information of the multiple generations of the electronic detonators includes:
respectively sending chip algebra detection instructions to control chips in the multi-generation electronic detonator;
based on the chip algebra detection instruction, the control chips in the multi-generation electronic detonator respectively feed back chip algebra detection results;
based on a plurality of chip algebraic detection results, respectively setting identification parameter items for control chips in the plurality of generations of electronic detonators to obtain a plurality of algebraic identification parameter items;
and respectively reading a plurality of algebraic identification parameter items to realize the confirmation of the algebra of the electronic detonator, wherein each algebraic identification parameter item corresponds to the control chip in the electronic detonator, and each algebraic identification parameter item is used for correspondingly calling one communication driving subprogram.
6. The electronic detonator control method is characterized by comprising the following steps:
the method comprises the steps of matching one or more communication driving subprograms in the communication driving subprograms with one or more generations of electronic detonators through a main control program respectively, realizing the implementation of the steps in the electronic detonator communication establishment method according to any one of the claims 1 to 5, and establishing communication between the one or more communication driving subprograms and the one or more generations of electronic detonators to be established;
and sending a first instruction to the communication driving program through the main control program, calling one or more communication driving subprograms by the communication driving program in response to the first instruction, sending a second instruction to one or more generations of electronic detonators, and executing the second instruction by the one or more generations of electronic detonators.
7. The method of claim 6, wherein the sending, by the host program, a first instruction to the communication driver, the communication driver invoking one or more of the communication driver subroutines in response to the first instruction, and sending a second instruction to one or more of the electronic detonators, comprising:
Extracting a data frame in the first instruction, and calling an API (application program interface) associated with the data frame in the first instruction according to the data frame in the first instruction, wherein the communication driving subprograms respectively comprise API functions, the API functions in different communication driving subprograms are different, and the API functions are called by calling the API interfaces;
and sending a second instruction to the electronic detonator of one generation or more generations corresponding to the API function through the called API function associated with the API interface.
8. The method of claim 6, wherein prior to one or more generations of the electronic detonator executing the second instruction, the method further comprises:
one or more generations of the electronic detonator responds to the first instruction and feeds back a third instruction based on the first instruction;
extracting a data frame in the third instruction;
comparing each byte in the data frame in the third instruction with the corresponding byte in the data frame in the second instruction;
judging whether bytes of data frames in the second instruction and the third instruction are consistent, and if the bytes are consistent, executing the second instruction by the electronic detonator of one or more generations; if the bytes are inconsistent, prompting communication faults, and enabling the electronic detonator of one generation or more generations not to execute the second instruction.
9. An apparatus for establishing communication between electronic detonators, said apparatus comprising:
the program editing module is used for obtaining a plurality of communication driving subroutines through programming according to the multi-generation electronic detonator;
and the communication establishment module is used for matching one or more communication driving subroutines with one or more generations of electronic detonators, so that the one or more communication driving subroutines can establish communication with the one or more generations of electronic detonators.
10. A computer readable storage medium, characterized in that a computer program is stored in the computer readable storage medium, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 5.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 5 when executing the computer program.
CN202310198980.XA 2023-03-03 2023-03-03 Electronic detonator communication establishment and control method and device, storage medium and electronic equipment Pending CN116302603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310198980.XA CN116302603A (en) 2023-03-03 2023-03-03 Electronic detonator communication establishment and control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310198980.XA CN116302603A (en) 2023-03-03 2023-03-03 Electronic detonator communication establishment and control method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116302603A true CN116302603A (en) 2023-06-23

Family

ID=86800738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310198980.XA Pending CN116302603A (en) 2023-03-03 2023-03-03 Electronic detonator communication establishment and control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116302603A (en)

Similar Documents

Publication Publication Date Title
CN101088071B (en) Method and device for secure parameterization of electronic devices
CN107820603A (en) A kind of firmware update and controller
CN111143923A (en) Model processing method and related device
CN108052674A (en) Quick Response Code uses processing method, device, system and readable storage medium storing program for executing
CN104699515B (en) A kind of upgrade method and intelligent terminal based on Android operation system
CN107844305A (en) The method for upgrading software and embedded device of embedded device
CN110727581A (en) Collapse positioning method and electronic equipment
CN106709386B (en) Smart card data writing method and device
CN113778739B (en) System repair method, system, equipment and storage medium of all-in-one machine
CN116302603A (en) Electronic detonator communication establishment and control method and device, storage medium and electronic equipment
CN114661423A (en) Cluster configuration detection method and device, computer equipment and storage medium
US6014725A (en) Method of up-dating the contents of the electronic memory of an electronic appliance
CN109800006A (en) A kind of dissemination method, system and storage medium customizing script
CN103391537B (en) Method and device for writing international mobile equipment identify (IMEI) number through mobile terminal
CN113961199A (en) Model deployment system, method, device and storage medium
CN107436778A (en) A kind of high reliability upgrade method of unmanned systems
CN105138419A (en) Set value restoring system
CN105653412A (en) Fingerprint device compatibility detection method and terminal
CN116431603A (en) Method and device for storing and loading PLC program and electronic equipment
CN115576810A (en) Automatic testing method, system, medium and computing device for real-time alarm
CN113781260A (en) Detonator registration method and system of detonator and storage medium
CN114579166A (en) Component module upgrading method, component module and financial robot
CN111984731A (en) Method and device for synchronizing data among large data platform bins and storage medium
CN106452810B (en) Method and device for managing configuration data of network management system
CN111176700B (en) Method and system for downloading and updating smart card COS (class of service) after operation

Legal Events

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