Data transmission and receiving method and related device
By cropping and balanced code conversion of the original neural signal data frames in the wireless brain-computer interface system, the problem of Manchester encoding bandwidth waste is solved, and the data transmission efficiency and BCI system performance are improved.
Patent Information
- Application Number
- CN202410936294.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-01
AI Technical Summary
Manchester encoding causes bandwidth waste and low data transmission efficiency in wireless brain-computer interface systems, which limits the performance improvement of BCI systems.
By cropping the original neural signal data frame, the data length of the data packet is adjusted to 12 bits, and converted into a 16-bit balanced code according to the preset lookup table, and a check bit is added to the end of the frame to improve Data transmission efficiency.
Significantly improves the bandwidth utilization of data transmission, improves the performance of the BCI system, and ensures efficient data transmission and low power consumption.
Smart Images

Figure CN118740334A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a data transmission and receiving method and related devices. Background Art
[0002] How to achieve high-precision acquisition and data transmission of wireless neural signals in BCI systems (i.e., wireless brain-computer interface systems) is critical for human-computer interaction. At present, Manchester coding is usually used to encode data for brain-computer interface data transmission. Manchester coding is a common data transmission method. Due to its self-synchronization characteristics, this coding method is widely used in communication systems that require clock synchronization. However, each bit of data in Manchester coding requires two clock cycles to represent, which results in a waste of bandwidth, thereby reducing data transmission efficiency and limiting the performance improvement of the BCI system. Summary of the invention
[0003] In view of the above problems, the present application provides a data transmission and receiving method and related devices to achieve the purpose of improving bandwidth utilization and transmission efficiency. The specific scheme is as follows:
[0004] The first aspect of the present application provides a data transmission method, comprising:
[0005] Performing a trimming process on a data content portion of the received original neural signal data frame to obtain a first data content, wherein the data length of each group of data packets in the first data content is 12 bits;
[0006] According to the correspondence between the first data and the second data in the preset lookup table, the data in each group of data packets is converted into a balanced code with a length of 16 bits to obtain the second data content, wherein the first data is data with a data length of 12 bits, and the second data is a balanced code with a data length of 16 bits;
[0007] After partially replacing the data content in the original neural signal data frame with the second data content, a first neural signal data frame is obtained, and the first neural signal data frame is sent.
[0008] In a possible implementation, before converting the data in each group of data packets into a balanced code with a length of 16 bits according to the correspondence between the first data and the second data in the preset lookup table to obtain the second data content, the method further includes:
[0009] Channel coding is performed on the data in each group of data packets, and a check bit of the channel coding is added to the end of the frame of the original neural signal data frame.
[0010] In a possible implementation, the data transmission method further includes:
[0011] Performing a zero padding operation on the frame tail according to a preset data length of the data frame to obtain a frame tail of a target length;
[0012] According to the correspondence between the first data and the second data in the preset lookup table, converting the frame tail of the target length into a corresponding number of balanced codes;
[0013] The corresponding number of balancing codes is added to the end of the first neural signal data frame.
[0014] In a possible implementation, the clipping of the data content portion in the received original neural signal data frame includes:
[0015] According to the data length of each group of data packets in the data content part, data of corresponding length in each group of data packets is discarded, so that the data length of each group of data packets is 12 bits.
[0016] A second aspect of the present application provides a data receiving method, comprising:
[0017] receiving a second neural signal data frame sent by a transmitting end;
[0018] According to the correspondence between the first data and the second data in the preset lookup table, converting the data of each group of data packets in the data content part of the second neural signal data frame into data with a length of 12 bits;
[0019] Each 12-bit data is padded with 0 to restore the data after the data content part in the original neural signal data frame is cropped.
[0020] In a possible implementation, the data receiving method further includes:
[0021] According to the correspondence between the first data and the second data in the preset lookup table and the corresponding zero-filling operation rule, a check bit is restored from the end of the second neural signal data frame.
[0022] In a possible implementation, before performing a zero-filling operation on each 12-bit data obtained to restore the data after the data content part in the original neural signal data frame is trimmed, the method further includes:
[0023] Channel decoding is performed on each data with a length of 12 bits according to the restored check bits.
[0024] A third aspect of the present application provides a data transmission device, including:
[0025] A data cutting module, used for cutting a data content part in the received original neural signal data frame to obtain a first data content, wherein the data length of each group of data packets in the first data content is 12 bits;
[0026] a first conversion module, configured to convert the data in each group of data packets into a balanced code with a length of 16 bits according to a correspondence between the first data and the second data in a preset lookup table, to obtain second data content, wherein the first data is data with a data length of 12 bits, and the second data is a balanced code with a data length of 16 bits; and
[0027] A data sending module is used to replace part of the data content in the original neural signal data frame with the second data content to obtain a first neural signal data frame, and send the first neural signal data frame.
[0028] A fourth aspect of the present application provides a data receiving device, including:
[0029] A data receiving module, used for receiving a second neural signal data frame sent by a transmitting end;
[0030] A second conversion module, configured to convert the data of each group of data packets in the data content part of the second neural signal data frame into data with a length of 12 bits according to the correspondence between the first data and the second data in the preset lookup table; and
[0031] The data restoration module is used to perform a 0-filling operation on each 12-bit data obtained to restore the data after the data content part in the original neural signal data frame is cut.
[0032] A fifth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0033] The memory is used to store computer programs;
[0034] The processor is used to execute the computer program so that the electronic device can implement the data transmission method of the first aspect or any implementation of the first aspect, or the data receiving method of the second aspect or any implementation of the second aspect.
[0035] In a sixth aspect, the present application provides a computer program product, comprising computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the data transmission method of the first aspect or any implementation of the first aspect, or the data receiving method of the second aspect or any implementation of the second aspect.
[0036] In a seventh aspect, the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can use the data transmission method of the first aspect or any implementation of the first aspect, or the data receiving method of the second aspect or any implementation of the second aspect.
[0037] By means of the above technical solution, the data transmission and reception method provided by the present application adjusts the data of each group of data packets in the data content to 12-bit data by cutting the data content part in the collected original neural signal data frame. Then, according to the correspondence between 12-bit data and 16-bit length data in the preset lookup table, the data in each group of data packets is converted into a balanced code with a length of 16 bits, and then the data content part in the original neural signal data frame is replaced with the second data content to obtain the first neural signal data frame, and the first neural signal data frame is sent. Compared with the transmission method based on Manchester coding, by efficiently converting 12-bit original data into 16-bit coded data for transmission, the bandwidth utilization of data transmission can be significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0039] Figure 1 A structural diagram of a data transmission system provided for this application;
[0040] Figure 2 A structural diagram of a terminal provided for this application;
[0041] Figure 3 A structural diagram of a server provided for this application;
[0042] Figure 4 A flowchart of the data transmission method provided by this application;
[0043] Figure 5 A flowchart of the data receiving method provided by this application;
[0044] Figure 6 Flowchart of data transmission and reception provided for this application;
[0045] Figure 7 A flowchart of serial data processing provided for this application;
[0046] Figure 8A structural diagram of the data transmission device provided by this application;
[0047] Fig. 9 A structural diagram of a data receiving device provided by the present application;
[0048] Fig.10 This is a structural diagram of the electronic device provided for this application. DETAILED DESCRIPTION
[0049] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0050] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0051] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0052] See also Figure 1 , Figure 1 1 shows a schematic diagram of a data transmission system architecture. The system may include a terminal 100 and a server 200. The server 200 may include one or more servers ( Figure 1 In the example, a server is included, and the server 200 can provide the method provided in the embodiment of the present application for one or more terminals.
[0053] Among them, a data transmission application can be installed on the terminal 100. The above application and web page can provide an interface. The terminal 100 can receive relevant parameters entered by the user on the transmission parameter setting interface and send the above parameters to the server 200. The server 200 can obtain processing results based on the received parameters and return the processing results to the terminal 100.
[0054] It should be understood that in some optional implementations, the terminal 100 can also complete the action of obtaining the processing result based on the received parameters by itself without the cooperation of the server, and the embodiments of the present application are not limited to this.
[0055] Next describe Figure 1 The product form of the mid-terminal 100;
[0056] The terminal 100 in the embodiment of the present application can be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc., and the embodiment of the present application does not impose any limitation on this.
[0057] Figure 2 An optional hardware structure diagram of the terminal 100 is shown.
[0058] refer to Figure 2 As shown, the terminal 100 may include a radio frequency unit 110, a memory 120, an input unit 130, a display unit 140, a camera 150 (optional), an audio circuit 160 (optional), a speaker 161 (optional), a microphone 162 (optional), an earphone jack 163 (optional), a processor 170, an external interface 180, a power supply 190 and other components. Those skilled in the art will appreciate that Figure 2 These are merely examples of terminals or multi-function devices and do not constitute limitations on the terminals or multi-function devices, which may include more or fewer components than those shown in the figures, or combinations of certain components, or different components.
[0059] The input unit 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the portable multifunctional device. Specifically, the input unit 130 may include a touch screen 131 (optional) and / or other input devices 132. The touch screen 131 can collect the user's touch operations on or near it (such as the user's operation on or near the touch screen using any suitable object such as fingers, joints, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch screen can detect the user's touch action on the touch screen, convert the touch action into a touch signal and send it to the processor 170, and can receive and execute the command sent by the processor 170; the touch signal at least includes the touch point coordinate information. The touch screen 131 can provide an input interface and an output interface between the terminal 100 and the user. In addition, the touch screen can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch screen 131, the input unit 130 can also include other input devices. Specifically, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, and the like.
[0060] Among them, the input device 132 can receive input data and the like.
[0061] The display unit 140 can be used to display information input by the user or information provided to the user, various menus of the terminal 100, interactive interfaces, file display and / or playback of any multimedia file. In the embodiment of the present application, the display unit 140 can be used to display the interface of parameter setting, processing results, etc.
[0062] The memory 120 can be used to store instructions and data. The memory 120 can mainly include an instruction storage area and a data storage area. The data storage area can store various data, such as multimedia files, texts, etc.; the instruction storage area can store software units such as operating systems, applications, instructions required for at least one function, or their subsets and extensions. It can also include a non-volatile random access memory; provide the processor 170 with hardware, software and data resources including management of computing and processing equipment, and support control software and applications. It is also used for the storage of multimedia files, and the storage of running programs and applications.
[0063] The processor 170 is the control center of the terminal 100. It uses various interfaces and lines to connect various parts of the entire terminal 100. By running or executing instructions stored in the memory 120 and calling data stored in the memory 120, it executes various functions of the terminal 100 and processes data, thereby controlling the terminal device as a whole. Optionally, the processor 170 may include one or more processing units; preferably, the processor 170 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 170. In some embodiments, the processor and the memory may be implemented on a single chip, and in some embodiments, they may also be implemented separately on separate chips. The processor 170 may also be used to generate corresponding operation control signals, send them to corresponding components of the computing and processing device, read and process data in the software, especially read and process data and programs in the memory 120, so that each functional module therein performs corresponding functions, thereby controlling the corresponding components to act according to the requirements of the instructions.
[0064] Among them, the memory 120 can be used to store software codes related to the data transmission method, the processor 170 can execute the steps of the data transmission or receiving method, and can also schedule other units (such as the above-mentioned input unit 130 and display unit 140) to implement corresponding functions.
[0065] The radio frequency unit 110 (optional) can be used for receiving and sending information or receiving and sending signals during a call, for example, after receiving the downlink information of the base station, it is sent to the processor 170 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, etc. In addition, the radio frequency unit 110 can also communicate with network devices and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, Short Messaging Service (SMS), etc.
[0066] In this embodiment of the present application, the RF unit 110 can send data to the server 200 and receive processing results sent by the server 200.
[0067] It should be understood that the radio frequency unit 110 is optional and can be replaced by other communication interfaces, such as a network port.
[0068] The terminal 100 also includes a power supply 190 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 170 through a power management system, so that the power management system can manage functions such as charging, discharging, and power consumption.
[0069] The terminal 100 further includes an external interface 180 , which may be a standard Micro USB interface or a multi-pin connector, and may be used to connect the terminal 100 to communicate with other devices, or to connect a charger to charge the terminal 100 .
[0070] Although not shown, the terminal 100 may also include a flashlight, a wireless fidelity (WiFi) module, a Bluetooth module, sensors with different functions, etc., which are not described in detail here. Some or all of the methods described below may be applied in the following embodiments. Figure 2 In the terminal 100 shown.
[0071] Next describe Figure 1 The product form of the server 200;
[0072] Figure 3 A structural diagram of a server 200 is provided, such as Figure 3 As shown, the server 200 includes a bus 201, a processor 202, a communication interface 203, and a memory 204. The processor 202, the memory 204, and the communication interface 203 communicate with each other via the bus 201.
[0073] The bus 201 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0074] The processor 202 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0075] The memory 204 may include a volatile memory, such as a random access memory (RAM). The memory 204 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard drive (HDD), or a solid state drive (SSD).
[0076] The memory 204 may be used to store software codes related to the data transmission or reception method, and the processor 202 may execute the steps of the data transmission or reception method of the chip, and may also schedule other units to implement corresponding functions.
[0077] It should be understood that the above-mentioned terminal 100 and server 200 can be centralized or distributed devices, and the processors in the above-mentioned terminal 100 and server 200 (such as processor 170 and processor 202) can be hardware circuits (such as application specific integrated circuit (ASIC), field-programmable gate array (FPGA), general-purpose processor, digital signal processor (DSP), microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the processor can be a hardware system with an instruction execution function, such as a CPU, DSP, etc., or a hardware system without an instruction execution function, such as an ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without an instruction execution function and hardware systems with an instruction execution function.
[0078] In modern medical technology, especially in the field of brain-computer interface (BCI), high-precision acquisition and transmission of wireless neural signals is one of the key technical challenges. This technology is not only of great significance for neuroscience research, but also has potential application value in clinical diagnosis and treatment, especially for the rehabilitation of patients with movement disorders and neurodegenerative diseases. In this technical context, the design of the wireless brain-computer interface system aims to achieve real-time monitoring and processing of brain signals through an efficient and stable data transmission mechanism.
[0079] In traditional wireless brain-computer interface systems, Manchester coding is a common data transmission method. This coding method is widely used in communication systems that require clock synchronization due to its self-synchronization characteristics. However, a significant disadvantage of Manchester coding is its low bandwidth efficiency. Since each bit of data requires two clock cycles to represent, this greatly reduces the data transmission rate and becomes a bottleneck for improving the performance of wireless BCI systems.
[0080] In order to solve the above problems, the embodiment of the present application provides a data transmission method. The data transmission method of the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0081] Reference Figure 4 , Figure 4 A schematic diagram of a data transmission method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, a data processing method provided in an embodiment of the present application may include steps 401 to 403, and these steps are described in detail below.
[0082] 401. Crop a data content portion of a received original neural signal data frame to obtain first data content, wherein the data length of each data packet in the first data content is 12 bits.
[0083] Specifically, the original neural signal data frame is the original neural electrophysiological signal collected from the brain-computer interface, and the original neural signal data frame is composed of a frame header and a data content part, wherein the frame header part can be the sequence identifier of the data frame, for example, it can be represented by 32-bit data. The data content part is the specific collected data, which can be represented by multiple channels, each channel can include a group of data packets, each group of data packets is composed of 16-bit data, for example, the data content part can include 128 channels, i.e., 128 groups of data packets. According to the data length of each group of data packets, the data of the corresponding length in each group of data packets can be discarded, so that the data length of each group of data packets is 12 bits. Because the collected data that is actually available in each data packet will not occupy all the 16-bit length, the data of the lower 4 bits in each data packet can be discarded, so as to obtain data with a length of 12 bits in each data packet.
[0084] 402. According to the correspondence between the first data and the second data in the preset lookup table, the data in each group of data packets is converted into a balanced code with a length of 16 bits to obtain the second data content, where the first data is data with a data length of 12 bits, and the second data is a balanced code with a data length of 16 bits.
[0085] Specifically, in order to achieve the conversion from 12-bit code to 16-bit code, a lookup table can be pre-built, which stores all 4096 possible combinations of 12-bit data and the 16-bit balance code corresponding to each combination. The 4096 balance codes are from 2 16 The converted data frame is screened out from the 16-bit combination to ensure that the converted data frame meets the requirements of DC balance in wireless transmission and avoids continuous 0 or 1 to reduce the bit error rate.
[0086] It is understandable that those skilled in the art may adjust the balance code in the lookup table as needed, and no limitation is made here.
[0087] 403. After partially replacing the data content in the original neural signal data frame with the second data content, a first neural signal data frame is obtained, and the first neural signal data frame is sent.
[0088] Specifically, the data content is converted according to the lookup table before it can be sent. In order to ensure the stability of data during wireless transmission, modulation technology can be used to modulate the wireless signal to be sent. Taking the high-order modulation scheme QAM as an example, the spectrum efficiency and anti-interference performance during wireless transmission are optimized. The modulation scheme is dynamically adjusted according to the characteristics of the wireless channel and environmental conditions to ensure that the signal strength and clarity are maintained under different transmission distances and interference levels.
[0089] It can be seen from the above that the data transmission method provides higher coding efficiency and bandwidth utilization compared with the traditional Manchester coding, that is, more data can be transmitted per transmission unit time without sacrificing bit error rate or system complexity. And because of the use of direct mapping search strategy, 12-bit data is directly encoded into 16-bit data through the lookup table. The problem of insufficient number of balanced codes can be avoided, and the lookup table consists of enough pre-defined balanced codes to ensure efficient and accurate data transmission.
[0090] In a possible implementation, in order to further ensure the accuracy and reliability of the transmitted data, before converting the data in each group of data packets into a balanced code with a length of 16 bits according to the correspondence between the first data and the second data in the preset lookup table to obtain the second data content, the method further includes:
[0091] The data in each group of data packets are channel-coded, and the channel-coded check bits are added to the end of the original neural signal data frame.
[0092] Specifically, the data content in the original neural signal data frame can be encoded by using a channel coding method such as RS coding, and then the corresponding coding check bit is added to the frame tail of the original neural signal data frame. Then, the new original neural signal data frame is converted from 12 bits to 16 bits according to the lookup table.
[0093] When the frame tail is padded with 0, it is necessary to padded with 0 according to the preset data length of the data frame to obtain a frame tail of a target length.
[0094] For example, the length of the entire data frame is 2048 bits, of which the frame header is 32 bits, the length of 128 12-bit data packets is 1536 bits, and the length of the frame tail is 480 bits, that is, 40×12 bits, of which the check bits are 128. Then the remaining 352 bits in the frame tail are padded with 0.
[0095] Then, according to the correspondence between the first data and the second data in the preset lookup table, the frame tail of the target length is converted into a corresponding number of balance codes, and the corresponding number of balance codes are added to the frame tail of the first neural signal data frame.
[0096] As a specific implementation of the above embodiment, the data transmission method can be used for data processing on the FPGA platform. Figure 6 As shown, the following processing may be included:
[0097] Signal acquisition: Collect raw neural signal data from neural electrophysiological sensors.
[0098] Data preprocessing: amplification, filtering and other preprocessing processes are performed on the collected raw neural signal data.
[0099] 12-bit data packing: The preprocessed data is split into data packets with a length of 12 bits.
[0100] Lookup table encoding: Convert 12-bit data into 16-bit code through a lookup table.
[0101] FPGA processing: The FPGA internal logic processes the encoded data, including: serial / parallel data conversion and the addition of error checking codes.
[0102] Signal modulation and transmission: The modulated data is transmitted wirelessly.
[0103] When processing in FPGA, the high clock speed of FPGA can be used to achieve time synchronization of data streams, ensuring the integrity and correctness of transmitted data. The design in the FPGA system includes dynamic power control, which adjusts the transmission power according to the quality of the wireless signal and the feedback information of the receiver to save energy and extend the battery life of the implanted device. The power control algorithm is implemented in the FPGA, which monitors the transmission conditions of the signal in real time and automatically optimizes the transmission power. And the synchronization mechanism at the receiving end ensures that the transmission signal can be accurately locked even under conditions of multipath fading or interference. The time synchronization technology implemented using FPGA includes clock recovery of the signal, ensuring that the high-speed serial data can be accurately converted back to parallel format when it arrives at the receiving end.
[0104] Reference Figure 7 The data flow shown in the figure, the data processing flow at the data sending end is:
[0105] First, for serial data 1, i.e., the original neural signal data frame, the lower 4 bits of data are dropped from each data packet except the frame header, and then RS encoding is performed to obtain serial data 2. The format of serial data 1 is:
[0106]
[0107] After data discarding and RS encoding, the format of serial data 2 is:
[0108]
[0109] After 12B / 16B encoding, the format of the obtained serial data 3 is:
[0110]
[0111] The format of the high-frequency serial data 4 obtained after modulation by the wireless data transmission chip is:
[0112]
[0113] It should be noted that the number of zero-filled bits in the frame tail in the above example can be adjusted accordingly according to different RS coding parameters, and no limitation is made here.
[0114] Based on the same design idea, refer to Figure 5 As shown, the embodiment of the present application also provides a data receiving method that can be applied to a data receiving end, which specifically includes the following steps:
[0115] 501. Receive a second neural signal data frame sent by a transmitting end.
[0116] 502. According to the correspondence between the first data and the second data in the preset lookup table, convert the data of each group of data packets in the data content part of the second neural signal data frame into data with a length of 12 bits.
[0117] 503. Perform a 0-fill operation on each 12-bit data obtained to restore the data after the data content part in the original neural signal data frame is cropped.
[0118] When the original neural signal data frame is RS encoded at the transmitting end, after the conversion between 16-bit data and 12-bit data is performed using a lookup table, RS decoding is required first, and then the data encoding is converted according to the lookup table.
[0119] In the specific implementation, the check bit can be restored from the tail of the second neural signal data frame according to the correspondence between the first data and the second data in the preset lookup table and the corresponding 0-filling operation rule. Then, channel decoding is performed on each 12-bit data according to the restored check bit.
[0120] For details, please refer to Figure 6 As shown, the operations that can be performed on the FPGA platform at the receiving end include:
[0121] Reception and demodulation: Receive signals and perform demodulation.
[0122] Decoding and error correction: Use a lookup table and error correction algorithm to convert the received 16-bit code back to the original 12-bit data.
[0123] Data post-processing: Perform necessary post-processing on the decoded data, such as unpacking and scaling.
[0124] Transmission: Output the processed data to downstream systems or interfaces for analysis and display.
[0125] For the specific serial data processing process, refer to Figure 7 As shown, the format of the serial data 5 obtained after demodulating the received serial data 4 is:
[0126]
[0127] After the serial data 5 is converted into 16B / 12B, the format of the obtained serial data 6 is:
[0128]
[0129] Finally, the format of serial data 7 obtained by RS decoding serial data 6 is:
[0130]
[0131] This data transmission and reception method significantly improves the bandwidth efficiency of data transmission by efficiently converting 12-bit raw data into 16-bit encoded data, while ensuring low power consumption and high data integrity during the transmission process. This improves the signal recognition accuracy at the receiving end and reduces the bit error rate. In addition, the application of FPGA provides greater flexibility and configurability, allowing the wireless data transmission chip to be optimized according to different application requirements, while providing the possibility for optimizing circuit design and reducing system power consumption. In the wireless transmission process, a dynamic power control algorithm is used to optimize the transmission power to reduce the overall power consumption of the system. At the same time, modern signal modulation technology is used to improve the stability and robustness of the transmission signal in multipath propagation and interference environments.
[0132] The above introduces the data transmission and receiving methods provided in the embodiments of the present application. The following will introduce the devices for executing the above data transmission and receiving methods.
[0133] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. Figure 8 As shown, the data transmission device includes:
[0134] The data cutting module 801 is used to cut the data content part of the received original neural signal data frame to obtain the first data content, and the data length of each data packet in the first data content is 12 bits.
[0135] The first conversion module 802 is used to convert the data in each group of data packets into a 16-bit balanced code according to the corresponding relationship between the first data and the second data in the preset lookup table to obtain the second data content, wherein the first data is 12-bit data and the second data is 16-bit balanced code.
[0136] The data sending module 803 is used to replace part of the data content in the original neural signal data frame with the second data content to obtain a first neural signal data frame, and send the first neural signal data frame.
[0137] In a possible implementation, it also includes a channel coding module, which is used to convert the data in each group of data packets into a balanced code with a length of 16 bits according to the correspondence between the first data and the second data in a preset lookup table, and before obtaining the second data content, channel code the data in each group of data packets, and add the channel coded check bit to the frame end of the original neural signal data frame.
[0138] In a possible implementation, the first conversion module 802 is further configured to:
[0139] Performing a zero padding operation on the frame tail according to a preset data length of the data frame to obtain a frame tail of a target length;
[0140] According to the correspondence between the first data and the second data in the preset lookup table, converting the frame tail of the target length into a corresponding number of balanced codes;
[0141] The corresponding number of balancing codes is added to the end of the first neural signal data frame.
[0142] In a possible implementation, the process of the data cutting module 801 cutting and processing the data content part in the received original neural signal data frame includes:
[0143] According to the data length of each group of data packets in the data content part, data of corresponding length in each group of data packets is discarded, so that the data length of each group of data packets is 12 bits.
[0144] See also Fig. 9 , Fig. 9 This is a schematic diagram of the structure of a data receiving device provided in an embodiment of the present application. Fig. 9 As shown, the data transmission device includes:
[0145] The data receiving module 901 is used to receive the second neural signal data frame sent by the sending end.
[0146] The second conversion module 902 is used to convert the data of each group of data packets in the data content part of the second neural signal data frame into data with a length of 12 bits according to the corresponding relationship between the first data and the second data in the preset lookup table.
[0147] The data restoration module 903 is used to perform a zero-filling operation on each 12-bit data obtained to restore the data after the data content part in the original neural signal data frame is cropped.
[0148] In a possible implementation, it also includes: a data supplement module, which is used to restore the check bit from the end of the second neural signal data frame according to the corresponding relationship between the first data and the second data in the preset lookup table and the corresponding zero-filling operation rules.
[0149] In a possible implementation, it also includes: a channel decoding module, which is used to perform channel decoding on each 12-bit data according to the restored check bits before performing a 0-filling operation on each 12-bit data to restore the data after the data content part in the original neural signal data frame is cut.
[0150] refer to Fig.10 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as mobile phones, laptops, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Fig.10 The electronic 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.
[0151] like Fig.10 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 to a random access memory (RAM) 1003. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 1003. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0152] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a memory card, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0153] An embodiment of the present application also provides a computer program product, including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any one of the data transmission methods or data receiving methods provided in the embodiments of the present application.
[0154] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any data transmission method or data receiving method provided in the embodiment of the present application.
[0155] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0156] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0157] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0158] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
Claims
1. A data transmission method, characterized in that: include: Performing a trimming process on a data content portion of the received original neural signal data frame to obtain a first data content, wherein the data length of each group of data packets in the first data content is 12 bits; According to the correspondence between the first data and the second data in the preset lookup table, the data in each group of data packets is converted into a balanced code with a length of 16 bits to obtain the second data content, wherein the first data is data with a data length of 12 bits, and the second data is a balanced code with a data length of 16 bits; After partially replacing the data content in the original neural signal data frame with the second data content, a first neural signal data frame is obtained, and the first neural signal data frame is sent.
2. The data transmission method according to claim 1, characterized in that: Before converting the data in each group of data packets into a balanced code with a length of 16 bits according to the corresponding relationship between the first data and the second data in the preset lookup table to obtain the second data content, the method further includes: Channel coding is performed on the data in each group of data packets, and a check bit of the channel coding is added to the end of the frame of the original neural signal data frame.
3. The data transmission method according to claim 2, characterized in that: Also includes: Performing a zero padding operation on the frame tail according to a preset data length of the data frame to obtain a frame tail of a target length; According to the correspondence between the first data and the second data in the preset lookup table, converting the frame tail of the target length into a corresponding number of balanced codes; The corresponding number of balancing codes is added to the end of the first neural signal data frame.
4. The data transmission method according to claim 1, characterized in that: The cutting of the data content portion of the received original neural signal data frame includes: According to the data length of each group of data packets in the data content part, data of corresponding length in each group of data packets is discarded, so that the data length of each group of data packets is 12 bits.
5. A data receiving method, characterized in that: include: receiving a second neural signal data frame sent by a transmitting end; According to the correspondence between the first data and the second data in the preset lookup table, converting the data of each group of data packets in the data content part of the second neural signal data frame into data with a length of 12 bits; Each 12-bit data is padded with 0 to restore the data after the data content part in the original neural signal data frame is cropped.
6. The data receiving method according to claim 5, characterized in that: Also includes: According to the correspondence between the first data and the second data in the preset lookup table and the corresponding zero-filling operation rule, a check bit is restored from the end of the second neural signal data frame.
7. The data receiving method according to claim 6, characterized in that: Before performing a zero-filling operation on each 12-bit data obtained to restore the data after the data content part in the original neural signal data frame is cut, the method further includes: Channel decoding is performed on each data with a length of 12 bits according to the restored check bits.
8. A data transmission device, characterized in that: include: A data cutting module, used for cutting a data content part in the received original neural signal data frame to obtain a first data content, wherein the data length of each group of data packets in the first data content is 12 bits; A first conversion module, configured to convert the data in each group of data packets into a balanced code with a length of 16 bits according to a correspondence between the first data and the second data in a preset lookup table, to obtain second data content, wherein the first data is data with a data length of 12 bits, and the second data is a balanced code with a data length of 16 bits; as well as A data sending module is used to replace part of the data content in the original neural signal data frame with the second data content to obtain a first neural signal data frame, and send the first neural signal data frame.
9. A data receiving device, characterized in that: include: A data receiving module, used for receiving a second neural signal data frame sent by a transmitting end; A second conversion module, configured to convert the data of each group of data packets in the data content part of the second neural signal data frame into data with a length of 12 bits according to the correspondence between the first data and the second data in the preset lookup table; as well as The data restoration module is used to perform a 0-filling operation on each 12-bit data obtained to restore the data after the data content part in the original neural signal data frame is cut.
10. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the data transmission method according to any one of claims 1 to 4 or the data receiving method according to any one of claims 5 to 7.
