Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for bluetooth communication

A communication device, a technology of Bluetooth communication, applied in the field of communication, can solve the problems of Bluetooth data packet loss, saturation of Bluetooth slave device receiving capability, and timeout of receiving data, etc., to achieve the effects of good experience, increased stability, and guaranteed communication rate

Active Publication Date: 2021-04-06
FEITIAN TECHNOLOGIES
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing Bluetooth communication process, data is usually sent in a non-responsive manner. When the amount of data to be sent is large, when the data is sent in a non-responsive manner, the Bluetooth slave device’s receiving capacity is prone to saturation, resulting in loss of Bluetooth data packets. Abnormal situations such as receiving data timeout affect the stability of Bluetooth communication

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for bluetooth communication
  • Method and device for bluetooth communication
  • Method and device for bluetooth communication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] This embodiment provides a Bluetooth communication method, see figure 1 ,include:

[0025] Step S1, the communication device waits for the call of the upper-layer application, receives the operation data sent by the upper-layer application when the data interaction interface is called, and executes step S2;

[0026] Step S2, the communication device sends the operation data to the Bluetooth device in a non-responsive manner;

[0027] Step S3, the communication device judges whether the operation result returned by the Bluetooth device is successfully received, and if yes, returns the received operation result to the upper application, and ends; otherwise, execute step S4;

[0028] Step S4, the communication device sends the operation data to the Bluetooth device in a responsive manner, and judges whether the operation data is successfully sent, and if yes, executes step S5; otherwise, the communication fails and ends;

[0029] Step S5, the communication device judges ...

Embodiment 2

[0076] This embodiment provides a Bluetooth communication method, see figure 2 ,include:

[0077] Step 101, the communication device receives the call of the upper layer application, when the scanning interface is called, execute step 102; when the connection interface is called, execute step 103; when the disconnection interface is called, execute step 104; when the data interaction interface When called, execute step 105;

[0078] Step 102, the communication device scans the surrounding Bluetooth devices, and returns the Bluetooth device information of the scanned Bluetooth devices to the upper application; return to step 101;

[0079] Specifically, the communication device calls the [_managerscanForPeripheralsWithServices:@[[CBUUID UUIDWithString:@"12340001-0001-00c3-0000-465453414645"]]options:@{CBCentralManagerScanOptionAllowDuplicatesKey:@YES}] interface of the CBCentralManager object to scan the surrounding Bluetooth devices. The value of the first parameter NSArray*...

Embodiment 3

[0155] This embodiment provides a communication device, see image 3 ,include:

[0156] The receiving module 11 is used to wait for the call of the upper layer application, and receive the operation data sent by the upper layer application when the data interaction interface is called;

[0157] The sending module 12 is used to send the operation data received by the receiving module 11 to the bluetooth device in a non-responsive manner;

[0158] The first judging module 13 is used for judging whether the operation result returned by the bluetooth device is successfully received after the sending module 12 sends the operation data received by the receiving module 11 to the bluetooth device in a non-responsive manner;

[0159] The sending module 12 is also used to return the received operation result to the upper layer application when the first judging module 13 judges that the operation result returned by the Bluetooth device is successfully received; When the Bluetooth devi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention relates to the field of communication, in particular to a Bluetooth communication method and a communication device. The method includes: the communication device waits for a call from an upper-layer application, receives the operation data sent by the upper-layer application when the data interaction interface is called, and transmits The operation data is sent to the bluetooth device; the communication device judges whether the operation result returned by the bluetooth device is successfully received, and if yes, returns the received operation result to the upper layer application; otherwise, the operation data is sent to Send to the Bluetooth device to determine whether the operation data is successfully sent. When it is determined that the operation data is successfully sent, determine whether the operation result returned by the Bluetooth device is successfully received. If yes, return the received operation result to the upper application; otherwise, the communication fails ; The present invention increases the stability of bluetooth communication by adopting the combination of non-response mode and response mode to send data.

Description

technical field [0001] The invention relates to the communication field, in particular to a Bluetooth communication method and a communication device. Background technique [0002] At present, there are mainly two ways of mobile Bluetooth communication, a responsive mode and a non-responsive mode. The speed of sending data in the non-responsive mode is about twice the speed of sending data in the responsive mode. In the existing Bluetooth communication process, data is usually sent in a non-responsive manner. When the amount of data to be sent is large, when the data is sent in a non-responsive manner, it is easy to saturate the receiving capacity of the Bluetooth slave device, resulting in the loss of Bluetooth data packets. Abnormal situations such as receiving data timeout affect the stability of Bluetooth communication. In response to the above problems, the industry urgently needs to propose a technical solution to ensure the stability of Bluetooth communication. Co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04W4/80H04W76/28H04L1/16H04L1/00
CPCH04L1/0067H04L1/16H04W4/80H04W76/28
Inventor 陆舟于华章
Owner FEITIAN TECHNOLOGIES