CN109788461B - Bluetooth dual-mode data communication method and device - Google Patents

Bluetooth dual-mode data communication method and device Download PDF

Info

Publication number
CN109788461B
CN109788461B CN201711128220.2A CN201711128220A CN109788461B CN 109788461 B CN109788461 B CN 109788461B CN 201711128220 A CN201711128220 A CN 201711128220A CN 109788461 B CN109788461 B CN 109788461B
Authority
CN
China
Prior art keywords
bluetooth
data communication
bluetooth module
terminal equipment
low
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.)
Active
Application number
CN201711128220.2A
Other languages
Chinese (zh)
Other versions
CN109788461A (en
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 Ubtech Technology Co ltd
Youbixuan Software Technology Shenzhen Co ltd
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN201711128220.2A priority Critical patent/CN109788461B/en
Publication of CN109788461A publication Critical patent/CN109788461A/en
Application granted granted Critical
Publication of CN109788461B publication Critical patent/CN109788461B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 invention is suitable for the technical field of communication, and provides a Bluetooth dual-mode data communication method and a Bluetooth dual-mode data communication device, wherein the method comprises the following steps: after the classic Bluetooth module and the low-power-consumption Bluetooth module finish initialization examples, receiving a Bluetooth communication request sent by target terminal equipment, wherein the Bluetooth communication request carries a target user identity; authenticating the identity of the target user; if the identity identification of the target user passes the authentication, detecting the protocol type of the Bluetooth communication request; and establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module according to the protocol type. The embodiment of the invention can realize the data communication between the terminal equipment and the classic Bluetooth module or the low-power Bluetooth module according to the protocol type of the communication data, and realize the compatibility of the classic Bluetooth and the low-power Bluetooth.

Description

Bluetooth dual-mode data communication method and device
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a Bluetooth dual-mode data communication method and device.
Background
Currently, bluetooth technology is widely used for information transmission between two or more devices nearby under low bandwidth conditions. Such as a mobile phone, a tablet computer, a media player, a handheld device, a notebook computer, etc.
At present, the Bluetooth technology is developed from a classic Bluetooth module to a low-power Bluetooth module, the situation that classic Bluetooth and low-power Bluetooth exist simultaneously is formed, data communication is needed to be carried out through classic Bluetooth in some existing Bluetooth devices, data communication is needed to be carried out through low-power Bluetooth in some existing Bluetooth devices, existing terminal devices can only be connected with classic Bluetooth according to device types or can only be connected with low-power Bluetooth, and the problem that classic Bluetooth and low-power Bluetooth cannot be compatible is caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide a bluetooth dual-mode data communication method and apparatus, which can implement, according to a protocol type of communication data, that a terminal device establishes data communication with a classic bluetooth module or the bluetooth low energy module, and implement compatibility between the classic bluetooth and the bluetooth low energy.
In a first aspect of the embodiments of the present invention, a bluetooth dual-mode data communication method is provided, including:
after the classic Bluetooth module and the low-power-consumption Bluetooth module finish initialization examples, receiving a Bluetooth communication request sent by target terminal equipment, wherein the Bluetooth communication request carries a target user identity;
authenticating the target user identity;
If the target user identity identification passes the authentication, detecting the protocol type of the Bluetooth communication request;
and establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power Bluetooth module according to the protocol type.
In a second aspect of the embodiments of the present invention, a bluetooth dual-mode data communication apparatus is provided, including:
the request receiving unit is used for receiving a Bluetooth communication request sent by target terminal equipment after the classic Bluetooth module and the low-power-consumption Bluetooth module complete initialization examples, wherein the Bluetooth communication request carries a target user identity;
the authentication unit is used for authenticating the target user identity;
the detection unit is used for detecting the protocol type of the Bluetooth communication request if the target user identity identification passes the authentication;
and the communication establishing unit is used for establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power Bluetooth module according to the protocol type.
In a third aspect of the embodiments of the present invention, a terminal device for bluetooth dual-mode data communication is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the bluetooth dual-mode data communication method when executing the computer program.
In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the bluetooth dual-mode data communication method described above.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: according to the Bluetooth dual-mode data communication method and device provided by the embodiment of the invention, after the classic Bluetooth module and the low-power-consumption Bluetooth module complete the initialization instance, the Bluetooth communication request sent by the target terminal equipment is received, and the Bluetooth communication request carries the target user identity; authenticating the identity of the target user; if the identity identification of the target user passes the authentication, detecting the protocol type of the Bluetooth communication request; and establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module according to the protocol type. The embodiment of the invention can realize that the terminal equipment establishes data communication with the classic Bluetooth module or the low-power-consumption Bluetooth module according to the protocol type of the communication data, and realizes the compatibility of the classic Bluetooth and the low-power-consumption Bluetooth.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a bluetooth dual-mode data communication method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a bluetooth dual-mode data communication method according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a bluetooth dual-mode data communication method according to still another embodiment of the present invention;
fig. 4 is a flowchart illustrating a bluetooth dual-mode data communication method according to another embodiment of the present invention;
fig. 5 is a block diagram of a bluetooth dual-mode data communication apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a terminal device for bluetooth dual-mode data communication according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a flowchart illustrating a bluetooth dual-mode data communication method according to an embodiment of the present invention. The method can be applied to any Bluetooth dual-mode terminal equipment, such as a robot, a mobile phone, a PDA (Personal Digital Assistant), and the like, and particularly can be applied to a coexistence control module of a Bluetooth dual-mode data communication system of any terminal equipment.
S101: and after the classic Bluetooth module and the low-power-consumption Bluetooth module finish the initialization examples, receiving a Bluetooth communication request sent by the target terminal equipment, wherein the Bluetooth communication request carries the identity of the target terminal equipment.
In this embodiment, the instantiation of the classic bluetooth module and the bluetooth low energy module refers to running the classic bluetooth module and the bluetooth low energy module on the terminal device, and waiting for other connected terminal devices to connect the classic bluetooth module or the bluetooth low energy module. The target terminal device identity may be a device ID or a factory code of the device.
S102: and authenticating the identity of the target terminal equipment.
In this embodiment, the bluetooth communication request further carries an identity identifier, and whether the identity identifier exists in the pre-stored authentication identifier is determined. If the identity identification exists in the pre-stored authentication identification, the identity identification of the target terminal equipment passes the authentication; and if the identity identification does not exist in the pre-stored authentication identification, the identity identification authentication of the target terminal equipment is not passed.
S103: and if the identity identification of the target terminal equipment passes the authentication, detecting the protocol type of the Bluetooth communication request.
In the present embodiment, the protocol type of the bluetooth communication request is classified into a classic bluetooth protocol and a bluetooth low energy protocol according to the type that the data transmission required by the communication protocol needs to satisfy.
S104: and establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module according to the protocol type.
In this embodiment, if the protocol type is a classic bluetooth protocol type, data communication is established between the target terminal device and a classic bluetooth module; and if the protocol type is the low-power-consumption Bluetooth protocol type, establishing data communication between the target terminal equipment and the low-power-consumption Bluetooth module.
As can be seen from this embodiment, after the classic bluetooth module and the low-power-consumption bluetooth module complete the initialization instance, a bluetooth communication request sent by the target terminal device is received, where the bluetooth communication request carries the target user identity; authenticating the identity of the target user; if the identity identification of the target user passes the authentication, detecting the protocol type of the Bluetooth communication request; the target terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module are in data communication according to the protocol type, the terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module can be in data communication according to the protocol type of communication data, and the classic Bluetooth and the low-power-consumption Bluetooth are compatible.
Referring to fig. 2, fig. 2 is a flowchart illustrating a bluetooth dual-mode data communication method according to another embodiment of the present invention. On the basis of the foregoing embodiment, the content of S201 in this embodiment is similar to that of S101 described above, and for specific content, reference is made to the related description of S101, which is not described herein again.
S202: and updating the recorded device connection number according to the Bluetooth communication request.
In this embodiment, the recorded device connection number refers to a device that establishes a connection with the bluetooth dual-mode terminal device.
S203: and judging whether the updated device connection number is lower than a preset connection threshold value.
In this embodiment, the preset connection threshold may be configured according to the needs of the user. Because too many devices are connected with the bluetooth dual-mode terminal device, the bluetooth dual-mode terminal device is controlled by too many devices, and user data security is affected. Preferably, the preset connection threshold may be 1, so as to implement one-to-one control of the bluetooth dual-mode terminal device.
S204: and if the updated equipment connection quantity is lower than the preset connection threshold value, executing the step of authenticating the target user identity.
S205: and if the updated device connection number is judged to be equal to or larger than the preset connection threshold, executing a first shielding instruction, wherein the first shielding instruction is used for shielding the Bluetooth communication request of the target terminal device.
The first shielding instruction can be sent to an automatic shielding module of the target terminal device, and the automatic shielding module can be used for shielding the target terminal device which sends the bluetooth communication request.
It can be seen from this embodiment that, by updating the recorded device connection number according to the bluetooth communication request, it is determined whether the updated device connection number is lower than a preset connection threshold, if it is determined that the updated device connection number is lower than the preset connection threshold, the step of authenticating the target user identity is performed, and if it is determined that the updated device connection number is equal to or greater than the preset connection threshold, the target terminal device is shielded to prevent excessive devices from being connected with the bluetooth dual-mode terminal device, which causes the bluetooth dual-mode terminal device to be controlled by the excessive devices and affects user data security.
Referring to fig. 3, fig. 3 is a flowchart illustrating a bluetooth dual-mode data communication method according to still another embodiment of the present invention. On the basis of the above embodiments, the contents of S301 to S302 in this embodiment are the same as the contents of S101 to S102, and for details, reference is made to the related description of S101 to S102, which is not repeated herein.
S303: and if the identity identification of the target terminal equipment is not authenticated, executing a second shielding instruction if the identity identification of the target user is not authenticated, wherein the second shielding instruction is used for shielding the Bluetooth communication request of the target terminal equipment.
Specifically, the bluetooth communication request also carries an identity; judging whether the identity identification exists in the pre-stored authentication identification; if the identity identification exists in the pre-stored authentication identification, the identity identification of the target terminal equipment passes the authentication; and if the identity identification does not exist in the pre-stored authentication identification, the identity identification authentication of the target terminal equipment is not passed. The target terminal device identity may be any form of password ID.
According to the embodiment, the target terminal equipment is shielded according to the identity of the target terminal equipment so as to prevent an unauthorized user from connecting the Bluetooth dual-mode terminal equipment.
Referring to fig. 4, fig. 4 is a flowchart illustrating a bluetooth dual-mode data communication method according to another embodiment of the present invention. On the basis of the above embodiments, the contents of S401 to S404 in this embodiment are the same as the contents of S101 to S104, and for specific contents, reference is made to the related description of S101 to S104, which is not repeated herein.
S405: after data communication is established with the terminal device through the classic bluetooth module, the bluetooth scanning mode of the classic bluetooth module is turned off.
In this embodiment, the bluetooth scan mode of the classic bluetooth module refers to a state in which the classic bluetooth module is in operation and waits for connection of other devices.
S406: after establishing data communication with the terminal device through the bluetooth low energy module, the bluetooth scanning mode of the bluetooth low energy module is turned off.
In this embodiment, the bluetooth scan mode of the bluetooth low energy module means that the bluetooth low energy module is in a state of running and waiting for connection of other devices.
It can be seen from this embodiment that the power consumption of the classic bluetooth module and the bluetooth low energy module can be reduced by turning off the bluetooth scanning mode of the classic bluetooth module and the bluetooth low energy module.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 5 is a block diagram of a bluetooth dual-mode data communication apparatus according to an embodiment of the present invention, which corresponds to the bluetooth dual-mode data communication method in the foregoing embodiment. For ease of illustration, only portions relevant to embodiments of the present invention are shown. Referring to fig. 5, the system apparatus includes: a request receiving unit 501, an authentication unit 502, a detection unit 503, and a communication establishing unit 504.
The request receiving unit 501 is configured to receive a bluetooth communication request sent by a target terminal device after a classic bluetooth module and a low-power-consumption bluetooth module complete initialization instances, where the bluetooth communication request carries an identity of the target terminal device;
An authentication unit 502, configured to authenticate the identity of the target terminal device;
a detecting unit 503, configured to detect a protocol type of the bluetooth communication request if the identity authentication of the target terminal device passes;
a communication establishing unit 504, configured to establish data communication between the target terminal device and the classic bluetooth module or the bluetooth low energy module according to the protocol type.
As can be seen from this embodiment, after the classic bluetooth module and the low-power-consumption bluetooth module complete the initialization instance, a bluetooth communication request sent by the target terminal device is received, where the bluetooth communication request carries the target user identity; authenticating the identity of the target user; if the identity identification of the target user passes the authentication, detecting the protocol type of the Bluetooth communication request; the target terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module are in data communication according to the protocol type, the terminal equipment and the classic Bluetooth module or the low-power-consumption Bluetooth module can be in data communication according to the protocol type of communication data, and the classic Bluetooth and the low-power-consumption Bluetooth are compatible.
Referring to fig. 5, in an embodiment of the present invention, on the basis of the above embodiment, the communication establishing unit 504 includes:
A first communication establishing subunit 5041, configured to establish data communication between the target terminal device and the classic bluetooth module if the protocol type is a classic bluetooth protocol type;
a second communication establishing subunit 5042, configured to establish data communication between the target terminal device and the bluetooth low energy module if the protocol type is a bluetooth low energy protocol type.
Referring to fig. 5, in an embodiment of the present invention, on the basis of the above embodiment, the apparatus further includes:
an updating unit 505, configured to update the recorded device connection number according to the bluetooth communication request;
a determining unit 506, configured to determine whether the updated device connection number is lower than a preset connection threshold;
the authenticating unit 502 is further configured to perform a step of authenticating the target user identity if it is determined that the updated device connection number is lower than the preset connection threshold.
Referring to fig. 5, in an embodiment of the present invention, on the basis of the above embodiment, the apparatus further includes:
a first shielding unit 507, configured to execute a first shielding instruction if it is determined that the updated device connection number is equal to or greater than the preset connection threshold, where the first shielding instruction is used to shield the bluetooth communication request of the target terminal device.
Referring to fig. 5, in an embodiment of the present invention, on the basis of the above embodiment, the apparatus further includes:
a second shielding unit 508, configured to execute a second shielding instruction if the target user id authentication fails, where the second shielding instruction is used to shield the bluetooth communication request of the target terminal device.
Referring to fig. 5, in an embodiment of the present invention, on the basis of the above embodiment, the apparatus further includes:
a bluetooth scan mode closing unit 509 which closes the bluetooth scan mode of the classic bluetooth module after establishing data communication with the terminal device through the classic bluetooth module; or after establishing data communication with the terminal equipment through the low-power-consumption Bluetooth module, closing the Bluetooth scanning mode of the low-power-consumption Bluetooth module.
Referring to fig. 6, fig. 6 is a schematic block diagram of a terminal device for bluetooth dual-mode data communication according to an embodiment of the present invention. The terminal 600 in the present embodiment shown in fig. 6 may include: one or more processors 601, one or more input devices 602, one or more output devices 603, and one or more memories 604. The processor 601, the input device 602, the output device 603 and the memory 604 are all connected to each other via a communication bus 605. The memory 604 is used to store a computer program comprising program instructions. Processor 601 is operative to execute program instructions stored in memory 604. Wherein the processor 601 is configured to call the program instruction to perform the following operations:
The processor 601 is configured to receive a bluetooth communication request sent by a target terminal device after a classic bluetooth module and a low-power-consumption bluetooth module complete initialization instances, where the bluetooth communication request carries a target user identity; authenticating the target user identity; if the target user identity identification passes the authentication, detecting the protocol type of the Bluetooth communication request; and establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power Bluetooth module according to the protocol type.
Further, the processor 601 is further configured to update the recorded device connection number according to the bluetooth communication request after receiving the bluetooth communication request sent by the target terminal device; judging whether the updated connection quantity of the equipment is lower than a preset connection threshold value or not; and if the updated equipment connection quantity is lower than the preset connection threshold value, executing the step of authenticating the target user identity.
Further, the processor 601 is further configured to establish data communication between the target terminal device and the classic bluetooth module if the protocol type is the classic bluetooth protocol type; and if the protocol type is a low-power-consumption Bluetooth protocol type, establishing data communication between the target terminal equipment and the low-power-consumption Bluetooth module.
Further, the processor 601 is further configured to execute a first shielding instruction if it is determined that the updated device connection number is equal to or greater than the preset connection threshold, where the first shielding instruction is used to shield the bluetooth communication request of the target terminal device.
Further, the processor 601 is further configured to execute a second shielding instruction if the target user identity authentication fails, where the second shielding instruction is used to shield the bluetooth communication request of the target terminal device.
Further, the processor 601 is further configured to turn off the bluetooth scanning mode of the classic bluetooth module after establishing data communication with the terminal device through the classic bluetooth module; or after establishing data communication with the terminal equipment through the low-power-consumption Bluetooth module, closing the Bluetooth scanning mode of the low-power-consumption Bluetooth module.
It should be understood that in the embodiment of the present invention, the Processor 601 may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 602 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 603 may include a display (LCD, etc.), a speaker, etc.
The memory 604 may include both read-only memory and random access memory, and provides instructions and data to the processor 601. A portion of the memory 604 may also include non-volatile random access memory. For example, the memory 604 may also store device type information.
In a specific implementation, the processor 601, the input device 602, and the output device 603 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the service request method provided in this embodiment of the present invention, and may also execute the implementation manner of the terminal described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program, where the computer program includes program instructions, where the program instructions implement all or part of the procedures in the method of the above embodiments when executed by a processor, and may also be implemented by a computer program instructing associated hardware, where the computer program may be stored in a computer-readable storage medium, and where the computer program can implement the steps of the above method embodiments when executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A bluetooth dual-mode data communication method, comprising:
after the classic Bluetooth module and the low-power-consumption Bluetooth module finish initialization examples, receiving a Bluetooth communication request sent by target terminal equipment, wherein the Bluetooth communication request carries a target user identity;
updating the recorded equipment connection quantity according to the Bluetooth communication request;
judging whether the updated connection quantity of the equipment is lower than a preset connection threshold value or not;
If the updated device connection number is lower than the preset connection threshold, performing a step of authenticating the target user identity, where authenticating the target user identity includes: if the target user identity identification exists in the prestored authentication identification, the identity identification of the target terminal equipment passes the authentication; if the target user identity does not exist in the prestored authentication identification, the identity identification authentication of the target terminal equipment does not pass; if the target user identity identification passes the authentication, detecting the protocol type of the Bluetooth communication request;
establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power Bluetooth module according to the protocol type;
establishing data communication between the target terminal device and the classic bluetooth module or the bluetooth low energy module according to the protocol type comprises:
if the protocol type is a classic Bluetooth protocol type, establishing data communication between the target terminal equipment and the classic Bluetooth module;
and if the protocol type is a low-power-consumption Bluetooth protocol type, establishing data communication between the target terminal equipment and the low-power-consumption Bluetooth module.
2. The bluetooth dual-mode data communication method according to claim 1, further comprising:
and if the updated device connection number is judged to be equal to or larger than the preset connection threshold, executing a first shielding instruction, wherein the first shielding instruction is used for shielding the Bluetooth communication request of the target terminal device.
3. The bluetooth dual-mode data communication method according to claim 1, further comprising:
and if the target user identity identification authentication is not passed, executing a second shielding instruction, wherein the second shielding instruction is used for shielding the Bluetooth communication request of the target terminal equipment.
4. The bluetooth dual-mode data communication method according to any one of claims 1 to 3, further comprising:
after establishing data communication with the terminal equipment through a classic Bluetooth module, closing a Bluetooth scanning mode of the classic Bluetooth module; alternatively, the first and second electrodes may be,
and after the data communication is established with the terminal equipment through the low-power-consumption Bluetooth module, the Bluetooth scanning mode of the low-power-consumption Bluetooth module is closed.
5. A bluetooth dual-mode data communication device, comprising:
the request receiving unit is used for receiving a Bluetooth communication request sent by target terminal equipment after the classic Bluetooth module and the low-power-consumption Bluetooth module complete initialization examples, wherein the Bluetooth communication request carries a target user identity;
The updating unit is used for updating the recorded equipment connection number according to the Bluetooth communication request;
a judging unit, configured to judge whether the updated device connection number is lower than a preset connection threshold;
the authentication unit is used for executing the step of authenticating the target user identity if the updated equipment connection quantity is judged to be lower than the preset connection threshold; the authenticating the target user identity comprises: if the target user identity identification exists in the prestored authentication identification, the identity identification of the target terminal equipment passes the authentication; if the target user identity is judged not to exist in the prestored authentication identification, the identity identification authentication of the target terminal equipment is not passed;
the detection unit is used for detecting the protocol type of the Bluetooth communication request if the target user identity identification passes the authentication;
the communication establishing unit is used for establishing data communication between the target terminal equipment and the classic Bluetooth module or the low-power Bluetooth module according to the protocol type;
the communication establishing unit includes:
the first communication establishing subunit is used for establishing data communication between the target terminal device and the classic Bluetooth module if the protocol type is the classic Bluetooth protocol type;
And the second communication establishing subunit is used for establishing data communication between the target terminal device and the low-power-consumption Bluetooth module if the protocol type is a low-power-consumption Bluetooth protocol type.
6. The bluetooth dual-mode data communication apparatus according to claim 5, further comprising: and the first shielding unit is used for executing a first shielding instruction if the updated device connection number is judged to be equal to or larger than the preset connection threshold, wherein the first shielding instruction is used for shielding the Bluetooth communication request of the target terminal device.
7. The bluetooth dual-mode data communication apparatus according to claim 5, further comprising:
and the second shielding unit is used for executing a second shielding instruction if the target user identity identification authentication is not passed, wherein the second shielding instruction is used for shielding the Bluetooth communication request of the target terminal equipment.
8. The bluetooth dual-mode data communication apparatus according to any one of claims 5 to 7, further comprising:
and the Bluetooth scanning mode closing unit closes the Bluetooth scanning mode of the classic Bluetooth module after establishing data communication with the terminal equipment through the classic Bluetooth module, or closes the Bluetooth scanning mode of the low-power Bluetooth module after establishing data communication with the terminal equipment through the low-power Bluetooth module.
9. A terminal device for bluetooth dual mode data communication, comprising a memory, a processor and a computer program stored in said memory and being executable on said processor, characterized in that said processor, when executing said computer program, implements the steps of the bluetooth dual mode data communication method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the bluetooth dual-mode data communication method according to any one of claims 1 to 4.
CN201711128220.2A 2017-11-15 2017-11-15 Bluetooth dual-mode data communication method and device Active CN109788461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711128220.2A CN109788461B (en) 2017-11-15 2017-11-15 Bluetooth dual-mode data communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711128220.2A CN109788461B (en) 2017-11-15 2017-11-15 Bluetooth dual-mode data communication method and device

Publications (2)

Publication Number Publication Date
CN109788461A CN109788461A (en) 2019-05-21
CN109788461B true CN109788461B (en) 2022-06-28

Family

ID=66494196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711128220.2A Active CN109788461B (en) 2017-11-15 2017-11-15 Bluetooth dual-mode data communication method and device

Country Status (1)

Country Link
CN (1) CN109788461B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110572803A (en) * 2019-07-25 2019-12-13 华为技术有限公司 Bluetooth switching method and Bluetooth device
CN110891298A (en) * 2019-12-18 2020-03-17 惠州拓邦电气技术有限公司 Bluetooth connection method, device, Bluetooth equipment and system
CN111757308B (en) * 2020-07-09 2022-11-15 杭州安恒信息技术股份有限公司 Low-power-consumption Bluetooth connection blocking method and device, computer equipment and storage medium
CN112073956A (en) * 2020-09-07 2020-12-11 中国联合网络通信集团有限公司 User information determination method, device, equipment and computer readable storage medium
CN112423280A (en) * 2020-10-27 2021-02-26 上海影创信息科技有限公司 Wireless communication method, system and medium based on Bluetooth private protocol
CN112689222B (en) * 2020-12-14 2023-07-04 无锡中感微电子股份有限公司 Wireless audio conversion device and method
CN112911380B (en) * 2021-01-15 2023-03-28 海信视像科技股份有限公司 Display device and connection method with Bluetooth device
CN113676881B (en) * 2021-08-06 2024-05-07 Oppo广东移动通信有限公司 Equipment control method, device, electronic equipment and storage medium
CN113677039B (en) * 2021-08-19 2024-05-03 Oppo广东移动通信有限公司 Bluetooth-based device connection method and device, electronic device and storage medium
CN114578977B (en) * 2022-05-07 2022-10-14 深圳市研川科技有限公司 Wireless keyboard intelligent control method for special computer and wireless keyboard

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104218976A (en) * 2013-06-03 2014-12-17 飞比特公司 Self-adaptive data transmission using Bluetooth
CN104320412A (en) * 2014-11-11 2015-01-28 福建联迪商用设备有限公司 Bluetooth POS and safe Bluetooth POS connecting method and device
CN106488383A (en) * 2015-08-28 2017-03-08 宇龙计算机通信科技(深圳)有限公司 A kind of method and device connecting bluetooth equipment
CN106550027A (en) * 2016-10-25 2017-03-29 深圳中兴网信科技有限公司 Equipment method of attachment and equipment connection system
CN106658678A (en) * 2016-10-28 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method of wearable device, and device
CN106658366A (en) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment
CN106878917A (en) * 2015-12-11 2017-06-20 比亚迪股份有限公司 The transfer control method of information, system, terminal and data acquisition unit
CN107135463A (en) * 2017-04-01 2017-09-05 杭州联络互动信息科技股份有限公司 A kind of Bluetooth connecting method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9414295B2 (en) * 2014-04-24 2016-08-09 Smoothweb Technologies Limited Systems and methods for wireless communication in retail media
WO2016017907A1 (en) * 2014-07-31 2016-02-04 엘지전자(주) Method and apparatus for controlling electronic device in wireless communication system supporting bluetooth communication
CN106707735A (en) * 2015-11-12 2017-05-24 朗昇科技(苏州)有限公司 Low-power consumption intelligent Bluetooth watch

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104218976A (en) * 2013-06-03 2014-12-17 飞比特公司 Self-adaptive data transmission using Bluetooth
CN104320412A (en) * 2014-11-11 2015-01-28 福建联迪商用设备有限公司 Bluetooth POS and safe Bluetooth POS connecting method and device
CN106488383A (en) * 2015-08-28 2017-03-08 宇龙计算机通信科技(深圳)有限公司 A kind of method and device connecting bluetooth equipment
CN106878917A (en) * 2015-12-11 2017-06-20 比亚迪股份有限公司 The transfer control method of information, system, terminal and data acquisition unit
CN106550027A (en) * 2016-10-25 2017-03-29 深圳中兴网信科技有限公司 Equipment method of attachment and equipment connection system
CN106658678A (en) * 2016-10-28 2017-05-10 青岛海信移动通信技术股份有限公司 Bluetooth connection method of wearable device, and device
CN106658366A (en) * 2016-11-30 2017-05-10 建荣半导体(深圳)有限公司 Switching method and device for Bluetooth working modes, Bluetooth chip and electronic equipment
CN107135463A (en) * 2017-04-01 2017-09-05 杭州联络互动信息科技股份有限公司 A kind of Bluetooth connecting method and device

Also Published As

Publication number Publication date
CN109788461A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109788461B (en) Bluetooth dual-mode data communication method and device
US9792460B2 (en) Method and apparatus for processing biometric information in electronic device
US8751824B2 (en) Method and apparatus for protecting software of mobile terminal
US10194318B2 (en) Systems and methods for NFC access control in a secure element centric NFC architecture
US11200018B2 (en) Electronic device and method for sharing screen data
US20180196990A1 (en) Electronic device and fingerprint recognition method
CN109416800B (en) Authentication method of mobile terminal and mobile terminal
CN108475304B (en) Method and device for associating application program and biological characteristics and mobile terminal
US10666453B2 (en) Electronic device and method of controlling electronic device
CN108737638B (en) Application control method and device, mobile terminal and computer readable medium
CN108650671B (en) Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection
US20120185932A1 (en) Sensing and Secure Processing
US20220253819A1 (en) Multi-use near field communication front end on a point of sale system
AU2021273648B2 (en) Multi-use near field communication front end on a point of sale system
US9111401B2 (en) Interactive reader commander
CN110557747A (en) network registration method, terminal and readable storage medium
CN108769366B (en) Authority management method, device, mobile terminal and storage medium
CN109474929B (en) Power consumption mode adjusting method and device, electronic equipment and computer readable storage medium
US20210377261A1 (en) Vehicle control method and smart car key
CN110769396A (en) Method and system for connecting robot with network and terminal equipment
US11947709B2 (en) Electronic device for controlling access to device resource and operation method thereof
US10659599B2 (en) Certificate loading method and related product
CN110769397B (en) Method and device for connecting robot with network and terminal equipment
CA3161583C (en) Multi-use near field communication front end on a point of sale system
US9338809B2 (en) System for coupling mobile device to host computer of automobile and method thereof

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen UBTECH Technology Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20221212

Address after: 518000 b1-13, Nanshan Zhiyuan Park, No. 1001, Xueyuan Avenue, Taoyuan Street, Nanshan District, Shenzhen, Guangdong

Patentee after: Youbixuan software technology (Shenzhen) Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen UBTECH Technology Co.,Ltd.

TR01 Transfer of patent right