CN117750342A - Data transmission method, device, equipment and medium based on universal initiator - Google Patents

Data transmission method, device, equipment and medium based on universal initiator Download PDF

Info

Publication number
CN117750342A
CN117750342A CN202311658496.7A CN202311658496A CN117750342A CN 117750342 A CN117750342 A CN 117750342A CN 202311658496 A CN202311658496 A CN 202311658496A CN 117750342 A CN117750342 A CN 117750342A
Authority
CN
China
Prior art keywords
initiator
leading
export
wireless communication
registration information
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
CN202311658496.7A
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.)
Shenzhen K Free Wireless Information Technology Co ltd
Original Assignee
Shenzhen K Free Wireless Information 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 Shenzhen K Free Wireless Information Technology Co ltd filed Critical Shenzhen K Free Wireless Information Technology Co ltd
Priority to CN202311658496.7A priority Critical patent/CN117750342A/en
Publication of CN117750342A publication Critical patent/CN117750342A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a data transmission method, device, equipment and medium based on a universal type exploder, and belongs to the technical field of exploders. The method comprises the following steps: leading in an initiator to enter a registration information interface, and enabling a card reading function of NFC; the exporting initiator enters a registration information exporting interface, and the NFC card simulation function and the wireless communication service are started; the leading-in initiator determines a wireless communication address of the leading-out initiator through NFC, and is connected with a wireless communication service of the leading-out initiator according to the wireless communication address; the export initiator sends the determined export basic information to the import initiator through wireless communication service; the exporting initiator transmits the determined exporting registration information to the importing initiator through a wireless communication service; and if the leading-in initiator executes the reply operation to the leading-out initiator within the preset time threshold, determining that the transmission of the leading-out registration information is completed. By the scheme, the efficiency of data transmission between the detonators under the condition of no network is improved.

Description

Data transmission method, device, equipment and medium based on universal initiator
Technical Field
The application relates to the technical field of detonators, in particular to a data transmission method, device, equipment and medium based on a universal type detonator.
Background
If the detonators are abnormal, certain data of the failed detonators, such as project data, registered data and the like, need to be exported to a new detonators, and in the export process, a data network and a server are needed to realize the exporting, but in many situations, such as underground mines and the like, the efficiency of data transmission between the detonators is low under the condition that no data network or the signals of the data network are weak, at present, when the data transmission between the detonators is carried out through Bluetooth, equipment searching pairing connection is needed, the operation is complex, and when a plurality of detonators are in the same range, a large amount of time is needed for selecting the corresponding detonators to pair, so that the time cost is increased.
Disclosure of Invention
In order to solve the technical problems, the embodiment of the application provides a data transmission method, device, equipment and medium based on a universal initiator.
In a first aspect, an embodiment of the present application provides a method for transmitting data based on a universal initiator, where the method includes: the first initiator enters a registration information interface, a card reading function of NFC is started, and the first initiator is used as an importing initiator;
The second initiator enters a registration information export interface, the NFC card simulation function and the wireless communication service are started, and the second initiator is used as an export initiator;
the leading-in initiator reads the wireless communication information of the leading-out initiator through NFC and determines a wireless communication address;
the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address;
the export initiator sends the determined export basic information to the import initiator through the wireless communication service;
the import initiator determines export registration information according to the export basic information;
the export initiator transmits the export registration information to the import initiator through the wireless communication service;
and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed.
In one embodiment, the wireless communication includes: WIFI and bluetooth.
In one embodiment, the determining, by the import initiator, export registration information based on the export base information includes:
if the import initiator executes a reply operation according to the export basic information within the preset time threshold, the export initiator executes the transmission operation of the export registration information according to the reply operation;
And if the imported primer does not execute the reply operation according to the exported basic information within the preset time threshold, the exported primer sends the exported basic information to the imported primer within preset times.
In one embodiment, the exporting initiator sends the exported basic information to the importing initiator within a preset number of times, including: judging whether the leading-in exploder executes a recovery operation within a preset number of times;
if the leading-in initiator executes the recovery operation within the preset times, the leading-out initiator transmits the leading-out registration information to the leading-in initiator;
and if the leading-in initiator does not execute the recovery operation within the preset times, the leading-out initiator displays a transmission abnormity warning.
In one embodiment, the deriving registration information includes: n pieces of export registration information;
and if the importing initiator determines that the transmission is completed within the preset time threshold, the exporting registration information transmission is completed, and a reply operation is executed to the exporting initiator, and the exporting registration information transmission is determined to be completed, including:
the export initiator transmits the ith export registration information to the import initiator;
Judging whether the leading-in exploder executes a recovery operation within a preset time threshold;
if the leading-in initiator executes the recovery operation, the leading-out initiator transmits the (i+1) th leading-out registration information to the leading-in initiator, and the judgment operation is repeated until the transmission of the N leading-out registration information is completed, wherein i is any integer from 1 to N;
if the leading-in initiator does not execute the recovery operation, the leading-out initiator displays an abnormal transmission warning.
In an embodiment, if the NFC functions of the import initiator and the export initiator are faulty, the export initiator enters a registration information export interface, and a transmission bar code is displayed through the registration information export interface;
the leading-in initiator enters a registration information leading-in interface, and the transmission bar code is scanned through a scanning head to obtain a wireless communication address of the leading-out initiator;
the leading-in initiator enters a registration information leading-in interface and performs connection operation on the wireless communication address;
and after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
In an embodiment, if the NFC functions and the scanning heads of the leading-in initiator and the leading-out initiator are faulty, the leading-out initiator enters the registration information leading-out interface, and the device name and the wireless communication address of the leading-out initiator are selected to be displayed;
The imported initiator enters a registration information import interface, and the exported initiator is selected from a search list through a search page according to the equipment name and the wireless communication address of the exported initiator to execute connection operation;
and after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
In a second aspect, embodiments of the present application provide a data transmission device based on a universal initiator, the data transmission device based on a universal initiator including:
the first selection module is used for entering a registration information interface through a first initiator, enabling a card reading function of NFC, and taking the first initiator as an imported initiator;
the second selection module is used for entering a registration information export interface through a second initiator, enabling the card simulation function and the wireless communication service of NFC, and taking the second initiator as an export initiator;
the first determining module is used for reading the wireless communication information of the exported initiator through NFC through the imported initiator and determining a wireless communication address;
the connection module is used for starting wireless communication through the leading-in initiator and connecting the wireless communication service of the leading-out initiator according to the wireless communication address;
The transmitting module is used for transmitting the determined exported basic information to the imported initiator through the exported initiator through the wireless communication service;
the second determining module is used for determining export registration information according to the export basic information through the import initiator;
the transmission module is used for transmitting the exported registration information to the imported initiator through the exported initiator through the wireless communication service;
and the third determining module is used for determining that the transmission of the export registration information is completed if the import initiator executes a reply operation to the export initiator within a preset time threshold.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is configured to store a computer program, and the computer program executes the data transmission method based on the universal initiator provided in the first aspect when the processor runs.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when run on a processor, performs the data transmission method based on the universal initiator provided in the first aspect.
The application provides a data transmission method, device, equipment and medium based on a universal initiator, wherein the method comprises the following steps: the first initiator enters a registration information interface, a card reading function of NFC is started, and the first initiator is used as an importing initiator; the second initiator enters a registration information export interface, the NFC card simulation function and the wireless communication service are started, and the second initiator is used as an export initiator; the leading-in initiator reads the wireless communication information of the leading-out initiator through NFC and determines a wireless communication address; the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address; the export initiator sends the determined export basic information to the import initiator through the wireless communication service; the import initiator determines export registration information according to the export basic information; the export initiator transmits the export registration information to the import initiator through the wireless communication service; and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed. According to the method and the device, under the condition of no network, WIFI or Bluetooth addresses between detonators can be connected through NFC, or data transmission bar codes can be directly scanned through the scanning head, or the detonators can be directly connected through searching for the names of the detonators, so that the efficiency of data transmission between the detonators is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present application, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope of protection of the present application. Like elements are numbered alike in the various figures.
FIG. 1 shows a flow diagram of a data transmission method based on a universal initiator;
FIG. 2 shows another flow diagram of a method for providing universal initiator based data transfer in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a data transmission device based on a universal initiator according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Icon: 300-data transmission means based on a universal initiator, 301-first selection module, 302-second selection module, 303-first determination module, 304-connection module, 305-transmission module, 306-second determination module, 307-transmission module, 308-third determination module, 400-electronic device, 401-transceiver, 402-processor, 403-memory.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
In the following, the terms "comprises", "comprising", "having" and their cognate terms may be used in various embodiments of the present application are intended only to refer to a particular feature, number, step, operation, element, component, or combination of the foregoing, and should not be interpreted as first excluding the existence of or increasing the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is identical to the meaning of the context in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments.
Example 1
The embodiment of the application provides a data transmission method based on a universal initiator, and specifically referring to fig. 1, the method includes steps S101 to S108.
S101, a first initiator enters a registration information interface, a card reading function of NFC is started, and the first initiator is used as an imported initiator.
It should be noted that, the first initiator to which data needs to be imported is determined, after the card reading function of NFC is selected to be started through the registration information import interface of the access system, the card reading function of NFC of the first initiator is invoked through a program.
In one embodiment, as shown in fig. 2, the specific steps are as follows: and S1011, if NFC functions of the leading-in initiator and the leading-out initiator are failed, the leading-out initiator enters a registration information leading-out interface, and a transmission bar code is displayed through the registration information leading-out interface.
The transmission bar code is determined to be displayed by selecting a registration information export interface for exporting the initiator, and the transmission bar code comprises: two-dimensional code and one-dimensional code, wherein transmitting the bar code includes deriving a device name and a wireless communication address of the initiator.
Further, when there are other reasons that the NFC transmission wireless communication address is not wanted to be used, besides the NFC functional failure of the initiator for leading in and the initiator for leading out, the corresponding information can be obtained by scanning the transmission bar code through the scanning head.
And S1012, the imported initiator enters a registration information importing interface, and the transmission bar code is scanned through a scanning head to obtain the wireless communication address of the exported initiator.
It should be noted that, the universal initiator used in the application is provided with hardware such as a scanning head, and through adding the scanning head, the transmission of registration information can be directly realized through scanning the bar code, so that the transmission efficiency between the universal initiators is improved.
And S1013, the leading-in initiator enters a registration information leading-in interface and performs connection operation on the wireless communication address.
And S1014, after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
For example, when NFC of the universal initiator cannot be used, the transmitting barcode on the initiator registration information derivation interface can be scanned and derived by using the leading-in initiator through the scanning head, information such as a bluetooth address or a WIFI address of the leading-out initiator is transmitted to the leading-in initiator, and after the leading-in initiator receives the relevant information, the corresponding connection program is started to transmit data.
In an embodiment, if the NFC functions and the scanning heads of the leading-in initiator and the leading-out initiator are failed, the leading-out initiator enters a registration information leading-out interface, and the device name and the wireless communication address of the leading-out initiator are selected to be displayed. And the imported initiator enters a registration information import interface, and a corresponding exported initiator is selected from a search list through a search page according to the equipment name and the wireless communication address of the exported initiator to execute connection operation. And after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
It should be noted that, the device information or bluetooth address of the initiator can be directly and communicatively connected with the initiator by directly searching and guiding out the initiator, and many complicated operation steps are omitted by searching and directly connecting, so that the operation difficulty is reduced and the working efficiency is improved.
The method further comprises the step of enabling the leading-in initiator to quickly learn the equipment name and the wireless communication address of the leading-out initiator and the leading-in data type identifier of the leading-in initiator in the search result according to the information display function, so that the time for positioning the leading-out initiator is further reduced.
S102, a second initiator enters a registration information export interface, and the second initiator is used as an export initiator to enable the card simulation function and the wireless communication service of NFC.
In one embodiment, the wireless communication includes: WIFI and bluetooth.
For example, when the selected wireless communication mode is bluetooth, the first initiator enters the registration information interface, and starts the card reading function of NFC, and the first initiator is used as the initiator for introduction. And the second initiator enters a registration information export interface, the NFC card simulation function and Bluetooth service are started, and the second initiator is used as an export initiator. In particular, the analog data of NFC has a specific format and content, such as: exporting registration data, simulating data content, and then approaching an import initiator and an export initiator until the import initiator reads Bluetooth information of the export initiator through NFC, determining a Bluetooth address, and after the successful connection is displayed, the export initiator sends the determined export basic information to the import initiator through Bluetooth service, and the export initiator transmits the determined export registration information to the import initiator through Bluetooth service; and if the imported initiator determines that the transmission is completed within the preset time threshold, the transmission of the exported registration information is ended.
Further, for example, when the selected wireless communication mode is WIFI, the first initiator enters the registration information interface, and the card reading function of NFC is enabled, and the first initiator is used as the importing initiator. And the second initiator enters a registration information export interface, and takes the second initiator as an export initiator by enabling the card simulation function of NFC and the WIFI direct connection service. In particular, the analog data of NFC has a specific format and content, such as: the method comprises the steps that registered data are exported, the data content can be simulated, then an imported initiator and an exported initiator are close to each other until the imported initiator reads WIFI information of the exported initiator through NFC, a WIFI address is determined, after the fact that connection is successful is displayed, the exported initiator sends the determined exported basic information to the imported initiator through WIFI direct connection service, and the exported initiator transmits the determined exported registered information to the imported initiator through WIFI direct connection service; and if the imported initiator determines that the transmission is completed within the preset time threshold, the transmission of the exported registration information is ended.
And S103, the lead-in initiator reads the wireless communication information of the lead-out initiator through NFC to determine a wireless communication address.
In this embodiment, specifically, if the selected wireless communication mode is bluetooth, for example: the initiator is imported to read the analog data content of the NFC card: the EXP.BT.REGDATA.9E:2F:46:00:9A can judge that starting with the EXP.BT.REGDATA content, the Bluetooth address of the leading-out initiator is 9E:2F:46:00:00:9A, the leading-in initiator opens Bluetooth, and is connected with the Bluetooth service of the leading-out initiator, and the Bluetooth address is 9E:2F:46:00:00:9A.
It should be noted that, by setting the system of the universal initiator, by modifying the bottom layer of the operating system, the Bluetooth prompt request for reminding to be opened is deleted, so that the user experience is further improved, and the system performance is optimized. By modifying the bottom layer of the operating system, the initiator program has the function of automatically opening Bluetooth, and if a user forgets to open the Bluetooth function, the initiator program can still continue to work without affecting data transmission between the initiators.
Further illustratively, this embodiment uses either the bluetooth SPP protocol (Secure Password Protocol, secure communication protocol) or the BLE protocol (Bluetooth Low Energy, bluetooth low energy protocol).
If the selected wireless communication method is WIFI, for example: the initiator is imported to read the analog data content of the NFC card: the EXP.WIFI.REGDATA.192.168.40.307:88-51-FB-41-91-88 can judge that the content starts from EXP.WIFI.REGDATA, the WIFI address of the exporting initiator is 9E:2F:46:00:00:9A, the mac address is 88-51-FB-41-91-88, the importing initiator opens the WIFI, the WIFI direct connection service of the exporting initiator is connected, and the WIFI address is 9E:2F:46:00:00:9A.
Specifically, EXP.BT.REGDATA.9E:2F:46:00:00:9A, which means that the registration data is exported via Bluetooth; EXP.WIFI.REGDATA.192.168.40.307:88-51-FB-41-91-88, means that the registration data is directly exported by wifi. Bt.jet.9e:2f:46:00:00:9a, means importing item information by bluetooth. By identifying these prefixes, the program can know in advance what data is to be exported, and initiate the corresponding process flow.
And S104, the lead-in initiator starts wireless communication, and the wireless communication service of the lead-out initiator is connected according to the wireless communication address.
The wireless communication direct connection service is started by the leading-in initiator according to the requirement, and the wireless communication service of the initiator is led out according to the wireless communication address connection.
And S105, the export initiator sends the determined export basic information to the import initiator through the wireless communication service.
In this embodiment, deriving the basic information includes: whether to export the total number of the registration data, whether to export the delay of the registration data table, whether to export the basic information such as the position of the registration data table. It should be noted that the derived basic information enters the universal initiator program by wiring or scanning an information barcode on the industrial wireless electronic detonator at the time of construction, and in other embodiments, the derived basic information may be added, deleted or modified.
In an embodiment, if the import initiator performs a reply operation according to the export basic information within the preset time threshold, the export initiator performs the transmission operation of the export registration information according to the reply operation. And if the imported primer does not execute the reply operation according to the exported basic information within the preset time threshold, the exported primer sends the exported basic information to the imported primer within preset times.
By setting a timer in a program, when the leading-in initiator obtains the leading-out basic information of the leading-out initiator, the leading-in initiator automatically starts the timer function, replies the leading-out basic information sent by the leading-out initiator within a time threshold preset by the timer, and if the leading-out initiator does not receive the reply within the time threshold, the leading-out basic information is repeatedly sent.
For example, when the lead-in initiator obtains the lead-out basic information of the lead-out initiator, the timer function is automatically started, the timer is set to 3 seconds, and if the lead-in initiator does not reply to the lead-out initiator within 3 seconds, the lead-out initiator repeatedly sends the lead-out basic information to the lead-in initiator.
In one embodiment, determining whether the lead-in initiator performs a recovery operation within a predetermined number of times; and if the leading-in initiator executes the recovery operation within the preset times, the leading-out initiator transmits the leading-out registration information to the leading-in initiator. And if the leading-in initiator does not execute the recovery operation within the preset times, the leading-out initiator displays a transmission abnormity warning.
It should be noted that, the preset number of replies is set in advance in the universal initiator system, and if the leading-in initiator does not execute the reply operation within the preset number of replies, the leading-out initiator displays a transmission abnormality warning.
For example, if the exporting initiator does not receive the reply of the importing initiator within 3 seconds of the time threshold set by the timer, the exporting initiator resends the export basic information, the preset reply times are set to be 3 times, each time is 3 seconds apart, and if the exporting initiator still does not receive the reply of the importing initiator after 3 times, the exporting initiator displays abnormal transmission.
And S106, the import initiator determines export registration information according to the export basic information.
It should be noted that, when the import initiator performs a reply operation on the received export basic information, it is only able to start transmitting the determined export registration information.
S107, the export initiator transmits the export registration information to the import initiator through the wireless communication service.
In the transmission process, the interfaces of the leading-in initiator and the leading-out initiator display transmission progress, used transmission time, interconnected equipment information and the like, and after the transmission is completed, the summarized information such as prompt time and the like is displayed.
S108, if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed.
In one embodiment, the deriving registration information includes: n pieces of export registration information; the export initiator transmits the ith export registration information to the import initiator; judging whether the leading-in exploder executes a recovery operation within a preset time threshold;
if the leading-in initiator executes the recovery operation, the leading-out initiator transmits the (i+1) th leading-out registration information to the leading-in initiator, and the judgment operation is repeated until the transmission of the N leading-out registration information is completed, wherein i is any integer from 1 to N; if the leading-in initiator does not execute the recovery operation, the leading-out initiator displays an abnormal transmission warning.
After receiving the reply of the leading-in initiator, the leading-out initiator starts to transmit the leading-out registration information, the leading-in initiator replies each received transmission leading-out registration information within a preset time threshold, records the related leading-out registration information, and if no reply is performed within the preset time threshold of any transmission of the leading-out registration information, the leading-out initiator stops transmitting and displays a transmission abnormality warning.
For example, after the exporting initiator receives the reply, the exporting initiator starts to transmit the content of the first piece of registration data, and starts a timer for 3 seconds again to wait for the reply of the importing initiator, the importing initiator needs to reply within 3 seconds, and increases a counter at the same time, records that one piece of registration data has been received, updates the progress bar of the registration data interface, and transmits the next piece of registration data after the exporting initiator receives the reply. This loops until all derived registration information transmissions are complete.
According to the data transmission method based on the universal type exploder, a first exploder enters a registration information interface, a card reading function of NFC is started, and the first exploder is used as an importing exploder; the second initiator enters a registration information export interface, the NFC card simulation function and the wireless communication service are started, and the second initiator is used as an export initiator; the leading-in initiator reads the wireless communication information of the leading-out initiator through NFC and determines a wireless communication address; the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address; the export initiator sends the determined export basic information to the import initiator through the wireless communication service; the import initiator determines export registration information according to the export basic information; the export initiator transmits the export registration information to the import initiator through the wireless communication service; and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed. According to the method and the device, under the condition of no network, WIFI or Bluetooth addresses between detonators can be connected through NFC, or data transmission bar codes can be directly scanned through the scanning head, or the detonators can be directly connected through searching for the names of the detonators, so that the efficiency of data transmission between the detonators is improved.
Example 2
In addition, the embodiment of the application provides a data transmission device based on the universal type initiator.
As shown in fig. 3, the universal initiator-based data transmission device 300 includes:
the first selection module 301 is configured to enter a registration information interface through a first initiator, enable a card reading function of NFC, and use the first initiator as an importing initiator;
a second selection module 302, configured to enter a registration information export interface through a second initiator, and enable a card simulation function and a wireless communication service of NFC, where the second initiator is used as an export initiator;
a first determining module 303, configured to read, by the lead-in initiator, wireless communication information of the lead-out initiator through NFC, and determine a wireless communication address;
the connection module 304 is configured to start wireless communication through the lead-in initiator, and connect a wireless communication service of the lead-out initiator according to the wireless communication address;
a transmitting module 305, configured to transmit, by the export initiator, the determined export basic information to the import initiator through the wireless communication service;
a second determining module 306, configured to determine, by the import initiator, export registration information according to the export basic information;
A transmission module 307, configured to transmit, by the export initiator, the export registration information to the import initiator through the wireless communication service;
a third determining module 308 is configured to determine that transmission of the export registration information is completed by performing a reply operation to the export initiator if the import initiator is within a preset time threshold.
The data transmission device 300 based on the universal initiator provided in this embodiment can implement the data transmission method based on the universal initiator provided in embodiment 1, and in order to avoid repetition, the description is omitted here.
According to the data transmission device based on the universal initiator, the first initiator enters a registration information interface, the NFC card reading function is started, and the first initiator is used as an imported initiator; the second initiator enters a registration information export interface, the NFC card simulation function and the wireless communication service are started, and the second initiator is used as an export initiator; the leading-in initiator reads the wireless communication information of the leading-out initiator through NFC and determines a wireless communication address; the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address; the export initiator sends the determined export basic information to the import initiator through the wireless communication service; the import initiator determines export registration information according to the export basic information; the export initiator transmits the export registration information to the import initiator through the wireless communication service; and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed. According to the method and the device, under the condition of no network, WIFI or Bluetooth addresses between detonators can be connected through NFC, or data transmission bar codes can be directly scanned through the scanning head, or the detonators can be directly connected through searching for the names of the detonators, so that the efficiency of data transmission between the detonators is improved.
Example 3
Furthermore, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program that, when executed on the processor, performs the universal initiator-based data transmission method provided in embodiment 1.
Specifically, referring to fig. 4, the electronic device 400 includes: a transceiver 401, a bus interface, and a processor 402, the processor 402 being configured to: the first initiator enters a registration information interface, a card reading function of NFC is started, and the first initiator is used as an importing initiator; the second initiator enters a registration information export interface, the card simulation function and the wireless communication service of NFC are started, the second initiator is used as an export initiator, the import initiator reads the wireless communication information of the export initiator through NFC, and the wireless communication address is determined; the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address; the export initiator sends the determined export basic information to the import initiator through the wireless communication service; the import initiator determines export registration information according to the export basic information; the export initiator transmits the export registration information to the import initiator through the wireless communication service; and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed.
In one embodiment, the processor 402 is further configured to: the wireless communication includes: WIFI and bluetooth.
In one embodiment, the processor 402 is further configured to: if the import initiator executes a reply operation according to the export basic information within the preset time threshold, the export initiator executes the transmission operation of the export registration information according to the reply operation;
and if the imported primer does not execute the reply operation according to the exported basic information within the preset time threshold, the exported primer sends the exported basic information to the imported primer within preset times.
In one embodiment, the processor 402 is further configured to: judging whether the leading-in exploder executes a recovery operation within a preset number of times; if the leading-in initiator executes the recovery operation within the preset times, the leading-out initiator transmits the leading-out registration information to the leading-in initiator; and if the leading-in initiator does not execute the recovery operation within the preset times, the leading-out initiator displays a transmission abnormity warning.
In one embodiment, the processor 402 is further configured to: the deriving registration information includes: and if the leading-in initiator determines that the transmission is completed within the preset time threshold, the transmission of the leading-out registration information is completed, including:
The export initiator transmits the ith export registration information to the import initiator; judging whether the leading-in exploder executes a recovery operation within a preset time threshold; if the leading-in initiator executes the recovery operation, the leading-out initiator transmits the (i+1) th leading-out registration information to the leading-in initiator, and the judgment operation is repeated until the transmission of the N leading-out registration information is completed, wherein i is any integer from 1 to N; if the leading-in initiator does not execute the recovery operation, the leading-out initiator displays an abnormal transmission warning.
In one embodiment, the processor 402 is further configured to: if NFC functions of the leading-in initiator and the leading-out initiator are faulty, the leading-out initiator enters a registration information leading-out interface, and a transmission bar code is displayed through the registration information leading-out interface; the leading-in initiator enters a registration information leading-in interface, and the scanning head scans the bar code of the transmission two-dimensional code to obtain a wireless communication address of the leading-out initiator; the leading-in initiator enters a registration information leading-in interface and performs connection operation on the wireless communication address; and after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
In one embodiment, the processor 402 is further configured to: if NFC functions and scanning heads of the leading-in initiator and the leading-out initiator are failed, the leading-out initiator enters a registration information leading-out interface, and the equipment name and the wireless communication address of the leading-out initiator are selected to be displayed; the imported initiator enters a registration information import interface, and a corresponding exported initiator is selected from a search list through a search page according to the equipment name and the wireless communication address of the exported initiator to execute connection operation; and after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
In the embodiment of the present application, the electronic device 400 further includes: a memory 403. In fig. 4, a bus architecture may comprise any number of interconnected buses and bridges, with various circuits of the one or more processors, represented in particular by processor 402, and the memory, represented in memory 403, being linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. Transceiver 401 may be a number of elements, i.e., including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 402 is responsible for managing the bus architecture and general processing, and the memory 403 may store data used by the processor 402 in performing operations.
The electronic device 400 provided in the embodiment of the present application may execute the steps of the data transmission method based on the universal initiator provided in the embodiment of the method 1, and in order to avoid repetition, the description is omitted here.
According to the electronic equipment provided by the embodiment, a first initiator enters a registration information interface, an NFC card reading function is started, and the first initiator is used as an imported initiator; the second initiator enters a registration information export interface, the NFC card simulation function and the wireless communication service are started, and the second initiator is used as an export initiator; the leading-in initiator reads the wireless communication information of the leading-out initiator through NFC and determines a wireless communication address; the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address; the export initiator sends the determined export basic information to the import initiator through the wireless communication service; the import initiator determines export registration information according to the export basic information; the export initiator transmits the export registration information to the import initiator through the wireless communication service; and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed. According to the method and the device, under the condition of no network, WIFI or Bluetooth addresses between detonators can be connected through NFC, or data transmission bar codes can be directly scanned through the scanning head, or the detonators can be directly connected through searching for the names of the detonators, so that the efficiency of data transmission between the detonators is improved.
Example 4
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the universal initiator-based data transmission method provided by embodiment 1.
In the present embodiment, the computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
The computer readable storage medium provided in this embodiment can implement the data transmission method based on the universal initiator provided in embodiment 1, and in order to avoid repetition, the description is omitted here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal comprising the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method of data transmission based on a universal initiator, the method comprising:
the first initiator enters a registration information interface, a card reading function of NFC is started, and the first initiator is used as an importing initiator;
the second initiator enters a registration information export interface, the NFC card simulation function and the wireless communication service are started, and the second initiator is used as an export initiator;
the leading-in initiator reads the wireless communication information of the leading-out initiator through NFC and determines a wireless communication address;
the leading-in initiator starts wireless communication and is connected with the wireless communication service of the leading-out initiator according to the wireless communication address;
the export initiator sends the determined export basic information to the import initiator through the wireless communication service;
the import initiator determines export registration information according to the export basic information;
the export initiator transmits the export registration information to the import initiator through the wireless communication service;
and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed.
2. The universal initiator-based data transmission method of claim 1, wherein the wireless communication comprises: WIFI and bluetooth.
3. The universal initiator-based data transmission method of claim 1, wherein the importing initiator determining exporting registration information from the exporting basic information comprises:
if the import initiator executes a reply operation according to the export basic information within the preset time threshold, the export initiator executes the transmission operation of the export registration information according to the reply operation;
and if the imported primer does not execute the reply operation according to the exported basic information within the preset time threshold, the exported primer sends the exported basic information to the imported primer within preset times.
4. A method of data transmission based on a universal initiator according to claim 3, wherein the derived initiator transmits the derived basic information to the derived initiator within a predetermined number of times, comprising:
judging whether the leading-in exploder executes a recovery operation within a preset number of times;
if the leading-in initiator executes the recovery operation within the preset times, the leading-out initiator transmits the leading-out registration information to the leading-in initiator;
And if the leading-in initiator does not execute the recovery operation within the preset times, the leading-out initiator displays a transmission abnormity warning.
5. The universal initiator-based data transmission method of claim 1, wherein the deriving registration information comprises: n pieces of export registration information;
and if the leading-in initiator executes a reply operation to the leading-out initiator within a preset time threshold, determining that the transmission of the leading-out registration information is completed, including:
the export initiator transmits the ith export registration information to the import initiator;
judging whether the leading-in exploder executes a recovery operation within a preset time threshold;
if the leading-in initiator executes the recovery operation, the leading-out initiator transmits the (i+1) th leading-out registration information to the leading-in initiator, and the judgment operation is repeated until the transmission of the N leading-out registration information is completed, wherein i is any integer from 1 to N;
if the leading-in initiator does not execute the recovery operation, the leading-out initiator displays an abnormal transmission warning.
6. The universal initiator-based data transmission method of claim 1, further comprising:
If NFC functions of the leading-in initiator and the leading-out initiator are faulty, the leading-out initiator enters a registration information leading-out interface, and a transmission bar code is displayed through the registration information leading-out interface;
the leading-in initiator enters a registration information leading-in interface, and the transmission bar code is scanned through a scanning head to obtain a wireless communication address of the leading-out initiator;
the leading-in initiator performs a connection operation on the wireless communication address;
and after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
7. The universal initiator-based data transmission method of claim 6, further comprising:
if NFC functions and scanning heads of the leading-in initiator and the leading-out initiator are failed, the leading-out initiator enters the registration information leading-out interface, and the equipment name and the wireless communication address of the leading-out initiator are selected to be displayed;
the imported initiator enters a registration information import interface, and the exported initiator is selected from a search list through a search page according to the equipment name and the wireless communication address of the exported initiator to execute connection operation;
And after the successful connection is determined, the export initiator transmits the export registration information to the import initiator.
8. A universal initiator-based data transmission device, the device comprising:
the first selection module is used for entering a registration information interface through a first initiator, enabling a card reading function of NFC, and taking the first initiator as an imported initiator;
the second selection module is used for entering a registration information export interface through a second initiator, enabling the card simulation function and the wireless communication service of NFC, and taking the second initiator as an export initiator;
the first determining module is used for reading the wireless communication information of the exported initiator through NFC through the imported initiator and determining a wireless communication address;
the connection module is used for starting wireless communication through the leading-in initiator and connecting the wireless communication service of the leading-out initiator according to the wireless communication address;
the transmitting module is used for transmitting the determined exported basic information to the imported initiator through the exported initiator through the wireless communication service;
the second determining module is used for determining export registration information according to the export basic information through the import initiator;
The transmission module is used for transmitting the exported registration information to the imported initiator through the exported initiator through the wireless communication service;
and the third determining module is used for determining that the transmission of the export registration information is completed if the import initiator executes a reply operation to the export initiator within a preset time threshold.
9. An electronic device comprising a memory and a processor, the memory storing a computer program which, when run by the processor, performs the universal initiator-based data transmission method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the universal initiator-based data transmission method of any one of claims 1 to 7.
CN202311658496.7A 2023-12-05 2023-12-05 Data transmission method, device, equipment and medium based on universal initiator Pending CN117750342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311658496.7A CN117750342A (en) 2023-12-05 2023-12-05 Data transmission method, device, equipment and medium based on universal initiator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311658496.7A CN117750342A (en) 2023-12-05 2023-12-05 Data transmission method, device, equipment and medium based on universal initiator

Publications (1)

Publication Number Publication Date
CN117750342A true CN117750342A (en) 2024-03-22

Family

ID=90258373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311658496.7A Pending CN117750342A (en) 2023-12-05 2023-12-05 Data transmission method, device, equipment and medium based on universal initiator

Country Status (1)

Country Link
CN (1) CN117750342A (en)

Similar Documents

Publication Publication Date Title
US8126399B1 (en) Method and apparatus for improved automatic bluetooth device identification for data exchange
CN104378145A (en) Pairing method and system of Bluetooth device
CN107730859B (en) Wireless device pairing method, device and storage medium
KR102275720B1 (en) Bluetooth communication method and bluetooth communication device
CN104320161B (en) Method and system for rapid Bluetooth pairing
CN102299729B (en) A kind of information transferring method and device
CN102149167A (en) Method for automatic pairing to a wireless network
CN106681774B (en) Software upgrading method of Bluetooth loudspeaker and intelligent terminal
US8364793B2 (en) Communication terminal, user data transferring system and user data transferring method
CN102356364A (en) Handheld field maintenance tool with improved functionality
CN1874282B (en) Communication system, and device used in such system
EP1303945A1 (en) Barcode identification of wireless terminals
KR101450536B1 (en) Portable terminal having bluetooth module and method for bluetooth communication thereof
CN108288008B (en) Card activation method and device
CN105208529A (en) Position prompt method and module of mobile terminal
KR101405554B1 (en) System for pairing Bluetooth automatically
CN104023412A (en) Wireless terminal pairing method and device thereof
CN106856585A (en) Set up the method and device of short-distance wireless passage
CN110992528A (en) Intelligent door lock binding method and equipment based on identification code and storage medium
CN105072082A (en) Method and device for transmitting verification code
CN112232454A (en) Data writing method and system, terminal, household appliance and computer device
CN117750342A (en) Data transmission method, device, equipment and medium based on universal initiator
CN104754769A (en) Electronic Apparatus And Wireless Device Checking Method
EP3806438A1 (en) Mobile terminal and method for registering electronic device by mobile terminal
CN101197959B (en) Terminal control method, system and equipment

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