Data transmission method and device based on APHY protocol, equipment and medium
By sending the initial sequence and white noise sequence in the APHY protocol, the problems of long scrambling code locking and K-sequence locking time are solved, thus improving data transmission efficiency.
Patent Information
- Application Number
- CN202411101870.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2026-02-13
AI Technical Summary
During data transmission in the APHY protocol, the scrambling code locking and K-sequence locking times are relatively long, affecting data transmission efficiency.
By sending an initial sequence and a white noise sequence in a preset format, including white noise signals in PAM2, PAM4, PAM8, or PAM16 formats, the receiver is assisted in completing the link establishment and locking process.
It reduces the time required for scrambling code locking and K-sequence locking, thereby improving data transmission efficiency.
Smart Images

Figure CN121531017A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data transmission technology, and in particular to a data transmission method, apparatus, device, and medium based on the APHY protocol. Background Technology
[0002] Currently, in the PAM transmission mode of the APHY protocol, during the connection establishment process, both the transmitter (Source) and receiver (Sink) need to start from the Silent state, go through the initialization (TRAIN) phase, the idle (IDLE) phase, and finally reach the normal (NORMAL) phase before they can start transmitting APack payload packets.
[0003] According to the existing APHY protocol, before the transmitter enters the normal phase, except for the K sequence, TRAIN_TO_IDLE switching sequence, and IDLE_TO_NORMAL switching sequence which use the four levels corresponding to PAM4, each other transmission symbol uses the two highest and lowest levels in PAM4. Even after entering the normal phase, the corresponding levels are only used in the transmission format of PAM4, PAM8, or PAM16 during the transmission of APHY-specified payload packets.
[0004] According to the APHY protocol, during the initialization phase, before the receiver performs steps such as scrambling code locking, it needs to complete channel debugging of the APHY link to ensure that the APHY link connection is established only after the scrambling code locking process (EQ Lock) and the K-sequence locking process (CDR Lock). However, during the initialization phase, only two of the PAM4 modes are transmitted for most of the time, which is insufficient to help scrambling code locking and K-sequence locking complete the locking process quickly.
[0005] Therefore, there is an urgent need for a data transmission method, apparatus, device, and medium based on the APHY protocol to improve the above-mentioned problems. Summary of the Invention
[0006] The purpose of this invention is to provide a data transmission method, apparatus, device, and medium based on the APHY protocol, which can reduce the time of scrambling code locking and K-sequence locking and improve data transmission efficiency.
[0007] In a first aspect, the present invention provides a data transmission method based on the APHY protocol, comprising:
[0008] Send an initial sequence to the first terminal so that the first terminal returns a first signal;
[0009] The system receives a first signal and sends a white noise sequence in a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol.
[0010] Data is transmitted between the device and the first terminal via the link.
[0011] The beneficial effects of the method of the present invention are as follows: by sending an initial sequence to a first terminal, the first terminal returns a first signal; receiving the first signal and sending a white noise sequence of a preset format to the first terminal, a link based on the APHY protocol is established with the first terminal; and data transmission is performed with the first terminal based on the link. By adding a white noise sequence of a preset format, the time for scrambling code locking and K-sequence locking is reduced, thereby improving data transmission efficiency.
[0012] Optionally, sending an initial sequence to the first terminal so that the first terminal returns a first signal includes:
[0013] An initial sequence is sent to the first terminal so that the first terminal returns a first signal after completing the simulation parameter adjustment.
[0014] Optionally, data transmission with the first terminal based on the link includes:
[0015] Data transmission is performed on keep-alive data packets and service data packets.
[0016] Optionally, sending the initial sequence to the first terminal so that the first terminal returns a first signal further includes:
[0017] An initial sequence is sent to the first terminal so that the first terminal can collect a valid signal of a preset length as the current state of the scrambler.
[0018] Optionally, sending a white noise sequence in a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol further includes:
[0019] A white noise sequence in a preset format is sent to the first terminal so that after the first terminal acquires an effective signal of a preset length and obtains the current state of the scrambler, it detects a descrambling output of length TK, where T and K are both positive integers, and T is the period and K is the length of the effective signal.
[0020] Optionally, the initial sequence is a zero-byte sequence, and the sequence is PAM2 format data.
[0021] Optionally, the white noise sequence is PAM4, PAM8, or PAM16 format data, and the level interval of the PAM4 format data is different from that of the K sequence.
[0022] Optionally, the white noise sequence is in sC4 format. 16 (±5) / sC8 16(±11 / ±7 / ±3) / sC16 16 (±11 / ±7 / ±5 / ±3 / ±1).
[0023] Secondly, the present invention provides an apparatus comprising modules / units for performing any of the possible designs described in the first aspect. These modules / units can be implemented in hardware or by hardware executing corresponding software.
[0024] Thirdly, the present invention provides an electronic device including a memory and a processor, wherein the memory stores a program executable on the processor, and when the program is executed by the processor, the electronic device implements a method for performing any of the possible designs described above.
[0025] Fourthly, the present invention provides a readable storage medium storing a program, which, when executed, implements a method of any possible design of any of the above aspects.
[0026] For the beneficial effects of the second to fourth aspects mentioned above, please refer to the description of the first aspect mentioned above. Attached Figure Description
[0027] Figure 1 A flowchart illustrating a data transmission method based on the APHY protocol provided in an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of a data transmission device based on the APHY protocol provided in an embodiment of the present invention;
[0029] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention;
[0030] Figure 4 The present invention provides a K-sequence with several periods in PAM mode and a PAM2 signal format.
[0031] Figure 5 The scrambling sequence format with several cycles provided in the embodiments of the present invention;
[0032] Figure 6 This is a white noise sequence format with several cycles provided in the embodiments of the present invention. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions in the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention. Unless otherwise defined, the technical or scientific terms used herein should have the ordinary meaning understood by those skilled in the art. The terms "comprising" and similar expressions used herein mean that the element or object preceding the word covers the element or object listed following the word and its equivalents, but do not exclude other elements or objects.
[0034] To address the inconvenience of current image acquisition methods, the image simulation system provided by this invention can effectively reduce the dependence on the test environment and significantly improve work efficiency. The technical solutions of the embodiments of this invention are described below with reference to the accompanying drawings. In the description of the embodiments of this invention, the terminology used is for the purpose of describing specific embodiments only and is not intended to limit the invention. As used in the specification and appended claims of this invention, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this invention, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.
[0035] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of the invention. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," and "in still other embodiments" appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically emphasized. The term "connection" includes both direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0036] In embodiments of the present invention, "exemplarily" or "for example" are used to indicate that they are examples, illustrations, or descriptions. Any embodiment or design described as "exemplarily" or "for example" in embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or design solutions. Rather, the use of "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0037] like Figure 1 As shown, the present invention provides a data transmission method based on the APHY protocol, comprising:
[0038] S101, an initial sequence is sent to a first terminal so that the first terminal returns a first signal, wherein the initial sequence is a zero-byte sequence and the sequence is PAM2 format data.
[0039] In some embodiments, sending an initial sequence to a first terminal so that the first terminal returns a first signal includes: sending an initial sequence to a first terminal so that the first terminal returns a first signal after completing the simulation parameter adjustment.
[0040] In some embodiments, sending an initial sequence to a first terminal so that the first terminal returns a first signal further includes: sending an initial sequence to a first terminal so that the first terminal collects a valid signal of a preset length as the current state of the scrambler.
[0041] In some specific embodiments, sending a white noise sequence of a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol further includes: sending a white noise sequence of a preset format to the first terminal so that after the first terminal collects an effective signal of a preset length and obtains the current state of the scrambler, it detects a descrambling output of length TK to ensure successful descrambling, where T and K are both positive integers, and T is the period and K is the length of the effective signal.
[0042] S102, receive the first signal and send a white noise sequence in a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol.
[0043] In some embodiments, the white noise sequence is PAM4, PAM8, or PAM16 format data, and the level interval of the PAM4 format data is different from that of the K sequence.
[0044] In some specific embodiments, the white noise sequence is in sC4 format. 16 (±5) / sC8 16 (±11 / ±7 / ±3) / sC16 16 (±11 / ±7 / ±5 / ±3 / ±1).
[0045] S103, Data transmission is performed with the first terminal based on the link.
[0046] In some embodiments, data transmission with the first terminal based on the link includes: transmitting keep-alive data packets and service data packets.
[0047] To facilitate understanding, this embodiment further elaborates on the specific implementation process of the above method in conjunction with a specific application scenario, such as... Figure 4-6 As shown, this embodiment takes the transmitter and receiver (i.e., the first terminal) as an example, with the initial sequence being a zero-byte sequence. In this embodiment, the value of P in TP is 58 bits, that is, the effective signal length is 58 bits. The specific steps include the following:
[0048] For the initialization phase, which only has K-series with periods between 256 and 400 μs and each K-series has only 3 PAM4 / PAM8 / PAM16 features, this invention designs a white noise sequence actively initiated by the transmitter to cover more PAM4 / PAM8 / PAM16 features in PAM mode.
[0049] According to the APHY protocol (123), such as Figure 4 As shown, the K-sequence in PAM mode and the PAM2 signal format; as Figure 5 As shown, the scrambling sequence generation format; and as... Figure 6 The white noise sequence format shown.
[0050] For this white noise sequence, the transmitter is set to send only in PAM mode, and the transmission period is set to T; where T is determined by an independent scrambler to determine the randomness of its period.
[0051] For the receiver, scrambling code locking and K-sequence locking need to be completed during the initialization phase. Due to the introduction of white noise sequences, the scrambling code locking and K-sequence locking processes need to be reconfigured for the following scenarios:
[0052] Step a, the connection process begins, the transmitter does not send any signals; the transmitter first initiates a zero-byte sequence, and the transmitted level is in PAM2 format.
[0053] Step b: After the receiver completes its own analog parameter adjustment, it starts to send the PAM2 signal; after the transmitter detects the signal sent by the receiver, it starts to send the PAM4 white noise sequence.
[0054] Step c: Once the APHY link is established between the transmitter and receiver, the transmitter stops transmitting the PAM4 white noise sequence. Thereafter, the receiver continuously tracks the channel using keep-alive data packets and normal service data packets as defined in the APHY protocol.
[0055] Regarding the scrambling code locking process, in the APHY protocol, since the receiver can ensure that the transmitter will only send a signal scrambled with zero bytes before actively initiating the K sequence, the receiver can directly use the characteristics of the scrambler to continuously collect 58 bits of valid signal as the current state of the scrambler, thereby completing the scrambling code locking and subsequent synchronous descrambling process.
[0056] After introducing a PAM4 type white noise sequence, the transmitter will not scramble with completely zero bytes. Therefore, after acquiring a 58-bit valid signal and obtaining the current state of the scrambler, the receiver needs to check the descrambling output of length T-58 bits to ensure that it obtains either zero bytes or a preset white noise sequence, thus ensuring successful descrambling. Otherwise, if the white noise sequence affects the descrambling process, the T-58-bit descrambling output will contain non-zero bytes and non-preset white noise sequences, indicating that a white noise sequence was mistakenly acquired during the current descrambling locking process, requiring a re-acquisition and re-locking of the scrambler. This process can be called the relocking process.
[0057] Considering the efficiency of the descrambler locking process, the relocking start time and the white noise sequence transmission period can be determined as follows:
[0058] For the K-sequence locking process, according to the designed white noise sequence format, its PAM4 type level interval is inconsistent with the K sequence, which can further determine the uncorrelation between the white noise sequence and the K sequence, and complete the detection of the K sequence.
[0059] The advantage of this invention is that by sending a white noise sequence signal with a known modulation level of PAM4, PAM8, or PAM16, the receiver can complete the corresponding threshold training. This process is mainly carried out during the initialization process. This noise is different from the K sequence. The receiver filters the known white noise sequence, so theoretically it will not be misidentified as a K sequence by the receiver, causing it to enter the subsequent working state prematurely. At the same time, it will not affect other received signals of the receiver.
[0060] like Figure 2 As shown, based on the above-mentioned data transmission method based on the APHY protocol, the present invention provides a data transmission device based on the APHY protocol, comprising: a sending unit 201, configured to send an initial sequence to a first terminal so that the first terminal returns a first signal; a receiving unit 202, configured to receive the first signal and send a white noise sequence of a preset format to the first terminal so as to establish a link with the first terminal based on the APHY protocol; and a transmission unit 203, configured to transmit data with the first terminal based on the link.
[0061] It should be understood that all relevant content of each step involved in the above method embodiments can be referenced to the functional description of the corresponding functional module, and will not be repeated here. In addition, the use of suffixes such as "module", "component" or "unit" to indicate elements is only for the convenience of the description of the present invention, and has no specific meaning in itself. Therefore, "module", "component" or "unit" can be used in combination. The terminal can be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptops, handheld computers, personal digital assistants (PDAs), portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs, desktop computers, etc. The following description will use mobile terminals as examples. Those skilled in the art will understand that, in addition to elements specifically designed for mobile purposes, the construction according to embodiments of the present invention can also be applied to fixed-type terminals.
[0062] In other embodiments of the present invention, an electronic device 300 is disclosed, such as... Figure 3As shown, the device may include: one or more processors 301; memory 302; display 303; one or more application programs (not shown); and one or more computer programs 304. These devices can be connected via one or more communication buses 305. The one or more computer programs 304 are stored in the memory 302 and configured to be executed by the one or more processors 301. The one or more computer programs 304 include instructions that can be used to perform actions such as... Figure 1 Each step in the corresponding embodiment.
[0063] Processor 301 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0064] The memory 302 can be an internal storage unit of the electronic device 300, such as a hard disk or RAM of the electronic device 300. The memory 302 can also be an external storage device of the electronic device 300, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or FlashCard equipped on the electronic device 300. Furthermore, the memory 302 can include both internal and external storage units of the electronic device 300. The memory 302 is used to store computer programs and other programs and data required by the electronic device. The memory 302 can also be used to temporarily store data that has been output or will be output.
[0065] The computer program 304 can be divided into one or more modules / units. The one or more modules / units can be a series of computer program instruction segments that can perform a specific function. The instruction segments are used to describe the execution process of the computer program 304 in the electronic device 300.
[0066] In addition to the above-described structure, those skilled in the art will understand that Figure 3This is merely an example of electronic device 300 and does not constitute a limitation on electronic device 300. Electronic device 300 may include more or fewer components than shown, or combine certain components, or different components. For example, electronic device may also include input / output devices, network access devices, buses, etc.
[0067] Those skilled in the art will understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the functions described above can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this invention. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0068] Based on the above embodiments, the present invention also discloses a computer-readable storage medium having at least one computer program stored thereon, wherein the computer program, when executed by a processor, implements the data transmission method based on the APHY protocol in the foregoing embodiments.
[0069] Those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing a processor. The program can be stored in a computer-readable storage medium, which is a non-transitory medium, such as random access memory, read-only memory, flash memory, hard disk, solid-state drive, magnetic tape, floppy disk, optical disk, and any combination thereof. The storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. This available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state drive (SSD)).
[0070] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.
[0071] In summary, the data transmission method, apparatus, device, and medium based on the APHY protocol disclosed in this invention improve data transmission efficiency by adding a white noise sequence with a preset format, thereby reducing the time for scrambling code locking and K-sequence locking.
[0072] While embodiments of the present invention have been described in detail above, it will be apparent to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations fall within the scope and spirit of the invention as set forth in the claims. Furthermore, the invention described herein may have other embodiments and can be implemented or carried out in various ways.
Claims
1. A data transmission method based on the APHY protocol, characterized in that, include: Send an initial sequence to the first terminal so that the first terminal returns a first signal; The system receives a first signal and sends a white noise sequence in a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol. Data is transmitted between the device and the first terminal via the link.
2. The method according to claim 1, characterized in that, Sending an initial sequence to a first terminal so that the first terminal returns a first signal includes: An initial sequence is sent to the first terminal so that the first terminal returns a first signal after completing the simulation parameter adjustment.
3. The method according to claim 1, characterized in that, Data transmission with the first terminal based on the link includes: Data transmission is performed on keep-alive data packets and service data packets.
4. The method according to claim 1, characterized in that, Sending the initial sequence to the first terminal so that the first terminal returns a first signal further includes: An initial sequence is sent to the first terminal so that the first terminal can collect a valid signal of a preset length as the current state of the scrambler.
5. The method according to claim 4, characterized in that, Sending a white noise sequence in a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol also includes: A white noise sequence in a preset format is sent to the first terminal so that after the first terminal acquires an effective signal of a preset length and obtains the current state of the scrambler, it detects the descrambling output of length TP, where T and P are both positive integers, and T is the period and P is the length of the effective signal.
6. The method according to claim 1, characterized in that, The initial sequence is a zero-byte sequence, and the sequence is PAM2 format data.
7. The method according to claim 1, characterized in that, The white noise sequence is PAM4, PAM8, or PAM16 format data, and the level interval of the PAM4 format data is different from that of the K sequence.
8. The method according to claim 1, characterized in that, The white noise sequence is in sC4 format. 16 (±5) / sC8 16 (±11 / ±7 / ±3) / sC16 16 (±11 / ±7 / ±5 / ±3 / ±1).
9. A data transmission device based on the APHY protocol, used in the method according to any one of claims 1 to 8, characterized in that, include: A sending unit is configured to send an initial sequence to a first terminal so that the first terminal returns a first signal; The receiving unit is used to receive the first signal and send a white noise sequence of a preset format to the first terminal to establish a link with the first terminal based on the APHY protocol. A transmission unit is used to transmit data with the first terminal based on the link.
10. An electronic device, characterized in that, The device includes a memory and a processor, wherein the memory stores a program that can run on the processor, and when the program is executed by the processor, causes the electronic device to perform the method of any one of claims 1 to 8.
11. A readable storage medium storing a program, characterized in that, When the program is executed, it implements the method of any one of claims 1 to 8.