Data transmission method, device, equipment, medium and product
By performing forward error correction and mode mapping of the initial data packet in the communication module of the diagnostic device, the error problem caused by signal interference in Bluetooth data transmission is solved, the efficiency and reliability of data transmission are improved, and the success of the diagnostic process is ensured.
Patent Information
- Application Number
- CN202411289006.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-27
AI Technical Summary
During the Bluetooth data transmission process of diagnostic equipment and diagnostic box, data transmission errors caused by signal interference, resulting in failure of the diagnosis process. The prior art uses direct subcontracting and compression methods to effectively solve this problem.
By forward error correction of the initial transmission data packet in the communication module of the diagnostic device, the final transmission data packet is obtained, and the pattern map is performed based on the final transmission data packet, and sent to the diagnostic box for decompression to ensure the accuracy of data transmission.
It effectively solves the problem of failure caused by signal interference during data transmission, improves the efficiency and reliability of data transmission, and ensures the successful completion of the diagnostic process.
Smart Images

Figure CN119211380A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data transmission method, device, equipment, medium and product. Background Art
[0002] During the Bluetooth data transmission between the diagnostic equipment and the diagnostic box, data errors often occur, resulting in diagnostic failures. After adopting the new version of Bluetooth technology, Bluetooth reliability and anti-interference have been improved, but it is still easy to have errors in the transmission of important files. This is due to interference from electromagnetic radiation from other wireless technologies and electronic devices in the same frequency band. These interferences may cause data transmission failures.
[0003] The reason for the above problems is that the existing technology adopts the method of direct subpackaging and compression, which is easy to cause data transmission errors due to interference from other data sources, resulting in failure of the maintenance process. Therefore, a method is needed to solve the problem of data transmission failure caused by signal interference during Bluetooth data transmission.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a data transmission method, device, equipment, medium and product, aiming to solve the technical problem of data transmission failure due to signal interference during data transmission.
[0006] To achieve the above object, the present application proposes a data transmission method, which is applied to a diagnostic device, the diagnostic device includes a first communication module, and the method includes:
[0007] Performing forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet;
[0008] Mode mapping is performed based on the final transmission data packet to obtain a mapping result, and the mapping result is transmitted to the diagnosis box, which decompresses the mapping result based on the diagnosis box to obtain transmission data.
[0009] In one embodiment, the step of performing forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet includes:
[0010] Verifying the receiving address of the initial transmission data packet to obtain a verification result;
[0011] If the verification result is passed, analyzing whether the cyclic redundancy check code CRC of the initial transmission data packet is correct;
[0012] When the CRC is passed, forward error correction is performed on the initial transmission data packet to obtain a final transmission data packet.
[0013] In one embodiment, the step of performing forward error correction on the initial transmission data packet to obtain a final transmission data packet includes:
[0014] Performing data whitening on the initial transmission data packet to obtain the data whitened initial transmission data packet;
[0015] Performing forward error coding on the initial transmission data packet after the data whitening to obtain transmission error data bits;
[0016] Encoding the initial transmission data packet by using the transmission error data bit to obtain an encoding result;
[0017] When the encoding result is encoding completion, a final transmission data packet is obtained.
[0018] In one embodiment, the step of performing mode mapping based on the final transmission data packet to obtain a mapping result and transmitting the mapping result to the diagnosis box includes:
[0019] Selecting a mode based on the data volume of the final transmission data packet and the transmission distance between the diagnosis box and the diagnosis device to obtain a transmission mode;
[0020] Performing pattern mapping on the final transmission data packet and the transmission error data bit to obtain a mapping result;
[0021] Based on the transmission mode, the mapping result is sent to the diagnostic box.
[0022] In addition, to achieve the above purpose, the present application also proposes a data transmission method, which is applied to a diagnostic box, the diagnostic box includes a second communication module, and the method includes:
[0023] Receiving, through the second communication module, a mapping result sent by the diagnostic device, the mapping result being obtained by the diagnostic device performing pattern mapping based on a final transmission data packet, the final transmission data packet being obtained by performing forward error correction on a preset initial transmission data packet through the first communication module of the diagnostic device;
[0024] Decompression is performed based on the mapping result to obtain transmission data.
[0025] In one embodiment, the mapping result includes a final transmission data packet and a transmission error data bit, and the step of decompressing based on the mapping result to obtain the transmission data includes:
[0026] Performing an integrity check on the final transmission data packet to obtain an integrity check result;
[0027] When the integrity check result is passed, performing error verification on the final transmission data packet based on the transmission error data bit to obtain a verification result;
[0028] When the verification result is passed, the final transmission data packet is decompressed to obtain transmission data.
[0029] In addition, to achieve the above-mentioned purpose, the present application also proposes a data transmission device, which is applied to a diagnostic device, the diagnostic device includes a first communication module, and the device includes:
[0030] An error correction module, used to perform forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet;
[0031] The transmission module is used to perform mode mapping based on the final transmission data packet to obtain a mapping result, and transmit the mapping result to the diagnosis box, which decompresses the mapping result based on the mapping result to obtain transmission data.
[0032] In addition, to achieve the above objectives, the present application also proposes a data transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data transmission method described above.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data transmission method described above are implemented.
[0034] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data transmission method described above are implemented.
[0035] One or more technical solutions proposed in this application have at least the following technical effects:
[0036] The embodiment of the present application proposes a data transmission method, device, equipment, storage medium and computer program product, which performs forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet; performs pattern mapping based on the final transmission data packet to obtain a mapping result, and transmits the mapping result to the diagnosis box, which decompresses the mapping result to obtain the transmission data. Thus, forward error correction is performed on the data packet to be transmitted through the first communication module to obtain a final transmission data packet, and then pattern mapping is performed based on the transmission data packet, and finally the result of the pattern mapping is sent to the diagnosis box, which decompresses the mapping result to obtain the transmission data, which solves the problem of data transmission failure due to signal interference during data transmission and improves the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 A flowchart of the first embodiment of the data transmission method of the present application is provided;
[0040] Figure 2 A flowchart of the second embodiment of the data transmission method of the present application is provided;
[0041] Figure 3 A brief flowchart of the data transmission method provided in Example 2 of the present application;
[0042] Figure 4 This is a schematic diagram of the module structure of the data transmission device according to an embodiment of the present application;
[0043] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the data transmission method in the embodiment of the present application.
[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0046] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0047] The main solution of the embodiment of the present application is: verify the receiving address of the initial transmission data packet to obtain a verification result; if the verification result is passed, analyze whether the cyclic redundancy check code CRC of the initial transmission data packet is correct; if the CRC is passed, perform forward error correction on the initial transmission data packet to obtain a final transmission data packet. Perform data whitening on the initial transmission data packet to obtain the initial transmission data packet after data whitening; perform forward error coding on the initial transmission data packet after data whitening to obtain transmission error data bits; encode the initial transmission data packet through the transmission error data bits to obtain an encoding result; if the encoding result is encoding completion, obtain the final transmission data packet. Perform mode selection based on the data volume of the final transmission data packet and the transmission distance between the diagnostic box and the diagnostic device to obtain a transmission mode; perform mode mapping on the final transmission data packet and the transmission error data bits to obtain a mapping result; based on the transmission mode, send the mapping result to the diagnostic box. The mapping result sent by the diagnostic device is received by the second communication module, and the mapping result is obtained by the diagnostic device performing mode mapping based on the final transmission data packet, and the final transmission data packet is obtained by forward error correction of the preset initial transmission data packet by the first communication module of the diagnostic device; decompression is performed based on the mapping result to obtain transmission data. The final transmission data packet is integrity checked to obtain an integrity check result; when the integrity check result is passed, the final transmission data packet is error verified based on the transmission error data bit to obtain a verification result; when the verification result is passed, the final transmission data packet is decompressed to obtain transmission data. Thus, the problem of data transmission failure due to signal interference during data transmission is solved, data transmission is realized, and the efficiency of data transmission is improved. Based on the scheme of the present invention, a data transmission method is designed based on the problem that data errors often occur during the Bluetooth data transmission between the diagnostic device and the diagnostic box in reality, resulting in the failure of diagnosis during the diagnosis process, and the accuracy of the data transmission result cannot be guaranteed, thereby the problem of low efficiency. The effectiveness of the data transmission method of the present invention is verified when the data is transmitted, and finally the efficiency of data transmission through the method of the present invention is significantly improved.
[0048] In this embodiment, for the convenience of description, the following description is made with the data transmission device as the execution subject.
[0049] Since the new version of Bluetooth technology is adopted in the existing technology, the reliability and anti-interference of Bluetooth have been improved, but it is still easy for important files to need to be transmitted. Interference from electromagnetic radiation of other wireless technologies and electronic devices in the same frequency band may cause data transmission failure. Specifically, the existing technology adopts the method of direct packetization and compression. Due to interference from other data sources, data transmission errors may occur easily, resulting in the failure of the user's vehicle maintenance process through the diagnostic box. At this time, it is necessary to optimize the communication transmission process to improve the reliability and anti-interference of data transmission.
[0050] The present application provides a solution, which uses convolutional forward error correction coding technology to correct errors occurring in transmitted data during Bluetooth data transmission, thereby increasing the reliability and anti-interference of the data transmission process and providing users with better services.
[0051] It can be seen from the above embodiments that the present application performs forward error correction on the preset initial transmission data packet through the first communication module to obtain a final transmission data packet; performs pattern mapping based on the final transmission data packet to obtain a mapping result, and transmits the mapping result to the diagnostic box, which decompresses the mapping result to obtain the transmission data. Thus, forward error correction is performed on the data packet to be transmitted through the first communication module to obtain a final transmission data packet, and then pattern mapping is performed based on the transmission data packet, and finally the result of the pattern mapping is sent to the diagnostic box, which decompresses the mapping result to obtain the transmission data, thereby solving the problem of data transmission failure due to signal interference during data transmission and improving the efficiency of data transmission.
[0052] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a data transmission device, etc. The following takes a data transmission device as an example to illustrate this embodiment and the following embodiments.
[0053] Based on this, the embodiment of the present application provides a data transmission method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the data transmission method of the present application.
[0054] In this embodiment, the data transmission method is applied to a diagnostic device, the diagnostic device includes a first communication module, and the method includes steps S01 to S02:
[0055] Step S01, performing forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet;
[0056] Before explaining the present embodiment, it should be clear that the problem addressed by the present embodiment is that data errors often occur during Bluetooth data transmission between the diagnostic device and the diagnostic box, resulting in diagnostic failure during the diagnostic process. After adopting the new version of Bluetooth technology, Bluetooth reliability and anti-interference have been improved, but errors in the transmission of important files are still prone to occur. This is due to interference from electromagnetic radiation from other wireless technologies and electronic devices in the same frequency band, which may cause data transmission failure.
[0057] The reason for the above problems is that the existing technology adopts the method of direct subpackaging and compression, which is easy to cause data transmission errors due to interference from other data sources, resulting in failure of the maintenance process. Therefore, a method is needed to solve the problem of data transmission failure caused by signal interference during Bluetooth data transmission.
[0058] When the actual diagnostic device transmits Bluetooth data to the diagnostic box via Bluetooth, compared with the low-power mesh network technology in the prior art that packets and compresses diagnostic data, the Bluetooth mesh data packets used in this embodiment are usually smaller and transmitted at a higher data rate, which can more efficiently use the spectrum and significantly reduce the possibility of conflict.
[0059] Therefore, when the diagnostic device in this embodiment sends data, forward error correction is performed on the initial transmission data packet through the first communication module, that is, the Bluetooth module, wherein Bluetooth is a wireless communication technology that aims to achieve data exchange between devices within a short distance. It is often used to connect various devices, such as headphones, keyboards, mice, mobile phones, and computers, etc., and the initial data packet can be generated by the diagnostic device after receiving the user's data transmission instruction, or it can be pre-recorded device information, etc. The specific initial data packet includes the device information of the diagnostic device, the transmitted identification information, and the vehicle's diagnostic information, etc.
[0060] The forward error correction (FEC) performed by the first communication module on the initial transmission data packet in this embodiment is a technology used to improve the reliability of the communication system. Its main goal is to add redundant information to the data during the data transmission process so that the receiving end can correct errors when they occur without retransmitting the data. This is particularly important for unstable communication environments or applications with high real-time requirements.
[0061] Step S02, performing pattern mapping based on the final transmission data packet to obtain a mapping result, and transmitting the mapping result to the diagnosis box, which decompresses the mapping result based on the mapping result to obtain transmission data.
[0062] After obtaining the final transmission data packet, the final transmission data packet is pattern mapped to obtain the mapping result, and then the mapping result is transmitted to the diagnostic box, which verifies and decompresses based on the mapping result to obtain the transmission data for diagnosis. In Bluetooth data transmission, pattern mapping involves how to transfer data between different transmission modes and protocol layers, mainly including: broadcast mode (devices broadcast data packets regularly, and other devices can scan and receive these broadcast information. This mode is mainly used for device discovery and simple data transmission), connection mode (devices exchange data by establishing connections. This mode includes master device (Centra l) and slave device (Peripheral), as well as specific connection parameter settings, such as connection interval and timeout), data channel mode (in connection mode, data is transmitted through the main data channel and the backup data channel. The mapping of the data channel mode determines how the data is transferred between devices) and protocol layer mapping (different Bluetooth protocol layers, such as the link layer, L2CAP, RFCOMM, and GATT are responsible for different data processing functions, from link management to data segmentation, virtual serial port simulation and application data transmission. These mode mappings ensure the effective transmission and processing of data from the application layer to the physical layer).
[0063] Specifically, in the above step S01, the step of performing forward error correction on the preset initial transmission data packet by the first communication module to obtain the final transmission data packet includes:
[0064] Step S011, verifying the receiving address of the initial transmission data packet to obtain a verification result;
[0065] Step S012, when the verification result is passed, analyzing whether the cyclic redundancy check code CRC of the initial transmission data packet is correct;
[0066] Step S013, when the CRC is passed, forward error correction is performed on the initial transmission data packet to obtain a final transmission data packet.
[0067] First of all, the first communication module in this embodiment, Bluetooth 5, in addition to supporting 1Mbps and 2Mbps hardware physical layer (phy), also supports two encoding phys, namely 500kbps (s=2 encoding) and 125kbps (s=8 encoding). In these encoding phys, CI (Coding Indicator), term1 and term2 are added, among which CI and termx constitute the FEC (Forward Error Correction) block, and FEC is used to recover the erroneous data bits during the transmission process to improve the receiving sensitivity.
[0068] During the data stream transmission process of the encoded phy, the received access address (receiving address) will first be checked to see if it is correct. If it is wrong, the data packet will be discarded. When the receiving address is correct, an error check, namely CRC (Cyclic Redundancy Check) check, will be performed to check whether the 24-bit CRC of the entire data packet is completely consistent. Among them, CRC check (Cyclic Redundancy Check) is an error detection technology widely used in data communication and storage to ensure data integrity. CRC treats the data as a polynomial and then divides it to generate a check value called a CRC code.
[0069] When the CRC check also passes, forward error correction is performed on the initial transmission data packet to obtain a final transmission data packet.
[0070] More specifically, the above step S013, performing forward error correction on the initial transmission data packet to obtain the final transmission data packet, includes:
[0071] Step S0131, performing data whitening on the initial transmission data packet to obtain the data whitened initial transmission data packet;
[0072] Step S0132, performing forward error coding on the initial transmission data packet after data whitening to obtain transmission error data bits;
[0073] Step S0133, encoding the initial transmission data packet by using the transmission error data bit to obtain an encoding result;
[0074] Step S0134, when the encoding result is encoding completed, obtain the final transmission data packet.
[0075] In the above-mentioned embodiment, it is clear that the first communication module includes an FEC block, so data whitening can be performed after the receiving address check and CRC check of the initial transmission data packet. The purpose is to reasonably encode the transmitted data when encountering a continuous 0 or 1 sequence, thereby reducing the transmission of long strings of repeated sequence data. Data whitening is a data preprocessing technology that aims to eliminate redundancy or correlation in the data to make the data more "white", that is, the characteristics of the data are statistically more independent and uniform.
[0076] Next comes the key coding, forward error coding. This coding algorithm enables the receiver to recover the transmission error data bits in the data packet by encoding the original data to obtain a new data stream. Even if the new data stream has individual bit data errors during the transmission process, FEC decoding can restore the original data, thereby improving the transmission bit error rate. After the above coding is completed, the final transmission data packet for transmission can be obtained.
[0077] After the above-mentioned final data packet is acquired, data transmission can be performed. Therefore, further, the above-mentioned step S02, the step of performing pattern mapping based on the final transmission data packet, obtaining a mapping result, and transmitting the mapping result to the diagnosis box includes:
[0078] Step S021, selecting a mode based on the data volume of the final transmission data packet and the transmission distance between the diagnosis box and the diagnosis device to obtain a transmission mode;
[0079] Step S022, performing pattern mapping on the final transmission data packet and the transmission error data bit to obtain a mapping result;
[0080] Step S023: Based on the transmission mode, the mapping result is sent to the diagnosis box.
[0081] It should be clear that in the actual data transmission process, there are distance factors and device communication protocol factors. Therefore, before performing mode mapping, this embodiment also needs to determine the corresponding transmission mode. In this embodiment, the output method is divided into two modes (psymbols): one is p=1 (s=2), and the other is p=4 (s=8). After encoding with s=2 or s=8, the receiving sensitivity can be improved by 4-6dBm, and the distance is correspondingly increased by 2-4 times. For example, when 125kbps uses the s=8 mode, the transmission distance is increased by 4 times relative to traditional Bluetooth, but when transmitting the same data packet, the power consumption of the encoded phy is higher than that of the 1Mbps phy (because the packet length specified by ble is the same, part of the payload becomes FEC data, and the actual effective transmission data is reduced). When 500kbps uses the s=2 mode, the transmission distance is increased by 2 times relative to traditional Bluetooth
[0082] The last step is pattern mapping, which mainly involves converting specific signals, data or behavior patterns from one level or format to another level or format to achieve effective communication and data transmission. Therefore, in this embodiment, the forward error coding data is sorted and output through pattern mapping, and then the mapping result is obtained based on the final transmission data packet and the sorted forward error coding. It can be clearly seen that the mapping result and transmission mode in this embodiment are determined based on the final transmission data packet, diagnostic box information and transmission distance, and can be changed according to actual business needs.
[0083] After the mapping result and the transmission mode are determined, the mapping result can be sent to the diagnosis box based on the transmission mode.
[0084] This embodiment uses the above scheme, specifically, by performing forward error correction on the preset initial transmission data packet through the first communication module to obtain a final transmission data packet; performing pattern mapping based on the final transmission data packet to obtain a mapping result, and transmitting the mapping result to the diagnosis box, which decompresses the data based on the mapping result to obtain the transmission data. Thus, by performing forward error correction on the data packet to be transmitted through the first communication module to obtain a final transmission data packet, then performing pattern mapping based on the transmission data packet, and finally sending the result of the pattern mapping to the diagnosis box, which decompresses the data based on the mapping result to obtain the transmission data, the problem of data transmission failure caused by signal interference during the data transmission process is solved, and the efficiency of data transmission is improved.
[0085] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 In this embodiment, a data transmission method is also provided. The data transmission method is applied to a diagnostic box. The diagnostic box includes a second communication module. The method includes steps S03 to S04:
[0086] Step S03, receiving a mapping result sent by the diagnostic device through the second communication module, the mapping result is obtained by the diagnostic device performing pattern mapping based on a final transmission data packet, and the final transmission data packet is obtained by forward error correction of a preset initial transmission data packet by the first communication module of the diagnostic device;
[0087] Step S04: decompress based on the mapping result to obtain transmission data.
[0088] In the above-mentioned embodiment, it is understood that the mapping result is obtained by the diagnostic device performing pattern mapping based on the final transmission data packet. Therefore, the diagnostic box in this embodiment receives the mapping result sent by the diagnostic device through the second communication module. It should be clear that the diagnostic box refers to a device or tool used to detect and diagnose various problems or faults. The diagnostic box in this embodiment refers to a car diagnostic box, and its functions include: being used to detect the fault code of the car, monitoring the status of various systems of the vehicle (such as the engine, transmission, brake system, etc.), and being used by connecting to the OBD-II (on-board diagnostic system) interface of the vehicle, reading the fault code, displaying real-time data, and helping technicians to quickly diagnose problems.
[0089] After the diagnosis box receives the mapping result, it decompresses and verifies the mapping result to obtain the transmission data.
[0090] Specifically, the above step S04, the step of decompressing based on the mapping result to obtain the transmission data includes:
[0091] Step S041, performing integrity check on the final transmission data packet to obtain an integrity check result;
[0092] Step S042, when the integrity check result is passed, error verification is performed on the final transmission data packet based on the transmission error data bit to obtain a verification result;
[0093] Step S043, when the verification result is passed, decompress the final transmission data packet to obtain transmission data.
[0094] It should be clear that the mapping result includes at least the final transmission data packet and the transmission error data bits, etc., so the integrity check of the final transmission data packet is first performed. The integrity check of the data packet is the process of ensuring that the data has not been tampered with or damaged during the transmission process. This check is usually used in network communications, data storage and other data transmission scenarios to verify the integrity of the data.
[0095] If the integrity check result is passed, the final transmission data packet is error-verified based on the transmission error data bit to determine whether there is an error in the data in the current final transmission data packet. If the verification result is passed, the final transmission packet can be decompressed to obtain the transmission data.
[0096] This embodiment uses the above scheme, specifically receives the mapping result sent by the diagnostic device through the second communication module, the mapping result is obtained by the diagnostic device performing pattern mapping based on the final transmission data packet, and the final transmission data packet is obtained by forward error correction of the preset initial transmission data packet by the first communication module of the diagnostic device; decompression is performed based on the mapping result to obtain the transmission data. Thus, forward error correction is performed on the data packet to be transmitted through the first communication module to obtain the final transmission data packet, and then pattern mapping is performed based on the transmission data packet, and finally the result of the pattern mapping is sent to the diagnostic box, which is decompressed based on the mapping result to obtain the transmission data, thereby solving the problem of data transmission failure due to signal interference during data transmission and improving the efficiency of data transmission.
[0097] For example, to help understand the implementation process of the data transmission method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flow chart of a data transmission method is provided, specifically:
[0098] First, in the diagnostic device, forward error correction is performed on the initial data packet through the first communication module to obtain a final data packet;
[0099] Then, the final data packet is pattern mapped to obtain a mapping result;
[0100] Finally, the mapping result is decompressed by the second communication module in the diagnosis box to obtain transmission data.
[0101] The use of the above error correction coding technology allows Bluetooth to increase the distance while maintaining the same power consumption of the transmitter, and improves the carrier-to-interference ratio performance of the receiver.
[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the data transmission method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0103] This application also provides a data transmission device, please refer to Figure 4 , the device is applied to a diagnostic device, the diagnostic device includes a first communication module, and the device includes:
[0104] The error correction module 10 is used to perform forward error correction on the preset initial transmission data packet through the first communication module to obtain a final transmission data packet;
[0105] The transmission module 20 is used to perform mode mapping based on the final transmission data packet to obtain a mapping result, and transmit the mapping result to the diagnosis box, which decompresses the mapping result based on the mapping result to obtain transmission data.
[0106] The data transmission device provided by the present application adopts the data transmission method in the above embodiment, which can solve the technical problem of data transmission failure due to signal interference during data transmission. Compared with the prior art, the beneficial effects of the data transmission device provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, and other technical features in the data transmission device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0107] The present application provides a data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data transmission method in the above-mentioned embodiment one.
[0108] Reference below Figure 5 , which shows a schematic diagram of the structure of a data transmission device suitable for implementing the embodiment of the present application. The data transmission device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The data transmission device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0109] like Figure 5As shown, the data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the data transmission device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the data transmission device to communicate with other devices wirelessly or by wire to exchange data. Although the data transmission device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0110] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0111] The data transmission device provided by the present application adopts the data transmission method in the above embodiment, which can solve the technical problem of data transmission failure due to signal interference during data transmission. Compared with the prior art, the beneficial effects of the data transmission device provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, and other technical features in the data transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0112] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0113] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0114] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the data transmission method in the above-mentioned embodiment.
[0115] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0116] The computer-readable storage medium may be included in the data transmission device; or may exist independently without being assembled into the data transmission device.
[0117] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data transmission device, the data transmission device: performs forward error correction on the preset initial transmission data packet through the first communication module to obtain a final transmission data packet; performs pattern mapping based on the final transmission data packet to obtain a mapping result, and transmits the mapping result to the diagnostic box, which decompresses the mapping result based on the mapping result to obtain transmission data.
[0118] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0121] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned data transmission method, and can solve the technical problem of data transmission failure due to signal interference during data transmission. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the data transmission method provided by the above-mentioned embodiment, and will not be repeated here.
[0122] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor.
[0123] The computer program product provided by the present application can solve the technical problem of data transmission failure due to signal interference during data transmission. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the data transmission method provided by the above embodiment, which will not be repeated here.
[0124] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The method is applied to a diagnostic device, the diagnostic device includes a first communication module, and the method includes: Performing forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet; Mode mapping is performed based on the final transmission data packet to obtain a mapping result, and the mapping result is transmitted to the diagnosis box, which decompresses the mapping result based on the diagnosis box to obtain transmission data.
2. The method according to claim 1, characterized in that The step of performing forward error correction on a preset initial transmission data packet by the first communication module to obtain a final transmission data packet comprises: Verifying the receiving address of the initial transmission data packet to obtain a verification result; If the verification result is passed, analyzing whether the cyclic redundancy check code CRC of the initial transmission data packet is correct; When the CRC is passed, forward error correction is performed on the initial transmission data packet to obtain a final transmission data packet.
3. The method according to claim 2, characterized in that The step of performing forward error correction on the initial transmission data packet to obtain a final transmission data packet comprises: Performing data whitening on the initial transmission data packet to obtain the data whitened initial transmission data packet; Performing forward error coding on the initial transmission data packet after the data whitening to obtain transmission error data bits; Encoding the initial transmission data packet by using the transmission error data bit to obtain an encoding result; When the encoding result is encoding completion, a final transmission data packet is obtained.
4. The method according to claim 3, characterized in that The step of performing mode mapping based on the final transmission data packet to obtain a mapping result and transmitting the mapping result to the diagnosis box comprises: Selecting a mode based on the data volume of the final transmission data packet and the transmission distance between the diagnosis box and the diagnosis device to obtain a transmission mode; Performing pattern mapping on the final transmission data packet and the transmission error data bit to obtain a mapping result; Based on the transmission mode, the mapping result is sent to the diagnostic box.
5. A data transmission method, characterized in that: The data transmission method is applied to a diagnostic box, the diagnostic box includes a second communication module, and the method includes: Receiving, through the second communication module, a mapping result sent by the diagnostic device, the mapping result being obtained by the diagnostic device performing pattern mapping based on a final transmission data packet, the final transmission data packet being obtained by performing forward error correction on a preset initial transmission data packet through the first communication module of the diagnostic device; Decompression is performed based on the mapping result to obtain transmission data.
6. The method according to claim 5, characterized in that The mapping result includes a final transmission data packet and a transmission error data bit, and the step of decompressing based on the mapping result to obtain the transmission data includes: Performing an integrity check on the final transmission data packet to obtain an integrity check result; When the integrity check result is passed, performing error verification on the final transmission data packet based on the transmission error data bit to obtain a verification result; When the verification result is passed, the final transmission data packet is decompressed to obtain transmission data.
7. A data transmission device, characterized in that: The device is applied to a diagnostic device, the diagnostic device includes a first communication module, and the device includes: An error correction module, used to perform forward error correction on a preset initial transmission data packet through the first communication module to obtain a final transmission data packet; The transmission module is used to perform mode mapping based on the final transmission data packet to obtain a mapping result, and transmit the mapping result to the diagnosis box, which decompresses the mapping result based on the mapping result to obtain transmission data.
8. A data transmission device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data transmission method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 6 are implemented.