Communication chip, device and data transmission method based on wideband power line carrier
By introducing a data transfer unit and a frame control data capture unit into the baseband module of broadband power line carrier communication, the problems of CPU burden and slow transmission rate caused by frequent DMA configuration are solved, and efficient data transmission and storage stability are achieved.
Patent Information
- Application Number
- CN202511181815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-08-22
AI Technical Summary
In broadband power line carrier communication, existing technologies suffer from slow data transmission rates, heavy CPU load, and a tendency to generate memory storage errors due to frequent DMA configurations and CPU software intervention.
Two purely hardware modules, a data transfer unit and a frame control data capture unit, are added to the baseband module. These modules enable automatic data transfer and capture of payload data length information, reducing CPU software intervention.
It enables real-time data migration, reduces CPU load, improves data transfer rate, and reduces memory storage errors.
Smart Images

Figure CN120750369B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of communication, and particularly relates to a communication chip and device based on a wideband power line carrier and a data transmission method. BACKGROUND
[0002] A communication device based on a wideband power line carrier (HPLC) includes a baseband and an analog front end, which together realize modulation, transmission and demodulation of data on a power line. The baseband performs digital signal processing, including data encoding and decoding, modulation and demodulation algorithm execution and communication protocol control, etc. The analog front end performs analog-digital-digital conversion and filtering, etc.
[0003] For transmission, the conventional method is to place data subjected to a cpu packet operation to a system memory (memory), use general direct memory access (Direct Memory Access, DMA) to move the data to a baseband cache, and then perform baseband processing. For reception, the conventional method is to store data subjected to baseband processing to a baseband cache, then use general DMA to move the data to a system memory, and then perform a cpu unpacking operation. Whether for transmission or reception, using the above method, the following problems exist: Since the HPLC has multiple physical block sizes, for example, frame control (FC) data is PB16 (i.e. 16 byte), and payload (PL) data is PB72 (i.e. 72 byte), the FC data and the PL data are stored in different locations in the system memory, and have respective source addresses. Therefore, the general DMA needs to be configured as follows: the source address of the FC + the transmission size of the FC; and the source address of the PL + the transmission size of the PL. The use of general DMA requires frequent software configuration, which requires frequent CPU software intervention, occupies CPU software processing time, and even affects the CPU to perform other functions. SUMMARY
[0004] The present application proposes a communication device based on a wideband power line carrier and a baseband data transmission method. By adding two pure hardware modules in the baseband module, the CPU software does not need to be frequently intervened, and the CPU burden can be reduced.
[0005] In a first aspect, the present application provides a communication chip based on wideband power line carrier, comprising: a baseband module, the baseband module comprising a baseband cache, a data moving unit and a frame control data grabbing unit, wherein the data moving unit is connected to a system memory of a communication device in which the communication chip is located and the baseband cache, and the frame control data grabbing unit is connected to the data moving unit;
[0006] The data moving unit is configured to move frame control data between the system memory and the baseband cache;
[0007] The frame control data grabbing unit is configured to grab length information of payload data in the frame control data during the process of moving the frame control data by the data moving unit, and send the length information of the payload data to the data moving unit;
[0008] The data moving unit is further configured to move payload data between the system memory and the baseband cache according to the length information of the payload data.
[0009] In some embodiments, in the case that the communication chip is applied to a wideband power line carrier based transmitter, the data moving unit is configured to move frame control data of a first data packet in the system memory to the baseband cache according to a first start address;
[0010] The frame control data grabbing unit is configured to grab first length information of payload data in the frame control data of the first data packet during the process of moving the frame control data of the first data packet by the data moving unit, and send the first length information of the payload data to the data moving unit;
[0011] The data moving unit is further configured to move payload data of the first data packet in the system memory to the baseband cache according to the first length information of the payload data;
[0012] Wherein, the first start address is a start address of the first data packet in the system memory.
[0013] In some embodiments, in the case that the communication chip is applied to a wideband power line carrier based receiver, the data moving unit is configured to move frame control data of a second data packet in the baseband cache to the system memory according to a second start address;
[0014] The frame control data grabbing unit is configured to grab second length information of payload data in the frame control data of the second data packet during the process of moving the frame control data of the second data packet by the data moving unit, and send the second length information of the payload data to the data moving unit;
[0015] The data moving unit is further configured to move the payload data of the second data packet in the baseband cache to the system memory according to second length information of the payload data;
[0016] The second start address is a start address of the second data packet in the baseband cache.
[0017] In some embodiments, the data moving unit includes a transmitting data moving unit and a receiving data moving unit in the case that the communication device where the communication chip is located supports data transceiving, and the baseband cache includes a transmitting baseband cache and a receiving baseband cache; wherein,
[0018] The transmitting data moving unit is connected between the system memory and the transmitting baseband cache, and is configured to move frame control data of a first data packet in the system memory to the transmitting baseband cache according to a first start address;
[0019] The receiving data moving unit is connected between the system memory and the receiving baseband cache, and is configured to move frame control data of a second data packet in the receiving baseband cache to the system memory according to a second start address;
[0020] The first start address is a start address of the first data packet in the system memory, and the second start address is a start address of the second data packet in the baseband cache.
[0021] In some embodiments, the frame control data grabbing unit is connected with the transmitting data moving unit and connected with the receiving data moving unit,
[0022] The frame control data grabbing unit is configured to grab first length information of payload data in the frame control data of the first data packet in the process that the transmitting data moving unit moves the frame control data of the first data packet, and send the first length information of the payload data to the transmitting data moving unit, and / or grab second length information of payload data in the frame control data of the second data packet in the process that the receiving data moving unit moves the frame control data of the second data packet, and send the second length information of the payload data to the receiving data moving unit.
[0023] In some embodiments, the transmitting data moving unit is further configured to move payload data of the first data packet in the system memory to the transmitting baseband cache according to the first length information of the payload data;
[0024] The receiving data moving unit is further configured to move the payload data of the second data packet in the baseband cache to the system memory according to the second length information of the payload data.
[0025] In some embodiments, the first data packet is a data packet obtained by adding at least a frame control field to raw data according to a power line carrier communication protocol by a central processing unit of a communication device in which the communication chip is located, and storing the data packet in the system memory, the frame control field including length information of payload data, the frame control data of the first data packet and the payload data of the first data packet being stored continuously in the system memory.
[0026] In some embodiments, the second data packet is a data packet obtained by processing a digital signal output by an analog front end module of the communication chip by a baseband data processing module of the baseband module, and storing the data packet in the baseband cache, the frame control data of the second data packet and the payload data of the second data packet being stored continuously in the baseband cache.
[0027] In the second aspect, the application further provides a communication device based on a wideband power line carrier, including a system memory, a central processing unit, and a communication chip based on a wideband power line carrier as described in the first aspect.
[0028] In the third aspect, the application provides a baseband data transmission method based on a wideband power line carrier, applied to a communication device based on a wideband power line carrier as described in the second aspect, and the method includes:
[0029] The data moving unit moves the frame control data in the system memory to the baseband cache, and in the process of moving the frame control data by the data moving unit, the frame control data grabbing unit grabs length information of payload data in the frame control data;
[0030] The data moving unit moves the payload data in the system memory to the baseband cache according to the length information of the payload data.
[0031] Alternatively,
[0032] The data moving unit moves the frame control data in the baseband cache to the system memory, and in the process of moving the frame control data by the data moving unit, the frame control data grabbing unit grabs length information of payload data in the frame control data;
[0033] The data moving unit moves the payload data in the baseband cache to the system memory according to the length information of the payload data.
[0034] The application provides a communication device based on a wideband power line carrier and a baseband data transmission method, two pure hardware modules, a data moving unit and a frame control data grabbing unit, are added in the baseband, the data moving unit is configured to move data from a system memory or to the system memory, and the frame control data grabbing unit is configured to grab length information of payload data in frame control data in the process of moving the frame control data by the data moving unit, so that the data moving unit can move the payload data from the system memory or to the system memory according to the length information of the payload data, thereby realizing real-time data moving, on the one hand, frequent software configuration is not needed, the CPU burden is reduced, and the data moving rate is improved; on the other hand, the length information of the payload data in the frame control data is grabbed by the hardware module, the frame control data grabbing unit, compared with the CPU configuration mode, no delay is caused, timely processing can be realized, and the occurrence of data storage errors in the system memory can be reduced. BRIEF DESCRIPTION OF DRAWINGS
[0035] The above and / or additional aspects and advantages of the application will become apparent and be readily understood from the following description, taken in connection with the accompanying drawings, in which:
[0036] Figure 1 A structure diagram of frame data provided by the application;
[0037] Figure 2 A schematic diagram of a baseband data transmission process of a sending end in the related art;
[0038] Figure 3 A schematic diagram of a baseband data transmission process of a receiving end in the related art;
[0039] Figure 4 A structure diagram of a communication chip based on a wideband power line carrier provided by the application;
[0040] Figure 5 A schematic diagram of a baseband data transmission process when the communication chip is applied to a transmitter based on a wideband power line carrier provided by the application;
[0041] Figure 6 A schematic diagram of a data block corresponding to frame control data provided by the application;
[0042] Figure 7 A schematic diagram of a baseband data transmission process when the communication chip is applied to a receiver based on a wideband power line carrier provided by the application;
[0043] Figure 8 A schematic diagram of a baseband data transmission process when a communication device where the communication chip is located supports data transceiving provided by the application;
[0044] Figure 9 A structure schematic diagram of a communication device based on wideband power line carrier provided by an embodiment of the present application;
[0045] Figure 10 One of flow schematic diagrams of a baseband data transmission method based on wideband power line carrier provided by an embodiment of the present application;
[0046] Figure 11 The other of flow schematic diagrams of a baseband data transmission method based on wideband power line carrier provided by an embodiment of the present application.
[0047] Explanation of reference signs:
[0048] 400: communication chip based on wideband power line carrier; 10: baseband module; 20: central processing unit;
[0049] 30: system memory; 101: baseband cache; 102: data moving unit;
[0050] 103: frame control data grabbing unit; 104: baseband data processing module; 900: communication device based on wideband power line carrier. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope of protection of the present application.
[0052] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, not to describe a specific order or sequence. It should be understood that the data used in this way can be exchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the front and rear associated objects are in an "or" relationship.
[0053] The communication device based on the broadband power line carrier (High-speed Power Line Communication, HPLC) includes a baseband and an analog front end, which together realize the modulation, transmission and demodulation of data on the power line. Among them, the baseband performs digital signal processing, including data encoding and decoding, modulation and demodulation algorithm execution and communication protocol control, etc.; the analog front end performs analog-digital-digital-analog conversion, filtering, etc.
[0054] For sending, the conventional method is to place the data processed by the CPU packet operation to the system memory, use general DMA to move the data to the baseband cache, and then perform baseband processing.
[0055] For receiving, the conventional method is to store the data processed by the baseband to the baseband cache, then use general DMA to move the data to the system memory, and then perform CPU unpacking operation.
[0056] The frame data in the broadband power line carrier communication includes preamble, frame control data (FC), payload data (PL) and the like in the time domain. Taking sending (TX) as an example, the format data in the obtained after encoding, interleaving, diversity copy, cyclic prefix and the like Figure 1 , but before Turbo encoding, each frame of data is composed of one FC and one PL Figure 1 A frame data structure diagram provided by an embodiment of the application is shown in Figure 1 , the FC is fixed, the PL supports 1-4, and the multiple PLs are of the same size). According to the power line carrier communication protocol (Q / GDW 12087.41-2020 Dual-mode communication interconnection and interworking technical specification Part 4-1: Physical layer communication protocol), the frame control data is fixed PB16 mode, and the payload data supports PB72, PB136, PB264 and PB520 four modes. That is, for each frame of data before encoding, it is composed of fixed length frame control data PB16 and non-fixed length payload data. Among them, PB16 represents the length of each physical block (PB: PHY Block) is 16 bytes, each byte is 8 bits, and PB16 includes a total of 128 bits. It should be noted that the system memory is stored in byte units, and the baseband cache is processed in bit units.
[0057] Figure 2 A schematic diagram of the baseband data transmission process of the sending end in the related art is shown in Figure 2 , the baseband data transmission process of the sending end includes:
[0058] 1. CPU packetizes: the original data is packetized into a complete data packet according to the requirement of the power carrier communication protocol. For example, the frame control field, the check information field and the like are added in the original data. In the HPLC, the FC field includes the type of the frame, the length of the payload data (PL), the priority, the demodulation information and the like, and the CPU will add these information in front of the original data according to the requirement of the communication protocol. For example, the original data is HELLO, and the data after packetization is 0105HELLOABCD, wherein 0105 is the FC field, 05 indicates the length of the original data (HELLO), and ABCD indicates the check code. In the embodiment of the application, the demodulation information of the PL, the length information of the PL and the like are included in the FC field.
[0059] 2. The CPU stores the packetized data into the system memory: the FC and the PL have different PBSize (wherein the PBSize of the FC is fixed, thereby facilitating the subsequent decoding operation and the like, and the PBSize of the PL is different according to the data size), for example, the FC is PB16 (16 bytes), and the PL is PB72 (72 bytes). In the related art, the FC and the PL are respectively stored in different positions of the memory, and have respective source addresses.
[0060] 3. The DMA module moves the data in the system memory to the baseband cache:
[0061] (1) The DMA module is configured for the first time by software: the source address of the FC (the starting address of the FC in the memory) and the size of the FC are configured. Specifically, the software configuration of the DMA module includes the DMA clock configuration, the DMA channel configuration (the related registers of the DMA channel are set, such as the transmission direction, the transmission width), the source address of the read register (the source address of the data read by the DMA register from the system memory), the address of the write register (the address of the data written by the DMA register into the baseband cache) and the like.
[0062] (2) The FC data is moved from the memory to the baseband cache according to the FC source address. Since the length information of the FC data is fixed, when the moving is completed is known to the DMA.
[0063] (3) The DMA module is configured for the second time by software, including the source address of the PL and the size of the PL.
[0064] (4) The PL data is moved from the system memory to the baseband cache by the DMA module according to the PL source address. Therefore, when the moving is completed is also known to the DMA, since the CPU will inform the DMA module of the length information of the PL data (i.e. the size of the PL).
[0065] 4. The baseband processor reads the data from the baseband cache and performs the subsequent encoding, interleaving and the like after the bit processing of the byte data.
[0066] The above-mentioned baseband data transmission process at the transmitting end has the following problems: 1) Frequent DMA data transfer configuration will occupy software running time and may even affect the function of the entire system; 2) Frequent DMA configuration increases data storage time, resulting in slower data transmission rate.
[0067] Figure 3 This is a schematic diagram of the baseband data transmission process at the receiving end in related technologies, such as... Figure 3 As shown, the baseband data transmission process at the receiving end is the reverse of the process at the sending end. The difference lies in the fact that the CPU needs to obtain the data after Turbo decoding. Before configuring the PL, the DMA module needs the CPU to inform it of the length information of the PL data, but the length information of the PL data can only be known after Turbo decodes the FC data. This leads to a problem: the CPU first needs to obtain the decoding information (interaction between the CPU and the baseband), and then configure the DMA based on the decoding information (address + PBSIze configuration; interaction between the CPU and the DMA module). On the one hand, there is a corresponding configuration or interaction time required in between; on the other hand, obtaining the decoding information and configuration both require software intervention from the CPU. Too frequent software intervention increases the processing burden on the CPU, and if there is an interruption or untimely response, the DMA module may not be able to configure in time, resulting in memory storage errors.
[0068] In order to at least solve one of the technical problems existing in the related technologies, embodiments of this application provide a communication chip, device and data transmission method based on broadband power line carrier.
[0069] This application adds two hardware units to the baseband module: a frame control data capture (FC-interpret) unit and a data transfer (COPY) unit. The FC-interpret unit parses the FC data and obtains the PL length information (PBSize). The COPY unit automatically transfers the payload data from system memory to the baseband buffer at the transmitting end, or from the baseband buffer to system memory at the receiving end, based on the source address (also called the start address) and the PL length information. Since no interaction with the CPU is required, latency is minimal, and processing speed is very fast. In this application, the FC and PL data are stored contiguously in system memory and the baseband buffer. Therefore, whether at the transmitting or receiving end, only the read and write addresses need to be configured in advance, and the COPY unit can perform data transfer. In addition, since the protocol specifies that the length of FC data is fixed (PB16) while the length of PL is not fixed, the COPY unit starts moving FC data. After moving the fixed FC length, it can know the starting address of moving PL data. Then, based on the length information Pbsize of PL data captured when moving FC data, it can know the ending position of PL data moving. That is, the software only needs to configure the source address once.
[0070] The following description, in conjunction with the accompanying drawings, details the communication chip, device, and data transmission method based on broadband power line carrier provided in this application through specific embodiments and application scenarios.
[0071] Figure 4 This is one of the structural schematic diagrams of a communication chip based on broadband power line carrier provided in an embodiment of this application. Figure 4 As shown, a communication chip 400 based on broadband power line carrier (hereinafter referred to as the communication chip) includes: a baseband module 10, which includes a baseband cache 101, a data transfer unit 102, and a frame control data capture unit 103. The data transfer unit 102 is connected to the system memory 30 of the communication device where the communication chip 400 is located and the baseband cache 101. The frame control data capture unit 103 is connected to the data transfer unit 102. The communication device also includes a central processing unit 20. The baseband module 10 further includes a baseband data processing module 104 for performing digital signal processing, including Turbo encoding (or decoding), interleaving (or deinterleaving), etc. The communication chip 400 also includes an analog front-end module, which is not shown in the figure.
[0072] The data transfer unit 102 is configured to transfer frame control data between the system memory 30 and the baseband cache 101;
[0073] The frame control data grabbing unit 103 is configured to grab the length information of the payload data in the frame control data during the data moving unit 102 moving the frame control data, and send the length information of the payload data to the data moving unit 102.
[0074] The data moving unit 102 is further configured to move the payload data between the system memory 30 and the baseband cache 101 according to the length information of the payload data.
[0075] The data moving unit 102 is configured to move the frame control data between the system memory 30 and the baseband cache 101, which can be understood as: when sending data, the data moving unit 102 is used to automatically move the frame control data from the system memory 30 to the baseband cache 101, or, when receiving data, automatically move the frame control data from the baseband cache 101 to the system memory 30.
[0076] The data stored in the system memory 30 is a data packet obtained by the central processor 20 adding at least a frame control field to the original data according to the power line carrier communication protocol, the frame control field includes the length information of the payload data, the data packet includes frame control data and payload data, and the frame control data and the payload data of the data packet are sequentially stored in the system memory 30 by the central processor, that is, the frame control data and the payload data of the data packet are continuously stored in the system memory 30. Since the power line carrier communication protocol stipulates that the frame control data has a fixed size (that is, the length information of the FC data is fixed and known), the moving end position of the frame control data can be determined according to the starting address of the frame control data in the system memory 30, and since the frame control data and the payload data are sequentially and continuously stored in the system memory 30 by the central processor, the starting address of the payload data in the system memory 30 can be determined, and then the moving end position of the payload data can be determined according to the length information of the payload data.
[0077] The data stored in the baseband cache 101 is a data packet obtained after the baseband data processing module 104 processes a digital signal output by an analog front end module of the communication chip 400 (including Turbo decoding, deinterleaving, etc.), including frame control data and payload data, and the frame control data and the payload data of the data packet are stored continuously in the baseband cache 101. In the process of moving the data in the baseband cache 101 to the system memory 30, since the power line carrier communication protocol stipulates that the frame control data has a fixed size (i.e., the length information of the FC data is fixed and known), the moving end position of the frame control data can be determined according to the starting address of the frame control data in the baseband cache 101, and since the frame control data and the payload data are sequentially and continuously stored in the baseband cache 101 by the baseband, the starting address of the payload data in the baseband cache 101 can be determined according to the moving end position of the frame control data (without the need for software configuration), and then the moving end position of the payload data can be determined according to the length information of the payload data.
[0078] Generally, the baseband cache 101 stores data in units of bits, while the system memory 30 stores data in units of bytes, and the moved data needs to be converted according to the format of subsequent processing before being processed.
[0079] It should be noted that the starting address of the frame control data in the system memory 30 or the starting address of the frame control data in the baseband cache 101 can be configured by software or can be set in advance, for example, during the power-on initialization phase.
[0080] The data moving unit 102 is further configured to move the payload data between the system memory 30 and the baseband cache 101 according to the length information of the payload data, which can be understood as follows: when transmitting data, the data moving unit 102 is configured to automatically move the payload data from the system memory 30 to the baseband cache 101 according to the length information of the payload data, or when receiving data, the data moving unit 102 is configured to automatically move the payload data from the baseband cache 101 to the system memory 30 according to the length information of the payload data.
[0081] It should be noted that the frame control data grabbing unit 103 grabs the length information of the payload data in the frame control data in the process of moving the frame control data by the data moving unit 102, and is not to parse the frame control data, but to grab the specific data of the length information (PBSize) of the payload data in the specific position of the frame control data. The grabbing process does not need software intervention, so there is no delay, and the PBSize can be grabbed in time before the frame control data is delivered. The frame control data grabbing unit 103 can grab the length information of the payload data in the frame control data between the data moving unit and the system memory 30, or between the baseband buffer 101 and the data moving unit.
[0082] The frame control data grabbing unit and the data moving unit are two pure hardware modules, and the CPU does not need to frequently perform software configuration, thereby greatly reducing the processing burden of the CPU.
[0083] The communication device based on the broadband power line carrier provided by the embodiment of the application adds two pure hardware modules of the data moving unit and the frame control data grabbing unit in the baseband. The data moving unit is configured to move data from the system memory or to the system memory, and the frame control data grabbing unit is configured to grab the length information of the payload data in the frame control data in the process of moving the frame control data by the data moving unit. Therefore, the data moving unit can move the payload data between the system memory and the baseband buffer according to the length information of the payload data, so as to realize real-time moving of data. On the one hand, frequent software configuration is not needed, the CPU burden is reduced, and the data moving rate is improved. On the other hand, the length information of the payload data in the frame control data is grabbed by the hardware module of the frame control data grabbing unit, which does not cause delay and can be processed in time, and the occurrence of data storage errors in the system memory can be reduced.
[0084] In some embodiments, in the case that the communication chip is applied to a broadband power line carrier transmitter, the data moving unit is configured to move the frame control data of a first data packet in the system memory to the baseband buffer according to a first start address;
[0085] The frame control data grabbing unit is configured to grab the first length information of the payload data in the frame control data of the first data packet in the process of moving the frame control data of the first data packet by the data moving unit, and send the first length information of the payload data to the data moving unit;
[0086] The data moving unit is further configured to move the payload data of the first data packet in the system memory to the baseband buffer according to the first length information of the payload data;
[0087] The first start address is a start address of the first data packet in the system memory.
[0088] The first start address can be configured by software or be set in advance, for example, in a power-on initialization stage.
[0089] The first data packet is at least one data packet obtained by adding at least a frame control field to original data according to a power line carrier communication protocol by the central processing unit, the frame control field including length information of payload data, the frame control data of the first data packet and the payload data of the first data packet being sequentially stored in the system memory by the central processing unit, the frame control data of the first data packet and the payload data of the first data packet being continuously stored in the system memory.
[0090] The first start address is a start address of the first data packet in the system memory, and in this embodiment, the frame control data and the payload data are continuously stored in the system memory, that is, the first data packet has only one start address in the system memory.
[0091] Only the read address (that is, the first start address) and the write address (an address of writing the first data packet into the baseband cache) need to be configured, so that the moving of the first data packet can be realized. The read address and the write address can be configured by software or be set in advance, for example, in a power-on initialization stage.
[0092] The CPU configures the data moving unit to tell the data moving unit that the data moving can start. Specifically, the CPU configures a corresponding register in the baseband module, and the data moving unit can determine when to start the data moving by reading the change of the register.
[0093] The frame control data grabbing unit is configured to grab first length information of payload data in the frame control data of the first data packet in the process of moving the frame control data of the first data packet by the data moving unit, and send the first length information of the payload data to the data moving unit.
[0094] The frame control data grabbing unit grabs the first length information of the payload data in the frame control data of the first data packet in the process of moving the frame control data of the first data packet by the data moving unit, and is not to parse the frame control data, but to grab a specific field (PBSize) representing the length information of the payload data in the frame control data. The frame control data grabbing unit is a hardware module, and the grabbing process does not need software intervention, so that no delay is caused and the PBSize can be grabbed in time before the frame control data is moved.
[0095] Specifically, after the frame control data capture unit captures the first length information of the payload data in the frame control field of the frame control data, it can store the first length information of the payload data in a register.
[0096] The data transfer unit is further configured to transfer the payload data of the first data packet in the system memory to the baseband cache according to the first length information of the payload data.
[0097] Specifically, since the length of the frame control data is fixed, after the data transfer unit completes the transfer of the frame control data according to the first starting address, it can determine the starting position of the load data transfer. Then, the data transfer unit can determine the transfer end position or transfer end time corresponding to the load data according to the value of the register storing the first length information of the load data.
[0098] The following is combined with Figure 5 This embodiment will be described. Figure 5 This is a schematic diagram illustrating the baseband data transmission process when a communication chip is applied to a transmitter based on broadband power line carrier, as provided in an embodiment of this application. Figure 5 As shown, in this embodiment, the data transfer function is achieved by adding two modules to the baseband: a frame control data capture (Fc-interpret) unit and a data transfer (TX-COPY) unit. The frame control data capture unit and the data transfer unit are two purely hardware modules, eliminating the need for frequent software configuration by the CPU, thus significantly reducing the CPU's processing load. The specific process is as follows:
[0099] 1. CPU assembly: Same as related technologies.
[0100] 2. The CPU stores the packet data in system memory: The CPU stores the FC data and PL data into system memory sequentially. That is, the frame data has only one starting address (in related technologies, FC data and PL data are stored in different locations in system memory, each corresponding to a starting address), and the FC data and PL data are stored into system memory in order.
[0101] 3. The CPU is configured with a TX-COPY unit, whose main function is to tell the TX-COPY unit that it can start transferring startup data.
[0102] For example, by configuring the corresponding transmitter in the baseband, the CPU can read the changes in the transmitter to know when to start data transfer.
[0103] Optionally, the address for reading and writing data to the TX-COPY unit can be set during power-on initialization.
[0104] 4、TX-COPY unit moves the data in the system memory, and the moved data is processed by bit processing and Turbo encoding.
[0105] (1) The COPY unit starts to move the data from the system memory according to the start address.
[0106] (2) The Fc-interpret unit captures the length information PBSize of the PL data in the FC data during the data moving process, and sends the length information PBSize of the PL to the TX-COPY unit (the FC length information is fixed and known).
[0107] For example, the Fc-interperet unit can store the PBSize in a register after capturing the PBSize in the FC.
[0108] (3) The TX-COPY unit module determines the end time of the data moving according to the length information PBSize of the PL data.
[0109] For example, the TX-COPY unit determines the moving end position or the moving end time of the PL data according to the value of the register (i.e. the PBSize).
[0110] Figure 5 The Turbo encoding in the above corresponds to the baseband data processing unit.
[0111] Figure 6 A schematic diagram of a data block corresponding to frame control data provided by an embodiment of the present application is shown in FIG. 1. Figure 6 As shown in FIG. 1, the length information of the FC data is PB16, and each data moving is moving 4 bytes (i.e. 32 bits), and the Fc-interpret unit does not need to parse all the information of the FC data, and it only needs to capture the byte representing the length information of the PL data, for example, the length information PBSize of the PL data is the third byte in the third moving, and the byte represents 0, 1, 2, 3 (representing PB72, PB136, PB264, PB520 respectively), and the length information of the PL data can be determined according to the captured byte. This capturing does not need to completely parse all the messages of the FC, and the capturing has real-time performance, so that the FC data can be moved and captured simultaneously, and the TX-COPY unit is informed.
[0112] The communication device based on a wideband power line carrier provided by the embodiment of the application adds two pure hardware modules of a data moving unit and a frame control data grabbing unit in a baseband, in the case that the communication chip is applied to a transmitter based on a wideband power line carrier, the data moving unit is configured to move data from a system memory, and the frame control data grabbing unit is configured to grab length information of payload data in frame control data in the process that the data moving unit moves the frame control data, so that the data moving unit can move the payload data from the system memory according to the length information of the payload data, so as to realize real-time data moving, on the one hand, frequent software configuration is not needed, the CPU burden is reduced, and the data moving rate is improved; on the other hand, the length information of the payload data in the frame control data is grabbed by the frame control data grabbing unit, compared with the CPU configuration mode, no delay is caused, and timely processing can be performed.
[0113] In some embodiments, in the case that the communication chip is applied to a receiver based on a wideband power line carrier, the data moving unit is configured to move frame control data of a second data packet in the baseband cache to the system memory according to a second starting address;
[0114] The frame control data grabbing unit is configured to grab second length information of payload data in frame control data of the second data packet in the process that the data moving unit moves the frame control data of the second data packet, and send the second length information of the payload data to the data moving unit;
[0115] The data moving unit is further configured to move payload data of the second data packet in the baseband cache to the system memory according to the second length information of the payload data;
[0116] The second starting address is a starting address of the second data packet in the baseband cache.
[0117] The second starting address can be configured by software or be set in advance, for example, be set in a power-on initialization stage.
[0118] Optionally, the second data packet is a data packet obtained by a baseband data processing module of the baseband module after processing a digital signal output by an analog front end module of the communication chip and stored in the baseband cache, and the frame control data of the second data packet and the payload data of the second data packet are continuously stored in the baseband cache.
[0119] The second starting address is a starting address of the second data packet in the baseband cache, and in the embodiment, the frame control data and the payload data are continuously stored in the baseband cache, that is, the second data packet has only one starting address in the baseband cache.
[0120] Only the read address (i.e. the second start address) and the write address (the address of writing the first data packet into the system memory) need to be configured, so that the moving of the second data packet can be realized. The read address and the write address can be configured by software or can be set in advance, for example, in the power-on initialization stage.
[0121] The CPU configures the data moving unit, telling the data moving unit that it can start the data moving. Specifically, the CPU configures the corresponding register in the baseband module, and the data moving unit reads the change of the register to determine when to start the data moving.
[0122] The frame control data grabbing unit is configured to grab the first length information of the payload data in the frame control data of the second data packet in the process of moving the frame control data of the second data packet by the data moving unit, and send the first length information of the payload data to the data moving unit.
[0123] The frame control data grabbing unit grabs the second length information of the payload data in the frame control data of the second data packet in the process of moving the frame control data of the second data packet by the data moving unit, and is not to parse the frame control data, but to grab the specific field in the frame control data representing the length information (PBSize) of the payload data. The frame control data grabbing unit is a hardware module, and the grabbing process does not need software intervention, so there is no delay, and the PBSize can be grabbed in time before the end of the frame control data moving.
[0124] Specifically, after the frame control data grabbing unit grabs the second length information of the payload data in the frame control field of the frame control data, the second length information of the payload data can be stored in a register.
[0125] The data moving unit is further configured to move the payload data of the second data packet in the baseband buffer to the system memory according to the second length information of the payload data.
[0126] Specifically, since the length of the frame control data is fixed, the data moving unit can determine the moving start position of the payload data after moving the frame control data according to the second start address, and then the data moving unit can determine the moving end position or the moving end time of the payload data according to the value of the register storing the second length information of the payload data.
[0127] The following will be described in combination with Figure 7 the embodiments. Figure 7 The schematic diagram of the baseband data transmission process when the communication chip is applied to the receiver based on the wideband power line carrier is provided.
[0128] As shown in Figure 7 , in the process of moving the FC data of the second data packet processed by the baseband data processing module (performing operations such as Turbo decoding shown in Figure 7 ), the frame control data grabbing unit (i.e., the Fc-interpret unit in the figure) grabs the length information of the PL data in the FC data. The Fc-interpret unit grabs the second length information of the payload data in the frame control data of the second data packet in the process of moving the frame control data of the second data packet by the RX-COPY unit, and does not need to parse the frame control data, but grabs the specific field in the frame control data indicating the second length information (PBSize) of the payload data. The Fc-interpret unit is a hardware module, and the grabbing process does not need software intervention, so there is no delay, and PBSize can be grabbed in time before the frame control data is delivered and informed to the RX-COPY unit. In this embodiment, the CPU does not need to obtain Turbo decoding information (reducing the interaction between the CPU and the baseband), and does not need software intervention by the CPU, reducing the software processing burden of the CPU.
[0129] The communication device based on wideband power line carrier provided by the embodiment of the application includes two pure hardware modules of a data moving unit and a frame control data grabbing unit. In the case that the communication chip is applied to a receiver based on wideband power line carrier, the data moving unit is configured to move data from a baseband cache to a system memory, and the frame control data grabbing unit is configured to grab length information of payload data in frame control data in the process of moving the frame control data by the data moving unit. Therefore, the data moving unit can move the payload data to the system memory according to the length information of the payload data, so as to realize real-time data moving. On the one hand, frequent software configuration is not needed, the CPU burden is reduced, and the data moving rate is improved. On the other hand, the length information of the payload data in the frame control data is grabbed by the frame control data grabbing unit, which does not cause delay and can be processed in time, avoiding data storage errors in the system memory.
[0130] In some embodiments, in the case that the communication device in which the communication chip is located supports data transceiving, the data moving unit includes a transmitting data moving unit and a receiving data moving unit, and the baseband cache includes a transmitting baseband cache and a receiving baseband cache; wherein,
[0131] The transmitting data moving unit is connected with the system memory and the transmitting baseband cache, and is configured to move frame control data of a first data packet in the system memory to the transmitting baseband cache according to a first start address;
[0132] The receiving data moving unit is connected with the system memory and the receiving baseband cache, and is configured to move frame control data of a second data packet in the receiving baseband cache to the system memory according to a second start address;
[0133] The first start address is a start address of the first data packet in the system memory, and the second start address is a start address of the second data packet in the baseband cache.
[0134] The frame control data grabbing unit is connected with the transmitting data moving unit and the receiving data moving unit,
[0135] The frame control data grabbing unit is configured to grab first length information of payload data in the frame control data of the first data packet in the process that the transmitting data moving unit moves the frame control data of the first data packet, and send the first length information of the payload data to the transmitting data moving unit, and / or grab second length information of payload data in the frame control data of the second data packet in the process that the receiving data moving unit moves the frame control data of the second data packet, and send the second length information of the payload data to the receiving data moving unit.
[0136] The transmitting data moving unit is further configured to move payload data of the first data packet in the system memory to the transmitting baseband cache according to the first length information of the payload data;
[0137] The receiving data moving unit is further configured to move payload data of the second data packet in the receiving baseband cache to the system memory according to the second length information of the payload data.
[0138] The embodiment will be described below in conjunction with Figure 8 The embodiment will be described below in conjunction with Figure 8 The embodiment will be described below in conjunction with
[0139] As shown in Figure 8 , in the case that the communication device where the communication chip is located supports data transceiving, the baseband cache includes a transmitting baseband cache (i.e. TX-baseband cache in Figure 8 ) and a receiving baseband cache (i.e. RX-baseband cache in Figure 8the RX-baseband buffer in the transmitter), the data moving unit comprises a transmitting data moving unit (i.e. Figure 8 the TX-COPY unit in the transmitter) and a receiving data moving unit (i.e. Figure 8 the RX-COPY unit in the receiver). Figure 8 the Turbo decoding or encoding corresponding baseband data processing unit in the transmitter.
[0140] The transmitting data moving unit is connected with the system memory and the transmitting baseband buffer, and is configured to move the frame control data of a first data packet in the system memory to the transmitting baseband buffer according to a first start address;
[0141] The receiving data moving unit is connected with the system memory and the receiving baseband buffer, and is configured to move the frame control data of a second data packet in the receiving baseband buffer to the system memory according to a second start address.
[0142] The frame control data grabbing unit (i.e. Figure 8 the Fc-interpret unit in the transmitter) is connected with the transmitting data moving unit and the receiving data moving unit, and is configured to grab the first length information of the payload data in the frame control data of the first data packet in the process that the transmitting data moving unit moves the frame control data of the first data packet, and send the first length information of the payload data to the transmitting data moving unit, and grab the second length information of the payload data in the frame control data of the second data packet in the process that the receiving data moving unit moves the frame control data of the second data packet, and send the second length information of the payload data to the receiving data moving unit. The frame control data grabbing unit can grab the length information of the payload data in the frame control data between the transmitting data moving unit and the system memory, or between the receiving baseband buffer and the receiving data moving unit.
[0143] The transmitting data moving unit is further configured to move the payload data of the first data packet in the system memory to the transmitting baseband buffer according to the first length information of the payload data;
[0144] The receiving data moving unit is further configured to move the payload data of the second data packet in the receiving baseband buffer to the system memory according to the second length information of the payload data.
[0145] For the related understanding of the present embodiment, reference can be made to the description in the foregoing embodiments in the communication chip applied to the transmitter based on the wideband power line carrier and the communication chip applied to the receiver based on the wideband power line carrier, which will not be repeated here.
[0146] The communication device based on the broadband power line carrier provided by the embodiment of the application comprises two pure hardware modules of a data moving unit and a frame control data grabbing unit added in a baseband. When the device supports data transmission and reception, the data moving unit is configured to move data from a system memory, and the frame control data grabbing unit is configured to grab length information of payload data in frame control data during movement of the frame control data by the data moving unit, so that the data moving unit can move the payload data from the system memory according to the length information of the payload data, and data transmission is realized. The data moving unit is configured to move data to the system memory, and the frame control data grabbing unit is configured to grab length information of payload data in frame control data during movement of the frame control data by the data moving unit, so that the data moving unit can move the payload data to the system memory according to the length information of the payload data, and data reception is realized. Therefore, real-time data movement is realized. On the one hand, frequent software configuration is not needed, CPU burden is reduced, and data movement speed is improved. On the other hand, the length information of the payload data in the frame control data is grabbed by the hardware module of the frame control data grabbing unit, and compared with the CPU configuration mode, no delay is caused, data can be processed in time, and data storage errors in the system memory can be reduced.
[0147] Figure 9 A structure schematic diagram of the communication device based on the broadband power line carrier provided by the embodiment of the application is shown in FIG. 9. As shown in the figure, the communication device based on the broadband power line carrier 900 comprises the communication chip 400 based on the broadband power line carrier, a central processing unit 20 and a system memory 30 as described in the foregoing embodiment. The communication device based on the broadband power line carrier can be understood with reference to the description of the communication chip based on the broadband power line carrier, and the same technical effects can be achieved, and thus will not be described herein. Figure 9
[0148] The central processing unit 20 can be replaced by other general-purpose processors, special-purpose processors and the like, for example, a microprocessor, a digital signal processor (DSP), an artificial intelligent (AI) processor, a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a network processor (NP), a field programmable gate array (FPGA) or other programmable logic devices, a gate circuit, a transistor, a discrete hardware component and the like.
[0149] The embodiment of the present application further provides a baseband data transmission method based on a broadband power line carrier wave, which is applied to the communication device based on the broadband power line carrier wave as described in the above embodiment.
[0150] Figure 10 Fig. 1 is a flowchart of the baseband data transmission method based on the broadband power line carrier wave provided by the embodiment of the present application.
[0151] As shown in Fig. 1, the method comprises the following steps. Figure 10
[0152] Step 1200, the data moving unit moves the frame control data in the system memory to the baseband cache, and in the process of moving the frame control data by the data moving unit, the frame control data grabbing unit grabs the length information of the payload data in the frame control data.
[0153] Step 1201, the data moving unit moves the payload data in the system memory to the baseband cache according to the length information of the payload data.
[0154] Figure 11 Fig. 2 is another flowchart of the baseband data transmission method based on the broadband power line carrier wave provided by the embodiment of the present application.
[0155] As shown in Fig. 2, the method comprises the following steps. Figure 11
[0156] Step 1300, the data moving unit moves the frame control data in the baseband cache to the system memory, and in the process of moving the frame control data by the data moving unit, the frame control data grabbing unit grabs the length information of the payload data in the frame control data.
[0157] Step 1301, the data moving unit moves the payload data in the baseband cache to the system memory according to the length information of the payload data.
[0158] Optionally, the method further comprises the following steps: the central processing unit adds at least a frame control field to the original data according to the power line carrier wave communication protocol to obtain a first data packet, wherein the frame control field comprises demodulation information of the payload data and length information of the payload data; the central processing unit stores the frame control data of the first data packet and the payload data of the first data packet in the system memory in sequence; the central processing unit configures the data moving unit to start data moving; or the baseband data processing module processes the digital signal output by the analog front end module to obtain a second data packet; the central processing unit configures the data moving unit to start data moving.
[0159] For the understanding of the above-mentioned baseband data transmission method based on wideband power line carrier provided by the embodiments, reference can be made to the description in the above-mentioned communication device based on wideband power line carrier, and the same technical effects can be achieved, and the step is described in detail.
[0160] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover a non-exclusive inclusion, such that processes, methods, articles, or devices that comprise a list of elements not only include those elements, but also include other elements not expressly listed, or inherent to such processes, methods, articles, or devices. Without further limitation, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or device that includes the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to the order of performing the functions shown or discussed, and can also include performing the functions in a substantially simultaneous manner or in reverse order, for example, the described method can be performed in an order different from that described, and various steps can also be added, omitted, or combined. In addition, the features described with reference to certain examples can be combined in other examples.
[0161] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making a terminal (which can be a mobile phone, computer, server, or network device, etc.) execute the methods described in various embodiments of the present application.
[0162] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, the above-mentioned specific embodiments are only illustrative, not restrictive, and those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the protection scope of the claims.
[0163] In the description of the application, reference has been made to descriptive terms such as "one embodiment", "some embodiments", "an embodiment", "example", "specific example" or "some examples" etc. It is emphasized that each of these terms refers to a specific feature, structure, material or characteristic described in connection with a particular embodiment or example. The descriptive terms are not necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0164] While embodiments of the application have been shown and described, it is to be understood that the application is not limited to the details of the embodiments described, since the scope of the application is defined with respect to the appended claims.
Claims
1. A broadband power line carrier based communication chip, characterized by, The application relates to a communication chip, comprising: a baseband module, which comprises a baseband cache, a data moving unit and a frame control data grabbing unit, wherein the data moving unit is connected with a system memory of a communication device where the communication chip is located and the baseband cache, and the frame control data grabbing unit is connected with the data moving unit; the data moving unit is configured to move frame control data between the system memory and the baseband cache; the frame control data grabbing unit is configured to grab length information of payload data in the frame control data during the moving of the frame control data by the data moving unit, and send the length information of the payload data to the data moving unit; the data moving unit is further configured to move payload data between the system memory and the baseband cache according to the length information of the payload data.
2. The communication chip of claim 1, wherein, In the case that the communication chip is applied to a transmitter based on a broadband power line carrier, the data moving unit is configured to move frame control data of a first data packet in the system memory to the baseband cache according to a first start address; the frame control data grabbing unit is configured to grab first length information of payload data in the frame control data of the first data packet during the moving of the frame control data of the first data packet by the data moving unit, and send the first length information of the payload data to the data moving unit; the data moving unit is further configured to move payload data of the first data packet in the system memory to the baseband cache according to the first length information of the payload data; wherein the first start address is a start address of the first data packet in the system memory.
3. The communication chip of claim 1, wherein, In the case that the communication chip is applied to a receiver based on a broadband power line carrier, the data moving unit is configured to move frame control data of a second data packet in the baseband cache to the system memory according to a second start address; the frame control data grabbing unit is configured to grab second length information of payload data in the frame control data of the second data packet during the moving of the frame control data of the second data packet by the data moving unit, and send the second length information of the payload data to the data moving unit; the data moving unit is further configured to move payload data of the second data packet in the baseband cache to the system memory according to the second length information of the payload data; wherein the second start address is a start address of the second data packet in the baseband cache.
4. The communication chip of claim 1, wherein, In the case that the communication device where the communication chip is located supports data transmission and reception, the data moving unit comprises a transmitting data moving unit and a receiving data moving unit, and the baseband cache comprises a transmitting baseband cache and a receiving baseband cache; wherein the transmitting data moving unit is connected with the system memory and the transmitting baseband cache, and is configured to move frame control data of a first data packet in the system memory to the transmitting baseband cache according to a first start address; the receiving data moving unit is connected with the system memory and the receiving baseband cache, and is configured to move frame control data of a second data packet in the receiving baseband cache to the system memory according to a second start address; The receiving data moving unit is connected with the system memory and the receiving baseband cache, and is configured to move frame control data of a second data packet in the receiving baseband cache to the system memory according to a second starting address; The first starting address is a starting address of the first data packet in the system memory, and the second starting address is a starting address of the second data packet in the baseband cache.
5. The communication chip of claim 4, wherein, The frame control data grabbing unit is connected with the transmitting data moving unit and the receiving data moving unit, The frame control data grabbing unit is configured to grab first length information of payload data in the frame control data of the first data packet in the process that the transmitting data moving unit moves the frame control data of the first data packet, and send the first length information of the payload data to the transmitting data moving unit, and / or grab second length information of payload data in the frame control data of the second data packet in the process that the receiving data moving unit moves the frame control data of the second data packet, and send the second length information of the payload data to the receiving data moving unit.
6. The communication chip of claim 5, wherein, The transmitting data moving unit is further configured to move the payload data of the first data packet in the system memory to the transmitting baseband cache according to the first length information of the payload data; The receiving data moving unit is further configured to move the payload data of the second data packet in the receiving baseband cache to the system memory according to the second length information of the payload data.
7. The communication chip of any one of claims 2, 4-6, wherein, The first data packet is a data packet obtained by adding at least a frame control field to original data according to a power line carrier communication protocol and storing the data packet in the system memory, the frame control field including length information of payload data, and the frame control data of the first data packet and the payload data of the first data packet are stored continuously in the system memory.
8. The communication chip of any one of claims 3-6, wherein, The second data packet is a data packet obtained by processing a digital signal output by an analog front end module of the communication chip by a baseband data processing module of the baseband module and storing the data packet in the baseband cache, and the frame control data of the second data packet and the payload data of the second data packet are stored continuously in the baseband cache.
9. A broadband power line carrier based communication device, characterized by, The system memory, the central processing unit, and the communication chip based on wideband power line carrier communication according to any one of claims 1 to 8. The method comprises:
10. A baseband data transmission method based on broadband power line carrier wave, applied to the communication device based on broadband power line carrier wave as claimed in claim 9, characterized in that, The data moving unit moves frame control data in the system memory to the baseband cache, and in the process that the data moving unit moves the frame control data, the frame control data grabbing unit grabs length information of payload data in the frame control data; The data moving unit moves the payload data in the system memory to the baseband cache according to the length information of the payload data; Or, The data moving unit moves frame control data in the baseband buffer to system memory, and in the process of moving the frame control data by the data moving unit, the frame control data capturing unit captures length information of payload data in the frame control data; The data moving unit moves payload data in the baseband buffer to the system memory according to the length information of the payload data.
Citation Information
Patent Citations
FC (Fiber Channel) data transmission control system and method with self-adaptive transmission length
CN117648274A
Power line communication module based on G.hn standard
CN204392242U