Control method, communication system, equipment and storage medium
By detecting the start and end of data frames in industrial Ethernet communication systems and turning the data link processing circuit on and off only when necessary, the problem of power waste is solved, achieving a balance between real-time performance and low power consumption, making it suitable for industrial scenarios with low power consumption and heat constraints.
Patent Information
- Application Number
- CN202511907142.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2045-12-17
AI Technical Summary
In existing industrial Ethernet communication systems, the continuous operation of the physical layer and data link processing circuits leads to wasted power consumption, which affects system endurance and stability, especially in industrial scenarios with low power consumption and heat constraints.
By detecting the start and end of data frames while the physical layer communication chip is continuously working, the data link processing circuit is only turned on during the data frame transmission and processing phases and immediately turned off after processing is completed. Combined with the frame start and end detection circuit and buffer design, the DLP circuit can be started and stopped on demand, reducing unnecessary power consumption.
While meeting the real-time requirements of industrial Ethernet, it significantly reduces the power consumption of the communication system, adapts to industrial scenarios with power consumption and heat dissipation requirements, and improves system endurance and stability.
Smart Images

Figure CN121333833A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, in particular to a control method, a communication system, a device and a storage medium. BACKGROUND
[0002] In an Ethernet communication architecture, the bottom layer of the protocol includes a physical layer PHY and a data link layer: the physical layer is responsible for the physical transmission of data and clock extraction, and the data link layer undertakes core processing tasks such as data frame checking, format conversion and link management. To meet the real-time requirements of industrial Ethernet, the existing technical solution generally uses a hardware circuit (DataLink Process, DLP) to process the data link layer. Compared with the way of running software through a CPU, the DLP circuit not only has a faster data processing speed, but also can significantly reduce processing delay, ensuring that data can be prepared and delivered to the subsequent receiving end in a short time, meeting the requirement of low delay in real-time scenarios.
[0003] However, the existing real-time industrial Ethernet solution has a significant problem of power waste. Since industrial Ethernet needs to cope with random burst transmission requirements, in order to avoid data loss or response lag caused by hardware start-up delay, the existing technology requires the PHY and DLP circuit to be in a working state at all times - even if the communication system is idle most of the time, or there is a minimum idle interval between adjacent data frames as specified by the protocol, the DLP circuit remains running. Although this design can guarantee real-time performance, it will generate a large amount of useless power consumption, especially in industrial scenarios where power consumption and device heating are strictly limited, such as outdoor low-power monitoring devices, battery-powered industrial sensor nodes, etc. Such power waste has become a key bottleneck restricting the endurance and stability of the system. SUMMARY
[0004] Based on the above problems, the present application provides a control method, a communication system, a device and a storage medium.
[0005] The embodiments of the present application disclose the following technical solutions: The first aspect of the embodiments of the present application provides a control method, comprising: detecting the start and end of a data frame in a state where a physical layer communication chip PHY is continuously working; when the start of the data frame is detected, starting a data link processing DLP circuit; when the end of the data frame is detected, and after the DLP circuit completes processing of the current data frame, the DLP circuit is turned off.
[0006] In one possible implementation, the method further comprises: if a required processing time of the DLP circuit after an end of a data frame is greater than a minimum interval time between two adjacent data frames, detecting whether an idle time of a communication link is greater than a preset interval time threshold; when detecting that the idle time is greater than the preset interval time threshold, turning off the DLP circuit.
[0007] In a possible implementation, the turning off the DLP circuit when detecting an end of a data frame and the DLP circuit completing processing of the data frame comprises: when detecting the end of the data frame, sending a delay signal to the DLP circuit, the delay signal being used for reserving time for the DLP circuit to complete subsequent processing of the current data frame; real-time detecting a processing state of the DLP circuit on the current data frame; when detecting that the DLP circuit has completed all processing of the current data frame, turning off the DLP circuit.
[0008] In a possible implementation, the turning off the DLP circuit comprises cutting off a clock signal supplied to the DLP circuit or turning off an enable end of the DLP circuit.
[0009] In a possible implementation, the turning off the DLP circuit comprises reducing or turning off power supply of at least a part of the DLP circuit.
[0010] In a possible implementation, the turning on the DLP circuit when detecting a start of a data frame comprises: when detecting the start of the data frame, turning on the DLP circuit within a wake-up time of the DLP circuit, the wake-up time of the DLP circuit being a buffering time required for data to be transmitted from a PHY to the DLP through a first-in-first-out buffer.
[0011] In a possible implementation, the method further comprises: obtaining historical communication information; based on the historical communication information, determining arrival time regularity information of a data frame; based on the arrival time regularity information of the data frame, predicting a predicted arrival time of a next data frame; turning on the DLP circuit within a pre-wake-up time before the predicted arrival time, the pre-wake-up time at least comprising a wake-up preparation time of the DLP circuit.
[0012] Embodiment two of the application provides a control system, comprising: a physical layer communication chip PHY; a data link processing DLP circuit; The frame start / end detection circuit is used to execute the control method described in the first aspect above.
[0013] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the control method described in the first aspect above.
[0014] A fourth aspect of this application provides a computer-readable storage medium storing instructions that, when executed on a terminal device, cause the terminal device to perform the control method described in the first aspect above.
[0015] Compared with the prior art, this application has the following advantages: To address the technical shortcomings of existing technologies where continuous operation of the PHY and DLP circuits leads to excessive power consumption, this application adopts a control logic that allows the PHY to operate continuously while the DLP is started and stopped on demand. On the one hand, the PHY is kept continuously operational to meet the real-time requirements of asynchronous industrial Ethernet communication for clock extraction and data reception, avoiding data loss or response delays caused by low PHY power consumption. On the other hand, by detecting the start and end of data frames, the DLP circuit is only activated during the data frame transmission and processing phases, and immediately deactivated after the frame ends and the DLP completes processing. This effectively reduces the useless power consumption of the DLP during idle periods of the communication system and during the minimum inter-frame interval of continuous communication. It retains the real-time capability to handle random burst transmissions while solving the problem of wasted power consumption, making it suitable for industrial scenarios where power consumption or heat generation is a concern. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 A schematic diagram of interaction logic provided for an embodiment of this application; Figure 2 A flowchart of a control method provided in an embodiment of this application; Figure 3 This is a structural diagram of a control system provided in an embodiment of this application. Detailed Implementation
[0018] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0019] To facilitate understanding of the technical solutions provided in the embodiments of this application, the technical terms involved in the embodiments of this application will be explained below.
[0020] The Physical Layer (PHY) chip is the core implementation unit of the lowest physical layer of the Ethernet protocol, responsible for physical data transmission and clock extraction. In consumer Ethernet, the PHY has low-power modes such as EEE (Energy Efficient Ethernet), but industrial Ethernet, due to real-time requirements (such as EtherCAT and ProfinetIRT protocols), prohibits the use of its low-power modes. This is because Ethernet is an asynchronous communication network, and the PHY needs to continuously receive data frames to extract and update its local clock (ensuring synchronization with the communication node's clock). If it enters low-power mode, the excessive time spent extracting the clock can lead to data loss or response delays. The document clearly states that the PHY must always be operational, independently controlled only by the DLP circuit, and is the fundamental hardware unit ensuring the real-time performance of industrial Ethernet.
[0021] A First-In-First-Out (FIFO) buffer is a common data buffer in digital system design used to handle data transfer between different clock domains. It effectively solves the problem of data read / write speed mismatch caused by different clock signals, enabling asynchronous data transfer and buffering operations.
[0022] To address the aforementioned issues, this application embodiment significantly reduces the power consumption of the communication system while ensuring the real-time performance of industrial Ethernet by independently controlling the PHY and DLP circuits. On one hand, the PHY is kept constantly operational to meet the requirements of asynchronous Ethernet communication, which necessitates continuous clock extraction and updates to prevent data loss and ensure rapid response, thus adapting to real-time protocol scenarios. On the other hand, by utilizing a frame start / end detection circuit, the DLP circuit is only activated when the start of a data frame is detected, and deactivated after the frame ends and the DLP completes data processing. This effectively reduces the wasted power consumption of the DLP during system idle periods and the minimum inter-frame interval during continuous communication. Furthermore, the DLP shutdown method can be selected based on real-time requirements, allowing for immediate wake-up to adapt to high real-time scenarios (clock shutdown / enablement) or deep power reduction to adapt to low real-time scenarios (partial power reduction / shutdown). Ultimately, this achieves the goal of "saving power without sacrificing performance," solving the problem of power waste caused by continuous PHY and DLP operation in existing technologies and meeting the needs of various industrial scenarios with requirements for power consumption and heat dissipation.
[0023] It should be noted that the control method, communication system, device, and medium provided in this application can be applied to the field of computer technology. The above are merely examples and do not limit the application field of the control method, communication system, device, and medium provided in this application. Furthermore, the embodiments of this application may not limit the executing entity of the control; for example, the control method of the embodiments of this application can be applied to data processing devices such as terminal devices or servers. The terminal device can be an electronic device such as a computer or a personal digital assistant (PDA). The server can be a standalone server, a cloud server, or a cluster server composed of multiple servers.
[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0025] See Figure 1 , Figure 1This is a schematic diagram of an interactive logic provided in an embodiment of this application. The various parts are combined to form the physical layer communication chip / physical layer communication module (PHY) provided in this embodiment of the application. The PHY is responsible for continuously transmitting data frames. The frame start and end detection module monitors the data frames transmitted by the PHY in real time and identifies their start and end states. When the start of a data frame is detected, the module generates an enable signal (Enable) to turn on the DLP circuit and enable it to process the data frame. This enables on-demand control of the DLP circuit, which can reduce unnecessary power consumption of the DLP circuit while ensuring data processing.
[0026] The following embodiment illustrates a control method provided in this application. See also: Figure 2 ,Should Figure 2 A flowchart of a control method provided in this application embodiment, the method comprising: S101. While the physical layer PHY is continuously working, detect the start and end of the data frame.
[0027] In industrial Ethernet or other communication systems, data is transmitted in frames, each containing valid data and possible control information. Frame start / end detection circuits accurately determine the start and end times of data frames by analyzing specific patterns or flags in the data stream.
[0028] The data frame detection can be performed by either a frame start / end detection module or a frame start / end detection circuit.
[0029] For example, the start of a data frame can be detected by identifying the preamble and start-of-frame delimiter of the Ethernet frame. Once this specific bit sequence is identified, the start of a new data frame is determined. The end of a data frame is determined by detecting the inter-frame interval or the disappearance of the carrier sense signal after the frame. When the data stream returns to an idle state and continues for more than a certain period of time, the current frame is determined to have ended.
[0030] The DLP circuit provides precise trigger signals for turning on S102a and turning off S102b. Only by accurately identifying the start and end of the data frame can we ensure that the DLP only works during the time when data needs to be processed. This avoids wasting power consumption due to the DLP being turned on by mistake or losing data due to the DLP being turned off by mistake. This is the basic guarantee for saving power consumption without sacrificing performance.
[0031] S102a. When the start of a data frame is detected, the data link processing (DLP) circuit is activated.
[0032] Enables on-demand power supply. The DLP circuit is only awakened when data processing is actually needed, thus eliminating its static and dynamic power consumption during idle periods. Upon detecting the start of a frame, an enable signal, such as a high-level pulse, is immediately output to the DLP circuit's control unit. The enable signal restores the clock signal to the DLP circuit and unlocks it, transitioning it from a static power consumption state to a dynamic operating state.
[0033] S102b: When the end of the data frame is detected and the DLP circuit has completed processing of the current data frame, the DLP circuit is turned off.
[0034] When the frame start / end detection circuit / module detects the end of a data frame, it does not immediately shut down the DLP circuit. Instead, it waits for the DLP circuit to complete all processing of the current data frame. This step ensures data integrity and processing accuracy, avoiding data loss or processing errors caused by prematurely shutting down the DLP circuit. Once the DLP circuit has finished processing, the frame start / end detection circuit generates a control signal again to shut down the DLP circuit or reduce its power supply to minimize unnecessary power consumption. This dynamic management method effectively reduces system power consumption while meeting real-time requirements.
[0035] In one possible implementation, the step of shutting down the DLP circuit after detecting the end of a data frame and after the DLP circuit has completed processing the data frame includes: sending a delay signal to the DLP circuit when the end of the data frame is detected, the delay signal being used to reserve time for the DLP circuit to complete subsequent processing of the current data frame; real-time detection of the processing status of the DLP circuit on the current data frame; and shutting down the DLP circuit after detecting that the DLP circuit has completed all processing of the current data frame.
[0036] When the start / end of frame detection circuit detects the end of a data frame, it does not immediately trigger the shutdown operation of the DLP circuit. Instead, it first sends a delay signal to the DLP circuit. This delay signal allows the DLP circuit sufficient time to complete subsequent processing of the current data frame, such as verification, error correction, and data forwarding. By setting a reasonable delay time, it ensures that the DLP circuit can completely and accurately process the current data frame before shutting down, avoiding data loss or processing errors caused by premature shutdown.
[0037] While sending the delay signal, the system initiates a real-time monitoring mechanism for the DLP circuit's processing status. This mechanism monitors the DLP circuit's internal status register, busy / idle flags, or specific completion signals to track the DLP circuit's progress in processing the current data frame. The purpose of real-time monitoring is to accurately determine when the DLP circuit has completed all processing of the current data frame, thus providing an accurate basis for subsequent shutdown operations.
[0038] Once the DLP circuit has completed processing of the current data frame, the system immediately generates a control signal to shut it down. The specific method for shutting down the DLP circuit can be cutting off its clock signal, disabling the enable pin, or reducing its power supply voltage, depending on the system's actual needs and design considerations. By promptly shutting down the DLP circuit, the system can effectively reduce power consumption during idle periods, improving overall energy efficiency. Furthermore, since the shutdown operation is performed after confirming that the DLP circuit has completed all processing, it will not affect the system's real-time performance or data integrity.
[0039] In one possible implementation, disabling the DLP circuit includes cutting off the clock signal supplied to the DLP circuit or turning off the enable terminal of the DLP circuit.
[0040] The clock-off function cuts off the clock signal to the DLP circuit, stopping its logic operations, but the register contents remain unchanged. This significantly reduces power consumption, and wake-up only requires re-enabling the clock, with no additional delay.
[0041] The clock refers to the timing reference signal required for the DLP to operate as a hardware circuit. All dynamic operations within the DLP, such as register data interaction, arithmetic unit logic operations, and data reception and transmission, rely on the clock signal to execute sequentially. Specifically, by cutting off the clock signal supplied to the DLP circuit through a frame start / end detection circuit or a corresponding control unit, the DLP is prevented from performing any dynamic data processing operations, thus entering a low-power state.
[0042] Enable refers to the working permission control function of the DLP circuit, corresponding to the enable terminal (or enable interface) on the DLP hardware. This port receives the control signal sent by the frame start / end detection circuit. Only when the enable signal is in a valid state, such as a specific high / low level, is the DLP circuit allowed to perform core operations such as data reception and data link layer processing, according to the hardware design definition. Conversely, disabling the enable means that the frame start / end detection circuit outputs an invalid enable signal, such as a level opposite to the valid state, cutting off the working permission of the DLP circuit and causing the DLP to stop its core functions and enter a low-power state.
[0043] Because Industrial Ethernet has extremely high real-time requirements for data response, if the DLP circuit enters a deep sleep or complete power-off state, it needs to undergo a complex initialization process upon waking, such as clock synchronization and register reset, which will cause significant delays. However, turning off the clock or enable signal is a shallow sleep mode, which only suspends the circuit function but retains its configuration state. Upon waking, it does not need to be reinitialized and can resume operation immediately, meeting real-time requirements.
[0044] In one possible implementation, shutting down the DLP circuit includes reducing or shutting down the power supply to at least a portion of the DLP circuit.
[0045] Reducing the power supply refers to lowering the operating voltage applied to the DLP circuit (or a portion thereof) by adjusting the power management unit. The circuit can still maintain its basic state in the buck state, but dynamic power consumption and static leakage power consumption will decrease significantly.
[0046] Turning off the power supply refers to completely cutting off the power flowing to the DLP circuit (or a part thereof) by controlling the power switch. This is the most thorough way to save energy, reducing the power consumption of that part of the circuit to almost zero.
[0047] In one possible implementation, activating the DLP circuit when the start of a data frame is detected includes: activating the DLP circuit during its wake-up time when the start of a data frame is detected, wherein the wake-up time of the DLP circuit is the buffering time required for data to be transmitted from the PHY to the DLP through the first-in-first-out buffer.
[0048] The disadvantage of the above-mentioned method of reducing or turning off the power supply is that wake-up takes time and cannot be done immediately. This embodiment solves the contradiction between wake-up delay and real-time requirements by using FIFO buffering delay between PHY and DLP.
[0049] Data transmission from PHY to DLP is asynchronous and requires temporary data storage via FIFO. That is, PHY first writes the received data into FIFO, and DLP then reads the data from FIFO for processing. During this process, the temporary storage of data in FIFO will generate an inherent delay. The duration of the delay depends on the depth of FIFO and the data transmission rate, and can be preset through hardware design.
[0050] The inherent delay of the FIFO is matched with the wake-up delay of the DLP, so that the wake-up operation of the DLP starts synchronously with the process of the PHY writing data to the FIFO. When the frame start end detection circuit detects the start of a data frame, it immediately triggers the power recovery and wake-up process of the DLP. During the time period when the DLP completes the wake-up, the PHY has written some or all of the data to the FIFO. After the DLP is woken up, the data can be read directly from the FIFO for processing without waiting for new data transmission. Thus, the FIFO's buffer delay offsets the DLP's wake-up delay, avoiding data loss or processing lag, and achieving a seamless connection between wake-up and data processing without introducing additional delay.
[0051] In one possible implementation, if the DLP was previously shut down using a low-power method suitable for high real-time scenarios (clock off / enable off), when it is turned on again, only the clock supply needs to be restored and the enable pin needs to be set. The DLP can respond immediately and enter the working state without wake-up delay.
[0052] In one possible implementation, if the continuous processing time required by the DLP circuit after the end of a data frame is greater than the minimum interval between two adjacent data frames, the idle time of the communication link is detected to be greater than a preset interval time threshold; when the idle time is detected to be greater than the preset interval time threshold, the DLP circuit is turned off.
[0053] In industrial Ethernet communication, even when data is transmitted continuously, there is an inherent shortest idle time between two adjacent data frames, which is the minimum interval between two adjacent data frames. After a data frame ends, the DLP needs additional working time to complete the subsequent processing of that frame, such as data verification and signal conversion.
[0054] Post-frame processing time in DLP refers to the time required for the DLP circuit to complete the frame termination work after the data frame transmission ends, such as data verification, format conversion, and transmission of processing results to subsequent modules. This time is inherent to the characteristics of DLP hardware. Minimum interval between adjacent frames refers to the shortest idle time that must be maintained between consecutively transmitted adjacent data frames, as specified by the Industrial Ethernet protocol, to avoid frame collisions.
[0055] Therefore, the frame start and end detection circuit needs to switch its function from judging based on the frame end time to judging based on whether the idle time exceeds a specific interval. By judging the DLP idle window, it ensures that all necessary work has been completed when the DLP is closed, while avoiding wasted power consumption.
[0056] When the idle time of the communication link is detected to be greater than a preset interval threshold, a control signal is generated to shut down the DLP circuit. This ensures that the DLP circuit does not consume power during idle periods, further reducing system power consumption. The specific method for shutting down the DLP circuit can be to disable its clock signal, disable its enable signal, or reduce the power supply, depending on the system's trade-off between wake-up time and power saving.
[0057] In one possible implementation, historical communication data is statistically analyzed to obtain the arrival time pattern of data frames; based on the arrival time pattern, the expected arrival time of the next data frame is predicted; and within a pre-wake-up time before the expected arrival time, the DLP circuit is activated, wherein the pre-wake-up time includes at least the wake-up preparation time of the DLP circuit.
[0058] During operation, the system continuously or periodically records the timestamps of data frame arrivals. This data is stored in a specific register, buffer, or small memory area.
[0059] The first type is periodicity. In scenarios such as periodic sensor data reporting and PLC (Programmable Logic Controller) cyclic communication, data frames arrive at fixed or nearly fixed time intervals. For example, a data frame will inevitably arrive every 10 milliseconds. The pattern can be expressed as: the estimated arrival time of the next frame (T_p) = the arrival time of the previous frame (T_n) + the fixed period (C).
[0060] The second type is the bursty pattern. In some applications, although data frames are not strictly periodic, they tend to arrive within a specific time window. For example, after a certain delay following the issuance of a control command, a batch of data will always return. The pattern can be represented as: within the [X,Y] time window after event A is triggered, there is a high probability of receiving data frames. This transforms communication behavior from "random" to "predictable," providing data support for subsequent pre-wake-up.
[0061] The prediction methods can include the following two: Simple periodicity prediction: Estimated arrival time T_p = T_n + C, where T_n is the arrival time of the last frame and C is the statistically obtained average period. Weighted average prediction: Uses a weighted average of the most recent periods to account for minor period fluctuations. For example: T_p = T_n + (0.5*C_{n-1} + 0.3*C_{n-2} + 0.2*C_{n-3}). Transforming historical data into accurate predictions of future events is the basis for triggering pre-wake operations.
[0062] At the time point T_p-T_wake (T_wake being the pre-wake time), a control signal to enable the DLP circuit is issued, instead of waiting until the actual start of a data frame is detected. The pre-wake time T_wake includes at least the "wake-up preparation time" required for the DLP circuit to recover from its current low-power state to its normal operating state.
[0063] T_wake is a dynamic value that depends on the depth to which the DLP circuit was shut down in the previous stage. In one possible implementation: the arrival time pattern includes periodic arrival intervals or burst arrival time windows for data frames; the pre-wake time is dynamically adjusted according to different shutdown modes of the DLP circuit; wherein, if the DLP circuit is in a state of clock off or enable, the pre-wake time is set to zero or a first threshold; if the DLP circuit is in a state of reduced or off power supply, the pre-wake time is set to a second threshold, the second threshold being greater than the first threshold and at least equal to the full wake-up time required for the DLP circuit to recover from a deep sleep state to a normal operating state.
[0064] Scenario 1 illustrates immediate response in shallow sleep mode. In this scenario, the DLP is either clock-off or enabled. The pre-wake time is set to zero or a first threshold (T1). This "shallow sleep" mode has an extremely short wake-up latency (typically within a few clock cycles). Therefore, the system does not need to wake it up long in advance. Setting it to zero means that the existing detection-based immediate-on mechanism can be relied upon entirely, achieving a near-zero latency response. T1 can be a very small design margin to handle extremely minor circuit response delays.
[0065] In this scenario, the primary function of the prediction mechanism is no longer early wake-up, but rather to confirm that "even if early wake-up occurs, it will not result in significant power wastage," because DLP may have just been turned off during the frame interval. This optimizes behavior during extremely short idle intervals.
[0066] Scenario 2 involves early wake-up from deep sleep mode. In this scenario, the DLP is in a state of reduced or shut-off power supply. The pre-wake-up time is set to a second threshold (T2), where T2 > T1, and T2 ≥ the full wake-up time. Wake-up from "deep sleep" mode (e.g., power off) requires a relatively long time, involving power rail establishment, internal register initialization, and clock stabilization. The full wake-up time is a fixed value determined by the hardware circuit characteristics. This solution mandates that the pre-wake-up time must cover this hardware requirement. It allows the system to boldly adopt the most power-efficient shutdown mode during long idle periods because the prediction mechanism ensures sufficient time to safely wake the DLP from "deep sleep," ensuring that the DLP is fully ready when data frames arrive. This mitigates the cost of deep sleep power reduction (wake-up latency) through intelligent prediction.
[0067] This resolves the fundamental contradiction between deep power reduction and real-time performance, allowing the system to boldly use the most energy-efficient method—power-off—to shut down the DLP during communication intervals. The system can predict the arrival of the next data frame in advance and wake up the DLP sufficiently beforehand, ensuring the DLP is ready when data arrives, achieving "zero-wait" processing. The system is no longer a simple start / stop logic but intelligently selects the most power-saving method based on the communication mode (periodic or bursty), while ensuring no performance loss through a predictive mechanism. This makes the invention applicable not only to completely random and bursty communication scenarios but also demonstrates a power consumption advantage far exceeding traditional responsive solutions when handling the numerous periodic communications prevalent in industrial settings, resulting in more significant and outstanding technical effects.
[0068] The above are some specific implementations of the control method provided in the embodiments of this application. Based on this, this application also provides a corresponding control system. The system provided in the embodiments of this application will be described below from the perspective of functional modularity. Figure 3 This is a structural diagram of a control system provided in an embodiment of this application.
[0069] The system includes: The detection unit 110 is used to detect the start and end of data frames while the physical layer communication chip PHY is continuously working. The enabling unit 111 is used to enable the data link processing (DLP) circuit when the start of a data frame is detected. The shutdown unit 112 is used to shut down the DLP circuit when the end of the data frame is detected and the DLP circuit has completed processing the current data frame.
[0070] This application also provides a corresponding communication system, including: a physical layer communication chip (PHY); a data link processing (DLP) circuit; and a frame start / end detection circuit, used to execute the control method provided in this application.
[0071] In other words, the communication system combines the physical layer communication chip PHY, the data link processing DLP circuit, and a frame start and end detection circuit with intelligent decision-making capabilities, thereby materializing the control method provided in the embodiments of this application at the hardware level.
[0072] This application also provides corresponding devices and computer storage media for implementing the control scheme provided in this application.
[0073] The device includes a memory and a processor. The memory is used to store instructions or code, and the processor is used to execute the instructions or code to cause the device to perform the control method described in any embodiment of this application.
[0074] The computer storage medium stores code, and when the code is executed, the device running the code implements the control method described in any embodiment of this application.
[0075] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0076] It should be understood that in this application, "at least one" refers to one or more items, and "more" refers to two or more items. "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: only A exists, only B exists, and both A and B exist simultaneously, 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. "At least one" or similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, "at least one" of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0077] It should be understood that the terms center, longitudinal, transverse, up, down, front, back, left, right, vertical, horizontal, top, bottom, inside, outside, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention.
[0078] It should be noted that, unless otherwise explicitly specified and limited, the terms installation, connection, and linking should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0079] It should also be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the statement "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0080] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0081] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, characterized in that, include: While the physical layer communication chip (PHY) is continuously working, the start and end of data frames are detected; When the start of a data frame is detected, the data link processing (DLP) circuit is activated. When the end of a data frame is detected and the DLP circuit has finished processing the current data frame, the DLP circuit is turned off.
2. The method according to claim 1, characterized in that, The method further includes: If the continuous processing time required by the DLP circuit after the end of the data frame is greater than the minimum interval time between two adjacent data frames, then it is detected whether the idle time of the communication link is greater than the preset interval time threshold. When the idle time is detected to be greater than the preset interval time threshold, the DLP circuit is turned off.
3. The method according to claim 1, characterized in that, The step of shutting down the DLP circuit after detecting the end of a data frame and after the DLP circuit has completed processing the current data frame includes: When the end of a data frame is detected, a delay signal is sent to the DLP circuit. The delay signal is used to reserve time for the DLP circuit to complete the subsequent processing of the current data frame. Real-time detection of the processing status of the DLP circuit for the current data frame; Once it is detected that the DLP circuit has completed all processing of the current data frame, the DLP circuit is turned off.
4. The method according to claim 1, characterized in that, The shutdown of the DLP circuit includes cutting off the clock signal supplied to the DLP circuit or turning off the enable terminal of the DLP circuit.
5. The method according to claim 1, characterized in that, The shutdown of the DLP circuit includes reducing or shutting down the power supply to at least a portion of the DLP circuit.
6. The method according to claim 5, characterized in that, The step of activating the DLP circuit when the start of a data frame is detected includes: When the start of a data frame is detected, the DLP circuit is activated during the wake-up time of the DLP circuit, which is the buffering time required for data to be transmitted from the PHY to the DLP through the first-in-first-out buffer.
7. The method according to claim 1, characterized in that, The method further includes: Retrieve historical communication information; Based on the historical communication information, the arrival time pattern of data frames is determined; Based on the arrival time pattern information of the data frames, predict the estimated arrival time of the next data frame; The DLP circuit is activated during a pre-wake-up period prior to the expected arrival time, the pre-wake-up period including at least the wake-up preparation time of the DLP circuit.
8. A communication system, characterized in that, include: Physical layer communication chip (PHY); Data link processing (DLP) circuitry; A frame start / end detection circuit is used to execute the control method as described in any one of claims 1-7.
9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the control method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a terminal device, cause the terminal device to perform the control method as described in any one of claims 1-7.
Citation Information
Patent Citations
Core particle, low-power-consumption control method, chip and computer equipment
CN117544433A
Radio communication apparatus with power consumption reduced
CN1237861A
Secure communication apparatus and method for a mobile computing device
US20130324034A1
Micro-power wireless access method and apparatus for internet of things for power transmission and transformation equipment
US20220361032A1