CN111277986B - Method for improving Bluetooth transmission speed of iOS device - Google Patents

Method for improving Bluetooth transmission speed of iOS device Download PDF

Info

Publication number
CN111277986B
CN111277986B CN202010150929.8A CN202010150929A CN111277986B CN 111277986 B CN111277986 B CN 111277986B CN 202010150929 A CN202010150929 A CN 202010150929A CN 111277986 B CN111277986 B CN 111277986B
Authority
CN
China
Prior art keywords
iap
rfcomm
packet
ios
protocol
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
CN202010150929.8A
Other languages
Chinese (zh)
Other versions
CN111277986A (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.)
Barrot Wireless Co Ltd
Original Assignee
Barrot Wireless Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Barrot Wireless Co Ltd filed Critical Barrot Wireless Co Ltd
Priority to CN202010150929.8A priority Critical patent/CN111277986B/en
Publication of CN111277986A publication Critical patent/CN111277986A/en
Application granted granted Critical
Publication of CN111277986B publication Critical patent/CN111277986B/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/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • 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)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for improving the Bluetooth transmission speed of iOS equipment, and belongs to the technical field of Bluetooth wireless communication. The method for improving the Bluetooth transmission speed of the iOS device comprises the following steps: the iOS device and the peripheral device establish RFCOMM connection and iAP protocol communication; the iOS equipment sends a first iAP data packet, and the first iAP data packet is disassembled into one or more RFCOMM data packets; the peripheral equipment combines the RFCOMM data packets into a second iAP data packet, and accumulates the number of the RFCOMM data packets into the credit number of the last transmission of the peripheral equipment; the peripheral equipment judges whether to reply a confirmation packet to the iOS equipment or not; if the confirmation packet is replied, the peripheral equipment combines the confirmation packet with the transmission credit number accumulated by the peripheral equipment and then sends the combined result to the iOS equipment. The invention is beneficial to reducing the generation frequency of the flow control data and improving the transmission speed.

Description

Method for improving Bluetooth transmission speed of iOS device
Technical Field
The invention relates to the technical field of Bluetooth wireless communication, in particular to a method for improving Bluetooth transmission speed of iOS equipment.
Background
iOS data transmission can be realized by Bluetooth Low Energy (BLE for short) or conventional Bluetooth, but the transmission speed of BLE is Low. To achieve higher transmission speed, apple supports the connection of iOS devices via conventional bluetooth in the iAP (ipod access protocol) protocol, which provides for the transmission of iAP data packets using the RFCOMM protocol in conventional bluetooth. in the protocol of the iAP, it is agreed that each packet of the sender has a sequence number (Seq for short), the receiver needs to acknowledge the received data packet, the Seq of the received data packet needs to be carried when acknowledging, and the receiver replies an acknowledgment packet ACK after acknowledging. The receiver replies with an acknowledgement ACK in three cases: accumulating data packets without ACK when the maximum number of accumulated acknowledgement packets is received; secondly, the time which is far away from the last ACK data packet exceeds the accumulated confirmation overtime time; and thirdly, the receiving party actively replies the ACK. If the receiver does not reply ACK to the sender within the retransmission timeout time, the sender is considered to be timeout, and the sender retransmits the data. The above is the flow control mechanism of the iAP for ensuring data integrity. Meanwhile, the RFCOMM protocol used by the iAP also has a flow control mechanism. After the RFCOMM connection is established, the two parties exchange an initial transmission Credit (Credit), each time one data is sent, the value of Credit is reduced by 1, and when the value of Credit is 0, no data transmission is carried out until the receiver returns the value of Credit again. The Credit effectively controls the data receiving and sending, and the macro-concept buffer (BUF for short) can not overflow. Because the iAP and RFCOMM protocols both have their own flow control mechanisms, during the communication process, the Credit of RFCOMM needs to be transmitted, and the ACK of iAP also needs to be transmitted, resulting in a reduction in speed.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method for improving the Bluetooth transmission speed of the iOS device is provided, the data interaction times of an RFCOMM protocol are reduced, and the transmission speed is improved.
In order to achieve the above purpose, the invention adopts a technical scheme that: a method for improving the Bluetooth transmission speed of an iOS device is provided, which comprises the following steps: the iOS device and the peripheral device establish RFCOMM connection and exchange transmission credit numbers; establishing iAP protocol communication between the iOS equipment and the peripheral equipment, and exchanging protocol parameters; the iOS device sends a first iAP data packet, and the first iAP data packet is disassembled into one or more RFCOMM data packets, wherein the first iAP data packet is an iAP data packet generated by communication data according to an iAP protocol; the peripheral equipment combines the received RFCOMM data packets into a second iAP data packet which accords with an iAP protocol, and accumulates the number of the received RFCOMM data packets into the last transmission credit number of the peripheral equipment; the peripheral equipment judges whether to reply a confirmation packet to the iOS equipment according to the receiving condition of the RFCOMM data packet or the protocol parameter; and if the received RFCOMM data packet reaches a preset threshold value or the numerical value of the protocol parameter, replying a confirmation packet, combining the confirmation packet and the transmission credit number accumulated by the peripheral equipment, and then sending the combined result to the iOS equipment.
The invention has the beneficial effects that: and the confirmation packet of the iAP and the transmission credit number accumulated by the peripheral equipment are merged and sent, so that the number of air interaction times is reduced, and the data transmission speed is improved.
Drawings
Fig. 1 is a process diagram illustrating a method for increasing the bluetooth transmission speed of an iOS device according to the present invention.
Detailed Description
In order to make the aforementioned features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. The detailed description is merely intended to facilitate an understanding of the invention, and the scope of the invention is not limited to the specific description in the specific embodiments.
Fig. 1 shows an embodiment of the method for increasing the bluetooth transmission speed of an iOS device according to the present invention, in which the method mainly includes the following steps:
step S101: the iOS device and the peripheral device establish RFCOMM connection and exchange transmission credit numbers;
in one embodiment of the present invention, the iOS device includes mac, iphone, ipad, and the like. The peripheral equipment comprises a sphygmomanometer, a thermometer, a bracelet, a Bluetooth remote controller and the like.
The iOS device and the peripheral device establish RFCOMM connection at first, the iOS device obtains an initial value of the transmission Credit number Credit from the peripheral device, after the connection is established, the iOS device transmits RFCOMM data packets to the peripheral device, and meanwhile, the number of the transmission Credit packets is reduced by one.
Step S102: establishing iAP protocol communication between the iOS equipment and the peripheral equipment, and exchanging protocol parameters;
in one embodiment of the present invention, the protocol parameters mainly include: the maximum number of accumulated acknowledgement packets, the accumulated acknowledgement packet timeout time, the maximum number of un-honored data packets, and the retransmission timeout time.
And the data in the iAP protocol communication is transmitted by using Cyclic Redundancy Code (CRC) check, so that the correctness of data transmission is ensured. The iAP protocol mainly comprises three parts, namely file transmission starting, data transmission and file transmission ending. The iAP protocol has the advantages of fast and stable transmission.
Step S103: the iOS device sends a first iAP data packet, and the first iAP data packet is disassembled into one or more RFCOMM data packets, wherein the first iAP data packet is an iAP data packet generated by communication data according to an iAP protocol;
in an embodiment of the present invention, the iOS device compiles the communication data into iAP packets conforming to the iAP protocol, where the iAP packets may be one or more, and multiple iAP packets are sent one by one, so that the transmission process is uninterrupted. The iAP packet is then broken down into one or more RFCOMM packets for transmission.
Step S104: the peripheral equipment combines all the received RFCOMM data packets into a second iAP data packet which accords with an iAP protocol, and calculates and accumulates the number of the RFCOMM data packets into the last transmission credit number (defined as to _ give _ credit) of the peripheral equipment;
step S105: the peripheral equipment judges whether to reply a confirmation packet to the iOS equipment according to the receiving condition of the RFCOMM data packet or the protocol parameter; and if the received RFCOMM data packet reaches a preset threshold value or the numerical value of the protocol parameter, replying a confirmation packet, and at the moment, combining the confirmation packet and the transmission credit number accumulated by the peripheral equipment and then sending the combined result to the iOS equipment.
In an embodiment of the present invention, the preset threshold is determined according to the receiving capability of the peripheral device itself, and the preset threshold may be 100% of the receiving capability of the peripheral device or a part of the receiving capability of the peripheral device itself. Assuming that the peripheral device can receive 100 RFCOMM packets, when the RFCOMM packet reaches the preset threshold =100, the peripheral device will reply to the acknowledgment packet, or when the maximum value of the protocol parameter is reached, that is, the maximum number of the cumulative acknowledgment packets, the cumulative acknowledgment packet timeout time, the maximum number of the uncommitted packets, and the like are reached, the peripheral device will also reply to the acknowledgment packet.
In one embodiment of the invention, when the peripheral device replies to the acknowledgement packet, the acknowledgement packet is added to the payload of the RFCOMM protocol, and the number of transmission credits accumulated by the peripheral device is added to the RFCOMM protocol field. The peripheral device acknowledges the packet received in step S104 so that the iOS device does not stop sending data due to lack of transmission credits.
A method for increasing the bluetooth transmission speed of an iOS device according to the present invention is further described in the following with a specific embodiment.
A step of transferring data between an iOS device and a peripheral device: assuming that a communication data packet can be decomposed into 2 iAP data packets according to the iAP protocol, and each iAP data packet is further decomposed into 2 RFCOMM data packets, the peripheral device replies to the acknowledgement packet after receiving the 4 RFCOMM data packets.
In the prior art, the Credit of the RFCOMM and the ACK of the iAP are sent separately, after the iOS device establishes connection with the peripheral device, the peripheral device sends the Credit to the iOS device every time the peripheral device receives two data, after the iOS device receives a new Credit, the peripheral device continues to send data to the peripheral device, and when the reception of 4 RFCOMM data packets is completed, the peripheral device needs to reply a confirmation packet and simultaneously needs to send the Credit.
In the example of the present invention, after the iOS device is connected to the peripheral device, the peripheral device accumulates the number of RFCOMM data packets to the last Credit of the peripheral device every time the peripheral device receives 1 RFCOMM data packet, and when 4 RFCOMM data packets are received, the peripheral device needs to reply to the Credit and also needs to reply to a confirmation packet, at this time, the peripheral device adds the confirmation packet to the load of the RFCOMM protocol, and adds the accumulated number of the Credit to the field of the RFCOMM protocol, and at this time, the confirmation packet and the accumulated number of the Credit are combined and sent to the iOS device, thereby reducing over-the-air exchanges and improving the data transmission speed in this process.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structural changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to other related technical fields, are included in the scope of the present invention.

Claims (3)

1. A method for improving Bluetooth transmission speed of iOS equipment is characterized by comprising the following steps:
the iOS device and the peripheral device establish RFCOMM connection and exchange and transmit Credit Credit;
establishing iAP protocol communication between the iOS equipment and the peripheral equipment, and exchanging protocol parameters;
the iOS device sends a first iAP data packet, and the first iAP data packet is disassembled into one or more RFCOMM data packets, wherein the first iAP data packet is an iAP data packet generated by communication data according to an iAP protocol;
the peripheral device combines the received RFCOMM data packets into a second iAP data packet conforming to the iAP protocol, and accumulates the number of the received RFCOMM data packets into the last transmission credit number of the peripheral device;
the peripheral equipment judges whether to reply a confirmation packet to the iOS equipment according to the receiving condition of the RFCOMM data packet or the protocol parameter; and if the received RFCOMM data packet reaches a preset threshold value or a numerical value of a protocol parameter, replying the confirmation packet, combining the confirmation packet and the transmission credit number accumulated by the peripheral equipment, and then sending the combined result to the iOS equipment.
2. The method of claim 1, wherein the protocol parameters include a cumulative maximum number of acknowledgement packets, a cumulative acknowledgement packet timeout time, a maximum number of un-honored data packets, and a retransmission timeout time.
3. The method of claim 1, wherein the step of the peripheral device combining the acknowledgement packet and the peripheral device's accumulated number of transmission credits is adding the acknowledgement packet to the RFCOMM protocol payload while adding the peripheral device's accumulated number of transmission credits to the RFCOMM protocol field.
CN202010150929.8A 2020-03-06 2020-03-06 Method for improving Bluetooth transmission speed of iOS device Active CN111277986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010150929.8A CN111277986B (en) 2020-03-06 2020-03-06 Method for improving Bluetooth transmission speed of iOS device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010150929.8A CN111277986B (en) 2020-03-06 2020-03-06 Method for improving Bluetooth transmission speed of iOS device

Publications (2)

Publication Number Publication Date
CN111277986A CN111277986A (en) 2020-06-12
CN111277986B true CN111277986B (en) 2022-02-25

Family

ID=71002349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010150929.8A Active CN111277986B (en) 2020-03-06 2020-03-06 Method for improving Bluetooth transmission speed of iOS device

Country Status (1)

Country Link
CN (1) CN111277986B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812404A (en) * 2005-01-24 2006-08-02 艾威梯软件技术(北京)有限公司 Blue tooth RFCOMM protocol speed increasing method
CN103840860A (en) * 2014-02-27 2014-06-04 天地融科技股份有限公司 Bluetooth communication method and device
CN107959553A (en) * 2017-02-21 2018-04-24 北京百瑞互联技术有限公司 The method that lifting blueteeth network enters net spee
WO2018137218A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Data transmission method, data receiving device, and data sending device
CN108446130A (en) * 2018-03-12 2018-08-24 北京百瑞互联技术有限公司 OTA upgrade methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1812404A (en) * 2005-01-24 2006-08-02 艾威梯软件技术(北京)有限公司 Blue tooth RFCOMM protocol speed increasing method
CN103840860A (en) * 2014-02-27 2014-06-04 天地融科技股份有限公司 Bluetooth communication method and device
WO2018137218A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Data transmission method, data receiving device, and data sending device
CN107959553A (en) * 2017-02-21 2018-04-24 北京百瑞互联技术有限公司 The method that lifting blueteeth network enters net spee
CN108446130A (en) * 2018-03-12 2018-08-24 北京百瑞互联技术有限公司 OTA upgrade methods

Also Published As

Publication number Publication date
CN111277986A (en) 2020-06-12

Similar Documents

Publication Publication Date Title
EP1993226B1 (en) Method and related apparatus for handling re-establishment of radio link control entity in a wireless communications system
WO2020206616A1 (en) Method and device for retransmitting feedback for direct-connection communication, and storage medium
CN101652952B (en) Window control and retransmission control method, and transmission side device
CN101795170B (en) Method, receiving equipment and system for realizing data feedback
US10979934B2 (en) System and method for maintaining synchronization in connectionless transmissions
CN103517386B (en) The data transmission method and equipment of WLAN
US20130028189A1 (en) Method and apparatus for using physical layer error control to direct media access layer error control
CN101652951A (en) Method for transmitting retransmission request and receiving side device
EP3226455A1 (en) Wireless data transmission method, network side device, user equipment and system
CN102868609A (en) Maximum transmission unit consultation method and data terminal
US10999762B2 (en) Internet of things transmission optimization method and apparatus, and device
CN101202608B (en) Method and system for transmitting of affirmation mode data
CN103973414B (en) A kind of data transmission method and device
KR101532222B1 (en) Communication system and method for connecting of rrc therein
CN113346982A (en) Data transmission method, data receiving method and data receiving device
EP3902170B1 (en) Communication method, apparatus and system
CN101068372B (en) Method and apparatus of handling a variable of a wireless link control reset procedure
CN104184568A (en) Data transmission method and system of communication system
US11258721B2 (en) Radio link control (RLC) acknowledged mode (AM) data reception
CN111277986B (en) Method for improving Bluetooth transmission speed of iOS device
TWI486030B (en) Method and apparatus for polling transmission status in a wireless communications system
CN101114891B (en) Techniques to expedite retransmission of arq blocks using temporal relationships in wireless networks
WO2020107220A1 (en) Wireless communication method, terminal device and network device
WO2021089033A1 (en) Method and device for sending feedback information
EP2736189B1 (en) Status report processing method, communication device, and communication system

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
CP03 Change of name, title or address

Address after: A1009, floor 9, block a, No. 9, Shangdi Third Street, Haidian District, Beijing 100085

Patentee after: Beijing Bairui Internet Technology Co.,Ltd.

Address before: 7-1-1, building C, 7 / F, building 2-1, No.2, Shangdi Information Road, Haidian District, Beijing 100085

Patentee before: BARROT WIRELESS Co.,Ltd.

CP03 Change of name, title or address