Data processing method and device, storage medium and program product

By employing an adaptive decoding process, the problem of low communication efficiency caused by differences in encoding methods and transmission rates under the FT3 frame format was solved, achieving efficient and reliable data reception.

CN121125011APending Publication Date: 2025-12-12CONTEMPORARY AMPEREX FUTURE ENERGY RES INST (SHANGHAI) LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410758192.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2025-12-12

AI Technical Summary

Technical Problem

The different encoding methods and transmission rates of Flexible Transport Frame 3 (FT3) increase the difficulty of data reception and affect communication efficiency.

Method used

Through an adaptive decoding process, the system decodes based on the encoding method and transmission rate of the transmitted signal, extracts the frame header and compares it with a preset frame header to determine the target transmitted signal, and performs parsing processing. It supports both positive and negative Manchester encoding and uses cyclic redundancy check values ​​to verify the data transmission status.

Benefits of technology

It achieves adaptive data reception, reduces the difficulty of data transmission and reception, and improves communication efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125011A_ABST
    Figure CN121125011A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, a storage medium and a program product, and electronic equipment can decode a first transmission signal based on an encoding mode corresponding to the first transmission signal under the condition of receiving the first transmission signal to obtain a code stream corresponding to the first transmission signal; extracting a first frame header of the code stream based on the transmission rate of the first transmission signal, and comparing the first frame header with a preset frame header to obtain a first comparison result; and under the condition that the first transmission signal is determined to be the target transmission signal according to the first comparison result, carrying out analysis processing based on the first frame header and the code value of the code stream to obtain the first data corresponding to the first transmission signal, and based on the scheme, self-adaptive decoding can be realized, and the communication efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electric power, and particularly relates to a data processing method and device, a storage medium and a program product. BACKGROUND

[0002] At present, in many engineering applications, flexible transport third generation frame format (FT3) is often used for communication, and the FT3 is a frame transmission format defined in the link layer rule of the electronic current / voltage transformer standard IEC60044-8 formulated by the International Electrotechnical Commission.

[0003] However, due to the differences in the FT3 frame format, such as the differences in the encoding mode or the transmission rate, the difficulty of data receiving is greatly increased, and the communication efficiency is affected. That is, how to realize the adaptive decoding process to improve the communication efficiency is a problem to be solved at present. SUMMARY

[0004] The embodiments of the present application provide a data processing method, device, storage medium and program product, which can realize adaptive decoding and effectively improve the communication efficiency.

[0005] The technical scheme of the embodiments of the present application is implemented as follows:

[0006] In a first aspect, the embodiments of the present application provide a data processing method, and the method comprises the following steps:

[0007] In the case of receiving a first transmission signal, the first transmission signal is decoded based on the encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal;

[0008] The first frame header of the code stream is extracted based on the transmission rate of the first transmission signal, and the first frame header is compared with a preset frame header to obtain a first comparison result;

[0009] In the case of determining that the first transmission signal is a target transmission signal according to the first comparison result, the first frame header and the code value of the code stream are analyzed to obtain first data corresponding to the first transmission signal.

[0010] In the embodiment, when receiving data, the electronic device can adaptively decode the first transmission signal according to the encoding mode of the received first transmission signal, and extract the frame header from the code stream obtained after decoding by using the transmission rate of the first transmission signal; then the first frame header and the preset frame header can be compared to determine whether the first transmission signal is the target transmission signal to be received, so that only in the case of determining that the first transmission signal is the target transmission signal, the extracted first frame header and code value are parsed to obtain the first data, thereby completing the reception of data, realizing the adaptive decoding process, greatly reducing the difficulty of data transmission and reception, and effectively improving the communication efficiency.

[0011] In some embodiments of the present application, after extracting the first frame header of the code stream based on the transmission rate of the first transmission signal, and comparing the first frame header with the preset frame header to obtain a first comparison result, the method further comprises:

[0012] In the case that the first comparison result is that the first frame header is the same as the preset frame header, it is determined that the first transmission signal is the target transmission signal.

[0013] In the case that the first comparison result is that the first frame header is the same as the second frame header corresponding to the preset frame header, it is determined that the first transmission signal is the target transmission signal; wherein the second frame header is a frame header obtained by performing a bitwise NOT operation on the preset frame header.

[0014] In the case that the first comparison result is that the first frame header is different from the preset frame header and the second frame header, it is determined that the first transmission signal is not the target transmission signal.

[0015] In the embodiment, when the first frame header is the same as the preset frame header, or is the same as the second frame header obtained by performing a bitwise NOT operation on the preset frame header, it can be determined that the first transmission signal is the target transmission signal, otherwise it is determined that the first transmission signal is not the target transmission signal, so that whether to start the subsequent data parsing process can be determined after determining whether the transmission signal is the target transmission signal, which can reduce the occupation of communication resources of the electronic device, thereby improving the communication efficiency.

[0016] In some embodiments of the present application, decoding the first transmission signal based on the encoding mode corresponding to the first transmission signal to obtain the code stream corresponding to the first transmission signal comprises:

[0017] In the case that the encoding mode corresponding to the first transmission signal is the positive Manchester encoding, the first transmission signal is decoded based on the positive Manchester encoding to obtain the code stream.

[0018] In a case where the encoding mode corresponding to the first transmission signal is the inverse Manchester encoding, the first transmission signal is decoded based on the inverse Manchester encoding to obtain the code stream.

[0019] In this embodiment, both the positive Manchester encoding and the inverse Manchester encoding can be supported. When the first transmission signal is received, if it is determined that the first transmission signal is encoded by using the positive Manchester encoding, the first transmission signal is adaptively decoded by using the positive Manchester encoding; if it is determined that the first transmission signal is encoded by using the inverse Manchester encoding, the first transmission signal is adaptively decoded by using the inverse Manchester encoding to obtain the code stream, so that adaptive decoding is realized, and the communication efficiency is improved.

[0020] In some embodiments of the present application, the method further includes:

[0021] determining a sampling frequency according to the code stream;

[0022] double-edge sampling the code stream according to the sampling frequency to obtain level change information of the code stream, and determining the first frame header and the code value according to the level change information.

[0023] In this embodiment, the code stream can be adaptively double-edge sampled according to the sampling frequency of the code stream, so that the first frame header and the code value can be accurately extracted.

[0024] In some embodiments of the present application, the method further includes:

[0025] comparing a first cyclic redundancy check value of the first transmission signal with a second cyclic redundancy check value of a second transmission signal to obtain a second comparison result; the second transmission signal represents a previous frame transmission signal of the first transmission signal;

[0026] determining an execution state according to the second comparison result; the execution state includes a data receiving state and a verification state; the data receiving state is used for receiving data; and the verification state is used for waiting for verification of whether the data transmission is ended.

[0027] In this embodiment, the first cyclic redundancy check value of the first transmission signal currently received and the second cyclic redundancy check value of the previous frame transmission signal can be compared to determine whether the current should continue to maintain the data receiving state or the verification state, so that the reliability of data transmission is improved.

[0028] In some embodiments of the present application, the determining the execution state according to the second comparison result includes:

[0029] determining that the execution state is the data receiving state in a case where the second comparison result is that the first cyclic redundancy check value is different from the second cyclic redundancy check value;

[0030] determining that the execution state is the verification state in a case where the second comparison result is that the first cyclic redundancy check value is same as the second cyclic redundancy check value.

[0031] In the embodiment, when the first cyclic redundancy check value is different from the second cyclic redundancy check value, it is determined to continue receiving data, i.e., to enter the data receiving state, and when the first cyclic redundancy check value is same as the second cyclic redundancy check value, it is determined to enter the verification state to verify whether the data transmission is completed, thereby improving the reliability of data transmission.

[0032] In some embodiments of the present application, after the determining that the execution state is the verification state in a case where the second comparison result is that the first cyclic redundancy check value is same as the second cyclic redundancy check value, the method further comprises:

[0033] determining that the data transmission is completed in a case where the idle frame is received;

[0034] entering the data receiving state in a case where the idle frame is not received.

[0035] In the embodiment, if the idle frame is received in the verification state, it is determined that the data transmission is completed, and if the idle frame is not received, it is returned to the data receiving state to continue receiving data, thereby improving the reliability of data transmission.

[0036] In some embodiments of the present application, the method further comprises:

[0037] if at least one third frame header of the code stream is extracted in addition to the first frame header, determining a target frame header in the first frame header and the at least one third frame header;

[0038] performing analysis processing based on the target frame header and a code value matched with the target frame header to obtain the first data.

[0039] In the embodiment, if the first frame header and at least one third frame header in addition to the first frame header are extracted at the same time, a target frame header can be determined in the first frame header and the at least one third frame header, i.e., a plurality of frame headers are checked to determine the target frame header, so that the target frame header and the corresponding code value are analyzed to obtain the first data. In this way, it can be ensured that only one set of frame header and corresponding code value is analyzed each time, thereby improving the accuracy and reliability of analysis and improving the communication efficiency.

[0040] In a second aspect, an embodiment of the present application provides an electronic device, comprising a decoding module, an extracting module and a decoding state machine module;

[0041] The decoding module is configured to decode the first transmission signal based on an encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal when the first transmission signal is received.

[0042] The extracting module is configured to extract a first frame header of the code stream based on a transmission rate of the first transmission signal, and compare the first frame header with a preset frame header to obtain a first comparison result.

[0043] The decoding state machine module is configured to perform analysis processing based on the first frame header and a code value of the code stream to obtain first data corresponding to the first transmission signal when it is determined according to the first comparison result that the first transmission signal is a target transmission signal.

[0044] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing executable instructions of the processor; when the executable instructions are executed by the processor, the above-mentioned data processing method is implemented.

[0045] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, storing a computer program, which is executed by a processor to implement the above-mentioned data processing method.

[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program or instructions, which are executed by a processor to implement the steps of the above-mentioned data processing method. BRIEF DESCRIPTION OF DRAWINGS

[0047] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are intended to illustrate preferred embodiments of the present application by non-limiting example, and therefore should not be considered to limit the present application.

[0048] Figure 1 Implementation flowchart of the data processing method provided by an embodiment of the present application Figure 1 ;

[0049] Figure 2 Implementation flowchart of the data processing method provided by an embodiment of the present application Figure 2 ;

[0050] Figure 3 Implementation schematic diagram of the data processing method provided by an embodiment of the present application

[0051] Figure 4 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present application Figure 1 ;

[0052] Figure 5 A schematic diagram of the composition structure of an electronic device according to an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. It can be understood that the specific embodiments described herein are only used to explain the related application, and not to limit the application. In addition, it should be noted that, for the convenience of description, only the parts related to the application are shown in the drawings.

[0054] To solve the problems existing in the current data processing method, the embodiments of the present application provide a data processing method, device, storage medium and program product. When the electronic device receives a first transmission signal, the electronic device decodes the first transmission signal based on the encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal; extracts a first frame header of the code stream based on the transmission rate of the first transmission signal, and compares the first frame header with a preset frame header to obtain a first comparison result; in a case where it is determined according to the first comparison result that the first transmission signal is a target transmission signal, the electronic device performs analysis processing based on the first frame header and the code value of the code stream to obtain first data corresponding to the first transmission signal. Based on the above scheme, an adaptive decoding mode can be realized, the development difficulty of the data receiving end is reduced, the processing efficiency of the data receiving end is improved, and the communication efficiency is improved.

[0055] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application.

[0056] The description of the device in the embodiments of the present application is similar to the description of the method embodiments below, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments, please refer to the description of the method embodiments of the present application for understanding.

[0057] An embodiment of the present application provides a data processing method, as shown in Figure 1 The data processing method of the electronic device can include the following steps:

[0058] Step 101, in a case where a first transmission signal is received, decoding the first transmission signal based on an encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal.

[0059] In the embodiments of the present application, the electronic device decodes the first transmission signal based on the encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal when the first transmission signal is received.

[0060] It should be noted that in the embodiments of the present application, the electronic device can be a receiving end device for receiving data; the electronic device can be any electronic device with communication and storage functions, such as a tablet computer, a mobile phone, an e-book reader, a remote controller, a personal computer (PC), a notebook computer, a vehicle-mounted electronic device, a network television, a wearable electronic device, a personal digital assistant (PDA), a portable media player (PMP), a navigation device, and the like.

[0061] In the embodiments of the present application, the first transmission signal can be an electrical signal received by the electronic device through a physical layer interface; the first transmission signal can be an electrical signal corresponding to an FT3 data frame.

[0062] It should be noted that in the embodiments of the present application, the sending end device that sends the first transmission signal can encode the FT3 data frame, for example, encode the FT3 data frame by Manchester encoding, and then convert the encoded FT3 frame into an electrical signal, that is, obtain the first transmission signal, so as to send the first transmission signal to the receiving end electronic device through a transmission medium.

[0063] It should be noted that in the embodiments of the present application, the encoding mode corresponding to the first transmission signal can be Manchester encoding, including positive Manchester encoding and negative Manchester encoding.

[0064] In some embodiments of the present application, when the electronic device decodes the first transmission signal based on the encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal, the electronic device can decode the first transmission signal based on positive Manchester encoding to obtain the code stream when the encoding mode corresponding to the first transmission signal is positive Manchester encoding, and decode the first transmission signal based on negative Manchester encoding to obtain the code stream when the encoding mode corresponding to the first transmission signal is negative Manchester encoding.

[0065] That is, in the embodiments of the present application, the electronic device preconfigures the encoding mode for the FT3 data frame, and can simultaneously support decoding the transmission signal of positive Manchester encoding or negative Manchester encoding, that is, can realize adaptive decoding of FT3 data frames of different encoding modes.

[0066] In step 102, a first frame header of the code stream is extracted based on the transmission rate of the first transmission signal, and the first frame header is compared with a preset frame header to obtain a first comparison result.

[0067] In the embodiment of the present application, after the electronic device receives the first transmission signal, decodes the first transmission signal based on the encoding mode corresponding to the first transmission signal to obtain the code stream corresponding to the first transmission signal, and extracts the first frame header of the code stream based on the transmission rate of the first transmission signal, and compares the first frame header with the preset frame header to obtain the first comparison result.

[0068] It should be noted that in the embodiment of the present application, the electronic device pre-stores different transmission rates for FT3 data frames, for example, the transmission rates include 2.5 Mbps, 5 Mbps, 10 Mbps and 20 Mbps; therefore, the electronic device can support frame header extraction of the first transmission signal with any transmission rate such as 2.5 Mbps, 5 Mbps, 10 Mbps and 20 Mbps.

[0069] For example, the electronic device includes a plurality of extraction modules, and different extraction modules are used for frame header and code value extraction of the code stream corresponding to the first transmission signal with different transmission rates; for example, the electronic device includes four extraction modules A, B, C and D, the extraction module A is used for frame header and code value extraction of the code stream corresponding to the first transmission signal with 2.5 Mbps, the extraction module B is used for frame header and code value extraction of the code stream corresponding to the first transmission signal with 5 Mbps, the extraction module C is used for frame header and code value extraction of the code stream corresponding to the first transmission signal with 10 Mbps, and the extraction module D is used for frame header and code value extraction of the code stream corresponding to the first transmission signal with 20 Mbps.

[0070] It should be further noted that in the embodiment of the present application, the preset frame header represents the frame header of the FT3 frame format; the preset frame header can include various frame headers in the FT3 frame format, for example, 0x0564 and 0x0563; the preset frame header can be used to verify whether the first transmission signal is the target transmission signal.

[0071] In the embodiment of the present application, after the electronic device extracts the first frame header of the code stream based on the transmission rate of the first transmission signal, and compares the first frame header with the preset frame header to obtain the first comparison result, in the case that the first comparison result is that the first frame header is the same as the preset frame header, it is determined that the first transmission signal is the target transmission signal; in the case that the first comparison result is that the second frame header corresponding to the first frame header and the preset frame header is the same, it is determined that the first transmission signal is the target transmission signal; in the case that the first comparison result is that the first frame header is different from the preset frame header and the second frame header, it is determined that the first transmission signal is not the target transmission signal.

[0072] It should be noted that in the embodiments of the present application, the frame header can include code value information used for analyzing data, which can include information such as encoding mode, starting position of the data frame, and length of the data frame.

[0073] It should be noted that in the embodiments of the present application, the second frame header is a frame header obtained by performing a bitwise NOT operation on the preset frame header.

[0074] Exemplarily, the preset frame header includes 0x0564 and 0x0563, the second frame header can include 0xf9ab obtained by performing a bitwise NOT operation on 0x0564, and 0xf89c obtained by performing a bitwise NOT operation on 0x0563.

[0075] It should also be noted that in the embodiments of the present application, when the first comparison result is that the first frame header is the same as the preset frame header, it indicates that the encoding mode corresponding to the first transmission signal is the positive Manchester encoding; and when the first comparison result is that the first frame header is the same as the second frame header, it indicates that the encoding mode corresponding to the first transmission signal is the negative Manchester encoding, and then the extracted code value can be inverted.

[0076] It can be understood that in the embodiments of the present application, whether the received first transmission signal is the target transmission signal to be received can be determined according to the extracted first frame header, when the first frame header is neither the same as the first frame header nor the same as the second frame header, the electronic device can determine that the first transmission signal is not the signal to be received.

[0077] In the embodiments of the present application, the electronic device can determine the sampling frequency according to the code stream; then perform double-edge sampling on the code stream according to the sampling frequency to obtain the level change information of the code stream, and determine the first frame header and the code value according to the level change information.

[0078] In some embodiments of the present application, the sampling frequency can be determined according to the period of the code stream, and then the double-edge sampling is performed on the code stream according to the sampling frequency.

[0079] Exemplarily, the size of the code stream is 16 bits, that is, the code stream includes 16 code elements, and then the sampling frequency can be determined according to the period of the 16 code elements (the period of the code stream), that is, the sampling frequency is one sampling per 16 code elements.

[0080] In some embodiments of the present application, the electronic device can determine the sampling frequency according to the transmission rate of the first transmission signal; then perform double-edge sampling on the code stream according to the sampling frequency to obtain the level change information of the code stream, and determine the first frame header and the code value according to the level change information.

[0081] It should be noted that in the embodiments of the present application, in the case that the electronic device includes a field programmable gate array (FPGA), when the electronic device performs double-edge sampling on the code stream according to the sampling frequency, the code stream can be reliably double-edge sampled based on the IDDR mode of the ILOGIC resource of the FPGA. The ILOGIC is one of the basic building blocks in the FPGA and can be configured according to the design requirements of the user to realize various logic functions.

[0082] In the embodiments of the present application, the IDDR mode can be used to convert the double-edge sampled data into single-edge data for use in the FPGA.

[0083] In some embodiments of the present application, when the electronic device performs double-edge sampling on the code stream based on the IDDR mode of the ILOGIC resource of the FPGA, the double-edge sampling can be performed according to the period of all symbols in the code stream. For example, if the size of the code stream is 16 bits, the double-edge sampling can be performed according to the period of 16 symbols. Compared with the sampling mode according to the period of a single symbol, the requirement for the sampling clock can be greatly reduced, and the influence of the disturbance caused by the jump of a single symbol can also be reduced, so that the sampling result is more reliable. At the same time, directly using the IDDR mode of the ILOGIC for double-edge sampling can avoid the problem of cross-clock domain, so that the communication process is simpler.

[0084] In the embodiments of the present application, double-edge sampling is a clock synchronization technology, which samples the code stream at two time points of the rising edge and the falling edge of the clock, so that the high and low level changes in the code stream can be captured in the sampling process, that is, the level change information is obtained. Double-edge sampling can improve the accuracy of sampling and reduce sampling errors.

[0085] In the case that the first transmission signal is determined to be the target transmission signal according to the first comparison result, the first frame header and the code value of the code stream are analyzed to obtain the first data corresponding to the first transmission signal.

[0086] In the embodiments of the present application, after the electronic device extracts the first frame header of the code stream based on the transmission rate of the first transmission signal, compares the first frame header with the preset frame header, and obtains the first comparison result, in the case that the first transmission signal is determined to be the target transmission signal according to the first comparison result, the first frame header and the code value of the code stream are analyzed to obtain the first data corresponding to the first transmission signal.

[0087] It should be noted that in the embodiments of the present application, the electronic device can include a decoding state machine for analyzing and processing the first frame header and the code value of the code stream, so as to restore the first data corresponding to the first transmission signal.

[0088] In the embodiments of the present application, the decoding state machine can be used to process the bit stream or code stream, and can parse the code stream according to predefined rules and states; the decoding state machine can include functions such as frame synchronization, data parsing, error detection and correction, etc., wherein the frame synchronization aligns the code stream with the frame boundary by identifying the start flag or specific pattern, and ensures correct parsing of each packet; the data parsing means that the decoding state machine can restore the code stream to the original data according to the predefined rules; the error detection and correction means that the decoding state machine can verify the integrity and accuracy of the data during the parsing process by using a check method such as Cyclic Redundancy Check (CRC).

[0089] In the embodiments of the present application, CRC, i.e. Cyclic Redundancy Check code, is a commonly used check code in the field of computer network communication. The Cyclic Redundancy Check code includes a series of data encoding rules such as shifting and division, and the algorithm principle and algorithm program design and analysis can be solved by corresponding software coding. The Cyclic Redundancy Check code is an algorithm for checking by software, so its checking speed is very fast, the error code rate of checking is relatively low, and the information transmission speed of the entire computer network communication is very high. The CRC error correction control method can effectively reduce the error code rate of the communication line, and the obtained communication data transmission information is more accurate.

[0090] It can be understood that in the embodiments of the present application, the first data represents the original data corresponding to the received first transmission signal.

[0091] In some embodiments of the present application, the above data processing method can be applied to FT3 frame data of any format to realize decoding of FT3 frame data of any format; for example, the above data processing method can be applied to FT3 frame data of different frame lengths to realize decoding of FT3 frame data of different frame lengths, and FT3 frame data of different transmission rates and different encoding modes can also be decoded based on the above data processing method, which can effectively improve the adaptability of FT3 frame data decoding.

[0092] In the embodiments of the present application, the data processing method can further include the following steps:

[0093] Step 104, comparing the first cyclic redundancy check value of the first transmission signal with the second cyclic redundancy check value of the second transmission signal to obtain a second comparison result; wherein the second transmission signal represents a previous frame transmission signal of the first transmission signal.

[0094] In the embodiments of the present application, the electronic device can compare the first cyclic redundancy check value of the first transmission signal with the second cyclic redundancy check value of the second transmission signal to obtain a second comparison result; wherein the second transmission signal represents a previous frame transmission signal of the first transmission signal.

[0095] It should be noted that, in the embodiments of the present application, the first cyclic redundancy check value refers to a CRC value generated according to first transmission data corresponding to the first transmission signal, and the second cyclic redundancy check value refers to a CRC value generated according to second transmission data corresponding to the second transmission signal; wherein the first transmission data can be an FT3 data frame, which can obtain the first transmission signal after encoding, and the second transmission data can also be an FT3 data frame, which can obtain the second transmission signal after encoding.

[0096] In the embodiments of the present application, the second comparison result can include two results that the first cyclic redundancy check value is the same as the second cyclic redundancy check value, and the first cyclic redundancy check value is different from the second cyclic redundancy check value.

[0097] It should be noted that, in the embodiments of the present application, the cyclic redundancy check value is sent to the electronic device along with the transmission signal, and the transmission signal includes the cyclic redundancy check value; that is, the first transmission signal received by the electronic device includes the first cyclic redundancy check value; the previous frame signal received by the electronic device before receiving the first transmission signal, i.e. the second transmission signal, can also include the second cyclic redundancy check value.

[0098] Step 105, determining an execution state according to the second comparison result; wherein the execution state includes a data receiving state and a verification state; the data receiving state is used for receiving data; and the verification state is used for waiting for verifying whether the data transmission is ended.

[0099] In the embodiments of the present application, after the electronic device compares the first cyclic redundancy check value of the first transmission signal with the second cyclic redundancy check value of the second transmission signal to obtain a second comparison result, the electronic device determines an execution state according to the second comparison result; wherein the execution state includes a data receiving state and a verification state; the data receiving state is used for receiving data; and the verification state is used for waiting for verifying whether the data transmission is ended.

[0100] It should be noted that, in the embodiments of the present application, when the electronic device determines that the execution state is data receiving, it means that the current data to be transmitted has not been transmitted, and the electronic device can continue to receive data based on the data receiving state.

[0101] It should also be noted that, in the embodiments of the present application, when the electronic device determines that the execution state is the verification state, it means that the current data transmission can be completed, but further verification is still needed to determine whether the data transmission is completed.

[0102] In some embodiments of this application, the electronic device determines the execution state based on the second comparison result, i.e., step 105 may include the following steps:

[0103] Step 105a: If the second comparison result shows that the first cyclic redundancy check value and the second cyclic redundancy check value are different, determine the execution state as the data receiving state.

[0104] In the embodiments of this application, when the electronic device determines the execution state based on the second comparison result, it can determine the execution state as a data receiving state if the second comparison result is different between the first cyclic redundancy check value and the second cyclic redundancy check value.

[0105] Step 105b: If the second comparison result shows that the first cyclic redundancy check value and the second cyclic redundancy check value are the same, determine the execution state as the verification state.

[0106] In the embodiments of this application, when the electronic device determines the execution state based on the second comparison result, it can determine the execution state as the verification state if the second comparison result is the same as the first cyclic redundancy check value and the second cyclic redundancy check value.

[0107] It should be noted that, in the embodiments of this application, under normal circumstances, when data transmission ends, that is, when the frame ends, the first cyclic redundancy check value corresponding to the current data frame and the second cyclic redundancy check value corresponding to the previous data frame can be the same. However, in order to avoid the situation where data transmission has not ended but the first cyclic redundancy check value and the second cyclic redundancy check value are the same, which would lead to a misjudgment that data transmission has ended, this application can enter a verification state when it is determined that the first cyclic redundancy check value and the second cyclic redundancy check value are the same, in order to determine whether data transmission has ended. Thus, only after entering the verification state and determining that data transmission has ended according to the subsequent determination method will the current data transmission be terminated.

[0108] In some embodiments of this application, after the electronic device determines the execution state to be the verification state when the second comparison result is the same as the first cyclic redundancy check value and the second cyclic redundancy check value, i.e. after step 105b, the following steps may also be included:

[0109] Step 105c: If an idle frame is received, determine that the data transmission has ended.

[0110] In the embodiments of this application, when the electronic device determines that the execution state is the verification state after the second comparison result is the same as the first cyclic redundancy check value and the second cyclic redundancy check value, it can determine that the data transmission has ended when an idle frame is received.

[0111] It should be noted that in the embodiments of the present application, the idle frame can be a full-F data frame, for example, FFFF, that is, all data in the data frame is set to F in hexadecimal representation.

[0112] In the embodiments of the present application, in some communication protocols or systems, when there is no valid data transmission, the sending end device will send an idle frame to keep the communication link active, and when the receiving end electronic device receives it, it can not do any processing.

[0113] Step 105d, in the case where the idle frame is not received, enter the data receiving state.

[0114] In the embodiments of the present application, the electronic device can enter the data receiving state in the case where the idle frame is not received after determining that the execution state is the verification state in the case where the second comparison result is that the first cyclic redundancy check value is the same as the second cyclic redundancy check value.

[0115] It can be understood that in the embodiments of the present application, if the idle frame is not received in the verification state, it indicates that the current data transmission has not ended, and then the data receiving state is continued to enter to continue to receive the FT3 data frame transmitted subsequently.

[0116] In the embodiments of the present application, the data processing method of the electronic device can further include the following steps:

[0117] Step 201, if at least one third frame header of the code stream is extracted in addition to the first frame header, the target frame header is determined in the first frame header and the at least one third frame header.

[0118] In the embodiments of the present application, if at least one third frame header of the code stream is extracted in addition to the first frame header, the target frame header is determined in the first frame header and the at least one third frame header.

[0119] It should be noted that in the embodiments of the present application, since the electronic device is pre-prepared for different transmission rates of the FT3 data frame, in other words, the electronic device includes a plurality of extraction modules for extracting the frame header and code value of the code stream corresponding to the first transmission signal of different transmission rates. Under normal circumstances, since the transmission rate of the first transmission signal is certain, whenever the electronic device receives the first transmission signal, only one extraction module in the plurality of extraction modules that matches the transmission rate of the first transmission signal can extract a unique frame header, that is, the first frame header. However, if two or more extraction modules extract frame headers, that is, the first frame header and at least one third frame header are extracted, the first frame header and the at least one third frame header need to be verified to determine the correct frame header, that is, the target frame header.

[0120] In some embodiments of this application, the target frame header can be determined directly based on the information in the first frame header and the third frame header. For example, when the first frame header and the third frame header include a transmission address, it can be determined whether the transmission address in the first frame header and the third frame header is the address information of the receiving electronic device, thereby determining the frame header that matches the address information of the electronic device as the target frame header. Furthermore, the transmission rate of the first transmission signal can be verified again, thereby determining the frame header extracted by the extraction module corresponding to the transmission rate of the verified first signal as the target frame header.

[0121] In some embodiments of this application, the electronic device may include a selection module. When only the first frame header and the corresponding code value are extracted, the selection module can directly determine the message channel, message rate, and message mode, and transmit the first frame header to the decoding state machine through the valid flag interface, and transmit the code value to the decoding state machine through the valid data interface. Here, the message channel is the extraction module that extracts the first frame header and the corresponding code value, the message rate is the transmission rate of the first transmission signal, and the message mode is the encoding method of the first transmission signal.

[0122] In some embodiments of this application, when the first frame header and at least one third frame header are extracted, the electronic device can determine the target frame header through the selection module, and determine the message channel, message rate and message mode according to the target frame header, thereby transmitting the target frame header to the decoding state machine through the valid flag interface, and transmitting the code value corresponding to the target frame header to the decoding state machine through the valid data interface.

[0123] For example, such as Figure 2 As shown, the decoding state machine can first be in an idle state (step 301), which can be represented as ST_IDLE. In the idle state, the decoding state machine can listen for the valid flag, that is, determine whether the valid flag has appeared (step 302). If it has, it can enter the data receiving state (step 303), which can be represented as ST_DATA. If no valid flag has appeared, it continues to be in the idle state. After step 303, it can determine whether the first cyclic redundancy check value and the second cyclic redundancy check value are the same (step 304). If they are the same, it enters the verification state (step 305). If they are different, it continues to enter the data receiving state. Then, after step 305, it can determine whether an idle frame has been received (step 306). If it has, it determines that the data transmission has ended (step 307), which can be represented as ST_END. If not, it continues to enter the data receiving state.

[0124] Step 202: Perform parsing processing based on the target frame header and the code value that matches the target frame header to obtain the first data.

[0125] In the embodiments of the present application, if the electronic device extracts at least one third frame header of the code stream in addition to the first frame header, after determining the target frame header in the first frame header and the at least one third frame header, the first data can be obtained by performing parsing processing based on the target frame header and the code value matched with the target frame header.

[0126] It can be understood that, in the embodiments of the present application, the code value matched with the target frame header is the code value extracted from the code stream by the extraction module that extracts the target frame header among the plurality of extraction modules.

[0127] It can also be understood that, in the embodiments of the present application, after the target frame header is determined, the target frame header and the code value matched with the target frame header can be parsed by using the decoding state machine, so that the first data corresponding to the first transmission signal is restored.

[0128] Exemplarily, as shown in Figure 3 When the electronic device in the present application receives the electrical signal corresponding to the FT3 data frame, i.e., the first transmission signal, the first transmission signal can be decoded based on the pre-prepared positive Manchester coding or negative Manchester coding, and the frame header and the code value of the decoded code stream can be extracted by using the pre-prepared different extraction modules, so that the obtained frame header and code value can be sent to the selection module. The selection module can determine the target frame header from the frame headers sent by each extraction module, including directly sending the frame header and the code value to the decoding state machine when only one extraction module sends the frame header and the code value, and determining the target frame header from the frame headers sent by multiple extraction modules and sending the target frame header and the corresponding code value to the decoding state machine when multiple extraction modules output the frame headers. Finally, the decoding state machine parses the frame header and the code value to obtain the first data.

[0129] In summary, in the embodiments of the present application, the electronic device can adaptively process FT3 data of different formats, including adaptively processing FT3 data of different frame headers, different rates, different coding modes, and different frame lengths. Based on the IDDR mode of the ILOGIC resource of the FPGA, double-edge sampling of the entire cycle of the code stream can reduce the sampling clock requirement, reduce the logic resource consumption, and also does not need to perform cross-clock domain processing, thereby reducing the development difficulty and also reducing the frequency of error problems caused by insufficient single symbol statistical recognition rate, thereby effectively improving the communication efficiency.

[0130] Based on the above embodiments, in another embodiment of the present application, an electronic device is provided, as shown in Figure 4 The electronic device 1 can include a decoding module 11, an extraction module 12, a decoding state machine module 13, and a selection module 14.

[0131] The decoding module 11 can be configured to decode the first transmission signal based on the encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal in a case where the first transmission signal is received.

[0132] The extraction module 12 can be configured to extract a first frame header of the code stream based on a transmission rate of the first transmission signal, and compare the first frame header with a preset frame header to obtain a first comparison result.

[0133] The decoding state machine module 13 can be configured to, in a case where it is determined according to the first comparison result that the first transmission signal is a target transmission signal, perform analysis processing based on the first frame header and a code value of the code stream to obtain first data corresponding to the first transmission signal.

[0134] In some embodiments of the present application, the extraction module 12 can be further configured to, after extracting the first frame header of the code stream based on the transmission rate of the first transmission signal, and comparing the first frame header with the preset frame header to obtain the first comparison result, determine that the first transmission signal is the target transmission signal in a case where the first comparison result is that the first frame header is the same as the preset frame header, determine that the first transmission signal is the target transmission signal in a case where the first comparison result is that a second frame header corresponding to the first frame header and the preset frame header is the same, and determine that the first transmission signal is not the target transmission signal in a case where the first comparison result is that the first frame header is different from both the preset frame header and the second frame header; the second frame header is a frame header obtained by performing a bitwise NOT operation on the preset frame header.

[0135] In some embodiments of the present application, the decoding module 11 can be configured to, in a case where the encoding mode corresponding to the first transmission signal is positive Manchester encoding, decode the first transmission signal based on the positive Manchester encoding to obtain the code stream, and in a case where the encoding mode corresponding to the first transmission signal is negative Manchester encoding, decode the first transmission signal based on the negative Manchester encoding to obtain the code stream.

[0136] In some embodiments of the present application, the extraction module 12 can be configured to determine a sampling frequency according to the code stream, and perform double-edge sampling on the code stream according to the sampling frequency to obtain level change information of the code stream, and determine the first frame header and the code value according to the level change information.

[0137] In some embodiments of the present application, the decoding state machine module 13 can be further configured to compare a first cyclic redundancy check value of the first transmission signal with a second cyclic redundancy check value of a second transmission signal to obtain a second comparison result, wherein the second transmission signal represents a previous frame transmission signal of the first transmission signal, and determine an execution state according to the second comparison result; wherein the execution state includes a data receiving state and a verification state; the data receiving state is used for receiving data; and the verification state is used for waiting for verification of whether the data transmission is ended.

[0138] In some embodiments of the present application, the decoding state machine module 13 can be further configured to determine the execution state as the data receiving state if the second comparison result is that the first cyclic redundancy check value is different from the second cyclic redundancy check value, and determine the execution state as the verification state if the second comparison result is that the first cyclic redundancy check value is the same as the second cyclic redundancy check value.

[0139] In some embodiments of the present application, the decoding state machine module 13 can be further configured to, after determining the execution state as the verification state if the second comparison result is that the first cyclic redundancy check value is the same as the second cyclic redundancy check value, determine that the data transmission is ended if an idle frame is received, and enter the data receiving state if the idle frame is not received.

[0140] The selection module 14 can be configured to, if the extraction module 12 further extracts at least one third frame header of the code stream in addition to the first frame header, determine a target frame header from the first frame header and the at least one third frame header, and perform parsing processing based on the target frame header and a code value matched with the target frame header to obtain the first data.

[0141] In the embodiments of the present application, further, Figure 5 The composition structure of the electronic device according to the embodiments of the present application is shown in Figure 2 As shown in Figure 5 The electronic device 1 according to the embodiments of the present application can further include a processor 15 and a memory 16 storing instructions executable by the processor 15. Further, the electronic device 1 can further include a communication interface 17, and a bus 18 for connecting the processor 15, the memory 16 and the communication interface 17.

[0142] In the embodiments of the present application, the processor 15 can be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), an FPGA, a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It can be understood that, for different devices, the electronic device for implementing the functions of the processor can also be other devices, and the embodiments of the present application are not limited specifically. The electronic device 1 can further include a memory 16, which can be connected with the processor 15. The memory 16 is configured to store executable program codes, and the program codes include computer operation instructions. The memory 16 can include a high-speed RAM memory and can also include a non-volatile memory, for example, at least two disk memories.

[0143] In the embodiments of the present application, the bus 18 is configured to connect the communication interface 17, the processor 15, and the memory 16, and enable mutual communication among these devices.

[0144] In the embodiments of the present application, the memory 16 is configured to store instructions and data.

[0145] Further, in the embodiments of the present application, the processor 15 is configured to, in a case where the first transmission signal is received, decode the first transmission signal based on an encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal; extract a first frame header of the code stream based on a transmission rate of the first transmission signal, and compare the first frame header with a preset frame header to obtain a first comparison result; in a case where it is determined according to the first comparison result that the first transmission signal is a target transmission signal, perform analysis processing based on the first frame header and code values of the code stream to obtain first data corresponding to the first transmission signal.

[0146] In the embodiments of the present application, the processor 15 can be an FPGA, and the FPGA includes a first module. The processor 15 can perform double-edge sampling through the first module.

[0147] In some embodiments of the present application, the first module can be an ILOGIC module. In a case where double-edge sampling is performed through the first module, the code stream can be double-edge sampled based on an IDDR mode in the ILOGIC module. The IDDR mode can convert double-edge sampled data into single-edge data transmission to an internal FPGA.

[0148] In practical applications, the memory 16 can be a volatile memory, such as a random-access memory (RAM), or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or a combination of the above types of memories, and provides instructions and data to the processor 15.

[0149] In addition, each functional module in the embodiment can be integrated in one processing unit, or each unit can exist physically independently, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional module.

[0150] If the integrated unit is realized in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiment can be embodied in the form of a software product, the computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the embodiment method. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.

[0151] The embodiment of the present application provides an electronic device, which, when receiving a first transmission signal, decodes the first transmission signal based on an encoding mode corresponding to the first transmission signal, obtains a code stream corresponding to the first transmission signal; extracts a first frame header of the code stream based on a transmission rate of the first transmission signal, and compares the first frame header with a preset frame header to obtain a first comparison result; when it is determined according to the first comparison result that the first transmission signal is a target transmission signal, performs analysis processing based on the first frame header and a code value of the code stream to obtain first data corresponding to the first transmission signal. Therefore, when receiving data, the electronic device can adaptively decode the first transmission signal according to the encoding mode of the received first transmission signal, and extract the frame header of the code stream obtained after decoding based on the transmission rate of the first transmission signal; then the first frame header and the preset frame header can be compared to determine whether the first transmission signal is the target transmission signal that needs to be received, so that the first frame header and the code value are analyzed and processed to obtain the first data only when it is determined that the first transmission signal is the target transmission signal, thereby completing the reception of data, realizing an adaptive decoding process, greatly reducing the difficulty of data transmission and reception, and effectively improving the communication efficiency.

[0152] Specifically, the program instructions corresponding to the data processing method in the embodiment can be stored on a storage medium such as an optical disc, a hard disk, a U disk, etc. When the program instructions corresponding to the data processing method in the storage medium are read by an electronic device or executed, the following steps are included:

[0153] When receiving a first transmission signal, decoding the first transmission signal based on an encoding mode corresponding to the first transmission signal to obtain a code stream corresponding to the first transmission signal;

[0154] Extracting a first frame header of the code stream based on a transmission rate of the first transmission signal, and comparing the first frame header with a preset frame header to obtain a first comparison result;

[0155] When it is determined according to the first comparison result that the first transmission signal is a target transmission signal, performing analysis processing based on the first frame header and a code value of the code stream to obtain first data corresponding to the first transmission signal.

[0156] The embodiment of the present application provides a computer program product, which, when running on a computer, causes the computer to execute the steps in the method provided by the above-mentioned method embodiment.

[0157] Those skilled in the art will appreciate that embodiments of the application can be further implemented in a computer program product tangibly embodied in a machine-readable storage medium (e.g., memory storage) including instructions that, when executed by a machine (e.g., a processor), cause the machine to perform the steps described herein. The terms "machine-readable storage medium" or "computer-readable storage medium" include, but are not limited to, portable or fixed storage devices, optical storage devices, magnetic storage devices, wireline, optical, or other communication links, commonly known as computer communication networks (comprising an intranet, the Internet, etc.), or the like. The term "machine-readable storage medium" does not comprise a transitory signal per se.

[0158] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.

[0159] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.

[0160] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks.

[0161] The foregoing is merely exemplary and is not intended to limit the scope of the present application.

Claims

1. A data processing method, characterized in that, The method includes: Upon receiving the first transmission signal, the first transmission signal is decoded based on the encoding method corresponding to the first transmission signal to obtain the bit stream corresponding to the first transmission signal; The first frame header of the bitstream is extracted based on the transmission rate of the first transmission signal, and the first frame header is compared with a preset frame header to obtain a first comparison result; If the first transmission signal is determined to be the target transmission signal based on the first comparison result, parsing processing is performed based on the code value of the first frame header and the code stream to obtain the first data corresponding to the first transmission signal.

2. The data processing method according to claim 1, characterized in that, After extracting the first frame header of the bitstream based on the transmission rate of the first transmission signal, and comparing the first frame header with a preset frame header to obtain a first comparison result, the method further includes: If the first comparison result shows that the first frame header is the same as the preset frame header, then the first transmission signal is determined to be the target transmission signal. If the first comparison result shows that the first frame header is the same as the second frame header corresponding to the preset frame header, the first transmission signal is determined to be the target transmission signal; wherein, the second frame header is the frame header obtained by performing a bit-inverted operation on the preset frame header; If the first comparison result shows that the first frame header is different from both the preset frame header and the second frame header, then the first transmission signal is determined not to be the target transmission signal.

3. The data processing method according to claim 1 or 2, characterized in that, Decoding the first transmission signal based on the encoding method corresponding to the first transmission signal to obtain the bitstream corresponding to the first transmission signal includes: When the encoding method corresponding to the first transmission signal is positive Manchester encoding, the first transmission signal is decoded based on the positive Manchester encoding to obtain the bitstream; When the encoding method corresponding to the first transmission signal is inverse Manchester encoding, the first transmission signal is decoded based on the inverse Manchester encoding to obtain the bitstream.

4. The data processing method according to claim 3, characterized in that, The method further includes: The sampling frequency is determined based on the bitstream; The bitstream is sampled along both edges according to the sampling frequency to obtain the level change information of the bitstream, and the first frame header and the code value are determined based on the level change information.

5. The data processing method according to claim 4, characterized in that, The method further includes: A second comparison result is obtained by comparing the first cyclic redundancy check value of the first transmitted signal with the second cyclic redundancy check value of the second transmitted signal; wherein, the second transmitted signal represents the previous frame of the first transmitted signal. The execution status is determined based on the second comparison result; wherein, the execution status includes a data receiving status and a verification status; the data receiving status is used to receive data; the verification status is used to wait for verification whether the data transmission has ended.

6. The data processing method according to claim 5, characterized in that, Determining the execution status based on the second comparison result includes: If the second comparison result is that the first cyclic redundancy check value and the second cyclic redundancy check value are different, the execution state is determined to be the data receiving state; If the second comparison result shows that the first cyclic redundancy check value and the second cyclic redundancy check value are the same, then the execution state is determined to be the verification state.

7. The data processing method according to claim 6, characterized in that, After determining the execution state as the verification state when the second comparison result shows that the first cyclic redundancy check value and the second cyclic redundancy check value are the same, the method further includes: Upon receiving an idle frame, determine that data transmission has ended; If no idle frame is received, the system enters the data receiving state.

8. The data processing method according to any one of claims 4 to 7, characterized in that, The method further includes: If at least one third frame header of the bitstream is extracted in addition to the first frame header, then the target frame header is determined from the first frame header and the at least one third frame header. The first data is obtained by parsing the target frame header and the code value that matches the target frame header.

9. An electronic device, characterized in that, The electronic device includes a decoding module, an extraction module, and a decoding state machine module; The decoding module is used to decode the first transmission signal based on the encoding method corresponding to the first transmission signal when the first transmission signal is received, so as to obtain the code stream corresponding to the first transmission signal. The extraction module is used to extract the first frame header of the bitstream based on the transmission rate of the first transmission signal, and compare the first frame header with a preset frame header to obtain a first comparison result; The decoding state machine module is used to perform parsing processing based on the code value of the first frame header and the code stream when the first transmission signal is determined to be the target transmission signal according to the first comparison result, so as to obtain the first data corresponding to the first transmission signal.

10. An electronic device, characterized in that, The electronic device includes a processor and a memory storing processor-executable instructions; when the executable instructions are executed by the processor, the method as described in any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 8.

12. A computer program product, comprising a computer program or instructions, characterized in that, When the computer program or instructions are executed by the processor, they implement the steps of the data processing method according to any one of claims 1 to 8.