CN105978606B - Bluetooth equipment remote communication method, bluetooth equipment and client - Google Patents
Bluetooth equipment remote communication method, bluetooth equipment and client Download PDFInfo
- Publication number
- CN105978606B CN105978606B CN201610580874.8A CN201610580874A CN105978606B CN 105978606 B CN105978606 B CN 105978606B CN 201610580874 A CN201610580874 A CN 201610580874A CN 105978606 B CN105978606 B CN 105978606B
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- data
- client
- network
- bluetooth device
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 85
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000012545 processing Methods 0.000 description 11
- 230000005540 biological transmission Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/72—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the present invention provides a kind of bluetooth equipment remote communication method, bluetooth equipment and client, the method includes:Judge whether the first bluetooth equipment is in share for Bluetooth mode;If the first bluetooth equipment is in share for Bluetooth mode, the blue-teeth data received by bluetooth controller module is sent to client by network by the first bluetooth equipment;Alternatively, the data from client received by network are sent to the bluetooth controller module of the first bluetooth equipment by the first bluetooth equipment;If the first bluetooth equipment is in non-share for Bluetooth mode, the blue-teeth data received by bluetooth controller is sent to the first bluetooth protocol repertory of the first bluetooth equipment by the first bluetooth equipment;Alternatively, the data from the first bluetooth protocol repertory are sent to bluetooth controller by the first bluetooth equipment.The not bluetooth data communication between the second bluetooth equipment and third bluetooth equipment in the same bluetooth working environment may be implemented in the embodiment of the present invention.
Description
Technical Field
The invention relates to the field of Bluetooth communication, in particular to a Bluetooth device remote communication method, a Bluetooth device and a client.
Background
With the gradual development of bluetooth technology and applications, various bluetooth application scenes are more and more complex, and the usage scenes of bluetooth devices are more and more. Bluetooth devices within the same Bluetooth network range may rely on their Bluetooth hardware modules to perform data communications and control operations with other Bluetooth devices in the scene. However, when the distance between the bluetooth device and other bluetooth devices is long and the bluetooth device is not within the same bluetooth network range, the bluetooth connection between the bluetooth device and other bluetooth devices is disconnected, and data communication and control operation cannot be performed.
The existing Bluetooth communication mode has great limitation on the use scene of the Bluetooth equipment, and if a user carries the Bluetooth equipment out, the Bluetooth equipment cannot realize Bluetooth data communication with other Bluetooth equipment at home.
Disclosure of Invention
The embodiment of the invention provides a remote communication method of Bluetooth equipment, the Bluetooth equipment and a client, which are used for solving the problem that the Bluetooth equipment and the Bluetooth communication method in the prior art cannot realize remote data transmission among the Bluetooth equipment.
In a first aspect, an embodiment of the present invention provides a bluetooth device remote communication method, including:
judging whether the first Bluetooth device is in a Bluetooth sharing mode or not;
if the first Bluetooth equipment is in a Bluetooth sharing mode, then
The first Bluetooth device sends the Bluetooth data received by the Bluetooth controller module to the client through the network; or, the first bluetooth device sends the data received from the client through the network to the bluetooth controller module of the first bluetooth device;
if the first Bluetooth equipment is in the non-Bluetooth sharing mode, the first Bluetooth equipment is in the non-Bluetooth sharing mode
The first Bluetooth device sends the Bluetooth data received by the Bluetooth controller to a first Bluetooth protocol stack of the first Bluetooth device; or, the first bluetooth device sends the data from the first bluetooth protocol stack to the bluetooth controller.
In a second aspect, an embodiment of the present invention provides a bluetooth device remote communication method, including:
judging whether the client is in a Bluetooth sharing accepting mode or not;
if the client is in the Bluetooth sharing accepting mode, then
The client receives first data sent by the first Bluetooth device through a network, wherein the first data is Bluetooth data received by the first Bluetooth device through a Bluetooth controller module; or,
and the client sends second data to the Bluetooth controller module of the first Bluetooth device through the network.
In a third aspect, an embodiment of the present invention provides a bluetooth device, including:
the judging module is used for judging whether the Bluetooth equipment is in a Bluetooth sharing mode or not;
the Bluetooth controller module is used for receiving Bluetooth data or receiving data from the client when the judging module judges that the Bluetooth equipment is in a Bluetooth sharing mode; or, the determining module is configured to receive the bluetooth data or receive data from a first bluetooth protocol stack of the first bluetooth device when the determining module determines that the bluetooth device is in a non-bluetooth sharing mode; the first data forwarding management module is used for sending the Bluetooth data from the Bluetooth controller module to the client through a network when the judging module judges that the Bluetooth device is in a Bluetooth sharing mode, or receiving the data from the client through the network and sending the data to the Bluetooth controller module;
or, the bluetooth module is configured to send data from the bluetooth controller module to the first bluetooth protocol stack of the bluetooth device, or send data from the first bluetooth protocol stack to the bluetooth controller module when the determining module determines that the bluetooth device is in the non-bluetooth sharing mode.
In a fourth aspect, an embodiment of the present invention provides a client, including:
the judging module is used for judging whether the Bluetooth equipment is in a Bluetooth sharing accepting mode;
the second data forwarding management module is used for receiving first data sent by the first Bluetooth device through a network when the judging module judges that the Bluetooth device is in a Bluetooth sharing accepting mode, wherein the first data is Bluetooth data received by the first Bluetooth device through a Bluetooth controller module; or,
sending second data to the Bluetooth controller module of the first Bluetooth device over the network.
According to the remote communication method of the Bluetooth equipment, the Bluetooth equipment and the client, whether the first Bluetooth equipment is in a Bluetooth sharing mode or not is judged, and when the first Bluetooth equipment is in the Bluetooth sharing mode, the first Bluetooth equipment sends Bluetooth data received by a Bluetooth controller module to the client through a network; or, the first bluetooth device sends the data received from the client through the network to the bluetooth controller module of the first bluetooth device; when the first Bluetooth device is in a non-Bluetooth sharing mode, the first Bluetooth device sends Bluetooth data received by the Bluetooth controller to a first Bluetooth protocol stack of the first Bluetooth device; or, the first bluetooth device sends the data from the first bluetooth protocol stack to the bluetooth controller. By adopting the Bluetooth device remote communication method provided by the embodiment of the invention, when the client is not in the same Bluetooth working environment with the first Bluetooth device and other Bluetooth devices, the client establishes data communication connection with the first Bluetooth device through a network, so that Bluetooth data communication between the client and other Bluetooth devices can be realized through the first Bluetooth device. Meanwhile, the data transmission is realized according to the judgment result by judging the Bluetooth sharing mode of the first Bluetooth device, so that the problem of conflict generated when the first Bluetooth device and the client need to use the Bluetooth function of the first Bluetooth device at the same time can be prevented.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a bluetooth device for implementing a bluetooth device remote communication method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for Bluetooth device telecommunication according to an embodiment of the present invention;
FIG. 3 is another flowchart illustrating a Bluetooth device telecommunication method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a first data forwarding management module of a first bluetooth device according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a Bluetooth device telecommunication method according to another embodiment of the present invention;
FIG. 6 is another flowchart illustrating a Bluetooth device telecommunication method according to another embodiment of the present invention;
fig. 7 is a schematic flowchart of the operation of the second data forwarding management module of the client according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a bluetooth device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a bluetooth device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The remote communication method of the Bluetooth equipment provided by the embodiment of the invention is used for realizing data transmission between the Bluetooth equipment and the client which are not in the same Bluetooth scene.
Fig. 1 is a schematic structural diagram of a bluetooth device for implementing a bluetooth device remote communication method according to an embodiment of the present invention.
Referring to fig. 1, a first bluetooth device 10 for providing a bluetooth sharing function includes a first bluetooth application module 11, a first bluetooth protocol stack 12, a first data forwarding management module 13 and a bluetooth controller module 14. The first bluetooth application module 11 is configured to interact with a user, convert an instruction and data input by the user into application layer logic, and then call an API interface provided by the first bluetooth protocol stack to implement data communication and control operation between bluetooth devices. Wherein the bluetooth controller module 14 is connected to the first bluetooth protocol stack 12 through the first data forwarding management module 13. All bluetooth-related operations and data contents of the first bluetooth application module 11 of the first bluetooth device 10 are analyzed by the first bluetooth protocol stack 12, and then converted into interface instructions and data of a Host Control Interface (HCI), and the interface instructions and data are transmitted to the bluetooth controller module 14 through the first data forwarding management module 13 for processing.
The client 20 is a device that can share the bluetooth function provided by the first bluetooth device 10. The client 20 includes a second bluetooth application module 21, a second bluetooth protocol stack 22, and a second data forwarding management module 23.
All bluetooth data packets received by the bluetooth controller module 14 of the first bluetooth device 10 from radio frequency are sent to the data forwarding management module 23 of the client 10 through the first data forwarding management module 13 for analysis, and are transmitted to the second bluetooth protocol stack 22 for analysis and processing. The data packets that the client 20 needs to send through the bluetooth controller module are all sent to the first data forwarding management module 13 of the first bluetooth device 10 through the second data forwarding management module 23, and then are transmitted to the bluetooth controller module 14 for sending.
The first bluetooth device 10 is in a bluetooth operating environment, i.e. other bluetooth devices around it can perform bluetooth communication with the first bluetooth device 10. The client 20 is far from the bluetooth working environment and cannot perform bluetooth communication with the other bluetooth devices. The client 20 is in data communication with other bluetooth devices in the bluetooth operating environment by sharing the bluetooth controller module 14 of the first bluetooth device 10. Wherein, the data and command transmission direction between the first bluetooth device 10 and the client 20 is as shown by the arrow in fig. 1.
Fig. 2 is a flowchart illustrating a bluetooth device remote communication method according to an embodiment of the present invention.
Referring to fig. 2, in particular, a bluetooth device remote communication method according to an embodiment of the present invention includes:
s201: and judging whether the first Bluetooth device is in a Bluetooth sharing mode.
S202: if the first Bluetooth equipment is in a Bluetooth sharing mode, then
The first Bluetooth device sends the Bluetooth data received by the Bluetooth controller module to the client through the network; or, the first bluetooth device sends the data received from the client through the network to the bluetooth controller module of the first bluetooth device;
s203: if the first Bluetooth equipment is in the non-Bluetooth sharing mode, the first Bluetooth equipment is in the non-Bluetooth sharing mode
The first Bluetooth device sends the Bluetooth data received by the Bluetooth controller to a first Bluetooth protocol stack of the first Bluetooth device; or, the first bluetooth device sends the data from the first bluetooth protocol stack to the bluetooth controller.
Specifically, before the step S201, the method further includes:
and the first Bluetooth equipment receives a data communication connection request sent by the client through a network and establishes data communication connection with the client through the network.
In a specific implementation process, before the first bluetooth device receives the data communication connection request sent by the client, the first bluetooth device first sends a broadcast message through a network, where the broadcast message includes bluetooth protocol version information supported by the first bluetooth device, so that the client sends the data communication connection request to the first bluetooth device according to the bluetooth protocol version information.
The first Bluetooth device is a device which is provided with a Bluetooth controller module, is in the same Bluetooth scene with other Bluetooth devices and can perform Bluetooth communication with other Bluetooth devices. The client is a device outside the Bluetooth scene. Specifically, the client may include a bluetooth controller module, or may not include the bluetooth controller module. The Bluetooth controller module is used for realizing a Bluetooth data transmission function with other Bluetooth equipment.
Before the first Bluetooth device sends a broadcast message through the network, the first Bluetooth device performs network setting through a user interface of the first Bluetooth application program, the first Bluetooth device and the client are arranged in the same network segment, and a Bluetooth controller of the first Bluetooth device can be set to be in a sharing mode through the user interface of the first Bluetooth application program. Then, the first bluetooth device can automatically broadcast data to the IP segment of the network in a User Datagram Protocol (UDP). The broadcasted data includes: an Internet Protocol Address (IP Address for short) of the first bluetooth device, and information such as a bluetooth Protocol version supported by the bluetooth controller module. And the second Bluetooth client starts a network monitoring mode through the UI interface of the second Bluetooth application program module to monitor the broadcast data from the network.
After the client monitors the UDP broadcast data sent by the first Bluetooth device, the data is analyzed, information such as a Bluetooth Protocol version supported by a Bluetooth controller module of the first Bluetooth device is compared, whether the Bluetooth Protocol version supported by the Bluetooth controller module of the first Bluetooth device is matched with a system Bluetooth Protocol of the client is judged, and if the Bluetooth Protocol version supported by the Bluetooth controller module of the first Bluetooth device is matched with the system Bluetooth Protocol of the client, the data connection request can be sent to the client in a Transmission Control Protocol (TCP) mode.
After the first bluetooth device receives the connection request sent by the client, the first bluetooth device and the client establish reliable connection, the first bluetooth device stops sending broadcast data packets to the network, and the first bluetooth application program module can record that the bluetooth controller module is occupied by the client and record the corresponding bluetooth protocol version number and the corresponding IP information of the client.
According to the remote communication method of the Bluetooth equipment, provided by the embodiment of the invention, the problem of conflict generated when the first Bluetooth equipment and the client need to use the Bluetooth controller module at the same time is prevented by judging whether the first Bluetooth equipment is in a Bluetooth sharing mode and adaptively determining different data transmission modes according to the judgment result. Before determining the data transmission mode, the current bluetooth sharing mode of the first bluetooth device may be determined according to the priority of the first bluetooth device and the client using the bluetooth controller module. Specifically, before the first bluetooth device provides the bluetooth sharing function, priority identification information of the first bluetooth device and the client may be respectively added to the broadcast packet and the data connection request information.
After the first Bluetooth device establishes data communication connection with the client, the first data forwarding management module compares priority authorities of the first Bluetooth device and the client using the Bluetooth controller module according to priority identification information of the first Bluetooth device and the client, determines whether the Bluetooth controller module is in a Bluetooth sharing mode or a non-sharing mode, and shares the Bluetooth controller module with the client, so as to determine data trend. For example, if the priority authority of the first bluetooth device is higher, which indicates that the first bluetooth device can preferentially use the bluetooth controller module, the first bluetooth device starts a non-bluetooth sharing mode. And if the priority authority of the client side is higher, which indicates that the client side can preferentially use the Bluetooth controller module of the first Bluetooth device, the first Bluetooth device starts a Bluetooth sharing mode.
Fig. 3 is another flowchart illustrating a bluetooth device remote communication method according to an embodiment of the present invention. Fig. 4 is a schematic flowchart of a working process of a first data forwarding management module of a first bluetooth device according to an embodiment of the present invention.
Referring to fig. 3 and 4, specifically, if the first bluetooth device is in the bluetooth sharing mode, the step S202 specifically includes:
judging whether the first Bluetooth equipment receives the Bluetooth data or not, and if so, sending the Bluetooth data to the client through the network;
if not, judging whether the first Bluetooth equipment receives the data sent by the client through the network or not; and if so, sending the data sent by the client to the Bluetooth controller of the first Bluetooth device.
Specifically, the first data forwarding management module of the first bluetooth device first determines whether the bluetooth controller module receives bluetooth data sent by other bluetooth devices in the current bluetooth working environment. If yes, the first data forwarding management module packages and sends the Bluetooth data to a second data forwarding management module of the client through the data communication connection; and if not, continuously judging whether the data from the client side is received through the data communication connection, if so, filtering out network information of the data response, and sending pure HCI data and a command to the Bluetooth controller module of the first Bluetooth device. And after the loop processing is finished, returning to the initial state again, judging whether the Bluetooth controller module of the first Bluetooth device is in a sharing state or a non-sharing state again, and repeatedly executing the sharing mode processing flow or the non-sharing mode processing flow according to a judgment result.
On the basis of the above embodiment, further, the step S203 includes:
the first Bluetooth device sends the Bluetooth data received by the Bluetooth controller to a Bluetooth protocol stack of the first Bluetooth device; or, the sending, by the first bluetooth device, the data from the first bluetooth protocol stack to the bluetooth controller includes:
the first Bluetooth device receives the Bluetooth data through the Bluetooth controller module and sends the Bluetooth data to the first Bluetooth protocol stack through the first data forwarding management module;
or,
and the first Bluetooth device sends the data from the first Bluetooth protocol stack to the Bluetooth controller module through the first data forwarding management module.
Specifically, when the first bluetooth device itself needs to use the bluetooth controller module, if the first data forwarding module determines that the priority of using the bluetooth controller module by the first bluetooth device is higher than that of the client, the data forwarding management module determines that the first bluetooth device is in the non-sharing mode, and the first bluetooth device can use the bluetooth controller module by itself to perform bluetooth data communication with other bluetooth devices in the current bluetooth working environment.
On the basis of the above embodiment, further, the first bluetooth device receives the bluetooth data through the bluetooth controller module, and sends the bluetooth data to the first bluetooth protocol stack through the first data forwarding management module;
or,
the first bluetooth device sends the data from the first bluetooth protocol stack to the bluetooth controller module through the first data forwarding management module, including:
the first data forwarding management module judges whether the Bluetooth controller module receives the Bluetooth data, and if so, the first data forwarding management module sends the Bluetooth data received by the Bluetooth controller module to the first Bluetooth protocol stack;
if not, the first data forwarding management module sends the data from the first Bluetooth protocol stack to the Bluetooth controller module.
On the basis of the foregoing embodiment, further, the broadcast message further includes bluetooth shared device identity authentication information, and the first bluetooth device receives the data communication connection request sent by the client, and establishes data communication connection with the client through the network, including:
and determining whether the client sending the data communication connection request conforms to the identity authentication information of the sharing equipment or not according to the Bluetooth sharing equipment authentication information, and if so, establishing data communication connection between the first Bluetooth equipment and the client through the network.
When the client stops using the Bluetooth controller module of the first Bluetooth device, the second data forwarding management module of the client sends a request for stopping sharing to the first data forwarding management module of the first Bluetooth device. And the first Bluetooth equipment sends a sharing stopping response after receiving the request, and sends a disconnection request to the client. And after the client receives the sharing stop response, the first data forwarding management module automatically stops sending and receiving data and commands. And after receiving the disconnection request, the client immediately replies a disconnection request response and automatically disconnects the data communication connection with the first Bluetooth equipment. And after receiving the disconnection request response, the first Bluetooth equipment also automatically closes the data communication connection with the client and continues to perform broadcast data mass sending in a UDP mode.
Optionally, a plurality of first bluetooth devices may exist in the network segment of the first bluetooth device, and the plurality of first bluetooth devices simultaneously transmit a bluetooth shared broadcast packet. The same client can simultaneously initiate data communication connection requests to the plurality of first Bluetooth devices and establish data communication connection, so that sharing with the Bluetooth controller modules of the plurality of first Bluetooth devices is realized. That is, the same client can simultaneously use the bluetooth controller modules of a plurality of first bluetooth devices.
In this embodiment, the first bluetooth device is a sharing provider of the bluetooth controller module, and is responsible for providing a physical bluetooth controller device; and the client is a user of the Bluetooth controller module and can acquire the use right of the Bluetooth controller equipment of a supplier and information such as HCI data and commands. Optionally, the first bluetooth device and the client may be switched according to a need of a scene. For example: the client side with the Bluetooth controller module can configure the client side into the first Bluetooth equipment providing the Bluetooth equipment sharing function through UI setting item operation by loading the first data forwarding management module; the second data forwarding management module can be loaded, and the second data forwarding management module can be configured as the second device using the Bluetooth sharing function provided by other first Bluetooth devices through the operation of a UI setting item. The bluetooth device without the bluetooth controller module can only be used as a user of the bluetooth controller module, namely, the client.
According to the remote communication method of the Bluetooth equipment, whether the first Bluetooth equipment is in a Bluetooth sharing mode or not is judged, and when the first Bluetooth equipment is in the Bluetooth sharing mode, the first Bluetooth equipment sends Bluetooth data received by a Bluetooth controller module to a client through a network; or, the first bluetooth device sends the data received from the client through the network to the bluetooth controller module of the first bluetooth device; when the first Bluetooth device is in a non-Bluetooth sharing mode, the first Bluetooth device sends Bluetooth data received by the Bluetooth controller to a first Bluetooth protocol stack of the first Bluetooth device; or, the first bluetooth device sends the data from the first bluetooth protocol stack to the bluetooth controller. By adopting the Bluetooth device remote communication method provided by the embodiment of the invention, when the client is not in the same Bluetooth working environment with the first Bluetooth device and other Bluetooth devices, the client establishes data communication connection with the first Bluetooth device through a network, so that Bluetooth data communication between the client and other Bluetooth devices can be realized through the first Bluetooth device. Meanwhile, the data transmission is realized according to the judgment result by judging the Bluetooth sharing mode of the first Bluetooth device, so that the problem of conflict generated when the first Bluetooth device and the client need to use the Bluetooth function of the first Bluetooth device at the same time can be prevented.
Example two
Fig. 5 is a flowchart illustrating a bluetooth device remote communication method according to another embodiment of the present invention. Fig. 6 is another flowchart illustrating a bluetooth device remote communication method according to another embodiment of the present invention.
Referring to fig. 5 and fig. 6, a bluetooth device remote communication method according to an embodiment of the present invention includes:
s501: judging whether the client is in a Bluetooth sharing accepting mode or not;
s502: if the client is in a Bluetooth sharing receiving mode, the client receives first data sent by the first Bluetooth device, wherein the first data is Bluetooth data received by the first Bluetooth device through a Bluetooth controller module; or,
and the client sends second data to the Bluetooth controller module of the first Bluetooth device through the network.
On the basis of the above embodiment, the method further includes that the client determines whether the client is in a bluetooth sharing mode, and before the client accepts the bluetooth sharing mode: the client sends a data communication connection request to the first Bluetooth device through the network, so that the client establishes data communication connection with the first Bluetooth device through the network.
On the basis of the above embodiment, before the client sends a data communication connection request to the first bluetooth device through the network, the method further includes: the client receives a broadcast message sent by a first Bluetooth device through a network, wherein the broadcast message comprises Bluetooth protocol version information supported by the first Bluetooth device.
The client sends a data communication connection request to a first Bluetooth device through a network, and the data communication connection request comprises the following steps:
and the client determines whether the Bluetooth protocol version supported by the client is matched with the Bluetooth protocol version supported by the first Bluetooth equipment according to the Bluetooth protocol version information supported by the first Bluetooth equipment, and if so, the client sends a data communication connection request to the first Bluetooth equipment through a network.
On the basis of the foregoing embodiment, further, the client receives first data sent by the first bluetooth device through a network, where the first data is bluetooth data received by the first bluetooth device through a bluetooth controller module; or,
the client sends second data to the first bluetooth device through the network, and the second data comprises:
the second data forwarding management module judges whether the first data from the first Bluetooth device is received through the network, and if so, the first data is sent to the second Bluetooth protocol stack;
if not, whether second data sent by the second Bluetooth protocol stack is received or not is judged, and if yes, the second data is sent to the first Bluetooth equipment through the data communication connection.
Fig. 7 is a schematic flowchart of a work flow of a second data forwarding management module of a client according to another embodiment of the present invention.
Referring to fig. 7, specifically, first, the second data forwarding management module determines whether the client has completed a sharing connection with the first bluetooth device. If the sharing connection is not completed, the second data forwarding module may determine whether the second bluetooth protocol stack needs to send data to the bluetooth controller module of the first bluetooth device. And if the second Bluetooth protocol stack is detected to need to send data and commands, the client side can directly send error prompt to the system to prompt that the system is not connected to the Bluetooth controller module of the first Bluetooth equipment and cannot perform data transmission and control operations related to Bluetooth. And if the current remote client finishes the sharing connection, entering a sharing mode receiving processing flow.
When the client enters a Bluetooth sharing receiving mode, the second data forwarding module firstly judges whether data sent by a first data forwarding module of the first Bluetooth device is received, and if so, pure HCI data and commands are transmitted to the second Bluetooth protocol stack and the second Bluetooth application program of the first Bluetooth device for analysis and processing after network packets are filtered; if not, whether HCI data and commands which need to be transmitted to the Bluetooth controller module of the first Bluetooth device for processing exist in the second Bluetooth protocol stack and the second Bluetooth application program of the client side is continuously judged, and if the HCI data and commands exist, the HCI data and commands are subjected to network packaging and then are sent to the Bluetooth controller module of the first Bluetooth device for processing through the data communication connection. After the processing is finished, the second data forwarding management module returns to the initial state again, re-judges whether sharing connection with the first Bluetooth device is finished, and determines whether to repeatedly execute a processing flow of accepting the sharing mode according to a judgment result.
The implementation principle and technical effect of the remote communication method for the bluetooth device provided by the embodiment of the present invention are similar to those of the remote communication method for the bluetooth device in the first embodiment, and are not described herein again.
Fig. 8 is a schematic structural diagram of a bluetooth device according to an embodiment of the present invention.
Referring to fig. 8, a bluetooth device according to an embodiment of the present invention includes:
a determining module 810, configured to determine whether the bluetooth device is in a bluetooth sharing mode;
a bluetooth controller module 830, configured to receive bluetooth data or receive data from the client when the determining module determines that the bluetooth device is in the bluetooth sharing mode;
or,
the determining module 810 is configured to receive the bluetooth data or receive data from a first bluetooth protocol stack of the first bluetooth device when the bluetooth device is determined to be in the non-bluetooth sharing mode;
a first data forwarding management module 820, configured to send the bluetooth data from the bluetooth controller module to the client through a network when the determining module 810 determines that the bluetooth device is in a bluetooth sharing mode, or receive the data from the client through the network and send the data to the bluetooth controller module;
or,
the determining module 810 is configured to send data from the bluetooth controller module to the first bluetooth protocol stack of the bluetooth device, or send data from the first bluetooth protocol stack to the bluetooth controller module, when determining that the bluetooth device is in the non-bluetooth sharing mode.
Specifically, the determining module 810 may be integrated with the first data forwarding management module 820.
The bluetooth device provided in the embodiment of the present invention is used to execute the bluetooth device remote communication method provided in the first embodiment, and the specific implementation principle and technical effect thereof are similar to those of the second embodiment, and are not described herein again.
Example four
Fig. 9 is a schematic structural diagram of a client according to another embodiment of the present invention.
Referring to fig. 9, a client according to an embodiment of the present invention includes:
a determining module 910, configured to determine whether the bluetooth device is in a bluetooth sharing accepting mode;
a second data forwarding management module 920, configured to receive, through a network, first data sent by the first bluetooth device when the determining module 910 determines that the bluetooth device is in a bluetooth sharing accepting mode, where the first data is bluetooth data received by the first bluetooth device through a bluetooth controller module; or,
sending second data to the Bluetooth controller module of the first Bluetooth device over the network.
Specifically, the determining module 910 may be integrated with the second data forwarding management module 920.
The bluetooth device provided by the embodiment of the present invention is used for executing the bluetooth device remote communication method provided by the second embodiment, and the specific implementation principle and technical effect thereof are similar to those of the second embodiment, and are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a readable storage medium of a computer, a mobile phone or other portable devices. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (11)
1. A bluetooth device remote communication method, comprising:
judging whether the first Bluetooth device is in a Bluetooth sharing mode or not;
if the first Bluetooth equipment is in a Bluetooth sharing mode, then
The first Bluetooth device sends the Bluetooth data received by the Bluetooth controller module to the client through the network; or, the first bluetooth device sends the data received from the client through the network to the bluetooth controller module of the first bluetooth device;
if the first Bluetooth equipment is in the non-Bluetooth sharing mode, the first Bluetooth equipment is in the non-Bluetooth sharing mode
The first Bluetooth device sends the Bluetooth data received by the Bluetooth controller to a first Bluetooth protocol stack of the first Bluetooth device; or the first Bluetooth device sends data from the first Bluetooth protocol stack to the Bluetooth controller,
wherein, before determining whether the first bluetooth device is in the bluetooth sharing mode, the method further includes:
and the first Bluetooth equipment receives a data communication connection request sent by the client through a network and establishes the data communication connection with the client through the network.
2. The method of claim 1,
the first Bluetooth device sends the Bluetooth data received by the Bluetooth controller to the client through the network; or, the first bluetooth device sends the data received from the client through the network to the bluetooth controller of the first bluetooth device, including:
judging whether the first Bluetooth equipment receives the Bluetooth data or not, and if so, sending the Bluetooth data to the client through the network;
if not, judging whether the first Bluetooth equipment receives the data sent by the client through the network or not; and if so, sending the data sent by the client to the Bluetooth controller of the first Bluetooth device.
3. The method of claim 1, wherein the first Bluetooth device comprises a first data forwarding management module,
the first Bluetooth device sends the Bluetooth data received by the Bluetooth controller to a Bluetooth protocol stack of the first Bluetooth device; or, the sending, by the first bluetooth device, the data from the first bluetooth protocol stack to the bluetooth controller includes:
the first Bluetooth device receives the Bluetooth data through the Bluetooth controller module and sends the Bluetooth data to the first Bluetooth protocol stack through the first data forwarding management module;
or,
and the first Bluetooth device sends the data from the first Bluetooth protocol stack to the Bluetooth controller module through the first data forwarding management module.
4. The method of claim 3,
the first Bluetooth device receives the Bluetooth data through the Bluetooth controller module and sends the Bluetooth data to the first Bluetooth protocol stack through the first data forwarding management module;
or,
the first bluetooth device sends the data from the first bluetooth protocol stack to the bluetooth controller module through the first data forwarding management module, including:
the first data forwarding management module judges whether the Bluetooth controller module receives the Bluetooth data, and if so, the first data forwarding management module sends the Bluetooth data received by the Bluetooth controller module to the first Bluetooth protocol stack;
if not, the first data forwarding management module sends the data from the first Bluetooth protocol stack to the Bluetooth controller module.
5. The method of claim 1, wherein before the first bluetooth device receives the data communication connection request sent by the client over the network, the method further comprises:
and the first Bluetooth equipment sends a broadcast message through a network, wherein the broadcast message comprises Bluetooth protocol version information supported by the first Bluetooth equipment, so that the client side sends the data communication connection request to the first Bluetooth equipment according to the Bluetooth protocol version information.
6. The method of claim 5, wherein the broadcast message further includes bluetooth shared device identity authentication information, and wherein the first bluetooth device receives the data communication connection request sent by the client and establishes a data communication connection with the client through the network, and wherein the method further comprises:
and determining whether the client sending the data communication connection request conforms to the shared device identity authentication information or not according to the Bluetooth shared device authentication information, and if so, establishing data communication connection between the first Bluetooth device and the client through the network.
7. A bluetooth device remote communication method, comprising:
judging whether the client is in a Bluetooth sharing accepting mode or not;
if the client is in the Bluetooth sharing accepting mode, then
The client receives first data sent by a first Bluetooth device through a network, wherein the first data is Bluetooth data received by the first Bluetooth device through a Bluetooth controller module; or,
the client sends second data to the Bluetooth controller module of the first Bluetooth device through the network;
wherein, the client judges whether the client is in the mode of accepting Bluetooth sharing, and the method further comprises:
the client side sends a data communication connection request to the first Bluetooth device through the network, so that the client side establishes data communication connection with the first Bluetooth device through the network.
8. The method of claim 7, wherein the client comprises a second Bluetooth protocol stack and a second data forwarding management module,
the client receives first data sent by the first Bluetooth device through a network, wherein the first data is Bluetooth data received by the first Bluetooth device through a Bluetooth controller module; or,
the client sends second data to the first bluetooth device through the network, and the second data comprises:
the second data forwarding management module judges whether the first data from the first Bluetooth device is received or not, and if so, the first data is sent to the second Bluetooth protocol stack;
if not, whether second data sent by the second Bluetooth protocol stack is received or not is judged, and if yes, the second data forwarding management module sends the second data to the first Bluetooth equipment through the network.
9. The method of claim 7, wherein prior to the client sending a data communication connection request to the first Bluetooth device via the network, further comprising:
the client receives a broadcast message sent by the first Bluetooth device through a network, wherein the broadcast message comprises Bluetooth protocol version information supported by the first Bluetooth device;
the client sends a data communication connection request to a first Bluetooth device through the network, and the data communication connection request comprises the following steps:
and the client determines whether the Bluetooth protocol version supported by the client is matched with the Bluetooth protocol version supported by the first Bluetooth equipment according to the Bluetooth protocol version information supported by the first Bluetooth equipment, and if so, the client sends a data communication connection request to the first Bluetooth equipment through a network.
10. A bluetooth device, comprising:
the judging module is used for judging whether the Bluetooth equipment is in a Bluetooth sharing mode or not;
the Bluetooth controller module is used for receiving Bluetooth data or receiving data from a client when the judging module judges that the Bluetooth equipment is in a Bluetooth sharing mode; or, the determining module is configured to receive the bluetooth data or receive data from a first bluetooth protocol stack of a first bluetooth device when the determining module determines that the bluetooth device is in a non-bluetooth sharing mode; the first data forwarding management module is used for sending the Bluetooth data from the Bluetooth controller module to the client through a network when the judging module judges that the Bluetooth device is in a Bluetooth sharing mode, or receiving the data from the client through the network and sending the data to the Bluetooth controller module;
or, when the determining module determines that the bluetooth device is in the non-bluetooth sharing mode, the determining module is configured to send data from the bluetooth controller module to the first bluetooth protocol stack of the bluetooth device, or send data from the first bluetooth protocol stack to the bluetooth controller module;
the bluetooth controller module is further configured to receive a data communication connection request sent by the client through a network before the determining module determines whether the first bluetooth device is in the bluetooth sharing mode, and establish the data communication connection with the client through the network.
11. A client, comprising:
the judging module is used for judging whether the Bluetooth equipment is in a Bluetooth sharing accepting mode;
the second data forwarding management module is used for receiving first data sent by a first Bluetooth device through a network when the judging module judges that the Bluetooth device is in a Bluetooth sharing accepting mode, wherein the first data is Bluetooth data received by the first Bluetooth device through a Bluetooth controller module; or,
sending second data to the Bluetooth controller module of the first Bluetooth device over the network;
the second data forwarding management module is further configured to send a data communication connection request to a first bluetooth device through the network before the determining module determines whether the client is in the bluetooth sharing mode, so that the client establishes a data communication connection with the first bluetooth device through the network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610580874.8A CN105978606B (en) | 2016-07-22 | 2016-07-22 | Bluetooth equipment remote communication method, bluetooth equipment and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610580874.8A CN105978606B (en) | 2016-07-22 | 2016-07-22 | Bluetooth equipment remote communication method, bluetooth equipment and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105978606A CN105978606A (en) | 2016-09-28 |
CN105978606B true CN105978606B (en) | 2018-11-16 |
Family
ID=56952004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610580874.8A Active CN105978606B (en) | 2016-07-22 | 2016-07-22 | Bluetooth equipment remote communication method, bluetooth equipment and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105978606B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107911807B (en) * | 2017-11-09 | 2020-12-25 | 西安蜂语信息科技有限公司 | Bluetooth data transmission method and device |
CN108206997B (en) * | 2017-12-15 | 2022-03-01 | 中兴通讯股份有限公司 | Bluetooth connection method and device |
CN108616855A (en) * | 2018-04-02 | 2018-10-02 | 上海仪电数字技术股份有限公司 | Bluetooth equipment tele-control system and method |
KR20230017302A (en) * | 2020-09-01 | 2023-02-03 | 선전 블루트룸 테크놀러지 컴퍼니 리미티드 | Communication method of wireless equipment, wireless equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104184499A (en) * | 2014-08-19 | 2014-12-03 | 酷派软件技术(深圳)有限公司 | Bluetooth device control method, device and system |
CN104333842A (en) * | 2014-10-22 | 2015-02-04 | 深圳创维-Rgb电子有限公司 | Intelligent device program resource sharing method and system based on WIFI |
CN104468675A (en) * | 2013-09-25 | 2015-03-25 | 中兴通讯股份有限公司 | Data processing method and device |
CN204695025U (en) * | 2015-06-11 | 2015-10-07 | 鲍敏祺 | A kind of wireless bus connector based on bluetooth |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3751205B2 (en) * | 2001-02-09 | 2006-03-01 | 株式会社ケンウッド | Communication device and communication control method |
KR100703315B1 (en) * | 2005-04-06 | 2007-04-03 | 삼성전자주식회사 | Device and method for transmitting files in bluetooth of wireless terminal |
US7742758B2 (en) * | 2005-08-19 | 2010-06-22 | Callpod, Inc. | Mobile conferencing and audio sharing technology |
US7675537B2 (en) * | 2006-03-31 | 2010-03-09 | Polycom, Inc. | System, method, and apparatus for extending wireless personal area networks using conferencing connection |
US20110070827A1 (en) * | 2009-09-24 | 2011-03-24 | Research In Motion Limited | Communications device and method for initiating communications at a communications device |
CN101770436A (en) * | 2010-01-19 | 2010-07-07 | 中兴通讯股份有限公司 | Personal computer (PC) side software realization method and system based on wireless connection |
JP2011228787A (en) * | 2010-04-15 | 2011-11-10 | Nec Corp | Information gathering and managing system using portable phone terminal and the portable phone terminal |
CN101924581A (en) * | 2010-07-29 | 2010-12-22 | 上海慧翰信息技术有限公司 | Communication device |
BR112013023686B1 (en) * | 2011-03-18 | 2022-06-07 | Koninklijke Philips N.V. | Method for enabling communication between a client device and a peripheral unit, host device adapted to communicate with a peripheral unit, a client device adapted to communicate with a host device, and non-transient computer readable medium |
CN102882938A (en) * | 2012-09-10 | 2013-01-16 | 广东欧珀移动通信有限公司 | Data share method and mobile terminal |
CN103260255A (en) * | 2013-05-15 | 2013-08-21 | 江苏奇异点网络有限公司 | Method for mobile terminal to share network resources |
CN103686295A (en) * | 2013-12-06 | 2014-03-26 | 康佳集团股份有限公司 | Method and system allowing set top box and mobile terminal to share Bluetooth function |
CN104333579A (en) * | 2014-10-23 | 2015-02-04 | 张勇平 | Wireless data sharing method of mobile terminal and mobile terminal |
CN104883685A (en) * | 2015-05-12 | 2015-09-02 | 努比亚技术有限公司 | Network access method and device |
CN104980194B (en) * | 2015-05-13 | 2018-04-27 | 深圳市金立通信设备有限公司 | A kind of document transmission method and terminal |
CN105101061B (en) * | 2015-08-07 | 2019-05-24 | 深圳市广和通无线股份有限公司 | A method of Bluetooth communication is realized using AT order |
CN105491419B (en) * | 2015-11-30 | 2019-01-22 | 青岛海信电器股份有限公司 | A kind of combination tv and data sharing method |
CN105657639B (en) * | 2015-12-25 | 2019-06-28 | 泰凌微电子(上海)有限公司 | Dual-mode equipment and its method realized while communicated |
CN105636176A (en) * | 2016-03-24 | 2016-06-01 | 北京小米移动软件有限公司 | Network sharing method and device |
-
2016
- 2016-07-22 CN CN201610580874.8A patent/CN105978606B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104468675A (en) * | 2013-09-25 | 2015-03-25 | 中兴通讯股份有限公司 | Data processing method and device |
CN104184499A (en) * | 2014-08-19 | 2014-12-03 | 酷派软件技术(深圳)有限公司 | Bluetooth device control method, device and system |
CN104333842A (en) * | 2014-10-22 | 2015-02-04 | 深圳创维-Rgb电子有限公司 | Intelligent device program resource sharing method and system based on WIFI |
CN204695025U (en) * | 2015-06-11 | 2015-10-07 | 鲍敏祺 | A kind of wireless bus connector based on bluetooth |
Also Published As
Publication number | Publication date |
---|---|
CN105978606A (en) | 2016-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3005755B1 (en) | Method and system for using wi-fi display transport mechanisms to accomplish voice and data communications | |
US10575355B2 (en) | API for web access directly or through intermediary | |
EP3300331B1 (en) | Response method, apparatus and system in virtual network computing authentication, and proxy server | |
US20150009862A1 (en) | Wireless Network Connection Establishment Method and Terminal Device | |
EP2391149A1 (en) | Configuring wifi parameters via a USB connection | |
TW201502787A (en) | Communication between host and accessory devices using accessory protocols via wireless transport | |
EP3002974A1 (en) | Communication system and communication method, communication apparatus and control method for the same, program, and storage medium | |
CN105978606B (en) | Bluetooth equipment remote communication method, bluetooth equipment and client | |
US10298446B2 (en) | Methods, apparatuses, and system for device management | |
WO2016008344A1 (en) | Wireless connection establishing methods and wireless connection establishing apparatuses | |
WO2016029847A1 (en) | Methods and apparatus for switching between a wired communication and a wireless communication | |
EP3763164B1 (en) | Electronic device supporting multiple wireless communication protocols and method therefor | |
US20150195161A1 (en) | Communication apparatus capable of preventing data erroneous transmission, control method therefor, and storage medium storing control program therefor | |
KR102085175B1 (en) | Method, apparatus, and system for adjusting data packet length in near field communication (NCF) | |
EP3665921B1 (en) | Virtual profile for bluetooth | |
US10390217B2 (en) | Wireless configuration of wireless distribution system (WDS) Wi-Fi range extenders using non-Wi-Fi-wireless communication channels | |
CN106488483B (en) | Method for configuring WIFI gateway equipment and corresponding gateway equipment | |
CN105451367A (en) | Wireless network connection method, device and system | |
US10091635B2 (en) | Method and apparatus for communication using IP address exchanged via NFC | |
EP3398297B1 (en) | Establishment of a connection between two local devices connected to different networks | |
CN106231538B (en) | Method and device for binding OneM2M architecture equipment | |
US11233888B2 (en) | Communicating with a short-range wireless device over a local area network | |
US9274737B2 (en) | Information sharing system, information sharing management device, and information sharing method | |
CN112398718A (en) | Network transmission method and device, electronic equipment and storage medium | |
CN116456424A (en) | Network access method and device for neighbor-aware networking electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee after: Hisense Visual Technology Co., Ltd. Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No. Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd. |