A Bluetooth-based distance measuring wheel data transmission method and system
By setting up a Bluetooth chip and a 7442B chip on the distance measuring wheel, and using the Bluetooth Mesh network for data transmission, the problems of time loss and low accuracy in data transmission of the distance measuring wheel in the existing technology are solved, and wireless connection, real-time monitoring and data transmission are realized. safety, expanding the application fields.
Patent Information
- Application Number
- CN202410417791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-04-09
AI Technical Summary
When the existing distance measuring wheel transmits binary data through Bluetooth, it results in increased data transmission time loss and reduced accuracy, and fails to effectively utilize Bluetooth technology for data communication.
A Bluetooth chip and a 7442B chip are installed on the distance measuring wheel to perform data preprocessing and communication through the Bluetooth Mesh network. BLE technology is used to establish a wireless connection to achieve real-time monitoring and feedback of data, and an encryption mechanism is used to ensure data security.
It achieves the flexibility and real-time monitoring of wireless connections, reduces energy consumption, expands data application fields, and improves the security and accuracy of data transmission.
Smart Images

Figure CN118018976B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of distance measuring wheels, and in particular to a distance measuring wheel data transmission method and system based on Bluetooth. Background Art
[0002] A distance measuring wheel is a sensor device used to measure the distance a vehicle or object has moved. It calculates parameters such as travel distance and speed by measuring the rotation of the wheel. Measurement can be achieved through magnetic fields, optics or other methods.
[0003] The distance measuring wheels on the market measure binary data, then transmit the binary data to the terminal via Bluetooth, and then convert it from the terminal. This increases the time loss of data transmission and greatly reduces the accuracy.
[0004] Bluetooth technology is an open global standard for wireless data and voice communication. It is a special short-range wireless technology connection based on low-cost short-range wireless connection to establish a communication environment for fixed and mobile devices. However, the existing technology has not yet combined Bluetooth technology with a distance measuring wheel to achieve data communication, so a distance measuring wheel data transmission method and system based on Bluetooth is urgently needed. Summary of the invention
[0005] In order to solve the above-mentioned problems, the present invention provides a Bluetooth-based distance measuring wheel data transmission method and system.
[0006] In the first aspect, the present invention provides a Bluetooth-based distance measuring wheel data transmission method, which adopts the following technical solution:
[0007] A Bluetooth-based distance measuring wheel data transmission method, comprising:
[0008] Obtaining survey data information of the distance measuring wheel;
[0009] Set a Bluetooth chip and a 7442B chip on the distance measuring wheel;
[0010] Preprocess the distance measuring wheel survey data information based on 7442B chip;
[0011] Establish a Bluetooth Mesh network based on the Bluetooth chip on the distance measuring wheel;
[0012] Data communication between the distance measuring wheel and the receiving device is carried out through the Bluetooth chip and Bluetooth Mesh network;
[0013] The receiving device is used to receive the survey data information of the distance measuring wheel, extract the distance and speed parameters, and display the data.
[0014] Furthermore, the obtaining of the distance measuring wheel survey data information includes collecting travel and speed data using a distance measuring wheel sensor.
[0015] Further, the Bluetooth chip and the 7442B chip are arranged on the distance measuring wheel, including connecting the Bluetooth chip to the control circuit of the distance measuring wheel, installing the 7442B chip in the distance measuring wheel, wherein the output signal of the Bluetooth chip is connected to the input pin of the 7442B chip, using an appropriate cable or connector to ensure correct signal transmission; and connecting the output pin of the 7442B chip to the control circuit. The output pin of the Bluetooth chip is connected to the control circuit.
[0016] Furthermore, the preprocessing of the distance measuring wheel surveying data information includes using a 7442B chip to perform data conversion on the distance measuring wheel surveying data information.
[0017] Furthermore, the establishment of a Bluetooth Mesh network based on the Bluetooth chip on the ranging wheel includes establishing a network topology based on the physical layer and link layer of BLE, and setting nodes that can send and receive information.
[0018] Furthermore, the data communication via the Bluetooth chip and the Bluetooth Mesh network includes converting the pre-processed distance measuring wheel survey data information into a Bluetooth protocol format, and communicating with a receiving device via the Bluetooth communication protocol.
[0019] Furthermore, the pre-processed distance measuring wheel survey data information is converted into a Bluetooth protocol format, including forming a .txt file of the data measured by the distance measuring wheel through Bluetooth.
[0020] Furthermore, it also includes building a Bluetooth security encryption mechanism to encrypt data communications in the Bluetooth Mesh network.
[0021] In a second aspect, a Bluetooth-based distance measuring wheel data transmission system comprises:
[0022] A distance measuring wheel, a Bluetooth chip, a 7442B chip and a receiving device, wherein the Bluetooth chip and the 7442B chip are mounted in the control circuit of the distance measuring wheel, and the distance measuring wheel transmits data to the receiving device through the Bluetooth chip.
[0023] Furthermore, the distance measuring wheel includes a wheel body, a bearing, an encoder and a cable.
[0024] In summary, the present invention has the following beneficial technical effects:
[0025] 1. Wireless connection: Using Bluetooth to transmit data can achieve wireless connection between the distance measuring wheel and other devices. Compared with wired connection, wireless connection is more flexible and convenient, not subject to physical restrictions, and can be used for data transmission and application in a wider range.
[0026] 2. Real-time monitoring and feedback: Bluetooth data transmission can achieve real-time monitoring and feedback, allowing users to obtain data collected by the distance measuring wheel in a timely manner. This is very useful for real-time grasp of the location, travel and speed of vehicles or objects, and can help users make timely adjustments and decisions.
[0027] 3. Data sharing and interconnection: By transmitting data via Bluetooth, the distance measuring wheel can share and interconnect with other devices. For example, by transferring data to a smartphone or computer, further data processing, storage and analysis can be performed. This can expand the application field of distance measuring wheel data and link it with other systems or devices.
[0028] 4. Power saving and portability: The application of Bluetooth Low Energy (BLE) technology can reduce energy consumption and extend the battery life of the device. At the same time, wireless connection also improves the portability of the device, making the distance measuring wheel more suitable for various scenarios and environments.
[0029] 5. Data security and privacy protection: Bluetooth data transmission can use security mechanisms, such as encryption and authentication, to protect the security and privacy of transmitted data. This helps prevent unauthorized access and data leakage, and improves the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a flowchart of a Bluetooth-based distance measuring wheel data transmission method according to Embodiment 1 of the present invention. DETAILED DESCRIPTION
[0031] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0032] Example 1
[0033] The blue light LCD digital display has a backlight function, which allows clear reading of data and can display and record five digits.
[0034] The distance measuring wheel handle is equipped with functions of powering on, measuring, viewing data and clearing data.
[0035] Bluetooth transport protocols, including logical link control and adaptation protocol, radio frequency communication (RFCOMM) and service search protocol (SDP), provide segmentation and reassembly services.
[0036] 7442B chip, a BCD-Decimal decoder.
[0037] The Bluetooth chip cross-connects the serial port control pins of the main control chip and the Bluetooth chip, and has its own transparent transmission function, which regards the serial port of the main control chip as a serial port with wireless transmission.
[0038] Reference Figure 1, a Bluetooth-based distance measuring wheel data transmission method of this embodiment includes:
[0039] Obtaining survey data information of the distance measuring wheel;
[0040] Set a Bluetooth chip and a 7442B chip on the distance measuring wheel;
[0041] Preprocess the distance measuring wheel survey data information based on 7442B chip;
[0042] Establish a Bluetooth Mesh network based on the Bluetooth chip on the distance measuring wheel;
[0043] Data communication between the distance measuring wheel and the receiving device is carried out through the Bluetooth chip and Bluetooth Mesh network;
[0044] The receiving device is used to receive the survey data information of the distance measuring wheel, extract the distance and speed parameters, and display the data.
[0045] Specifically, the following steps are included:
[0046] S1. Obtaining the survey data information of the measuring wheel, including collecting the travel and speed data by using the measuring wheel sensor.
[0047] Among them, the method for measuring the distance between walls (i.e. the distance between point 1 and point 4) is: place the rear part of the wheel body close to the starting wall, push the measuring wheel in a straight line so that its front wheel reaches and presses against the destination wall, read the value at this time, and add the value of the wheel body diameter to get the distance between the two walls.
[0048] The method of measuring the distance from the wall to the point (i.e. the distance between point 1 and point 3) is as follows: place the rear of the wheel body close to the starting wall, push the distance measuring wheel in a straight line, and when it reaches the destination point, make the vertical needle point vertically to the destination point, read the value at this time and add the value of the wheel body radius.
[0049] The method of measuring the distance between points (i.e. the distance between point 2 and point 3) is as follows: point the vertical needle vertically to the starting point, push the distance measuring wheel in a straight line, and when it reaches the destination point, point the vertical needle vertically to the destination point, and read the value displayed at this time.
[0050] The measurement data obtained by the above measurement method will be stored in the internal memory of the distance measuring wheel, and the five data obtained will be temporarily stored.
[0051] S2. Arrange a Bluetooth chip and a 7442B chip on the distance measuring wheel, including connecting the Bluetooth chip to the control circuit of the distance measuring wheel and installing the 7442B chip into the distance measuring wheel. The output signal of the Bluetooth chip is connected to the input pin of the 7442B chip, and an appropriate cable or connector is used to ensure correct signal transmission; the output pin of the 7442B chip is connected to the control circuit. The output pin of the Bluetooth chip is connected to the control circuit.
[0052] S3. Preprocessing the distance measuring wheel survey data information, including using the 7442B chip to perform data conversion on the distance measuring wheel survey data information.
[0053] The decimal number measured by the distance measuring wheel is converted into a binary number using the "divide by 2 and take the remainder, and arrange in reverse order" method. The specific operation is: divide the decimal number by 2 to get the quotient and remainder, then use the remainder as the low-order significant bit of the binary number, and then use the quotient to continue to divide by 2 and take the remainder operation until the quotient is 0.
[0054] After getting the binary number, use the 7442B chip to convert it into a seven-segment display code. The 7442B chip is a binary-to-decimal decoder, which is mainly used to convert BCD (Binary-Coded Decimal) code into a seven-segment display code. Its main function is to convert the input binary code into the corresponding decimal information. In data conversion, using this feature, first input the obtained binary number into the 7442B chip, and then convert the binary number into a seven-segment display code through the conversion mechanism inside the chip. This conversion is the reverse process of encoding, which converts a set of binary codes into certain information.
[0055] In general, through the above two steps, that is, converting the decimal number to binary number first, and then using the 7442B chip to convert the binary number to a seven-segment display code, it is possible to convert the decimal number to a number that can be displayed on the seven-segment display intuitively and easily: the seven-segment display code can directly display numbers, which is very intuitive and easy to understand for humans, while binary and decimal data are not friendly to humans and need to be converted to understand their meaning.
[0056] The seven-segment display code can easily control the displayed numbers or characters. It has a fast response speed, small size, long life, high reliability, low power consumption, and is convenient for display on various devices. It is a coding method for displaying numbers.
[0057] S4. Establish a Bluetooth Mesh network based on the Bluetooth chip on the ranging wheel, including establishing a network topology based on the physical layer and link layer of BLE, and setting nodes that can send and receive information.
[0058] Among them, the Bluetooth Mesh network is a network topology built on the physical layer and link layer of BLE, which can support many-to-many communication. In the process of establishing a Mesh network, device nodes can send and receive information. When the device is connected to the gateway, the information can be relayed between nodes, allowing the message to be transmitted to a location farther than the normal transmission distance of radio waves.
[0059] Specifically, it is necessary to authenticate the unprovisioned device first to ensure that the device being provisioned is the one the user wants to access the network. Then, a secure link is established with the unprovisioned device, and relevant information is shared. Finally, the unprovisioned device becomes a node in the mesh network.
[0060] S5. Data communication is performed through the Bluetooth chip and the Bluetooth Mesh network, including converting the pre-processed distance measuring wheel survey data information into a Bluetooth protocol format, and communicating with a receiving device through the Bluetooth communication protocol.
[0061] The pre-processed distance measuring wheel survey data information is converted into a Bluetooth protocol format, including forming a .txt file through Bluetooth from the data measured by the distance measuring wheel.
[0062] It also includes building a Bluetooth security encryption mechanism to encrypt data communications in the Bluetooth Mesh network.
[0063] Among them, the encryption mechanism of Bluetooth Mesh network mainly relies on Elliptic Curve Diffie-Hallman asymmetric encryption and out-of-band authentication to ensure the safe addition of devices. Specifically, communication information needs to be encrypted and authenticated using 128-bit AES-CCM, and all messages transmitted in the Bluetooth Mesh network also need to be encrypted and authenticated.
[0064] During the pairing phase, one or more shared security codes are created. This is the basis for establishing a trust relationship between devices. Next is the bonding phase, which saves the security codes created during pairing to form a trusted device pair for subsequent device connections.
[0065] The device authentication phase is used to verify whether the two devices have a common security code, so as to determine whether the other party is a trustworthy device. Then comes the encryption phase, which uses the AES-CCM algorithm, including the CBC-MAC message authentication algorithm and the Counter (CTR) encryption mode to achieve message confidentiality. Finally, the purpose of the message integrity phase is to prevent the message from being forged or tampered with.
[0066] In addition, the unique security mechanism of classic Bluetooth (BR / EDR): Secure Simple Pairing simplifies the pairing process for users while maintaining and improving the security of Bluetooth wireless technology. Bluetooth Smart or Bluetooth Low Energy (BLE) was introduced after Bluetooth 4.0, which further improved Bluetooth security.
[0067] Example 2
[0068] This embodiment provides a Bluetooth-based distance measuring wheel data transmission system, including:
[0069] A distance measuring wheel, a Bluetooth chip, a 7442B chip and a receiving device, wherein the Bluetooth chip and the 7442B chip are mounted in a control circuit of the distance measuring wheel, and the distance measuring wheel transmits data to the receiving device via the Bluetooth chip. Further, the distance measuring wheel includes a wheel body, a bearing, an encoder and a cable.
[0070] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A Bluetooth-based distance measuring wheel data transmission method, characterized in that: include: Obtaining survey data information of the distance measuring wheel; A Bluetooth chip and a 7442B chip are set on the distance measuring wheel; the survey data information of the distance measuring wheel is preprocessed based on the 7442B chip; a Bluetooth Mesh network is established based on the Bluetooth chip on the distance measuring wheel; Data communication between the distance measuring wheel and the receiving device is carried out through the Bluetooth chip and the Bluetooth Mesh network; the receiving device receives the survey data information of the distance measuring wheel, extracts the distance and speed parameters, and displays the data; The obtaining of the distance measuring wheel survey data information includes collecting travel and speed data using a distance measuring wheel sensor; The step of arranging the Bluetooth chip and the 7442B chip on the distance measuring wheel comprises connecting the Bluetooth chip to the control circuit of the distance measuring wheel and installing the 7442B chip into the distance measuring wheel; Among them, the output signal of the Bluetooth chip is connected to the input pin of the 7442B chip, and a cable or connector is used to ensure correct signal transmission; the output pin of the 7442B chip is connected to the control circuit, and the output pin of the Bluetooth chip is connected to the control circuit; The preprocessing of the distance measuring wheel survey data information includes using a 7442B chip to perform data conversion on the distance measuring wheel survey data information; converting the decimal number measured by the distance measuring wheel into a binary number, using a "divide by 2, take the remainder, and arrange in reverse order" method, after obtaining the binary number, using the 7442B chip to convert it into a seven-segment display code; The Bluetooth Mesh network is established based on the Bluetooth chip on the ranging wheel, including establishing a network topology based on the physical layer and link layer of BLE, and setting nodes that can send and receive information; The data communication is performed through the Bluetooth chip and the Bluetooth Mesh network, including converting the pre-processed distance measuring wheel survey data information into a Bluetooth protocol format, and communicating with a receiving device through the Bluetooth communication protocol; The pre-processed distance measuring wheel survey data information is converted into a Bluetooth protocol format, including forming a .txt file through Bluetooth from the data measured by the distance measuring wheel; It also includes building a Bluetooth security encryption mechanism to encrypt data communications in the Bluetooth Mesh network, and ensure the secure addition of devices through elliptic curve Diffie-Hellman asymmetric encryption and out-of-band authentication; communication information needs to be encrypted and authenticated using 128-bit AES-CCM; in the pairing phase, one or more shared security codes are created; in the binding phase, the security code created in the pairing is saved; the device authentication phase is used to verify whether the two devices have a common security code, thereby determining whether the other party is a trustworthy device; then comes the encryption phase, which uses the AES-CCM algorithm, including the CBC-MAC message authentication algorithm and the Counter encryption mode to achieve message confidentiality. Finally, the purpose of the message integrity phase is to prevent the message from being forged or tampered with.
2. A Bluetooth-based distance measuring wheel data transmission system, executing the data transmission method according to claim 1, characterized in that: include: A distance measuring wheel, a Bluetooth chip, a 7442B chip and a receiving device, wherein the Bluetooth chip and the 7442B chip are mounted in the control circuit of the distance measuring wheel, and the distance measuring wheel transmits data to the receiving device through the Bluetooth chip.
3. A Bluetooth-based distance measuring wheel data transmission system according to claim 2, characterized in that: The distance measuring wheel comprises a wheel body, a bearing, an encoder and a cable.
