Data transmission method, device and equipment based on general initiator and medium
By enabling NFC and wireless communication services, combined with scanning head or device name search, efficient data transmission between detonators is achieved, solving the problem of low data transmission efficiency of detonators in environments without network coverage and simplifying device pairing and connection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN K FREE WIRELESS INFORMATION TECH
- Filing Date
- 2023-12-05
- Publication Date
- 2026-06-26
AI Technical Summary
In the absence of a data network or with a weak signal, the data transmission efficiency between detonators is low, and the pairing and connection of the devices is complicated. In particular, when multiple detonators are in the same range, selecting the corresponding detonator requires a lot of time, increasing time costs.
By enabling NFC card reading and card emulation functions, and utilizing wireless communication services such as WIFI and Bluetooth, wireless communication connections between detonators can be achieved. Combined with scanning the data transmission barcode or searching the detonator device name, the detonator can be directly connected.
It improves data transmission efficiency between detonators in the absence of a network, simplifies the device pairing and connection process, and reduces operational complexity and time costs.
Smart Images

Figure CN117750342B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of detonator technology, and in particular to a data transmission method, apparatus, equipment and medium based on a general-purpose detonator. Background Technology
[0002] If a detonator malfunctions, certain data from the faulty detonator, such as project data and registration data, needs to be exported to a new detonator. This export process requires a data network and a server. However, in many scenarios, such as underground mines, where there is no data network or the data network signal is weak, the efficiency of data transmission between detonators becomes low. Currently, when transmitting data between detonators via Bluetooth, device search and pairing are required, which is complex. Furthermore, when multiple detonators are within the same range, selecting the appropriate detonator for pairing takes a significant amount of time, increasing time costs. Summary of the Invention
[0003] To address the aforementioned technical problems, embodiments of this application provide a data transmission method, apparatus, device, and medium based on a universal detonator.
[0004] In a first aspect, embodiments of this application provide a data transmission method based on a universal detonator, the method comprising: a first detonator entering a registration information interface, enabling the NFC card reading function, and using the first detonator as an import detonator;
[0005] The second detonator enters the registration information export interface, enables the NFC card emulation function and wireless communication service, and is used as the export detonator.
[0006] The import detonator reads the wireless communication information of the export detonator via NFC to determine the wireless communication address;
[0007] The importing detonator activates wireless communication and connects to the wireless communication service of the exporting detonator according to the wireless communication address.
[0008] The export detonator sends the determined export basic information to the import detonator through the wireless communication service;
[0009] The importing detonator determines the export registration information based on the exported basic information;
[0010] The export detonator transmits the export registration information to the import detonator via the wireless communication service;
[0011] If the importing detonator performs a reply operation to the exporting detonator within a preset time threshold, then the transmission of the export registration information is determined to be complete.
[0012] In one embodiment, the wireless communication includes Wi-Fi and Bluetooth.
[0013] In one embodiment, the import detonator determines export registration information based on the exported basic information, including:
[0014] If the import detonator performs a reply operation based on the exported basic information within the preset time threshold, then the export detonator performs the transmission operation of the exported registration information based on the reply operation;
[0015] If the import detonator fails to perform a response operation based on the exported basic information within the preset time threshold, the export detonator will send the exported basic information to the import detonator within a preset number of times.
[0016] In one embodiment, the exporting detonator sends the exporting basic information to the importing detonator within a preset number of times, including: determining whether the importing detonator performs a reply operation within the preset number of times;
[0017] If the import detonator performs a response operation within a preset number of times, the export detonator will transmit the export registration information to the import detonator.
[0018] If the import detonator fails to perform a response operation within the preset number of times, the export detonator displays a transmission abnormality warning.
[0019] In one embodiment, the exported registration information includes: N records of exported registration information;
[0020] If the importing detonator determines that the transmission is complete within a preset time threshold, then the exporting registration information transmission ends and a reply operation is performed to the exporting detonator, thus determining that the exporting registration information transmission is complete, including:
[0021] The exporting detonator transmits the i-th export registration information to the importing detonator;
[0022] Determine whether the imported detonator performs a response operation within a preset time threshold;
[0023] If the importing detonator performs a reply operation, the exporting detonator transmits the (i+1)th export registration information to the importing detonator. The judgment operation is repeated until the transmission of the N export registration information is completed, where i is any integer from 1 to N.
[0024] If the import detonator does not perform a response operation, the export detonator displays a transmission error warning.
[0025] In one embodiment, if the NFC function of the import detonator and the export detonator fails, the export detonator enters the registration information export interface and displays the transmission barcode through the registration information export interface.
[0026] The imported detonator enters the registration information import interface, and the transmission barcode is scanned by the scanning head to obtain the wireless communication address of the exported detonator;
[0027] The imported detonator enters the registration information import interface and performs a connection operation on the wireless communication address;
[0028] After confirming a successful connection, the export detonator transmits the export registration information to the import detonator.
[0029] In one embodiment, if the NFC function and scanning head of the import detonator and the export detonator malfunction, the export detonator enters the registration information export interface and selects to display the device name and wireless communication address of the export detonator.
[0030] The imported detonator enters the registration information import interface, and through the search page, the exported detonator is selected from the search list according to the device name and wireless communication address of the exported detonator to perform the connection operation.
[0031] After confirming a successful connection, the export detonator transmits the export registration information to the import detonator.
[0032] Secondly, embodiments of this application provide a data transmission device based on a universal detonator, the data transmission device based on the universal detonator comprising:
[0033] The first selection module is used to enter the registration information interface through the first detonator, enable the NFC card reading function, and use the first detonator as the import detonator.
[0034] The second selection module is used to access the registration information export interface through the second detonator, enable the NFC card emulation function and wireless communication service, and use the second detonator as the export detonator.
[0035] The first determining module is used to read the wireless communication information of the exporting detonator via NFC through the importing detonator and determine the wireless communication address.
[0036] A connection module is used to initiate wireless communication via the import detonator and connect to the wireless communication service of the export detonator according to the wireless communication address.
[0037] The sending module is used to send the determined basic export information to the importing detonator through the wireless communication service via the export detonator;
[0038] The second determining module is used to determine the export registration information based on the exported basic information through the imported detonator;
[0039] The transmission module is used to transmit the export registration information to the import detonator via the wireless communication service through the export detonator;
[0040] The third determining module is used to determine that the transmission of the export registration information is complete if the importing detonator performs a reply operation to the exporting detonator within a preset time threshold.
[0041] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the computer program executes the data transmission method based on a universal detonator provided in the first aspect when the processor is running.
[0042] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the data transmission method based on a universal detonator provided in the first aspect.
[0043] The present application provides a data transmission method, apparatus, device, and medium based on a general-purpose detonator. The method includes: a first detonator entering a registration information interface, enabling NFC card reading, and using the first detonator as an import detonator; a second detonator entering a registration information export interface, enabling NFC card emulation and wireless communication services, and using the second detonator as an export detonator; the import detonator reading the wireless communication information of the export detonator via NFC to determine a wireless communication address; the import detonator enabling wireless communication and connecting to the wireless communication service of the export detonator according to the wireless communication address; the export detonator sending the determined export basic information to the import detonator via the wireless communication service; the import detonator determining export registration information based on the export basic information; the export detonator transmitting the export registration information to the import detonator via the wireless communication service; and if the import detonator performs a reply operation to the export detonator within a preset time threshold, the transmission of the export registration information is determined to be complete. In the absence of a network, this application allows for the selection of NFC to connect the detonators via WIFI or Bluetooth addresses, or the selection of scanning the data transmission barcode directly with a scanner, or the selection of searching the detonator device name to facilitate direct connection between detonators, thereby improving the efficiency of data transmission between detonators. Attached Figure Description
[0044] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.
[0045] Figure 1 A schematic diagram of a data transmission method based on a universal detonator is shown.
[0046] Figure 2 This paper illustrates another flowchart of a data transmission method based on a universal detonator provided in an embodiment of this application.
[0047] Figure 3 A schematic diagram of a data transmission device based on a universal detonator provided in an embodiment of this application is shown.
[0048] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown.
[0049] Icons: 300 - Data transmission device based on general-purpose detonator, 301 - First selection module, 302 - Second selection module, 303 - First determination module, 304 - Connection module, 305 - Transmitting module, 306 - Second determination module, 307 - Transmission module, 308 - Third determination module, 400 - Electronic device, 401 - Transceiver, 402 - Processor, 403 - Memory. Detailed Implementation
[0050] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0051] The components of the embodiments of this application described and illustrated in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of this application provided in the drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0052] In the following, the terms “comprising,” “having,” and their cognates, which may be used in various embodiments of this application, are intended only to indicate a particular feature, number, step, operation, element, component, or combination thereof, and should not be construed as excluding, firstly, the presence of one or more other features, numbers, steps, operations, elements, components, or combinations thereof, or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations thereof.
[0053] Furthermore, the terms "first," "second," and "third" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0054] Unless otherwise specified, all terms used herein (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which the various embodiments of this application pertain. Terms (such as those defined in commonly used dictionaries) shall be interpreted as having the same meaning as in their contextual meaning in the relevant technical field and shall not be construed as having an idealized or overly formal meaning, unless clearly defined in the various embodiments of this application.
[0055] Example 1
[0056] This application provides a data transmission method based on a universal detonator. For details, please refer to [link / reference needed]. Figure 1 The method includes steps S101 to S108.
[0057] S101, the first detonator enters the registration information interface, enables the NFC card reading function, and uses the first detonator as the import detonator.
[0058] It should be noted that to determine the first detonator that needs data import, you can enter the system's registration information import interface, select to enable the NFC card reading function, and then call the NFC card reading function of the first detonator through the program.
[0059] In one implementation, such as Figure 2 As shown, the specific steps are as follows: S1011, if the NFC function of the imported detonator and the exported detonator fails, the exported detonator enters the registration information export interface and displays the transmission barcode through the registration information export interface.
[0060] It should be noted that by selecting the option to export the registration information of the detonator, the transmission barcode can be displayed. The transmission barcode includes both QR codes and 1D codes, and includes the device name and wireless communication address of the detonator.
[0061] To further clarify, if there are other reasons why you don't want to use NFC to transmit the wireless communication address, besides NFC function failure when importing or exporting the detonator, you can also scan the transmission barcode with the scanner to obtain the corresponding information.
[0062] S1012, the imported detonator enters the registration information import interface, and scans the transmission barcode with a scanning head to obtain the wireless communication address of the exported detonator.
[0063] It should be noted that the universal detonator used in this application is equipped with hardware such as a scanning head. By adding a scanning head, registration information can be transmitted directly by scanning barcodes, which improves the transmission efficiency between universal detonators.
[0064] S1013, the imported detonator enters the registration information import interface and performs a connection operation on the wireless communication address.
[0065] S1014, After confirming a successful connection, the export detonator transmits the export registration information to the import detonator.
[0066] For example, when the NFC of a general-purpose detonator is not available, the import detonator can scan the transmission barcode on the detonator registration information export interface using a scanner head. The export detonator's Bluetooth address or WIFI address and other information are then transmitted to the import detonator. After receiving the relevant information, the import detonator starts the corresponding connection program to transmit the data.
[0067] In one embodiment, if the NFC function and scanning head of the import detonator and the export detonator malfunction, the export detonator enters the registration information export interface and selects to display the device name and wireless communication address of the export detonator. The import detonator enters the registration information import interface and selects the corresponding export detonator from the search list based on the device name and wireless communication address of the export detonator to perform a connection operation. After confirming a successful connection, the export detonator transmits the exported registration information to the import detonator.
[0068] It should be noted that by directly searching for and exporting the detonator's device information or Bluetooth address, a direct communication connection can be established with the detonator. This direct connection eliminates many complex operating steps, reduces operational difficulty, and improves work efficiency.
[0069] Furthermore, the information display function allows the importing detonator to quickly identify the connected exporting detonator device name, wireless communication address, and import data type identifier in the search results, further reducing the time required to locate the connected exporting detonator.
[0070] S102, the second detonator enters the registration information export interface, enables the NFC card emulation function and wireless communication service, and uses the second detonator as the export detonator.
[0071] In one embodiment, the wireless communication includes Wi-Fi and Bluetooth.
[0072] It should be noted that, for example, when Bluetooth is selected as the wireless communication method, the first detonator enters the registration information interface, enables the NFC card reading function, and is designated as the import detonator. The second detonator enters the registration information export interface, enables the NFC card emulation function and Bluetooth service, and is designated as the export detonator. Specifically, the NFC simulated data has a specific format and content, such as export registration data, which can simulate data content. Then, the import detonator and the export detonator are brought close together until the import detonator reads the Bluetooth information of the export detonator via NFC to determine the Bluetooth address. When a successful connection is displayed, the export detonator sends the determined export basic information to the import detonator via Bluetooth service, and the export detonator transmits the determined export registration information to the import detonator via Bluetooth service. If the import detonator determines that the transmission is complete within a preset time threshold, the export registration information transmission ends.
[0073] To further explain, for example, when the selected wireless communication method is WIFI, the first detonator enters the registration information interface, enables the NFC card reading function, and is used as the import detonator. The second detonator enters the registration information export interface, enables the NFC card emulation function and WIFI direct connection service, and is used as the export detonator. Specifically, the NFC simulated data has a specific format and content, such as export registration data, which can simulate data content. Then, the import detonator and the export detonator are brought close together until the import detonator reads the WIFI information of the export detonator through NFC to determine the WIFI address. When the connection is successful, the export detonator sends the determined export basic information to the import detonator through the WIFI direct connection service. The export detonator transmits the determined export registration information to the import detonator through the WIFI direct connection service. If the import detonator determines that the transmission is complete within a preset time threshold, the export registration information transmission ends.
[0074] S103, the import detonator reads the wireless communication information of the export detonator via NFC to determine the wireless communication address.
[0075] In this embodiment, specifically, if the selected wireless communication method is Bluetooth, for example: when the import detonator reads the simulated data content of the NFC card: EXP.BT.REGDATA.9E:2F:46:00:00:9A, it can be determined that starting from the EXP.BT.REGDATA content, the Bluetooth address of the exported detonator is 9E:2F:46:00:00:9A. Then, the import detonator turns on Bluetooth and connects to the Bluetooth service of the exported detonator, selecting the Bluetooth address as 9E:2F:46:00:00:9A.
[0076] It should be noted that by configuring the system for the universal detonator and modifying the underlying operating system to remove the prompt request to turn on Bluetooth, the user experience has been further improved and system performance optimized. By modifying the underlying operating system, the detonator program has the function of automatically turning on Bluetooth. If the user forgets to turn on Bluetooth, the detonator program can still continue to work without affecting data transmission between detonators.
[0077] It should be further noted that this embodiment uses the Bluetooth SPP (Secure Password Protocol) or BLE (Bluetooth Low Energy) protocol.
[0078] If the selected wireless communication method is WIFI, for example: when the imported detonator reads the simulated data content of the NFC card: EXP.WIFI.REGDATA.192.168.40.307:88-51-FB-41-91-88, it can be determined that starting from EXP.WIFI.REGDATA, the exported detonator's WIFI address is 9E:2F:46:00:00:9A, and the MAC address is 88-51-FB-41-91-88. Then, the imported detonator turns on WIFI and connects to the exported detonator's WIFI direct connection service, selecting the WIFI address as 9E:2F:46:00:00:9A.
[0079] Specifically, EXP.BT.REGDATA.9E:2F:46:00:00:9A indicates exporting registration data via Bluetooth; EXP.WIFI.REGDATA.192.168.40.307:88-51-FB-41-91-88 indicates exporting registration data directly via Wi-Fi; and BT.PROJECT.9E:2F:46:00:00:9A indicates importing project information via Bluetooth. By recognizing these prefixes, the program can know in advance what data will be exported and initiate the corresponding processing flow.
[0080] S104, the importing detonator activates wireless communication and connects to the wireless communication service of the exporting detonator according to the wireless communication address.
[0081] It should be noted that the imported detonator can enable the direct wireless communication service as needed, and the wireless communication service of the detonator can be exported based on the wireless communication address.
[0082] S105, the export detonator sends the determined export basic information to the import detonator through the wireless communication service.
[0083] In this embodiment, the basic information to be exported includes: the total number of registration data entries to be exported, the delay for exporting the registration data table, and the location of the registration data table. It should be noted that the basic information is exported by entering the general-purpose detonator program during construction through wiring or scanning the information barcode on the industrial wireless electronic detonator. In other embodiments, the basic information to be exported can be added, deleted, or modified.
[0084] In one embodiment, if the import detonator performs a response operation based on the exported basic information within the preset time threshold, the export detonator performs a transmission operation of the exported registration information based on the response operation. If the import detonator does not perform a response operation based on the exported basic information within the preset time threshold, the export detonator sends the exported basic information to the import detonator within a preset number of times.
[0085] It should be noted that by setting a timer in the program, when the importing detonator obtains the exporting detonator's basic export information, the timer function is automatically activated. The importing detonator needs to respond to the exporting detonator's basic export information within the time threshold preset by the timer. If the exporting detonator does not receive a response within the time threshold, it will resend the exporting basic information.
[0086] For example, when the importing detonator obtains the exporting basic information from the exporting detonator, it automatically starts the timer function and sets the timer to 3 seconds. If the importing detonator does not respond to the exporting detonator within 3 seconds, the exporting detonator will repeatedly send the exporting basic information to the importing detonator.
[0087] In one embodiment, it is determined whether the import detonator performs a response operation within a preset number of times. If the import detonator performs a response operation within the preset number of times, the export detonator transmits the export registration information to the import detonator. If the import detonator does not perform a response operation within the preset number of times, the export detonator displays a transmission error warning.
[0088] It should be noted that a preset number of response times must be set in the general-purpose detonator system in advance. If the imported detonator does not perform the response operation within the preset number of response times, the exported detonator will display a transmission abnormality warning.
[0089] For example, if the export detonator does not receive a response from the import detonator within 3 seconds of the timer's set time threshold, it will resend the export basic information, setting the preset number of repetitions to 3 times, with a 3-second interval between each repetition. If the export detonator still does not receive a response from the import detonator after 3 repetitions, it will display a transmission error.
[0090] S106, the import detonator determines the export registration information based on the exported basic information.
[0091] It should be noted that the transmission of the confirmed export registration information can only begin after the import detonator performs a reply operation on the received export basic information.
[0092] S107, the export detonator transmits the export registration information to the import detonator via the wireless communication service.
[0093] It should be noted that during the transmission process, both the import and export detonator interfaces will display the transmission progress, the transmission time used, and information on the interconnected devices. After the transmission is completed, a summary of information such as the time taken will be displayed.
[0094] S108, if the importing detonator performs a reply operation to the exporting detonator within a preset time threshold, then it is determined that the export registration information transmission is complete.
[0095] In one embodiment, the exported registration information includes: N exported registration information entries; the exporting detonator transmits the i-th exported registration information entry to the importing detonator; and it is determined whether the importing detonator performs a reply operation within a preset time threshold.
[0096] If the import detonator performs a reply operation, the export detonator transmits the (i+1)th export registration information to the import detonator. This judgment operation is repeated until the transmission of the N export registration information is completed, where i is any integer from 1 to N. If the import detonator does not perform a reply operation, the export detonator displays a transmission error warning.
[0097] It should be noted that after the export detonator receives the reply from the import detonator, it begins to transmit export registration information. The import detonator must reply to each transmitted export registration information within a preset time threshold and record the relevant export registration information. If it fails to reply within the preset time threshold for transmitting any export registration information, the export detonator will stop transmitting and display a transmission abnormality warning.
[0098] For example, after the exporting detonator receives a response, it begins transmitting the first piece of registration data. Simultaneously, a 3-second timer is started to wait for a response from the importing detonator. The importing detonator must respond within 3 seconds. A counter is also added to record the received registration data, and the progress bar on the registration data interface is updated. After the exporting detonator receives a response, the next piece of registration data is transmitted. This cycle continues until all exported registration information has been transmitted.
[0099] This embodiment provides a data transmission method based on a universal detonator. A first detonator enters a registration information interface, enables NFC card reading, and is designated as an import detonator. A second detonator enters a registration information export interface, enables NFC card emulation and wireless communication services, and is designated as an export detonator. The import detonator reads the wireless communication information of the export detonator via NFC to determine its wireless communication address. The import detonator activates wireless communication and connects to the wireless communication service of the export detonator based on the wireless communication address. The export detonator sends the determined export basic information to the import detonator via the wireless communication service. The import detonator determines export registration information based on the export basic information. The export detonator transmits the export registration information to the import detonator via the wireless communication service. If the import detonator performs a reply operation to the export detonator within a preset time threshold, the transmission of the export registration information is considered complete. In the absence of a network, this application allows for the selection of NFC to connect the detonators via WIFI or Bluetooth addresses, or the selection of scanning the data transmission barcode directly with a scanner, or the selection of searching the detonator device name to facilitate direct connection between detonators, thereby improving the efficiency of data transmission between detonators.
[0100] Example 2
[0101] Furthermore, embodiments of this application provide a data transmission device based on a universal detonator.
[0102] like Figure 3 As shown, the data transmission device 300 based on a universal detonator includes:
[0103] The first selection module 301 is used to enter the registration information interface through the first detonator, enable the NFC card reading function, and use the first detonator as the import detonator.
[0104] The second selection module 302 is used to access the registration information export interface through the second detonator, enable the NFC card emulation function and wireless communication service, and use the second detonator as the export detonator.
[0105] The first determining module 303 is used to read the wireless communication information of the exporting detonator via NFC through the importing detonator and determine the wireless communication address.
[0106] Connection module 304 is used to activate wireless communication through the import detonator and connect to the wireless communication service of the export detonator according to the wireless communication address;
[0107] The sending module 305 is used to send the determined basic export information to the importing detonator through the wireless communication service via the export detonator;
[0108] The second determining module 306 is used to determine the export registration information based on the exported basic information through the import detonator;
[0109] Transmission module 307 is used to transmit the export registration information to the import detonator via the wireless communication service through the export detonator;
[0110] The third determining module 308 is used to determine that the transmission of the export registration information is complete if the importing detonator performs a reply operation to the exporting detonator within a preset time threshold.
[0111] The data transmission device 300 based on the universal detonator provided in this embodiment can realize the data transmission method based on the universal detonator provided in Embodiment 1. To avoid repetition, it will not be described again here.
[0112] The data transmission device based on a universal detonator provided in this embodiment includes a first detonator entering a registration information interface, enabling NFC card reading, and using the first detonator as an import detonator; a second detonator entering a registration information export interface, enabling NFC card emulation and wireless communication services, and using the second detonator as an export detonator; the import detonator reads the wireless communication information of the export detonator via NFC to determine the wireless communication address; the import detonator enables wireless communication and connects to the wireless communication service of the export detonator according to the wireless communication address; the export detonator sends the determined export basic information to the import detonator through the wireless communication service; the import detonator determines export registration information based on the export basic information; the export detonator transmits the export registration information to the import detonator through the wireless communication service; if the import detonator performs a reply operation to the export detonator within a preset time threshold, the transmission of the export registration information is determined to be complete. In the absence of a network, this application allows for the selection of NFC to connect the detonators via WIFI or Bluetooth addresses, or the selection of scanning the data transmission barcode directly with a scanner, or the selection of searching the detonator device name to facilitate direct connection between detonators, thereby improving the efficiency of data transmission between detonators.
[0113] Example 3
[0114] Furthermore, this application provides an electronic device, including a memory and a processor. The memory stores a computer program, and the computer program executes the data transmission method based on a universal detonator provided in Embodiment 1 when it runs on the processor.
[0115] For details, see Figure 4 The electronic device 400 includes a transceiver 401, a bus interface, and a processor 402. The processor 402 is configured to: 1) allow a first detonator to enter a registration information interface, enable NFC card reading, and use the first detonator as an import detonator; 2) allow a second detonator to enter a registration information export interface, enable NFC card emulation and wireless communication services, and use the second detonator as an export detonator; 3) allow the import detonator to read the wireless communication information of the export detonator via NFC and determine the wireless communication address; 4) allow the import detonator to enable wireless communication and connect to the wireless communication service of the export detonator according to the wireless communication address; 5) allow the export detonator to send the determined export basic information to the import detonator via the wireless communication service; 6) allow the import detonator to determine export registration information based on the export basic information; 7) allow the export detonator to transmit the export registration information to the import detonator via the wireless communication service; 8) if the import detonator performs a reply operation to the export detonator within a preset time threshold, then the transmission of the export registration information is considered complete.
[0116] In one embodiment, the processor 402 is further configured to: the wireless communication includes: WIFI and Bluetooth.
[0117] In one embodiment, the processor 402 is further configured to: if the import detonator performs a reply operation based on the exported basic information within the preset time threshold, then the export detonator performs a transmission operation of the exported registration information based on the reply operation;
[0118] If the import detonator fails to perform a response operation based on the exported basic information within the preset time threshold, the export detonator will send the exported basic information to the import detonator within a preset number of times.
[0119] In one embodiment, the processor 402 is further configured to: determine whether the import detonator performs a reply operation within a preset number of times; if the import detonator performs a reply operation within the preset number of times, the export detonator transmits the export registration information to the import detonator; if the import detonator does not perform a reply operation within the preset number of times, the export detonator displays a transmission abnormality warning.
[0120] In one embodiment, the processor 402 is further configured to: the exported registration information includes: N exported registration information entries; if the imported detonator is determined to have completed transmission within a preset time threshold, then the transmission of the exported registration information ends, including:
[0121] The exporting detonator transmits the i-th export registration information to the importing detonator; it determines whether the importing detonator performs a reply operation within a preset time threshold; if the importing detonator performs a reply operation, the exporting detonator transmits the (i+1)-th export registration information to the importing detonator, and the determination operation is repeated until the transmission of the N export registration information is completed, where i is any integer from 1 to N; if the importing detonator does not perform a reply operation, the exporting detonator displays a transmission abnormality warning.
[0122] In one embodiment, the processor 402 is further configured to: if the NFC function of the import detonator and the export detonator fails, the export detonator enters the registration information export interface and displays the transmission barcode through the registration information export interface; the import detonator enters the registration information import interface and scans the transmission QR code barcode with a scanning head to obtain the wireless communication address of the export detonator; the import detonator enters the registration information import interface and performs a connection operation on the wireless communication address; after confirming a successful connection, the export detonator transmits the exported registration information to the import detonator.
[0123] In one embodiment, the processor 402 is further configured to: if the NFC function and scanning head of the import detonator and the export detonator malfunction, the export detonator enters the registration information export interface and selects to display the device name and wireless communication address of the export detonator; the import detonator enters the registration information import interface and selects the corresponding export detonator from the search list based on the device name and wireless communication address of the export detonator through the search page to perform a connection operation; after confirming a successful connection, the export detonator transmits the exported registration information to the import detonator.
[0124] In this embodiment of the application, the electronic device 400 further includes a memory 403. Figure 4In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 402) and memory (memory 403). The bus architecture can also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 401 can be multiple elements, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 can store data used by the processor 402 during operation.
[0125] The electronic device 400 provided in this application embodiment can execute the steps of the data transmission method based on a universal detonator provided in the above method embodiment 1. To avoid repetition, it will not be described again here.
[0126] The electronic device provided in this embodiment has the following steps: First detonator enters the registration information interface and enables the NFC card reading function, becoming the import detonator; Second detonator enters the registration information export interface and enables the NFC card emulation function and wireless communication service, becoming the export detonator; The import detonator reads the wireless communication information of the export detonator via NFC to determine the wireless communication address; The import detonator enables wireless communication and connects to the wireless communication service of the export detonator according to the wireless communication address; The export detonator sends the determined export basic information to the import detonator through the wireless communication service; The import detonator determines export registration information based on the export basic information; The export detonator transmits the export registration information to the import detonator through the wireless communication service; If the import detonator performs a reply operation to the export detonator within a preset time threshold, the transmission of the export registration information is determined to be complete. In the absence of a network, this application allows for the selection of NFC to connect the detonators via WIFI or Bluetooth addresses, or the selection of scanning the data transmission barcode directly with a scanner, or the selection of searching the detonator device name to facilitate direct connection between detonators, thereby improving the efficiency of data transmission between detonators.
[0127] Example 4
[0128] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the data transmission method based on a universal detonator provided in Embodiment 1.
[0129] In this embodiment, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.
[0130] The computer-readable storage medium provided in this embodiment can implement the data transmission method based on the universal detonator provided in Embodiment 1. To avoid repetition, it will not be described again here.
[0131] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.
[0132] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0133] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A data transmission method based on a universal detonator, characterized in that, The method includes: The first detonator enters the registration information interface, enables the NFC card reading function, and is used as the import detonator. The second detonator enters the registration information export interface, enables the NFC card emulation function and wireless communication service, and is used as the export detonator. The import detonator reads the wireless communication information of the export detonator via NFC to determine the wireless communication address; The importing detonator activates wireless communication and connects to the wireless communication service of the exporting detonator according to the wireless communication address. The export detonator sends the determined export basic information to the import detonator through the wireless communication service; The importing detonator determines the export registration information based on the exported basic information; The export detonator transmits the export registration information to the import detonator via the wireless communication service; If the importing detonator performs a reply operation to the exporting detonator within a preset time threshold, then the export registration information transmission is determined to be complete. The import detonator determines the export registration information based on the exported basic information, including: If the import detonator performs a reply operation based on the exported basic information within the preset time threshold, then the export detonator performs the transmission operation of the exported registration information based on the reply operation; If the import detonator fails to perform a response operation based on the exported basic information within the preset time threshold, the export detonator will send the exported basic information to the import detonator within a preset number of times.
2. The data transmission method based on a universal detonator according to claim 1, characterized in that, The wireless communication includes: WIFI and Bluetooth.
3. The data transmission method based on a universal detonator according to claim 1, characterized in that, The exporting detonator sends the basic export information to the importing detonator within a preset number of times, including: Determine whether the imported detonator performs a recovery operation within a preset number of times; If the import detonator performs a response operation within a preset number of times, the export detonator will transmit the export registration information to the import detonator. If the import detonator fails to perform a response operation within the preset number of times, the export detonator displays a transmission abnormality warning.
4. The data transmission method based on a universal detonator according to claim 1, characterized in that, The exported registration information includes: N records of exported registration information; If the importing detonator performs a reply operation to the exporting detonator within a preset time threshold, then the export registration information transmission is determined to be complete, including: The exporting detonator transmits the i-th export registration information to the importing detonator; Determine whether the imported detonator performs a response operation within a preset time threshold; If the importing detonator performs a reply operation, the exporting detonator transmits the (i+1)th export registration information to the importing detonator. The judgment operation is repeated until the transmission of the N export registration information is completed, where i is any integer from 1 to N. If the import detonator does not perform a response operation, the export detonator displays a transmission error warning.
5. The data transmission method based on a universal detonator according to claim 1, characterized in that, The method further includes: If the NFC function of the import detonator and the export detonator fails, the export detonator will enter the registration information export interface and display the transmission barcode through the registration information export interface. The imported detonator enters the registration information import interface, and the transmission barcode is scanned by the scanning head to obtain the wireless communication address of the exported detonator; The inlet detonator performs a connection operation on the wireless communication address; After confirming a successful connection, the export detonator transmits the export registration information to the import detonator.
6. The data transmission method based on a universal detonator according to claim 5, characterized in that, The method further includes: If the NFC function and scanning head of the imported detonator and the exported detonator malfunction, the exported detonator will enter the registration information export interface and select to display the device name and wireless communication address of the exported detonator. The imported detonator enters the registration information import interface, and through the search page, the exported detonator is selected from the search list according to the device name and wireless communication address of the exported detonator to perform the connection operation. After confirming a successful connection, the export detonator transmits the export registration information to the import detonator.
7. A data transmission device based on a universal detonator, characterized in that, The device includes: The first selection module is used to enter the registration information interface through the first detonator, enable the NFC card reading function, and use the first detonator as the import detonator. The second selection module is used to access the registration information export interface through the second detonator, enable the NFC card emulation function and wireless communication service, and use the second detonator as the export detonator. The first determining module is used to read the wireless communication information of the exporting detonator via NFC through the importing detonator and determine the wireless communication address. A connection module is used to initiate wireless communication via the import detonator and connect to the wireless communication service of the export detonator according to the wireless communication address. The sending module is used to send the determined basic export information to the importing detonator through the wireless communication service via the export detonator; The second determining module is used to determine the export registration information based on the exported basic information through the imported detonator; The transmission module is used to transmit the export registration information to the import detonator via the wireless communication service through the export detonator; The third determining module is used to determine that the transmission of the export registration information is complete if the importing detonator performs a reply operation to the exporting detonator within a preset time threshold. The import detonator determines the export registration information based on the exported basic information, including: If the import detonator performs a reply operation based on the exported basic information within the preset time threshold, then the export detonator performs the transmission operation of the exported registration information based on the reply operation; If the import detonator fails to perform a response operation based on the exported basic information within the preset time threshold, the export detonator will send the exported basic information to the import detonator within a preset number of times.
8. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program that executes the data transmission method based on any one of claims 1 to 6 when the processor is running.
9. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the data transmission method based on any one of claims 1 to 6.