HPLC + HRF dual-mode communication system and method
By using a single microcontroller unit and mathematical model to dynamically manage hardware resources in the HPLC+HRF dual-mode communication system, combining high-order function scheduling and hash function mapping structure, the problems of high hardware cost and rigid protocol switching are solved, and low-cost and efficient communication protocol switching and reliability improvement are achieved.
Patent Information
- Application Number
- CN202510648062.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-20
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2045-05-20
AI Technical Summary
The traditional HPLC+HRF dual-mode communication system has high hardware costs due to the integration of HPLC and HRF wireless chips, and the protocol switching is rigid and the success rate is low in complex power line environments, and the communication link reliability and efficiency are insufficient.
A single microcontroller unit is used to replace the multi-chip architecture, and the hardware resources are dynamically managed through mathematical models, combined with mixed integer nonlinear planning and variational Bayesian strategy to select the optimal protocol, and a hash function mapping structure is used to realize the rapid retrieval and classified storage of protocol templates. The advanced function scheduling system performs protocol switching, and dynamic load scheduling avoids interface blockage.
Reduce hardware costs, improve the reliability and success rate of communication links, realize fast and stable protocol switching, improve resource utilization, support multiple topological structures and distributed relay communications, and adapt to large-scale deployment.
Smart Images

Figure CN120475051A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and in particular relates to an HPLC+HRF dual-mode communication system and method. Background Art
[0002] Power communication refers to the various communication technologies and networks used to transmit information within power systems. It provides essential information support for power system operation, management, and maintenance. HPLC+HRF dual-mode communication utilizes existing power line infrastructure for high-speed data transmission. By transmitting high-frequency signals over power lines, it is suitable for applications such as data acquisition, remote monitoring, and automated control within smart grids.
[0003] The prior art, published as CN115297379A, provides a multi-mode broadband carrier power line communication system. The system includes a carrier circuit, a multi-mode power communication terminal, a power consumption adjustment module, an integrated circuit module, and a processor. The system integrates broadband power carrier, micropower wireless, and Bluetooth communication capabilities, enabling "four-in-one" meter reading and supporting multi-channel, multi-mode data transmission via nodes connected to the power Internet of Things sensor network. Compared to a single HPLC approach, this prior art significantly improves the reliability and success rate of communication links through a multi-mode fusion approach. Furthermore, it features noise identification and modulation mode adaptation capabilities, enabling flexible adjustment of communication strategies based on power line conditions. It can be expanded to various topologies, such as star, tree, and mesh, supporting distributed relay communication and adapting to large-scale deployment. However, the multi-mode communication module integrates both HPLC and HRF wireless communication chips, resulting in higher hardware costs than traditional single-mode solutions. Furthermore, limited memory and CPU resources can lead to communication delays and reduced execution efficiency, hindering widespread adoption. Summary of the Invention
[0004] In order to solve the problems existing in the prior art, the technical solutions of the present invention are as follows:
[0005] An HPLC+HRF dual-mode communication system includes a soft programmable control module, a preset module, a dynamic adjustment module, a protocol switching module and a data interaction module;
[0006] The soft programmable control module uses a single microcontroller unit to provide hardware support for performing system initialization;
[0007] The preset module presets protocol templates and modulation drive codes corresponding to different communication types; the communication types include low-voltage power line high-speed carrier communication (HPLC) and wireless communication (HRF); (the protocol templates are classified and stored using a hash function mapping structure;)
[0008] The dynamic adjustment module selects and loads the optimal communication protocol according to the current power line communication environment state through a dynamic configuration decision model with a weighted sum of protocol sensitivity and information distance as an objective function, and generates a protocol driving signal based on the modulation driving code;
[0009] The protocol switching module switches the current communication protocol to the optimal communication protocol through software based on the protocol template;
[0010] The data interaction module sends the communication protocol to the unified modulation drive interface and performs signal modulation based on the modulation drive code.
[0011] An HPLC+HRF dual-mode communication method is based on an HPLC+HRF dual-mode communication system, and the method comprises the following steps:
[0012] Step 1) presetting protocol templates and modulation drive codes corresponding to different communication types; the communication types include low-voltage power line high-speed carrier communication and wireless communication and are classified and stored in a hash function mapping structure;
[0013] Step 2) Initialize the system and configure the system clock, GPIO multiplexing and DMA channels;
[0014] Step 3) solving a dynamic configuration decision model with a weighted sum of protocol sensitivity and information distance as an objective function according to the current power line communication environment state, obtaining an optimal communication protocol, and generating a protocol drive signal based on the modulation drive code;
[0015] Step 4) calling a preset protocol template corresponding to the optimal communication protocol and performing protocol switching through a high-order function scheduling model;
[0016] Step 5) Send the communication protocol to the modulation drive interface, and perform signal modulation based on the modulation drive code.
[0017] Furthermore, the protocol template D in step 1) ttl The expression is:
[0018]
[0019] Where, is the set of media access control layer state machines of the i-th protocol; is the physical layer parameter; is the modulation driven template space; is the total number of agreements; It is the tensor product that represents the coupled combination of the logic of each layer of the protocol;
[0020] Furthermore, the modulation drive code expression formula in step 1) is:
[0021]
[0022] Where, F iit (x, y, z) represents a composite function in the preset module that initializes the modulation drive code for low-voltage power line high-speed carrier communication and wireless communication based on superposition calculation of multiple signal channels; ε i is the amplitude adjustment coefficient of the i-th communication channel, which reflects the strength of different modulation signals; is the carrier of the i-th modulated signal; i is the frequency of the i-th modulation wave; It controls the starting offset of the modulation signal phase to avoid multi-channel interference; The modulated data payload of the i-th channel adopts the M-QAM method; x i ,y i is the input constellation coordinate; is the difference compensation factor of the protocol template corresponding to the i-th channel.
[0023] Furthermore, the expression of the hash function mapping structure in step 1) is:
[0024]
[0025] Where Ψ represents a mapping function; {CT} represents the set of communication types; H poo (x) is the function representation and communication type Corresponding agreement template; Corresponding communication type The first agreement template; Corresponding communication type The second agreement template; Represents the specific type of communication selected; The function k represents the input signal The modulation process; is the signal input to the modulation function; is the weight coefficient of the i-th signal; is the i-th component of the signal; l is the parameter used to adjust The power of c i is the weight coefficient of the i-th signal; is the logarithmic modulation part of the i-th signal; v is the power of the parameter controlling the logarithmic term; b k is the modulo value of the modulated result; n k It is the number of signal elements that need to be processed in the communication protocol.
[0026] Furthermore, in step 2), the system initialization is performed using a composite function model with state transfer and dynamic resource scheduling. The expression of the composite function model is:
[0027]
[0028] Where, I MCU (t) represents the initialization progress function of the microcontroller unit at time; Q c (t) is the control variable vector including system clock setting, GPIO multiplexing configuration, and DMA channel initialization; Y Φ (t) is the resource allocation matrix; R(t) -1 is the Jacobian matrix of the microcontroller programmable logic; R(t) -1 is the coupling constraint matrix including timing dependency, power consumption threshold, and interface conflict; Tr(·) is the matrix trace function used to quantify the initialization complexity; is the time-averaged expected integral;
[0029] Furthermore, in step 3), the method for constructing the dynamic configuration decision model with the weighted sum of protocol sensitivity and information distance as the objective function is as follows:
[0030] Assume that the microcontroller supports N configurable submodules, and its configuration space is:
[0031]
[0032] Where U represents the full set of all optional communication protocol configurations, u i represents the i-th available communication protocol configuration, Indicates length n i The binary vector space of , i = 1, 2, ..., N is the index range;
[0033] The dynamic configuration decision model is defined as:
[0034]
[0035] Where u * (t) is the optimal communication protocol configuration dynamically selected according to the network status at time t, represents the parameter value that minimizes the objective function, u i ∈U is the candidate set of protocol configurations, M represents the number of communication environment parameters involved in the optimization evaluation, Indicates environmental parameter O j The weight of influence on protocol selection, Indicates the current configuration u i For the environmental parameter O jThe partial derivative of |·| represents the modulus of sensitivity, β is the penalty intensity for controlling the deviation of the communication protocol distribution from the ideal state, Is the measurement protocol configuration u i The "information distance" between the corresponding behavior probability distribution and the ideal distribution, S il is the expected distribution of target protocol behavior, is the actual probability distribution;
[0036] Furthermore, the specific method of solving the dynamic configuration decision model with the weighted sum of protocol sensitivity and information distance as the objective function to obtain the optimal communication protocol according to the current power line communication environment state is as follows:
[0037] Let the state vector of the communication environment be a high-dimensional time-varying tensor, expressed as:
[0038]
[0039] Where γ(t) represents the matrix of error information at time t, is the perception value of the k′th feature at the i′th node on the j′th link, is the number of nodes, Indicates the number of links, Represents the environmental feature dimension, is a real number field with dimension The tensor space of the current environment state is formed after principal component decomposition and dimensionality reduction, and the expression formula is: t =HSD[γ(t)]∈Γ d′ , where l t is the state of the environment at the current time t, HSD[·] is the high-order singular value decomposition, Γ d′ It is a tensor space of dimension d′ in the real number domain. The communication protocol U is selected based on the variational Bayesian strategy. The probability selection distribution is introduced and expressed as follows: in is the conditional probability, U t represents the strategy selected at time t, e t is the state of the environment at time t, U′ is an index of summation, w U′ is the weight vector associated with the strategy U′, ι(e t ) is the environmental state e t The feature mapping is performed, exp(·) is an exponential function that represents the exponential operation;
[0040] Mixed integer nonlinear programming is used to represent the scheduling process of the communication protocol loading as resource-constrained, and the expression formula is:
[0041] Where a i∈{0,1} is a binary decision variable, is the total number of protocol stacks, ι i is the weight coefficient associated with the i-th protocol stack, is the communication quality of the i-th protocol stack at time t, κ i is the load factor associated with the ith protocol stack, Indicates the load level of the i-th protocol stack, Indicates the total memory usage, is the memory requirement of the i-th protocol stack, Θ ram is the maximum memory available on the system, Indicates the total CPU usage, is the CPU requirement of the i-th protocol stack, Θ cpu is the maximum CPU resource available to the system, is an indicator function, Given the environment state l at time t t The conditional probability of selecting the i-th protocol stack is λ, and λ is the threshold used to determine whether to select the protocol stack. The communication protocol activation sequence is arranged according to priority, and the instruction set preloading is performed through the hot start mechanism.
[0042] Furthermore, the specific method of calling the preset protocol template corresponding to the optimal communication protocol and performing protocol switching through the high-order function scheduling model is as follows:
[0043] By constructing a high-order function scheduling system based on state mapping, switching strategy and convergence control, the communication protocol is switched by software. The high-order function scheduling system runs on the continuous-time protocol state space and defines the composite protocol of the communication protocol state vector Φ(t) in time, which is expressed as:
[0044]
[0045] Where Φ(t) is the current communication protocol state at time t, is the summation symbol, θ i (t) is the value of the i-th element at time t, π i Is the value of the i-th element belongs to the set is a binary vector space,
[0046] It is a set of communication protocol state vectors, which introduces dynamic switching mapping and is expressed as:
[0047]
[0048] Where σ is a mapping operator, Φ(t) is the current communication protocol state at time t, and Φ(t+ ) is the communication protocol state at the next moment obtained by mapping σ, In parameter space Choose an optimal Ψ from is a weighted matrix, Ψ is the decision variable in the optimization problem, Φ(t) is the current communication protocol state, represents the square of the weighted error between the current state Φ(t) and the candidate state Ψ, represents the total variation regularization term for Ψ, τ comp (Ψ) represents the computational complexity term, is the domain of the decision variable Ψ;
[0049] The protocol switching process includes:
[0050] Assume the iterative process: Where, It is in The decision variables obtained in the iterations are is the current decision variable, σ is a mapping operator; if there exists a constant 0<ρ<1, satisfying:
[0051]
[0052] Where Φ1 and Φ2 represent two different states, σ is a mapping operator, ||σ(Φ1)-σ(Φ2)|| represents the difference between the two mapped states, ||Φ1-Φ2|| is the standard way to calculate the difference between the two states, and ψ is the shrinkage factor. is a quantized condition, then according to the Banach fixed point theorem, there is a unique convergent solution: And σ(Φ * )=Φ * , where Φ* is the target state, It means that with Increase status will approach Φ * , represents the number of iterations, σ(Φ * ) is the mapping function σ applied to the target state Φ * The result after that is that the communication protocol switching behavior converges stably in the software space. The communication protocol switching triggering strategy is expressed as:
[0053] in is a switch function, is the characteristic function, ξ, is the adaptive threshold, is the first-order derivative of the communication environment state, indicating the rate of change, is the service quality difference between the current protocol and the best protocol.
[0054] Furthermore, the specific method of sending the communication protocol to the modulation drive interface and performing signal modulation based on the modulation drive code includes:
[0055] By constructing a dynamic coupling system based on communication protocol representation mapping, control path constraint optimization and multi-dimensional protocol channel transformation function, the loaded communication protocol is sent to a unified modulation drive interface, and the expression of the communication protocol in the MCU control module is set as a four-tuple, and the expression formula is: in It is a set symbol. is the media access control layer configuration matrix of the i-th protocol, is the physical layer modulation mapping matrix, is the source data structure, It is the response / feedback control logic, and the unified modulation drive interface is defined as an abstract function space;
[0056] Define the communication protocol injection function and express the formula:
[0057] satisfy:
[0058]
[0059] Where, It is a symbol that represents a communication protocol mapping. Represents an element in the protocol space, represents an element in the output space, is the optimal solution in the optimization problem, Indicates the modulation drive code to be optimized, is a collection of modulation drive codes, represents the sum of squared errors in the time domain, Represents the signal value transmitted through the physical layer at time t, represents the desired target signal, represents the regularization term related to synchronization, represents the second-order gradient of the modulated driving code, is the regularization parameter, δ syc is the measurement function of synchronization error, which represents the synchronization performance of the system during the communication protocol switching process. It means to accumulate all the moments in the time interval t from 0 to T″. is the actual alignment time for the i-th type of communication protocol at time t, is the reference time at time t, The square term of the synchronization error represents the deviation between the alignment time of the i-th communication protocol and the reference time at time t. The dynamic coupling execution path follows the state jump function Expression formula:
[0060]
[0061] Where, Is the state jump function representing the transition from a pair of inputs arrive The mapping, is one of the input parameters, is another input parameter, is the output result after mapping, is an operation function, is another operation function, is the function combination symbol, express The output result is equal to that obtained by activating a function first. Then bind the resources The result, which performs dynamic loading and avoids blocking of the modulation interface, is expressed as:
[0062]
[0063] Where, represents the load level at time t, Indicates the number of communication protocols involved in load calculation, is the time function of the i-th communication protocol, Indicates the degree of resource occupation, η′ is used to adjust the impact of the item, represents the response of task i under given load conditions, Indicates the square value of the consumption of the task under load conditions, Queue i (t) is the queue length of the i-th task at time t, θ″ q″ Is a threshold used to control the queue length condition, is an indicator function whose value is 1.
[0064] Compared with the prior art, the present invention has the following beneficial effects:
[0065] The present invention provides an HPLC+HRF dual-mode communication system and method. The system uses a single microcontroller unit to replace a multi-chip architecture and dynamically manages hardware resources through mathematical models (resource allocation matrix, Jacobian matrix). This system solves the problem of high hardware cost caused by the integration of HPLC and HRF wireless chips in traditional HPLC+HRF dual-mode communication systems, and has the advantages of lower hardware cost and higher resource utilization.
[0066] The method of the present invention is based on the main vector of the environmental state and dynamically selects the optimal protocol through mixed integer nonlinear programming (MINLP) and variational Bayesian strategy, solving the problems of rigid protocol switching and low success rate in traditional systems under complex power line environments. It can improve the reliability and success rate of communication links, and at the same time has the ability to recognize noise and adapt to modulation modes. It can flexibly adjust the communication strategy according to the power line conditions, and can be expanded to various topologies such as star, tree, and mesh. It supports distributed relay communication and is suitable for large-scale deployment.
[0067] The method of the present invention realizes protocol switching in a high-order function scheduling system and verifies convergence based on the Banach fixed point theorem, solving the problems of high latency and poor stability of traditional protocol switching that rely on hardware implementation. It realizes software-driven fast protocol switching, ensures a stable and oscillatory switching process, and reduces the risk of communication interruption.
[0068] The method of the present invention adopts the mapping structure of the hash function to realize the rapid retrieval and classified storage of the protocol template, improves the protocol loading efficiency, avoids resource waste, supports remote OTA updating of the protocol template, and reduces operation and maintenance costs.
[0069] The method of the present invention optimizes data transmission through a synchronization error regularization algorithm, combines it with dynamic load scheduling to avoid interface blocking, and solves the problems of large synchronization errors and uneven interface loads during data transmission, thereby improving the resource utilization of the modulation interface and ensuring the efficient completion of communication tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 Schematic diagram of the HPLC+HRF dual-mode communication system. DETAILED DESCRIPTION
[0071] The present invention is further illustrated below with reference to the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent modifications of the present invention by those skilled in the art fall within the scope defined by the claims attached to this application.
[0072] Example 1:
[0073] A HPLC+HRF dual-mode communication system of the present invention, such as Figure 1 As shown, it includes a soft programmable control module, a preset module, a dynamic adjustment module, a protocol switching module and a data interaction module;
[0074] A soft programmable control module, using a single microcontroller unit to provide hardware support, is used to perform system initialization; system initialization includes configuring the system clock, GPIO multiplexing, and DMA channels;
[0075] Preset module, preset protocol templates and modulation drive codes corresponding to different communication types; communication types include low-voltage power line high-speed carrier communication (HPLC) and wireless communication (HRF); protocol templates are classified and stored through a hash function mapping structure;
[0076] The dynamic adjustment module selects and loads the optimal communication protocol based on the current power line communication environment state through a dynamic configuration decision model with the weighted sum of protocol sensitivity and information distance as the objective function, and generates the protocol drive signal based on the modulation drive code;
[0077] The protocol switching module switches the current communication protocol to the optimal one through software based on the protocol template. It uses a cyclically iterative state mapping function to converge to a stable protocol state. The timing synchronization of the protocol switching depends on the system clock.
[0078] The data interaction module sends the communication protocol to the unified modulation driver interface through the configured DMA channel and performs signal modulation based on the modulation driver code.
[0079] Example 2:
[0080] An HPLC+HRF dual-mode communication method of the present invention is based on the HPLC+HRF dual-mode communication system of the present invention, and the method comprises the following steps:
[0081] Step 1) presetting protocol templates and modulation drive codes corresponding to different communication types; the communication types include low-voltage power line high-speed carrier communication (HPLC) and wireless communication (HRF) and are classified and stored in a hash function mapping structure; that is, a fast retrieval relationship between the communication type and the protocol template is established through the hash function mapping structure;
[0082] Step 2) Perform system initialization through the microcontroller unit (MCU) to configure the system clock, GPIO multiplexing and DMA channels;
[0083] Step 3) Based on the current power line communication environment state, a dynamic configuration decision model with a weighted sum of protocol sensitivity and information distance as the objective function is solved to obtain the optimal communication protocol, and a protocol driving signal is generated based on the modulation driving code;
[0084] Step 4) Calling a preset protocol template corresponding to the optimal communication protocol, performing protocol switching through a high-order function scheduling model, and triggering timing and timing synchronization of the protocol switching are controlled by the system clock;
[0085] Step 5) Send the communication protocol to the modulation driver interface through the configured DMA channel, and perform signal modulation based on the modulation driver code.
[0086] In one embodiment, the protocol template D in step 1)ttl The expression is:
[0087]
[0088] Where, is the set of media access control layer state machines of the i-th protocol; is the physical layer parameter; is the modulation driven template space; is the total number of agreements; It is the tensor product that represents the coupled combination of the logic of each layer of the protocol;
[0089] In one embodiment, the modulation drive code presetting in step 1) requires that the modulation function library has been loaded into the executable storage area during the MCU startup phase. The expression formula of the modulation drive code is:
[0090]
[0091] Where, F iit (x, y, z) represents the composite function of initializing the modulation drive code for low-voltage power line high-speed carrier communication and wireless communication in the preset module, which is calculated based on the superposition of multiple signal channels. From i=1 to The sum of ; i is the amplitude adjustment coefficient of the i-th communication channel, which reflects the strength of different modulation signals; is the carrier of the i-th modulated signal; i is the frequency of the i-th modulation wave; It controls the starting offset of the modulation signal phase to avoid multi-channel interference; The modulated data payload of the i-th channel adopts the M-QAM method; x i ,y i is the input constellation coordinate; is the difference compensation factor of the protocol template corresponding to the i-th channel.
[0092] In one embodiment, the expression of the hash function mapping structure in step 1) is:
[0093]
[0094] Where Ψ represents a mapping function; {CT} represents the set of communication types; H poo (x) is the function representation and communication type Corresponding agreement template; Corresponding communication type The first agreement template; Corresponding communication type The second agreement template; Represents the specific type of communication selected; The function k represents the input signal The modulation process; is the signal input to the modulation function; is the weight coefficient of the i-th signal; is the i-th component of the signal; l is the parameter used to adjust The power of c i is the weight coefficient of the i-th signal; is the logarithmic modulation part of the i-th signal; v is the power of the parameter controlling the logarithmic term; b k is the modulo value of the modulated result; n k It is the number of signal elements that need to be processed in the communication protocol.
[0095] Furthermore, the preset module in the control module is responsible for loading and initializing the communication protocol templates and modulation drive codes required for HPLC communication (low-voltage power line high-speed carrier communication) and wireless communication. By quickly switching protocols according to different communication requirements, the system flexibility is improved. The preloading and parameter adjustment of the modulation drive code facilitate the stability of different communication protocols in a multi-channel environment, which is conducive to avoiding signal interference. Through the hash function mapping structure, the efficiency of protocol loading is optimized and resource waste is avoided.
[0096] In one embodiment, in step 2), system initialization is performed using a composite function model with state transfer and dynamic resource scheduling. The expression of the composite function model is:
[0097]
[0098] Where, I MCU (t) represents the initialization progress function of the microcontroller unit (MCU) at time; Q c (t) is the control variable vector including system clock setting, GPIO multiplexing configuration, and DMA channel initialization; Y Φ (t) is the resource allocation matrix; R(t) -1 is the Jacobian matrix of the microcontroller programmable logic; R(t) -1 is the coupling constraint matrix including timing dependency, power consumption threshold, and interface conflict; Tr(·) is the matrix trace function used to quantify the initialization complexity; is the time-averaged expected integral;
[0099] In one embodiment, the method for constructing the dynamic configuration decision model in step 3) with the weighted sum of protocol sensitivity and information distance as the objective function is as follows:
[0100] Assume that the microcontroller supports N configurable submodules, and its configuration space is:
[0101]
[0102] Where U represents the full set of all optional communication protocol configurations, u i represents the i-th available communication protocol configuration, Indicates length n i The binary vector space of , i = 1, 2, ..., N is the index range;
[0103] Define the dynamic configuration decision model as:
[0104]
[0105] Where u * (t) is the optimal communication protocol configuration dynamically selected according to the network status at time t, represents the parameter value that minimizes the objective function, u i ∈U is the candidate set of protocol configurations, M represents the number of communication environment parameters involved in the optimization evaluation, Indicates environmental parameter O j The weight of influence on protocol selection, Indicates the current configuration u i For the environmental parameter O j The partial derivative of |·| represents the modulus of sensitivity, β is the penalty intensity for controlling the deviation of the communication protocol distribution from the ideal state, Is the measurement protocol configuration u i The "information distance" between the corresponding behavior probability distribution and the ideal distribution, S il is the expected distribution of target protocol behavior, is the actual probability distribution;
[0106] In one embodiment, based on the current power line communication environment state, a dynamic configuration decision model with a weighted sum of protocol sensitivity and information distance as the objective function is solved to obtain the optimal communication protocol as follows:
[0107] Let the state vector of the communication environment be a high-dimensional time-varying tensor, expressed as:
[0108]
[0109] Where γ(t) represents the matrix of error information at time t, is the perception value of the k′th feature at the i′th node on the j′th link, is the number of nodes, Indicates the number of links, Represents the environmental feature dimension, is a real number field with dimension The tensor space of the current environment state is formed after principal component decomposition and dimensionality reduction. The expression formula is: t =HSD[γ(t)]∈Γ d′ , where l t is the state of the environment at the current time t, HSD[·] is the high-order singular value decomposition, Γ d′ It is a tensor space of dimension d′ in the real number domain. The communication protocol U is selected based on the variational Bayesian strategy. The probability selection distribution is introduced and expressed as: in is the conditional probability, U t represents the strategy selected at time t, l t is the state of the environment at time t, U′ is an index of summation, w U′ is the weight vector associated with the strategy U′, ι(l t ) is the environmental state l t The feature mapping is performed, exp(·) is an exponential function that represents the exponential operation;
[0110] Mixed integer nonlinear programming is used to represent the scheduling process of communication protocol loading as resource-constrained, expressed as follows:
[0111] Where a i ∈{0,1} is a binary decision variable, is the total number of protocol stacks, ι i is the weight coefficient associated with the i-th protocol stack, is the communication quality of the i-th protocol stack at time t, κ i is the load factor associated with the ith protocol stack, Indicates the load level of the i-th protocol stack, Indicates the total memory usage, is the memory requirement of the i-th protocol stack, Θ ram is the maximum memory available on the system, Indicates the total CPU usage, is the CPU requirement of the i-th protocol stack, Θ cpu is the maximum CPU resource available to the system, is an indicator function, Given the environment state l at time t t The conditional probability of selecting the i-th protocol stack is λ, and λ is the threshold used to determine whether to select the protocol stack. The communication protocol activation sequence is arranged according to priority, and the instruction set preloading is performed through the hot start mechanism.
[0112] Furthermore, the dynamic adjustment module flexibly switches communication protocols according to the real-time environmental status, so as to always maintain the best communication quality in different network environments. It uses variational Bayesian strategies and priority sorting to maintain stable communication under high load conditions, which is conducive to reducing network interruptions and delays. It automatically adjusts the protocol under different network conditions to adapt to environmental changes.
[0113] In one embodiment, a specific method for calling a preset protocol template corresponding to an optimal communication protocol and performing protocol switching through a high-order function scheduling model is as follows:
[0114] By building a high-order function scheduling system based on state mapping, switching strategy and convergence control, it is used to switch communication protocols through software. The high-order function scheduling system runs on the continuous-time protocol state space and defines the composite protocol of the communication protocol state vector Φ(t) in time. The expression formula is:
[0115]
[0116] Where Φ(t) is the current communication protocol state at time t, is the summation symbol, θ i (t) is the value of the i-th element at time t, π i Is the value of the i-th element belongs to the set is a binary vector space,
[0117] It is a set of communication protocol state vectors, which introduces dynamic switching mapping and is expressed as:
[0118]
[0119] Where σ is a mapping operator, Φ(t) is the current communication protocol state at time t, and Φ(t + ) is the communication protocol state at the next moment obtained by mapping σ, In parameter space Choose an optimal Ψ from is a weighted matrix, Ψ is the decision variable in the optimization problem, Φ(t) is the current communication protocol state, represents the square of the weighted error between the current state Φ(t) and the candidate state Ψ, represents the total variation regularization term for Ψ, τ comp (Ψ) represents the computational complexity term, is the domain of the decision variable Ψ;
[0120] The protocol switching process includes:
[0121] Assume the iterative process: Where, It is in The decision variables obtained in the iterations are is the current decision variable, σ is a mapping operator; if there exists a constant 0<ρ<1, satisfying:
[0122]
[0123] Where Φ1 and Φ2 represent two different states, σ is a mapping operator, ||σ(Φ1)-σ(Φ2)|| represents the difference between the two mapped states, ||Φ1-Φ2|| is the standard way to calculate the difference between the two states, and ψ is the shrinkage factor. is a quantized condition, then according to the Banach fixed point theorem, there is a unique convergent solution: And σ(Φ * )=Φ * , where Φ* is the target state, It means that with Increase status will approach Φ * , represents the number of iterations, σ(Φ * ) is the mapping function σ applied to the target state Φ * The result after that is that the communication protocol switching behavior converges stably in the software space, and the communication protocol switching triggering strategy is expressed as:
[0124] in is a switch function, is the characteristic function, ξ, is the adaptive threshold, is the first-order derivative of the communication environment state, indicating the rate of change, is the service quality difference between the current protocol and the best protocol.
[0125] Furthermore, the optimal communication protocol is dynamically selected through software, so that the device always operates in the best communication state. By utilizing state mapping and switching strategies, the use of network resources is intelligently optimized to reduce the burden and delay caused by protocol switching. Through the iteration and convergence process, the protocol switching can stabilize and tend to the optimal state after each operation, which helps to avoid system instability and fluctuations.
[0126] In one embodiment, a specific method of sending a communication protocol to a modulation drive interface and performing signal modulation based on a modulation drive code includes:
[0127] By building a dynamic coupling system based on communication protocol representation mapping, control path constraint optimization and multi-dimensional protocol channel transformation function, it is used to send the loaded communication protocol to a unified modulation drive interface. The expression of the communication protocol in the MCU control module is set as a four-tuple, and the expression formula is: in It is a collective symbol. is the media access control layer configuration matrix of the i-th protocol, is the physical layer modulation mapping matrix, is the source data structure, It is the response / feedback control logic, and the unified modulation drive interface is defined as an abstract function space;
[0128] Define the communication protocol injection function and express the formula:
[0129] satisfy:
[0130]
[0131] Where, It is a symbol that represents a communication protocol mapping. Represents an element in the protocol space, represents an element in the output space, is the optimal solution to the optimization problem, Indicates the modulation drive code to be optimized, is a collection of modulation drive codes, represents the sum of squared errors in the time domain, Represents the signal value transmitted through the physical layer at time t, represents the desired target signal, represents the regularization term related to synchronization, represents the second-order gradient of the modulated driving code, is the regularization parameter, δ syc is the measurement function of synchronization error, which represents the synchronization performance of the system during the communication protocol switching process. It means to accumulate all the moments in the time interval t from 0 to T″. is the actual alignment time for the i-th type of communication protocol at time t, is the reference time at time t, The square term of the synchronization error represents the deviation between the alignment time of the i-th communication protocol and the reference time at time t. The dynamic coupling execution path follows the state jump function Expression formula:
[0132]
[0133] Where, Is the state jump function representing the transition from a pair of inputs arrive The mapping, is one of the input parameters, is another input parameter, is the output result after mapping, is an operation function, is another operation function, is the function combination symbol, express The output result is equal to that obtained by activating a function first. Then bind the resources The result, which performs dynamic loading and avoids blocking of the modulation interface, is expressed as:
[0134]
[0135] Where, represents the load level at time t, Indicates the number of communication protocols involved in load calculation, is the time function of the i-th communication protocol, Indicates the degree of resource occupation, η′ is used to adjust the impact of the item, represents the response of task i under given load conditions, Indicates the square value of the consumption of the task under load conditions, Queue i (t) is the queue length of the i-th task at time t, θ″ q″ Is a threshold used to control the queue length condition, is an indicator function whose value is 1.
[0136] Furthermore, the data interaction module facilitates efficient switching and data transmission in a multi-protocol environment by optimizing the protocol mapping and modulation process. It reduces errors and delays in the data transmission process and improves communication quality through regularization of synchronization errors and modulation optimization. It avoids blocking of the modulation interface through dynamic load calculation and resource allocation, optimizes resource utilization, and facilitates the efficient completion of communication tasks.
[0137] The method of the present invention uses a soft programmable solution to replace multiple communication chips with one MCU, thereby simplifying the hardware structure and saving BOM costs. The communication protocol template can be updated through remote OTA, reducing operation and maintenance costs. Through dynamic configuration and optimized scheduling, the stability and efficiency of the system in complex environments are improved, communication delays are reduced, and data transmission rates are increased. Through a hash function mapping structure, the execution efficiency of protocol loading is optimized, the response speed of the system is improved, and thus the work execution efficiency is improved. The protocol is automatically adjusted under different network conditions to facilitate adaptation to environmental changes. Under limited memory and CPU resources, the protocol stack loading is intelligently scheduled to improve the performance and execution efficiency of the system.
[0138] The systems and methods of the present invention utilize modern multi-core processors and distributed computing architectures to parallelize or distribute software module tasks across multiple computing nodes, significantly improving execution efficiency. If software modules can fully exploit the parallelism of multi-core processors and distribute tasks across different cores for simultaneous execution using parallel programming techniques, the efficiency of fully parallelizable tasks can potentially improve nearly linearly—that is, using n cores yields a nearly n-fold increase in efficiency. However, in practice, due to dependencies and communication overhead between tasks, the efficiency improvement is typically less than linear, potentially reaching 3-5 times or even higher, depending on the degree of parallelism of the tasks and the system architecture. Software modules with high execution efficiency can handle more tasks with the same hardware conditions or, while meeting the same performance requirements, utilize lower-performance, more cost-effective hardware. For example, in a data center, improving the execution efficiency of software modules can reduce the number of servers, thereby reducing hardware procurement costs, computer room space usage costs, and power consumption costs. Efficient software modules also offer lower maintenance costs due to their stable operation and lower probability of failure. At the same time, software upgrades and optimizations are relatively easy, as efficient code structures are easier to understand and modify. This helps reduce the workload for technical support and maintenance personnel, lowering long-term maintenance costs. Improved software module execution efficiency enables developers to debug, test, and optimize more quickly during the development process, reducing the time required for repeated modifications and adjustments due to performance issues. For example, in software development, faster compilation and execution speeds allow developers to more quickly verify new features and algorithms, accelerating overall product development and bringing technological advances to market more quickly.
[0139] The above description is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a technician familiar with this technical field within the technical scope disclosed by the present invention should be covered by the scope of protection of the present invention.
Claims
1. A HPLC+HRF dual-mode communication system, characterized in that: It includes soft programmable control module, preset module, dynamic adjustment module, protocol switching module and data interaction module; The soft programmable control module uses a single microcontroller unit to provide hardware support for performing system initialization; The preset module presets protocol templates and modulation drive codes corresponding to different communication types; the communication types include low-voltage power line high-speed carrier communication and wireless communication; The dynamic adjustment module selects and loads the optimal communication protocol according to the current power line communication environment state through a dynamic configuration decision model with a weighted sum of protocol sensitivity and information distance as an objective function, and generates a protocol driving signal based on the modulation driving code; The protocol switching module switches the current communication protocol to the optimal communication protocol through software based on the protocol template; The data interaction module sends the communication protocol to the unified modulation drive interface and performs signal modulation based on the modulation drive code.
2. A HPLC+HRF dual-mode communication method, based on the HPLC+HRF dual-mode communication system according to claim 1, characterized in that: The method comprises the following steps: Step 1) presetting protocol templates and modulation drive codes corresponding to different communication types; the communication types include low-voltage power line high-speed carrier communication and wireless communication and are classified and stored in a hash function mapping structure; Step 2) Initialize the system and configure the system clock, GPIO multiplexing and DMA channels; Step 3) solving a dynamic configuration decision model with a weighted sum of protocol sensitivity and information distance as an objective function according to the current power line communication environment state, obtaining an optimal communication protocol, and generating a protocol drive signal based on the modulation drive code; Step 4) calling a preset protocol template corresponding to the optimal communication protocol and performing protocol switching through a high-order function scheduling model; Step 5) Send the communication protocol to the modulation drive interface, and perform signal modulation based on the modulation drive code.
3. The HPLC+HRF dual-mode communication method according to claim 2, wherein The protocol template D described in step 1) ttl The expression is: Where, is the set of media access control layer state machines of the i-th protocol; is the physical layer parameter; is the modulation driven template space; is the total number of agreements; It is a tensor product that represents the coupled combination of logic at each layer of the protocol.
4. The HPLC+HRF dual-mode communication method according to claim 3, wherein The modulation drive code expression formula in step 1) is: Where, F iit (x, y, z) represents a composite function in the preset module that initializes the modulation drive code for low-voltage power line high-speed carrier communication and wireless communication based on superposition calculation of multiple signal channels; ε i is the amplitude adjustment coefficient of the i-th communication channel, which reflects the strength of different modulation signals; is the carrier of the i-th modulated signal; i is the frequency of the i-th modulation wave; It controls the starting offset of the modulation signal phase to avoid multi-channel interference; The modulated data payload of the i-th channel adopts the M-QAM method; x i ,y i is the input constellation coordinate; is the difference compensation factor of the protocol template corresponding to the i-th channel.
5. The HPLC+HRF dual-mode communication method according to claim 4, wherein The expression of the hash function mapping structure in step 1) is: Where Ψ represents a mapping function; {CT} represents the set of communication types; H poo (x) is the function representation and communication type Corresponding agreement template; Corresponding communication type The first agreement template; Corresponding communication type The second agreement template; Represents the specific type of communication selected; The function k represents the input signal The modulation process; is the signal input to the modulation function; is the weight coefficient of the i-th signal; is the i-th component of the signal; l is the parameter used to adjust The power of c i is the weight coefficient of the i-th signal; is the logarithmic modulation part of the i-th signal; v is the power of the parameter controlling the logarithmic term; b k is the modulo value of the modulated result; n k It is the number of signal elements that need to be processed in the communication protocol.
6. The HPLC+HRF dual-mode communication method according to claim 1, wherein In step 2), the system initialization is performed using a composite function model with state transfer and dynamic resource scheduling. The expression of the composite function model is: Where, I MCU (t) represents the initialization progress function of the microcontroller unit at time; Q c (t) is the control variable vector including system clock setting, GPIO multiplexing configuration, and DMA channel initialization; Y Φ (t) is the resource allocation matrix; R(t) -1 is the Jacobian matrix of the microcontroller programmable logic; R(t) -1 The coupling constraint matrix includes timing dependencies, power consumption thresholds, and interface conflicts; Tr(·) is the matrix trace function used to quantify the initialization complexity; is the time-averaged expected integral.
7. The HPLC+HRF dual-mode communication method according to claim 1, wherein The method for constructing the dynamic configuration decision model in step 3) with the weighted sum of protocol sensitivity and information distance as the objective function is as follows: Assume that the microcontroller supports N configurable submodules, and its configuration space is: Where U represents the full set of all optional communication protocol configurations, u i represents the i-th available communication protocol configuration, Indicates length n i The binary vector space of , i = 1, 2, ..., N is the index range; The dynamic configuration decision model is defined as: Where u * (t) is the optimal communication protocol configuration dynamically selected according to the network status at time t, represents the parameter value that minimizes the objective function, u i ∈U is the candidate set of protocol configurations, M represents the number of communication environment parameters involved in the optimization evaluation, Indicates environmental parameter O j The weight of influence on protocol selection, Indicates the current configuration u i For the environmental parameter O j The partial derivative of |·| represents the modulus of sensitivity, β is the penalty intensity for controlling the deviation of the communication protocol distribution from the ideal state, Is the measurement protocol configuration u i The "information distance" between the corresponding behavior probability distribution and the ideal distribution, S il is the expected distribution of target protocol behavior, is the actual probability distribution.
8. The HPLC+HRF dual-mode communication method according to claim 1, wherein The specific method for solving the dynamic configuration decision model with the weighted sum of protocol sensitivity and information distance as the objective function to obtain the optimal communication protocol based on the current power line communication environment state is as follows: Let the state vector of the communication environment be a high-dimensional time-varying tensor, expressed as: Where γ(t) represents the matrix of error information at time t, is the perception value of the k′th feature at the i′th node on the j′th link, is the number of nodes, Indicates the number of links, Represents the environmental feature dimension, is a real number field with dimension The tensor space of , after principal component decomposition and dimensionality reduction, forms the main vector of the current environment state, expressed as: in is the state of the environment at the current time t, HSD[·] is the high-order singular value decomposition, Γ d′ It is a tensor space of dimension d′ in the real number domain. The communication protocol U is selected based on the variational Bayesian strategy. The probability selection distribution is introduced and expressed as follows: in is the conditional probability, U t represents the strategy selected at time t, is the state of the environment at time t, U′ is an index of summation, w U′ is the weight vector associated with the policy U′, It is the state of the environment The feature mapping is performed, exp(·) is an exponential function that represents the exponential operation; Mixed integer nonlinear programming is used to represent the scheduling process of the communication protocol loading as resource-constrained, and the expression formula is: Where a i ∈{0,1} is a binary decision variable, is the total number of protocol stacks, ι i is the weight coefficient associated with the i-th protocol stack, is the communication quality of the i-th protocol stack at time t, κ i is the load factor associated with the ith protocol stack, Indicates the load level of the i-th protocol stack, Indicates the total memory usage, is the memory requirement of the i-th protocol stack, Θ ram is the maximum memory available on the system, Indicates the total CPU usage, is the CPU requirement of the i-th protocol stack, Θ cpu is the maximum CPU resource available to the system, is an indicator function, The state of the environment at time t is given The conditional probability of selecting the i-th protocol stack is λ, and λ is the threshold used to determine whether to select the protocol stack. The communication protocol activation sequence is arranged according to priority, and the instruction set preloading is performed through the hot start mechanism.
9. The HPLC+HRF dual-mode communication method according to claim 1, wherein The specific method of calling the preset protocol template corresponding to the optimal communication protocol and performing protocol switching through the high-order function scheduling model is as follows: By constructing a high-order function scheduling system based on state mapping, switching strategy and convergence control, the communication protocol is switched by software. The high-order function scheduling system runs on the continuous-time protocol state space and defines the composite protocol of the communication protocol state vector Φ(t) in time, which is expressed as: Where Φ(t) is the current communication protocol state at time t, is the summation symbol, θ i (t) is the value of the i-th element at time t, π i Is the value of the i-th element belongs to the set is a binary vector space, θ is a set of communication protocol state vectors. Dynamic switching mapping is introduced and expressed as: Where σ is a mapping operator, Φ(t) is the current communication protocol state at time t, and Φ(t + ) is the communication protocol state at the next moment obtained by mapping σ, In parameter space Choose an optimal Ψ from is a weighted matrix, Ψ is the decision variable in the optimization problem, Φ(t) is the current communication protocol state, represents the square of the weighted error between the current state Φ(t) and the candidate state Ψ, represents the total variation regularization term for Ψ, τ comp (Ψ) represents the computational complexity term, is the domain of the decision variable Ψ; The protocol switching process includes: Assume the iterative process: Where, It is in The decision variables obtained in the iterations are is the current decision variable, σ is a mapping operator; if there exists a constant 0<ρ<1, satisfying: Where Φ1 and Φ2 represent two different states, σ is a mapping operator, ||σ(Φ1)-σ(Φ2)|| represents the difference between the two mapped states, ||Φ1-Φ2|| is the standard way to calculate the difference between the two states, and ψ is the shrinkage factor. is a quantized condition, then according to the Banach fixed point theorem, there is a unique convergent solution: Where, Φ * is the target state, It means that with Increase status will approach Φ * , represents the number of iterations, σ(Φ * ) is the mapping function σ applied to the target state Φ * The result after that is that the communication protocol switching behavior converges stably in the software space. The communication protocol switching triggering strategy is expressed as: in is a switch function, is the characteristic function, ξ, is the adaptive threshold, is the first-order derivative of the communication environment state, indicating the rate of change, is the service quality difference between the current protocol and the best protocol.
10. The HPLC+HRF dual-mode communication method according to claim 1, wherein The specific method of sending the communication protocol to the modulation drive interface and performing signal modulation based on the modulation drive code includes: By constructing a dynamic coupling system based on communication protocol representation mapping, control path constraint optimization and multi-dimensional protocol channel transformation function, the loaded communication protocol is sent to a unified modulation drive interface, and the expression of the communication protocol in the MCU control module is set as a four-tuple, and the expression formula is: in It is a collective symbol. is the media access control layer configuration matrix of the i-th protocol, is the physical layer modulation mapping matrix, is the source data structure, It is the response / feedback control logic, and the unified modulation drive interface is defined as an abstract function space; Define the communication protocol injection function and express the formula: satisfy: Where, It is a symbol that represents a communication protocol mapping. Represents an element in the protocol space, represents an element in the output space, is the optimal solution to the optimization problem, Indicates the modulation drive code to be optimized, is a collection of modulation drive codes, represents the sum of squared errors in the time domain, Represents the signal value transmitted through the physical layer at time t, represents the desired target signal, represents the regularization term related to synchronization, represents the second-order gradient of the modulated driving code, is the regularization parameter, δ syc is the measurement function of synchronization error, which represents the synchronization performance of the system during the communication protocol switching process. It means to accumulate all the moments in the time interval t from 0 to T″. is the actual alignment time for the i-th type of communication protocol at time t, is the reference time at time t, The square term of the synchronization error represents the deviation between the alignment time of the i-th communication protocol and the reference time at time t. The dynamic coupling execution path follows the state jump function Expression formula: Where, Is the state jump function representing the transition from a pair of inputs arrive The mapping, is one of the input parameters, is another input parameter, is the output result after mapping, is an operation function, is another operation function, is the function combination symbol, express The output result is equal to that obtained by activating a function first. Then bind the resources The result, which performs dynamic loading and avoids blocking of the modulation interface, is expressed as: Where, represents the load level at time t, Indicates the number of communication protocols involved in load calculation, is the time function of the i-th communication protocol, Indicates the degree of resource occupation, η′ is used to adjust the impact of the item, represents the response of task i under given load conditions, Indicates the square value of the consumption of the task under load conditions, Queue i (t) is the queue length of the i-th task at time t, θ″ q″ Is a threshold used to control the queue length condition, is an indicator function whose value is 1.
Citation Information
Patent Citations
Multi-mode broadband carrier power line communication system
CN115297379A
Intelligent power transmission and distribution equipment communication control system and method for multiplexing communication
CN114885040A
Dual-mode communication method, system and device based on HPLC and HRF
CN117439687A
Equipment access method and system based on protocol conversion
CN119094626A
Industrial one-stop multi-source data acquisition and monitoring system and equipment
CN119676278A
Cited By
Electric energy meter data acquisition method, device and equipment based on dual-mode communication and medium
CN120916080A