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

A Bluetooth data receiving device and method thereof

A technology of bluetooth data and receiving method, which is applied in the field of data transmission, can solve the problems of bluetooth data receiving data faults, data faults, data errors, etc., and achieve the effect of achieving integrity and avoiding loss

Active Publication Date: 2020-07-17
XIAN FASHITE AUTOMOBILE TRANSMISSION CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Since 2012, the PC-side Bluetooth operation can be performed through a virtual serial port. When data collection requires the coexistence of Bluetooth and serial port operations, this greatly facilitates the algorithm design of the programmer, but there is also a serious problem; Bluetooth is virtualized as a serial port. When receiving data, it will be found that the received data often has faults, resulting in incomplete data packets. This situation has a lot to do with the buffer size and transmission rate allocated by Bluetooth, and it is different from the current The method of receiving Bluetooth data at the receiving end is also related
[0003] At present, when the receiving end receives Bluetooth data, it only takes the complete data packet and discards the redundant data. Although this can improve the data receiving speed, it leads to data faults, data errors and confusion in the reception of Bluetooth data.

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
  • A Bluetooth data receiving device and method thereof
  • A Bluetooth data receiving device and method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] The present invention is illustrated by taking the first round of data sent by the receiving end of the PC as an example, wherein the length of the data packet is 16 bytes, and its specific operation is as follows

[0035] First, virtualize the Bluetooth device on the receiving end of the PC into a serial port. After the receiving end of the PC is connected to the sending end through Bluetooth, it receives 1500 bytes of data sent by the sending end. The receiving end of the PC finds the 50th byte through the Bluetooth protocol as the first The starting point of the group data, where the data of 1-49 bytes is invalid data sent by the sender, so the received data of the first round is 50-1500, a total of 1451 bytes of data, and the length of the received data is 1451, and then Calculate the remainder of the length 16 of the data packet, and then get 90 complete data packets, and there are 11 bytes of redundant data remaining. Since the data of 11 bytes is not enough for th...

Embodiment 2

[0039] The present invention is explained by taking the 6th round of data sent by the receiving end of the PC as an example, wherein the length of the data packet is 8 bytes, and 4 bytes of redundant data are stored in the storage memory during the 5th round of data receiving. data; the specific operations are as follows:

[0040] The PC receiving end receives 992 bytes of data sent by the sending end in the sixth round of data reception during a data transmission process, and first stores the 4 bytes of redundant data stored in the memory during the fifth round of data receiving Integrate it into the starting position of the received data to get the new received data length of 1000; then calculate the remainder of the data packet length 8 to obtain 125 complete data packets. There is no redundant data in this round, so the PC receiving end directly converts 125 Receive a complete data packet and complete the sixth round of data reception.

[0041]During the 7th round of data...

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 invention discloses a Bluetooth data receiving device and method. The Bluetooth data receiving device comprises a receiving end with a Bluetooth equipment virtual serial port. The receiving end reads all data in a buffer area; the receiving end starts traversing from the first byte of the data to find a starting point of the first set of data, wherein the first set of data and subsequent dataare received data; the receiving end calculates the length L of the received data, and performs remainder calculation on the received data according to the length K of a data packet to obtain redundant data; and the receiving end stores the redundant data in a storage memory, and receives other parts of the received data, wherein the receiving end integrates the redundant data before the next round of received data when receiving the next round of data. The storage memory is arranged to store the redundant data, and during the next data reception, the redundant data is read together with the data in the buffer area, the redundant data is received, and thus the integrity of Bluetooth data reception can be realized.

Description

technical field [0001] The invention belongs to the technical field of data transmission, relates to a method for receiving bluetooth data at a receiving end, specifically relates to a receiving device for bluetooth data, and also relates to a receiving method for bluetooth data. Background technique [0002] Since 2012, the PC-side Bluetooth operation can be performed through a virtual serial port. When data collection requires the coexistence of Bluetooth and serial port operations, this greatly facilitates the algorithm design of the programmer, but there is also a serious problem; Bluetooth is virtualized as a serial port. When receiving data, it will be found that the received data often has faults, resulting in incomplete data packets. This situation has a lot to do with the buffer size and transmission rate allocated by Bluetooth, and it is different from the current The method used by the receiving end to receive Bluetooth data is also related. [0003] At present, ...

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): H04L29/08
CPCH04L67/06
Inventor 王玲利
Owner XIAN FASHITE AUTOMOBILE TRANSMISSION CO LTD