CN109275131B - Bluetooth communication method and terminal equipment - Google Patents

Bluetooth communication method and terminal equipment Download PDF

Info

Publication number
CN109275131B
CN109275131B CN201811113193.6A CN201811113193A CN109275131B CN 109275131 B CN109275131 B CN 109275131B CN 201811113193 A CN201811113193 A CN 201811113193A CN 109275131 B CN109275131 B CN 109275131B
Authority
CN
China
Prior art keywords
terminal device
communication
bluetooth connection
terminal equipment
terminal
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
CN201811113193.6A
Other languages
Chinese (zh)
Other versions
CN109275131A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811113193.6A priority Critical patent/CN109275131B/en
Publication of CN109275131A publication Critical patent/CN109275131A/en
Application granted granted Critical
Publication of CN109275131B publication Critical patent/CN109275131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/20Negotiating bandwidth
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a Bluetooth communication method and terminal equipment, which can realize self-adaptive transmission based on Bluetooth 5.0. In the method, a bluetooth connection is established between a first terminal device and a second terminal device, the bluetooth connection communicating based on a plurality of transmission rates, the method comprising: and the first terminal equipment determines a communication mode and/or a transmission rate when the first terminal equipment communicates with the second terminal equipment based on the Bluetooth connection according to state information, wherein the state information comprises at least one of channel quality, bandwidth, power consumption and transmission distance.

Description

Bluetooth communication method and terminal equipment
Technical Field
The embodiment of the application relates to the field of communication, and in particular relates to a Bluetooth communication method and terminal equipment.
Background
The bluetooth 4.0 low power mode has a fixed 1Mbps air interface rate, while the bluetooth 5.0 protocol specifies four transmission rates of 1Mbps, 2Mbps, 125kbps and 500kbps to accommodate different transmission requirements. Since bluetooth is an ad hoc network or a point-to-point technology, throughput is greatly affected by distance, external interference and the like, and how to realize adaptive transmission based on bluetooth 5.0 is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a Bluetooth communication method and terminal equipment, which can realize self-adaptive transmission based on Bluetooth 5.0.
In a first aspect, a bluetooth communication method is provided, in which a bluetooth connection is established between a first terminal device and a second terminal device, and the bluetooth connection performs communication based on multiple transmission rates, and the method includes:
and the first terminal equipment determines a communication mode and/or a transmission rate when the first terminal equipment communicates with the second terminal equipment based on the Bluetooth connection according to state information, wherein the state information comprises at least one of channel quality, bandwidth, power consumption and transmission distance.
It should be noted that the bluetooth connection is based on the bluetooth connection of bluetooth 5.0.
Therefore, in the embodiment of the present application, the first terminal device may determine the communication method and/or the transmission rate when performing communication based on the bluetooth connection with the second terminal device according to at least one of the channel quality, the bandwidth, the power consumption, and the transmission distance, so that the transmission rate and/or the communication method may be adaptive.
Optionally, in an implementation form of the first aspect, the plurality of transmission rates comprises 2Mbps, 1Mbps, 500kbps and 125 kbps.
Optionally, in an implementation manner of the first aspect, the method further includes:
the first terminal device determines the status information.
Optionally, in an implementation manner of the first aspect, the determining, by the first terminal device, the state information includes:
the first terminal device pre-determines the status information before performing communication based on the bluetooth connection with the second terminal device.
Optionally, in an implementation manner of the first aspect, the pre-determining, by the first terminal device, the state information includes:
the first terminal equipment sends test data to the second terminal equipment;
the first terminal equipment receives a response message aiming at the test data sent by the second terminal equipment;
and the first terminal equipment judges the state information in advance according to the response message.
Optionally, in an implementation form of the first aspect, the response message comprises a signal strength and/or an actual available throughput rate.
Optionally, in an implementation manner of the first aspect, the determining, by the first terminal device, the state information includes:
the first terminal device determines the status information during the communication based on the bluetooth connection with the second terminal device.
Optionally, in an implementation manner of the first aspect, if the state information includes channel quality, the determining, by the first terminal device, a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the state information includes:
when the channel quality of a channel used for Bluetooth communication between the first terminal device and the second terminal device is poor, the first terminal device is configured to reduce the transmission rate when the second terminal device performs communication based on the Bluetooth connection, and/or reselect a communication mode to reduce the bandwidth requirement when the second terminal device performs communication based on the Bluetooth connection.
Optionally, in an implementation manner of the first aspect, if the status information includes a bandwidth, the determining, by the first terminal device, a communication manner and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information includes:
when the current available bandwidth becomes insufficient, the first terminal device is configured to reduce the transmission rate when the second terminal device performs communication based on the Bluetooth connection, and/or reselect a communication mode to reduce the bandwidth requirement when the second terminal device performs communication based on the Bluetooth connection.
Optionally, in an implementation manner of the first aspect, if the state information includes power consumption, the determining, by the first terminal device, a communication manner and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the state information includes:
when the electric quantity of the first terminal equipment becomes insufficient, the first terminal equipment is configured to reduce the transmission rate when the communication based on the Bluetooth connection is carried out with the second terminal equipment, and/or reselect the communication mode so as to reduce the power consumption requirement when the communication based on the Bluetooth connection is carried out with the second terminal equipment.
Optionally, in an implementation manner of the first aspect, if the status information includes a transmission distance, the determining, by the first terminal device, a communication manner and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information includes:
when the bluetooth transmission distance between the first terminal device and the second terminal device becomes larger, the first terminal device is configured to reduce the transmission rate when performing communication based on the bluetooth connection with the second terminal device, and/or reselect a communication mode to reduce the requirement for the transmission distance when performing communication based on the bluetooth connection with the second terminal device.
Optionally, in an implementation manner of the first aspect, the communication manner includes at least one of video, high-definition voice, normal voice, and text.
Optionally, in an implementation manner of the first aspect, if the state information includes channel quality, the determining, by the first terminal device, a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the state information includes:
if the channel quality of a channel for Bluetooth communication between the first terminal device and the second terminal device is greater than or equal to a first threshold value, the first terminal device determines that the transmission rate is 2Mbps when the first terminal device communicates with the second terminal device based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and text; or
If the channel quality of a channel for bluetooth communication between the first terminal device and the second terminal device is less than a first threshold and greater than or equal to a second threshold, the first terminal device determines that the transmission rate is 1Mbps or 500kbps when performing communication based on the bluetooth connection with the second terminal device, and determines that the communication mode is at least one of high-definition voice, normal voice and text; or
If the channel quality of the channel used for the bluetooth communication between the first terminal device and the second terminal device is less than a second threshold, the first terminal device determines that the transmission rate is 125kbps when the bluetooth connection-based communication is performed with the second terminal device on the first channel, and determines that the communication mode is at least one of ordinary voice and text.
Optionally, in an implementation manner of the first aspect, if the status information includes a bandwidth, the determining, by the first terminal device, a communication manner and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information includes:
if the current available bandwidth is larger than or equal to a third threshold, the first terminal device determines that the transmission rate is 2Mbps when the first terminal device communicates with the second terminal device based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the current available bandwidth is smaller than the third threshold and larger than or equal to the fourth threshold, the first terminal device determines that the transmission rate is 1Mbps or 500kbps when the second terminal device performs communication based on the Bluetooth connection, and determines that the communication mode is at least one of high-definition voice, common voice and characters; or
And if the current available bandwidth is smaller than a fourth threshold, the first terminal device determines that the transmission rate of the second terminal device in the communication based on the Bluetooth connection on the first channel is 125kbps, and determines that the communication mode is at least one of common voice and characters.
Optionally, in an implementation manner of the first aspect, if the state information includes power consumption, the determining, by the first terminal device, a communication manner and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the state information includes:
if the electric quantity of the first terminal equipment is larger than or equal to a fifth threshold value, the first terminal equipment determines that the transmission rate is 2Mbps when the first terminal equipment and the second terminal equipment carry out communication based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the electric quantity of the first terminal equipment is smaller than a fifth threshold value and is larger than or equal to a sixth threshold value, the first terminal equipment determines that the transmission rate is 1Mbps or 500kbps when the Bluetooth connection-based communication is carried out with the second terminal equipment, and determines that the communication mode is at least one of high-definition voice, common voice and characters; or
If the electric quantity of the first terminal equipment is smaller than a sixth threshold value, the first terminal equipment determines that the transmission rate of the second terminal equipment in the first channel based on the Bluetooth connection is 125kbps, and determines that the communication mode is at least one of common voice and characters.
Optionally, in an implementation manner of the first aspect, if the status information includes a transmission distance, the determining, by the first terminal device, a communication manner and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information includes:
if the Bluetooth transmission distance between the first terminal device and the second terminal device is greater than or equal to a seventh threshold value, the first terminal device determines that the transmission rate is 2Mbps when the first terminal device communicates with the second terminal device based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, ordinary voice and characters; or
If the bluetooth transmission distance between the first terminal device and the second terminal device is smaller than a seventh threshold and larger than or equal to an eighth threshold, the first terminal device determines that the transmission rate is 1Mbps or 500kbps when the bluetooth connection-based communication is performed with the second terminal device, and determines that the communication mode is at least one of high-definition voice, ordinary voice and text; or
If the bluetooth transmission distance between the first terminal device and the second terminal device is smaller than an eighth threshold, the first terminal device determines that the transmission rate is 125kbps when performing communication based on the bluetooth connection with the second terminal device on the first channel, and determines that the communication mode is at least one of normal voice and text.
Optionally, in an implementation manner of the first aspect, the method further includes:
and the first terminal equipment displays the allowed communication mode and/or the forbidden communication mode on the communication interface based on the Bluetooth connection in real time.
Optionally, in an implementation manner of the first aspect, on a communication interface based on the bluetooth connection, the allowed communication manner corresponds to a green identifier, and the prohibited communication manner corresponds to a red identifier.
Optionally, in an implementation manner of the first aspect, when the first terminal device establishes the bluetooth connection with multiple terminal devices including the second terminal device at the same time, the method further includes:
the first terminal device is configured to display, in real time, an allowed communication mode and/or a prohibited communication mode for each of the plurality of terminal devices on the communication interface based on the bluetooth connection.
Optionally, in an implementation manner of the first aspect, the method further includes:
the first terminal device determines a broadcast mode for each terminal device according to the allowed communication mode and/or the prohibited communication mode for each terminal device.
Optionally, in an implementation manner of the first aspect, the method further includes:
the first terminal device is configured to display the allowed broadcast mode and/or the prohibited broadcast mode in real time on a communication interface based on the Bluetooth connection.
In a second aspect, a terminal device is provided, which is configured to perform the method in the first aspect or each implementation manner thereof.
Specifically, the terminal device includes a functional module for executing the method in the first aspect or each implementation manner thereof.
In a third aspect, a terminal device is provided that includes a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program stored in the memory, and executing the method in the first aspect or each implementation manner thereof.
In a fourth aspect, a chip is provided for implementing the method in any one of the first to second aspects or implementations thereof.
Specifically, the chip includes: a processor configured to call and run the computer program from the memory, so that the device on which the chip is installed performs the method according to any one of the above first aspects or the implementation manners thereof.
In a fifth aspect, a computer-readable storage medium is provided for storing a computer program, which causes a computer to execute the method of any one of the above aspects or implementations thereof.
A sixth aspect provides a computer program product comprising computer program instructions to cause a computer to perform the method of any of the above first aspects or implementations thereof.
In a seventh aspect, a computer program is provided, which, when run on a computer, causes the computer to perform the method of any one of the above first aspects or implementations thereof.
Through the technical scheme, the first terminal equipment can determine the communication mode and/or the transmission rate when the first terminal equipment communicates with the second terminal equipment based on the Bluetooth connection according to at least one of the channel quality, the bandwidth, the power consumption and the transmission distance, so that the transmission rate and/or the communication mode can be self-adaptive.
Drawings
Fig. 1 is a schematic diagram of an architecture of a bluetooth communication system provided in an embodiment of the present application.
Fig. 2 is a schematic flowchart of a bluetooth communication method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a bluetooth communication provided according to an embodiment of the present application.
Fig. 4 is a schematic block diagram of a terminal device provided according to an embodiment of the present application.
Fig. 5 is a schematic block diagram of a communication device provided according to an embodiment of the present application.
Fig. 6 is a schematic block diagram of a chip provided according to an embodiment of the present application.
Fig. 7 is a schematic block diagram of a communication system provided according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
The embodiment of the application can be applied to a Bluetooth communication system, for example, a Bluetooth communication system based on Bluetooth 5.0.
It should be understood that the transmission rate of bluetooth 5.0 has four types, 1Mbps, 2Mbps, 125kbps and 500kbps, to accommodate different channel conditions, application scenarios, power consumption requirements and transmission distances.
For example, a bluetooth communication system 100 applied in the embodiment of the present application is shown in fig. 1. The bluetooth communication system 100 may include a terminal device 110 and a terminal device 120 (or referred to as a communication terminal, a terminal). Terminal device 110 may provide communication coverage for a particular geographic area based on bluetooth and may communicate with terminal devices located within the coverage area.
Fig. 1 exemplarily shows two terminal devices, alternatively, the bluetooth communication system 100 may include a plurality of terminal devices and each terminal device may include other numbers of terminal devices within the coverage area, which is not limited in this embodiment of the present application.
The terminal device in the embodiments of the present application may also be referred to as a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a User terminal, a wireless communication device, a User agent, a User Equipment, or the like. The terminal device may be a Station (ST) in a WLAN, and may be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA) device, a handheld device having a Wireless communication function, a computing device, or other processing device connected to a Wireless modem, an in-vehicle device, a wearable device, and a next-generation communication system.
By way of example and not limitation, in the embodiments of the present application, the terminal device may also be a wearable device. Wearable equipment can also be called wearable intelligent equipment, is the general term of applying wearable technique to carry out intelligent design, develop the equipment that can dress to daily wearing, like glasses, gloves, wrist-watch, dress and shoes etc.. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device includes full functionality, large size, and can implement full or partial functionality without relying on a smart phone, such as: smart watches or smart glasses and the like, and only focus on a certain type of application functions, and need to be used in cooperation with other devices such as smart phones, such as various smart bracelets for physical sign monitoring, smart jewelry and the like.
It should be appreciated that since bluetooth is an ad hoc network or point-to-point technology, throughput is greatly affected by distance, external interference, etc. In order to solve the foregoing technical problem, an embodiment of the present application provides a bluetooth communication method, which may implement adaptive transmission based on bluetooth 5.0.
The technical solution in the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a schematic flow chart of a bluetooth communication method 200 according to an embodiment of the present application, the method 200 being applied to the bluetooth communication system 100 shown in fig. 1. In the method 200, a bluetooth connection is established between a first terminal device and a second terminal device, the bluetooth connection communicating based on a plurality of transmission rates, the method 200 including at least some of the following.
S210, the first terminal device determines a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to state information, where the state information includes at least one of channel quality, bandwidth, power consumption, and transmission distance.
It should be noted that the embodiment of the present application may be implemented based on bluetooth 5.0. The first terminal device can establish bluetooth connection with a plurality of terminal devices simultaneously.
Optionally, the plurality of transmission rates includes 2Mbps, 1Mbps, 500kbps, and 125 kbps.
Optionally, the communication means includes at least one of video, high definition voice, normal voice, and text.
Optionally, in this embodiment of the present application, the first terminal device needs to first determine the state information.
Optionally, as an example, the first terminal device pre-determines the status information before performing communication based on the bluetooth connection with the second terminal device.
Specifically, in this example, the first terminal device sends test data to the second terminal device, receives a response message for the test data sent by the second terminal device, and pre-determines the state information according to the response message.
Optionally, the response message includes a signal strength and/or an actual available throughput rate.
It should be noted that the first terminal device may determine the status information by combining its own status (e.g., transmission power, transmission rate, etc.) with the response message.
Optionally, in this example, the test data may be, for example, handshake data, and the first terminal device may implement pre-determination of the state information based on a handshake connection with the second terminal device.
Optionally, as another example, the first terminal device determines the status information during the communication based on the bluetooth connection with the second terminal device.
It is to be noted that, during communication, the first terminal device may determine the status information when channel quality deterioration, power amount becoming insufficient, transmission distance increasing, currently available bandwidth becoming insufficient, and the like occur.
For example, when the channel quality of the channel for bluetooth communication between the first terminal device and the second terminal device deteriorates, the first terminal device is configured to reduce the transmission rate when performing communication based on the bluetooth connection with the second terminal device, and/or to reselect the communication scheme so as to reduce the bandwidth requirement when performing communication based on the bluetooth connection with the second terminal device.
For another example, when the current available bandwidth becomes insufficient, the first terminal device is configured to reduce the transmission rate when performing communication based on the bluetooth connection with the second terminal device, and/or to reselect the communication mode to reduce the bandwidth requirement when performing communication based on the bluetooth connection with the second terminal device.
For another example, when the amount of power of the first terminal device becomes insufficient, the first terminal device is configured to reduce the transmission rate when performing communication based on the bluetooth connection with the second terminal device, and/or to reselect the communication method to reduce the power consumption requirement when performing communication based on the bluetooth connection with the second terminal device.
For another example, when the bluetooth transmission distance between the first terminal device and the second terminal device becomes longer, the first terminal device is configured to reduce the transmission rate when performing communication based on the bluetooth connection with the second terminal device, and/or reselect the communication mode to reduce the requirement for the transmission distance when performing communication based on the bluetooth connection with the second terminal device.
Optionally, in this embodiment of the present application, the first terminal device may configure a corresponding threshold for the status information, and determine a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device based on the configured threshold.
In particular, as an example,
if the channel quality of a channel for Bluetooth communication between the first terminal device and the second terminal device is greater than or equal to a first threshold value, the first terminal device determines that the transmission rate is 2Mbps when the first terminal device communicates with the second terminal device based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and text; or
If the channel quality of a channel for bluetooth communication between the first terminal device and the second terminal device is less than a first threshold and greater than or equal to a second threshold, the first terminal device determines that the transmission rate is 1Mbps or 500kbps when performing communication based on the bluetooth connection with the second terminal device, and determines that the communication mode is at least one of high-definition voice, normal voice and text; or
If the channel quality of the channel used for the bluetooth communication between the first terminal device and the second terminal device is less than a second threshold, the first terminal device determines that the transmission rate is 125kbps when the bluetooth connection-based communication is performed with the second terminal device on the first channel, and determines that the communication mode is at least one of ordinary voice and text.
In particular, as an example,
if the current available bandwidth is larger than or equal to a third threshold, the first terminal device determines that the transmission rate is 2Mbps when the first terminal device communicates with the second terminal device based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the current available bandwidth is smaller than the third threshold and larger than or equal to the fourth threshold, the first terminal device determines that the transmission rate is 1Mbps or 500kbps when the second terminal device performs communication based on the Bluetooth connection, and determines that the communication mode is at least one of high-definition voice, common voice and characters; or
And if the current available bandwidth is smaller than a fourth threshold, the first terminal device determines that the transmission rate of the second terminal device in the communication based on the Bluetooth connection on the first channel is 125kbps, and determines that the communication mode is at least one of common voice and characters.
In particular, as an example,
if the electric quantity of the first terminal equipment is larger than or equal to a fifth threshold value, the first terminal equipment determines that the transmission rate is 2Mbps when the first terminal equipment and the second terminal equipment carry out communication based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the electric quantity of the first terminal equipment is smaller than a fifth threshold value and is larger than or equal to a sixth threshold value, the first terminal equipment determines that the transmission rate is 1Mbps or 500kbps when the Bluetooth connection-based communication is carried out with the second terminal equipment, and determines that the communication mode is at least one of high-definition voice, common voice and characters; or
If the electric quantity of the first terminal equipment is smaller than a sixth threshold value, the first terminal equipment determines that the transmission rate of the second terminal equipment in the first channel based on the Bluetooth connection is 125kbps, and determines that the communication mode is at least one of common voice and characters.
In particular, as an example,
if the Bluetooth transmission distance between the first terminal device and the second terminal device is greater than or equal to a seventh threshold value, the first terminal device determines that the transmission rate is 2Mbps when the first terminal device communicates with the second terminal device based on the Bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, ordinary voice and characters; or
If the bluetooth transmission distance between the first terminal device and the second terminal device is smaller than a seventh threshold and larger than or equal to an eighth threshold, the first terminal device determines that the transmission rate is 1Mbps or 500kbps when the bluetooth connection-based communication is performed with the second terminal device, and determines that the communication mode is at least one of high-definition voice, ordinary voice and text; or
If the bluetooth transmission distance between the first terminal device and the second terminal device is smaller than an eighth threshold, the first terminal device determines that the transmission rate is 125kbps when performing communication based on the bluetooth connection with the second terminal device on the first channel, and determines that the communication mode is at least one of normal voice and text.
In the above example, only two thresholds are respectively corresponding to each type of state information is taken as an example for description, and one or three thresholds or more thresholds may be respectively corresponding to each type of state information, which is not limited in the present application.
Optionally, in this embodiment of the present application, the first terminal device displays an allowed communication method and/or a prohibited communication method in real time on a communication interface based on the bluetooth connection.
For example, on the communication interface based on the bluetooth connection, the allowed communication mode corresponds to the green mark, and the prohibited communication mode corresponds to the red mark.
Optionally, in this embodiment of the application, when the first terminal device establishes the bluetooth connection with multiple terminal devices including the second terminal device at the same time, the first terminal device is configured to display, in real time, an allowed communication method and/or a prohibited communication method for each of the multiple terminal devices on a communication interface based on the bluetooth connection.
Optionally, the first terminal device determines a broadcast mode for each terminal device in the plurality of terminal devices according to an allowed communication mode and/or a prohibited communication mode for each terminal device.
Optionally, in this embodiment of the present application, the first terminal device is configured to display an allowed broadcast mode and/or a prohibited broadcast mode in real time on a communication interface based on the bluetooth connection.
Alternatively, as an example, as shown in fig. 3, the terminal device 1 held by zhao, the terminal device 2 held by zhao, the terminal device 3 held by dui, the terminal device 4 held by queen, and the terminal device 1 controlled by zhao simultaneously establish a bluetooth connection with zhao (terminal device 2), dui (terminal device 3), and queen (terminal device 4), and as shown in fig. 3, the terminal device 1 held by zhao locates the shared map and the network status on the bluetooth communication interface of the real-time Global Positioning System (GPS). The bluetooth communication interface of the terminal device 1 held by the xiao zhao displays the permitted communication mode and the prohibited communication mode for the xiao, the dui and the queen in real time. Specifically, the communication method when the xiaozhao determines that the bluetooth connection-based communication is performed with the xiaozao according to the state information may be a video and a voice, the communication method when the bluetooth connection-based communication is performed with the xiaozao may be a voice, and the communication method when the bluetooth connection-based communication is performed with the xiaowane may be a communication method (for example, a character) other than a video and a voice.
Optionally, in this embodiment, the bluetooth communication interface of the terminal device 2 held by the leaflet may also display the permitted communication mode and/or the prohibited communication mode for the zhao in real time, and may also display the permitted broadcast mode and/or the prohibited broadcast mode for the zhao in real time. Alternatively, a bluetooth communication interface of xiao zhao may be displayed on the bluetooth communication interface of the terminal device 2 held by the xiao zhao. It should be noted that the small opening is only an example, and may be a plum or a king.
Therefore, in the embodiment of the present application, the first terminal device may determine the communication method and/or the transmission rate when performing communication based on the bluetooth connection with the second terminal device according to at least one of the channel quality, the bandwidth, the power consumption, and the transmission distance, so that the transmission rate and/or the communication method may be adaptive.
Fig. 4 shows a schematic block diagram of a terminal device 300 according to an embodiment of the application. As shown in fig. 4, the terminal device 300 establishes a bluetooth connection with a second terminal device, the bluetooth connection performing communication based on a plurality of transmission rates, and the terminal device 300 includes:
a processing unit 310, configured to determine a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to status information, where the status information includes at least one of channel quality, bandwidth, power consumption, and transmission distance.
Optionally, the plurality of transmission rates includes 2Mbps, 1Mbps, 500kbps, and 125 kbps.
Optionally, the processing unit 310 is further configured to determine the status information.
Optionally, the processing unit 310 is specifically configured to:
the status information is pre-determined before communication based on the bluetooth connection with the second terminal device.
Optionally, the terminal device 300 further includes:
a communication unit 320 for transmitting test data to the second terminal device;
the communication unit 320 is further configured to receive a response message sent by the second terminal device for the test data;
the processing unit 310 is specifically configured to: and pre-judging the state information according to the response message.
Optionally, the response message includes a signal strength and/or an actual available throughput rate.
Optionally, the processing unit 310 is specifically configured to:
the status information is determined during the communication based on the bluetooth connection with the second terminal device.
Optionally, if the status information includes channel quality, the processing unit 310 is specifically configured to:
when the channel quality of a channel used for Bluetooth communication between the terminal equipment and the second terminal equipment is poor, the transmission rate of the second terminal equipment in the communication based on the Bluetooth connection is reduced, and/or the communication mode is reselected so as to reduce the bandwidth requirement of the second terminal equipment in the communication based on the Bluetooth connection.
Optionally, if the status information includes a bandwidth, the processing unit 310 is specifically configured to:
when the current available bandwidth becomes insufficient, the configuration reduces the transmission rate when the communication based on the Bluetooth connection is carried out with the second terminal equipment, and/or the communication mode is reselected so as to reduce the bandwidth requirement when the communication based on the Bluetooth connection is carried out with the second terminal equipment.
Optionally, if the state information includes power consumption, the processing unit 310 is specifically configured to:
when the electric quantity of the terminal equipment becomes insufficient, the transmission rate is reduced when the communication based on the Bluetooth connection is carried out with the second terminal equipment, and/or the communication mode is reselected so as to reduce the power consumption requirement when the communication based on the Bluetooth connection is carried out with the second terminal equipment.
Optionally, if the status information includes a transmission distance, the processing unit 310 is specifically configured to:
when the bluetooth transmission distance between the terminal device and the second terminal device becomes larger, the configuration reduces the transmission rate when performing communication based on the bluetooth connection with the second terminal device, and/or reselects the communication mode to reduce the requirement for the transmission distance when performing communication based on the bluetooth connection with the second terminal device.
Optionally, the communication means includes at least one of video, high definition voice, normal voice, and text.
Optionally, if the status information includes channel quality, the processing unit 310 is specifically configured to:
if the channel quality of a channel for Bluetooth communication between the terminal equipment and the second terminal equipment is greater than or equal to a first threshold value, determining that the transmission rate is 2Mbps when the second terminal equipment performs communication based on the Bluetooth connection, and determining that the communication mode is at least one of video, high-definition voice, ordinary voice and characters; or
If the channel quality of a channel for Bluetooth communication between the terminal equipment and the second terminal equipment is smaller than a first threshold value and larger than or equal to a second threshold value, determining that the transmission rate is 1Mbps or 500kbps when the Bluetooth connection-based communication is performed with the second terminal equipment, and determining that the communication mode is at least one of high-definition voice, common voice and characters; or
And if the channel quality of a channel used for Bluetooth communication between the terminal equipment and the second terminal equipment is smaller than a second threshold value, determining that the transmission rate of the second terminal equipment and the second terminal equipment during communication based on the Bluetooth connection on the first channel is 125kbps, and determining that the communication mode is at least one of common voice and characters.
Optionally, if the status information includes a bandwidth, the processing unit 310 is specifically configured to:
if the current available bandwidth is larger than or equal to a third threshold value, determining that the transmission rate is 2Mbps when the second terminal equipment is in communication based on the Bluetooth connection, and determining that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the current available bandwidth is smaller than the third threshold and larger than or equal to the fourth threshold, determining that the transmission rate is 1Mbps or 500kbps when the Bluetooth connection-based communication is performed with the second terminal device, and determining that the communication mode is at least one of high-definition voice, ordinary voice and characters; or
And if the current available bandwidth is smaller than a fourth threshold value, determining that the transmission rate of the second terminal equipment in the first channel based on the Bluetooth connection is 125kbps, and determining that the communication mode is at least one of common voice and characters.
Optionally, if the state information includes power consumption, the processing unit 310 is specifically configured to:
if the electric quantity of the terminal equipment is larger than or equal to a fifth threshold value, determining that the transmission rate is 2Mbps when the Bluetooth connection-based communication is carried out with the second terminal equipment, and determining that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the electric quantity of the terminal equipment is smaller than the fifth threshold value and is larger than or equal to the sixth threshold value, determining that the transmission rate is 1Mbps or 500kbps when the Bluetooth connection-based communication is carried out with the second terminal equipment, and determining that the communication mode is at least one of high-definition voice, common voice and characters; or
And if the electric quantity of the terminal equipment is smaller than a sixth threshold value, determining that the transmission rate of the second terminal equipment is 125kbps when the second terminal equipment carries out communication based on the Bluetooth connection on the first channel, and determining that the communication mode is at least one of common voice and characters.
Optionally, if the status information includes a transmission distance, the processing unit 310 is specifically configured to:
if the Bluetooth transmission distance between the terminal equipment and the second terminal equipment is larger than or equal to a seventh threshold value, determining that the transmission rate is 2Mbps when the second terminal equipment is in communication based on the Bluetooth connection, and determining that the communication mode is at least one of video, high-definition voice, common voice and characters; or
If the Bluetooth transmission distance between the terminal equipment and the second terminal equipment is smaller than a seventh threshold value and larger than or equal to an eighth threshold value, determining that the transmission rate is 1Mbps or 500kbps when the Bluetooth connection-based communication is performed with the second terminal equipment, and determining that the communication mode is at least one of high-definition voice, common voice and characters; or
And if the Bluetooth transmission distance between the terminal equipment and the second terminal equipment is smaller than an eighth threshold value, determining that the transmission rate of the second terminal equipment and the second terminal equipment during the communication based on the Bluetooth connection on the first channel is 125kbps, and determining that the communication mode is at least one of common voice and characters.
Optionally, the processing unit 310 is further configured to display the allowed communication mode and/or the prohibited communication mode in real time on the communication interface based on the bluetooth connection.
Optionally, on the communication interface based on the bluetooth connection, the allowed communication mode corresponds to a green identifier, and the prohibited communication mode corresponds to a red identifier.
Optionally, when the terminal device 300 simultaneously establishes the bluetooth connection with a plurality of terminal devices including the second terminal device, the processing unit 310 is further configured to display, in real time, an allowed communication mode and/or a prohibited communication mode for each of the plurality of terminal devices on a communication interface based on the bluetooth connection.
Optionally, the processing unit 310 is further configured to determine a broadcast manner for each terminal device according to the allowed communication manner and/or the prohibited communication manner for each terminal device.
Optionally, the processing unit 310 is further configured to display the allowed broadcast mode and/or the prohibited broadcast mode in real time on the communication interface based on the bluetooth connection.
It should be understood that the terminal device 300 according to the embodiment of the present application may correspond to the first terminal device in the embodiment of the method of the present application, and the above and other operations and/or functions of each unit in the terminal device 300 are respectively for implementing the corresponding flow of the first terminal device in the method 200 shown in fig. 2, and are not described herein again for brevity.
Fig. 5 is a schematic structural diagram of a communication device 400 according to an embodiment of the present application. The communication device 400 shown in fig. 5 includes a processor 410, and the processor 410 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
Optionally, as shown in fig. 5, the communication device 400 may also include a memory 420. From the memory 420, the processor 410 can call and run a computer program to implement the method in the embodiment of the present application.
The memory 420 may be a separate device from the processor 410, or may be integrated into the processor 410.
Optionally, as shown in fig. 5, the communication device 400 may further include a transceiver 430, and the processor 410 may control the transceiver 430 to communicate with other devices, and specifically, may transmit information or data to the other devices or receive information or data transmitted by the other devices.
The transceiver 430 may include a transmitter and a receiver, among others. The transceiver 430 may further include antennas, and the number of antennas may be one or more.
Optionally, the communication device 400 may specifically be a first terminal device in this embodiment, and the communication device 400 may implement a corresponding process implemented by the first terminal device in each method in this embodiment, which is not described herein again for brevity.
Fig. 6 is a schematic structural diagram of a chip of an embodiment of the present application. The chip 500 shown in fig. 6 includes a processor 510, and the processor 510 can call and run a computer program from a memory to implement the method in the embodiment of the present application.
Optionally, as shown in fig. 6, the chip 500 may further include a memory 520. From the memory 520, the processor 510 can call and run a computer program to implement the method in the embodiment of the present application.
The memory 520 may be a separate device from the processor 510, or may be integrated into the processor 510.
Optionally, the chip 500 may further comprise an input interface 530. The processor 510 may control the input interface 530 to communicate with other devices or chips, and in particular, may obtain information or data transmitted by other devices or chips.
Optionally, the chip 500 may further include an output interface 540. The processor 510 may control the output interface 540 to communicate with other devices or chips, and may particularly output information or data to the other devices or chips.
Optionally, the chip may be applied to the first terminal device in the embodiment of the present application, and the chip may implement a corresponding process implemented by the first terminal device in each method in the embodiment of the present application, and for brevity, details are not described here again.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip or a system-on-chip, etc.
Fig. 7 is a schematic block diagram of a communication system 600 provided in an embodiment of the present application. As shown in fig. 7, the communication system 600 includes a first terminal device 610 and a second terminal device 620.
The first terminal device 610 may be configured to implement the corresponding function implemented by the first terminal device in the foregoing method, and the second terminal device 620 may be configured to implement the corresponding function implemented by the second terminal device in the foregoing method for brevity, which is not described herein again.
It should be understood that the processor of the embodiments of the present application may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will be appreciated that the memory in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (DDR SDRAM), Enhanced Synchronous SDRAM (ESDRAM), Synchronous link SDRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that the above memories are exemplary but not limiting illustrations, for example, the memories in the embodiments of the present application may also be Static Random Access Memory (SRAM), dynamic random access memory (dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (enhanced SDRAM, ESDRAM), Synchronous Link DRAM (SLDRAM), Direct Rambus RAM (DR RAM), and the like. That is, the memory in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The embodiment of the application also provides a computer readable storage medium for storing the computer program.
Optionally, the computer-readable storage medium may be applied to the first terminal device in the embodiment of the present application, and the computer program enables the computer to execute the corresponding process implemented by the first terminal device in the methods in the embodiments of the present application, which is not described herein again for brevity.
Embodiments of the present application also provide a computer program product comprising computer program instructions.
Optionally, the computer program product may be applied to the first terminal device in the embodiment of the present application, and the computer program instructions enable the computer to execute corresponding processes implemented by the first terminal device in the methods in the embodiments of the present application, which are not described herein again for brevity.
The embodiment of the application also provides a computer program.
Optionally, the computer program may be applied to the first terminal device in the embodiment of the present application, and when the computer program runs on a computer, the computer is enabled to execute a corresponding process implemented by the first terminal device in each method in the embodiment of the present application, and for brevity, details are not described here again.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. 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 application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units 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 system, apparatus and method may be implemented in other ways. 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 be in an electrical, mechanical or other form.
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.
In addition, functional units in the embodiments of the present application 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (37)

1. A bluetooth communication method, wherein a bluetooth connection is established between a first terminal device and a second terminal device, the bluetooth connection communicating based on a plurality of transmission rates, the method comprising:
the first terminal device determines a communication mode and/or a transmission rate when the first terminal device communicates with the second terminal device based on the Bluetooth connection according to state information, wherein the state information comprises at least one of channel quality, bandwidth, power consumption and transmission distance;
when the state information is channel quality, if the channel quality of a channel used for bluetooth communication between the first terminal device and the second terminal device is greater than or equal to a first threshold, the first terminal device determines that a transmission rate when the first terminal device performs communication based on the bluetooth connection with the second terminal device is a first preset rate, and determines that a communication mode is at least one of video, high-definition voice, ordinary voice and text;
if the channel quality of a channel used for Bluetooth communication between the first terminal device and the second terminal device is smaller than a first threshold and larger than or equal to a second threshold, the first terminal device determines that the transmission rate when the first terminal device communicates with the second terminal device based on the Bluetooth connection is a second preset rate or a third preset rate, and determines that the communication mode is at least one of high-definition voice, common voice and characters;
if the channel quality of a channel used for Bluetooth communication between the first terminal device and the second terminal device is smaller than a second threshold value, the first terminal device determines that the transmission rate of the second terminal device in the first channel based on the Bluetooth connection is a fourth preset rate, and determines that the communication mode is at least one of common voice and characters;
or when the status information is a bandwidth, if the current available bandwidth is greater than or equal to a third threshold, the first terminal device determines that the transmission rate when performing communication based on the bluetooth connection with the second terminal device is a first preset rate, and determines that the communication mode is at least one of video, high-definition voice, normal voice and text;
if the current available bandwidth is smaller than a third threshold and larger than or equal to a fourth threshold, the first terminal device determines that the transmission rate when the first terminal device communicates with the second terminal device based on the Bluetooth connection is a second preset rate or a third preset rate, and determines that the communication mode is at least one of high-definition voice, common voice and characters;
if the current available bandwidth is smaller than a fourth threshold, the first terminal device determines that the transmission rate of the second terminal device during communication based on the Bluetooth connection on the first channel is a fourth preset rate, and determines that the communication mode is at least one of common voice and characters;
or when the state information is power consumption, if the electric quantity of the first terminal device is greater than or equal to a fifth threshold, the first terminal device determines that the transmission rate is a first preset rate when the first terminal device communicates with the second terminal device based on the bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and characters;
if the electric quantity of the first terminal equipment is smaller than a fifth threshold and larger than or equal to a sixth threshold, the first terminal equipment determines that the transmission rate is a second preset rate or a third preset rate when the first terminal equipment and the second terminal equipment perform communication based on the Bluetooth connection, and determines that the communication mode is at least one of high-definition voice, common voice and characters; or
If the electric quantity of the first terminal equipment is smaller than a sixth threshold value, the first terminal equipment determines that the transmission rate of the second terminal equipment in the communication based on the Bluetooth connection on the first channel is a fourth preset rate, and determines that the communication mode is at least one of common voice and characters;
or when the state information is a transmission distance, if the bluetooth transmission distance between the first terminal device and the second terminal device is greater than or equal to a seventh threshold, the first terminal device determines that the transmission rate when performing communication based on the bluetooth connection with the second terminal device is a first preset rate, and determines that the communication mode is at least one of video, high-definition voice, normal voice and text;
if the bluetooth transmission distance between the first terminal device and the second terminal device is smaller than a seventh threshold and larger than or equal to an eighth threshold, the first terminal device determines that the transmission rate when performing communication based on the bluetooth connection with the second terminal device is a second preset rate or a third preset rate, and determines that the communication mode is at least one of high-definition voice, normal voice and text;
if the bluetooth transmission distance between the first terminal device and the second terminal device is smaller than an eighth threshold, the first terminal device determines that the transmission rate of the bluetooth connection-based communication performed on the first channel with the second terminal device is a fourth preset rate, and determines that the communication mode is at least one of ordinary voice and text, wherein the first preset rate is greater than the second preset rate, the second preset rate is greater than the third preset rate, and the third preset rate is greater than the fourth preset rate.
2. The method of claim 1, wherein the plurality of transmission rates comprise 2Mbps, 1Mbps, 500kbps, and 125 kbps.
3. The method of claim 1, further comprising:
the first terminal device determines the status information.
4. The method of claim 3, wherein the determining of the status information by the first terminal device comprises:
the first terminal device pre-determines the status information before performing communication based on the bluetooth connection with the second terminal device.
5. The method of claim 4, wherein the first terminal device pre-determines the status information, and wherein the pre-determining comprises:
the first terminal equipment sends test data to the second terminal equipment;
the first terminal equipment receives a response message aiming at the test data sent by the second terminal equipment;
and the first terminal equipment judges the state information in advance according to the response message.
6. The method of claim 5, wherein the response message comprises a signal strength and/or an actual available throughput rate.
7. The method of claim 3, wherein the determining of the status information by the first terminal device comprises:
the first terminal device determines the status information in a process of performing communication based on the bluetooth connection with the second terminal device.
8. The method of claim 1, wherein if the status information includes channel quality, the determining, by the first terminal device, a communication mode and/or a transmission rate for the bluetooth connection based communication with the second terminal device according to the status information comprises:
when the channel quality of a channel used for Bluetooth communication between the first terminal device and the second terminal device is poor, the first terminal device is configured to reduce the transmission rate when the second terminal device performs communication based on the Bluetooth connection, and/or reselect a communication mode to reduce the bandwidth requirement when the second terminal device performs communication based on the Bluetooth connection.
9. The method according to claim 1, wherein if the status information includes a bandwidth, the determining, by the first terminal device, a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information includes:
when the current available bandwidth becomes insufficient, the first terminal device is configured to reduce the transmission rate when the second terminal device performs communication based on the Bluetooth connection, and/or reselect a communication mode to reduce the bandwidth requirement when the second terminal device performs communication based on the Bluetooth connection.
10. The method according to claim 1, wherein if the status information includes power consumption, the determining, by the first terminal device, a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information includes:
and when the electric quantity of the first terminal equipment becomes insufficient, the first terminal equipment is configured to reduce the transmission rate when the second terminal equipment performs communication based on the Bluetooth connection, and/or reselect a communication mode so as to reduce the power consumption requirement when the second terminal equipment performs communication based on the Bluetooth connection.
11. The method according to claim 1, wherein if the status information includes a transmission distance, the determining, by the first terminal device, a communication mode and/or a transmission rate when performing communication based on the bluetooth connection with the second terminal device according to the status information comprises:
when the Bluetooth transmission distance between the first terminal device and the second terminal device is increased, the first terminal device is configured to reduce the transmission rate when performing communication based on the Bluetooth connection with the second terminal device, and/or reselect a communication mode to reduce the requirement on the transmission distance when performing communication based on the Bluetooth connection with the second terminal device.
12. The method of any of claims 1-11, wherein the communication means comprises at least one of video, high definition voice, normal voice, and text.
13. The method of claim 1, further comprising:
and the first terminal equipment displays the allowed communication mode and/or the forbidden communication mode on the communication interface based on the Bluetooth connection in real time.
14. The method of claim 13, wherein the allowed communication mode corresponds to a green identifier and the forbidden communication mode corresponds to a red identifier on the communication interface based on the bluetooth connection.
15. The method of claim 14, wherein when the first terminal device simultaneously establishes the bluetooth connection with a plurality of terminal devices including the second terminal device, the method further comprises:
the first terminal device is configured to display, in real time, an allowed communication mode and/or a prohibited communication mode for each of the plurality of terminal devices on a communication interface based on the bluetooth connection.
16. The method of claim 15, further comprising:
and the first terminal equipment determines a broadcast mode aiming at each terminal equipment according to the allowed communication mode and/or the forbidden communication mode aiming at each terminal equipment.
17. The method of claim 16, further comprising:
and the first terminal equipment is configured to display the allowed broadcast mode and/or the forbidden broadcast mode in real time on a communication interface based on the Bluetooth connection.
18. A terminal device, wherein the terminal device is a first terminal device, a bluetooth connection is established between the terminal device and a second terminal device, the bluetooth connection performs communication based on a plurality of transmission rates, and the terminal device includes:
the processing unit is used for determining a communication mode and/or a transmission rate when the second terminal equipment performs communication based on the Bluetooth connection according to state information, wherein the state information comprises at least one of channel quality, bandwidth, power consumption and transmission distance;
the processing unit is specifically configured to:
when the state information is channel quality, if the channel quality of a channel used for Bluetooth communication between the terminal equipment and the second terminal equipment is greater than or equal to a first threshold value, determining that the transmission rate is a first preset rate when the second terminal equipment performs communication based on the Bluetooth connection, and determining that the communication mode is at least one of video, high-definition voice, common voice and characters;
if the channel quality of a channel used for Bluetooth communication between the terminal equipment and the second terminal equipment is smaller than a first threshold and larger than or equal to a second threshold, determining that the transmission rate is a second preset rate or a third preset rate when the second terminal equipment performs communication based on the Bluetooth connection, and determining that the communication mode is at least one of high-definition voice, common voice and characters;
if the channel quality of a channel used for Bluetooth communication between the terminal equipment and the second terminal equipment is smaller than a second threshold value, determining that the transmission rate of the second terminal equipment in the first channel based on the Bluetooth connection is a fourth preset rate, and determining that the communication mode is at least one of common voice and characters;
or when the status information is the bandwidth, if the current available bandwidth is greater than or equal to a third threshold, determining that the transmission rate is a first preset rate when the second terminal device performs communication based on the bluetooth connection, and determining that the communication mode is at least one of video, high-definition voice, normal voice and text;
if the current available bandwidth is smaller than a third threshold and larger than or equal to a fourth threshold, determining that the transmission rate when the second terminal device performs communication based on the Bluetooth connection is a second preset rate or a third preset rate, and determining that the communication mode is at least one of high-definition voice, common voice and characters;
if the current available bandwidth is smaller than a fourth threshold value, determining that the transmission rate of the second terminal device in the communication based on the Bluetooth connection on the first channel is a fourth preset rate, and determining that the communication mode is at least one of common voice and characters;
or when the state information is power consumption, if the electric quantity of the terminal device is greater than or equal to a fifth threshold value, the terminal device determines that the transmission rate is a first preset rate when the terminal device communicates with the second terminal device based on the bluetooth connection, and determines that the communication mode is at least one of video, high-definition voice, common voice and characters;
if the electric quantity of the terminal equipment is smaller than a fifth threshold and larger than or equal to a sixth threshold, the terminal equipment determines that the transmission rate is a second preset rate or a third preset rate when the terminal equipment communicates with the second terminal equipment based on the Bluetooth connection, and determines that the communication mode is at least one of high-definition voice, common voice and characters; or
If the electric quantity of the terminal equipment is smaller than a sixth threshold value, the terminal equipment determines that the transmission rate of the second terminal equipment in the communication based on the Bluetooth connection on the first channel is a fourth preset rate, and determines that the communication mode is at least one of common voice and characters;
or when the state information is a transmission distance, if the bluetooth transmission distance between the terminal device and the second terminal device is greater than or equal to a seventh threshold, determining that the transmission rate when the bluetooth connection-based communication is performed with the second terminal device is a first preset rate, and determining that the communication mode is at least one of video, high-definition voice, normal voice and text;
if the Bluetooth transmission distance between the terminal equipment and the second terminal equipment is smaller than a seventh threshold and larger than or equal to an eighth threshold, determining that the transmission rate is a second preset rate or a third preset rate when the terminal equipment and the second terminal equipment perform communication based on the Bluetooth connection, and determining that the communication mode is at least one of high-definition voice, common voice and characters;
if the Bluetooth transmission distance between the terminal device and the second terminal device is smaller than an eighth threshold, determining that the transmission rate of the second terminal device in the first channel during communication based on the Bluetooth connection is a fourth preset rate, and determining that the communication mode is at least one of common voice and characters, wherein the first preset rate is larger than the second preset rate, the second preset rate is larger than the third preset rate, and the third preset rate is larger than the fourth preset rate.
19. The terminal device of claim 18, wherein the plurality of transmission rates comprise 2Mbps, 1Mbps, 500kbps, and 125 kbps.
20. The terminal device of claim 19, wherein the processing unit is further configured to determine the status information.
21. The terminal device of claim 20, wherein the processing unit is specifically configured to:
the status information is pre-determined before communication based on the bluetooth connection with the second terminal device.
22. The terminal device of claim 21, wherein the terminal device further comprises:
a communication unit, configured to send test data to the second terminal device;
the communication unit is further used for receiving a response message aiming at the test data sent by the second terminal equipment;
the processing unit is specifically configured to: and pre-judging the state information according to the response message.
23. The terminal device of claim 22, wherein the response message comprises a signal strength and/or an actual available throughput rate.
24. The terminal device of claim 23, wherein the processing unit is specifically configured to:
and determining the state information in the process of communication based on the Bluetooth connection with the second terminal equipment.
25. The terminal device according to any one of claims 19 to 24, wherein if the status information includes channel quality, the processing unit is specifically configured to:
when the channel quality of a channel used for Bluetooth communication between the terminal equipment and the second terminal equipment is poor, reducing the transmission rate when the second terminal equipment performs communication based on the Bluetooth connection, and/or reselecting a communication mode to reduce the bandwidth requirement when the second terminal equipment performs communication based on the Bluetooth connection.
26. The terminal device of claim 25, wherein if the status information includes a bandwidth, the processing unit is specifically configured to:
when the current available bandwidth becomes insufficient, the transmission rate of the second terminal equipment based on the communication of the Bluetooth connection is reduced, and/or the communication mode is reselected, so that the bandwidth requirement of the second terminal equipment based on the communication of the Bluetooth connection is reduced.
27. The terminal device of claim 26, wherein if the status information includes power consumption, the processing unit is specifically configured to:
and when the electric quantity of the terminal equipment becomes insufficient, reducing the transmission rate when the second terminal equipment performs communication based on the Bluetooth connection, and/or reselecting a communication mode to reduce the power consumption requirement when the second terminal equipment performs communication based on the Bluetooth connection.
28. The terminal device of claim 27, wherein if the status information includes a transmission distance, the processing unit is specifically configured to:
when the Bluetooth transmission distance between the terminal equipment and the second terminal equipment is increased, the transmission rate is reduced when the Bluetooth connection-based communication is carried out with the second terminal equipment, and/or the communication mode is reselected so as to reduce the requirement on the transmission distance when the Bluetooth connection-based communication is carried out with the second terminal equipment.
29. The terminal device of claim 28, wherein the communication means comprises at least one of video, high-definition voice, normal voice, and text.
30. The terminal device of claim 29, wherein the processing unit is further configured to display an allowed communication mode and/or a prohibited communication mode in real time on the communication interface based on the bluetooth connection.
31. The terminal device according to claim 30, wherein the allowed communication method corresponds to a green identifier and the forbidden communication method corresponds to a red identifier on the communication interface based on the bluetooth connection.
32. The terminal device according to claim 31, wherein when the terminal device simultaneously establishes the bluetooth connection with a plurality of terminal devices including the second terminal device, the processing unit is further configured to display an allowed communication method and/or a prohibited communication method for each of the plurality of terminal devices in real time on a communication interface based on the bluetooth connection.
33. The terminal device according to claim 32, wherein the processing unit is further configured to determine a broadcast manner for each terminal device according to an allowed communication manner and/or a prohibited communication manner for each terminal device.
34. The terminal device of claim 33, wherein the processing unit is further configured to display an allowed broadcast mode and/or a prohibited broadcast mode in real time on a communication interface based on the bluetooth connection.
35. A terminal device, comprising: a processor and a memory for storing a computer program, the processor being configured to invoke and execute the computer program stored in the memory to perform the method of any of claims 1 to 17.
36. A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is installed performs the method of any one of claims 1 to 17.
37. A computer-readable storage medium for storing a computer program which causes a computer to perform the method of any one of claims 1 to 17.
CN201811113193.6A 2018-09-25 2018-09-25 Bluetooth communication method and terminal equipment Active CN109275131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811113193.6A CN109275131B (en) 2018-09-25 2018-09-25 Bluetooth communication method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811113193.6A CN109275131B (en) 2018-09-25 2018-09-25 Bluetooth communication method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109275131A CN109275131A (en) 2019-01-25
CN109275131B true CN109275131B (en) 2021-08-24

Family

ID=65197338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811113193.6A Active CN109275131B (en) 2018-09-25 2018-09-25 Bluetooth communication method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109275131B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment
CN111328059B (en) * 2020-02-25 2023-01-06 Oppo广东移动通信有限公司 Data transmission method, data transmission device and electronic equipment
US11483712B2 (en) * 2020-09-22 2022-10-25 Apple Inc. Device communication through high-frequency light encoding
CN114629737B (en) * 2020-12-14 2024-03-12 深圳Tcl新技术有限公司 Bandwidth adjustment method, device, gateway equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8363086B1 (en) * 2012-02-06 2013-01-29 Google Inc. Initiating communications using short-range wireless communications
CN104135741A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Method of Bluetooth low energy communication, Bluetooth devices and system
CN106028260A (en) * 2016-04-29 2016-10-12 云中致用(广州)信息科技有限公司 Real-time transmission device, system and method based on call and information
CN106685486A (en) * 2017-02-21 2017-05-17 深圳市富德康电子有限公司 Multi-user duplex talkback system and method based on Bluetooth
CN107566245A (en) * 2017-07-31 2018-01-09 深圳真时科技有限公司 A kind of method and apparatus for realizing mobile terminal and Intelligent worn device instant messaging

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9641239B2 (en) * 2012-06-22 2017-05-02 Fitbit, Inc. Adaptive data transfer using bluetooth

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8363086B1 (en) * 2012-02-06 2013-01-29 Google Inc. Initiating communications using short-range wireless communications
CN104135741A (en) * 2014-07-08 2014-11-05 福建联迪商用设备有限公司 Method of Bluetooth low energy communication, Bluetooth devices and system
CN106028260A (en) * 2016-04-29 2016-10-12 云中致用(广州)信息科技有限公司 Real-time transmission device, system and method based on call and information
CN106685486A (en) * 2017-02-21 2017-05-17 深圳市富德康电子有限公司 Multi-user duplex talkback system and method based on Bluetooth
CN107566245A (en) * 2017-07-31 2018-01-09 深圳真时科技有限公司 A kind of method and apparatus for realizing mobile terminal and Intelligent worn device instant messaging

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于蓝牙的手机自组网即时通信协议的设计与验证;魏煜;《中国优秀硕士学位论文全文数据库》;20070115;第五章 *

Also Published As

Publication number Publication date
CN109275131A (en) 2019-01-25

Similar Documents

Publication Publication Date Title
CN109275131B (en) Bluetooth communication method and terminal equipment
CN114257355A (en) PRS (general purpose radio resource) resource indication method and device under direct communication, storage medium and terminal
US20200205124A1 (en) Paging Method, Terminal Device, and Network Device
US20230209519A1 (en) Wireless communication method and apparatus, terminal, and storage medium
CN111801906B (en) Wireless communication method and terminal device
CN112491516A (en) Communication method and device
CN114175846B (en) Communication method and device
CN112153633B (en) Method and equipment for sending and receiving capability information
CN113810964A (en) Communication method and device
CN111050377B (en) Method for sharing network connection by mobile terminal and mobile terminal
CN113940123A (en) Method and device for allocating wireless communication resources and communication equipment
CN115278783A (en) Service distribution method, network equipment and terminal equipment
WO2019084924A1 (en) Data transmission method and device
CN112740826B (en) Capability reporting method and terminal equipment
CN111837419B (en) Data transmission method, terminal equipment and network equipment
CN114616917A (en) RRC connection recovery method and equipment
CN110267286A (en) Data transmission method, device, access network equipment and storage medium
CN112866965B (en) Intelligent glasses
CN112866964B (en) Wireless earphone assembly
CN115836548A (en) Wireless communication method and apparatus
CN116530159A (en) Uplink transmission method, terminal equipment and network equipment
US20220417903A1 (en) Paging method and apparatus, communication device and storage medium
CN111418241B (en) Resource authorization method and equipment
CN113873303A (en) Wireless screen projection method and terminal equipment
CN114073166A (en) Method, device and equipment for recovering transmission

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