CN117792573A - Power line signal transmission rate adjusting method and device - Google Patents

Power line signal transmission rate adjusting method and device Download PDF

Info

Publication number
CN117792573A
CN117792573A CN202311817821.XA CN202311817821A CN117792573A CN 117792573 A CN117792573 A CN 117792573A CN 202311817821 A CN202311817821 A CN 202311817821A CN 117792573 A CN117792573 A CN 117792573A
Authority
CN
China
Prior art keywords
slave
communication
communication rate
cluster
slave machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311817821.XA
Other languages
Chinese (zh)
Inventor
王祎泽
杨明
刘泽义
高鹰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiaqi Semiconductor Shenzhen Co ltd
Jade Bird Fire Co Ltd
Original Assignee
Jiaqi Semiconductor Shenzhen Co ltd
Jade Bird Fire Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiaqi Semiconductor Shenzhen Co ltd, Jade Bird Fire Co Ltd filed Critical Jiaqi Semiconductor Shenzhen Co ltd
Priority to CN202311817821.XA priority Critical patent/CN117792573A/en
Publication of CN117792573A publication Critical patent/CN117792573A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a method and a device for adjusting the signal transmission rate of a power line, wherein the method comprises the following steps: responding to the trigger of the debug mode, and sending a debug instruction to the slave cluster based on the first communication rate so as to enable the slave cluster to enter the debug mode; constructing a communication enhancement frame at least based on a preset acknowledgement code; transmitting a communication enhancement frame to the slave cluster based on the second communication rate, and obtaining first feedback information generated by the first slave based on the communication enhancement frame; verifying the first feedback information, and determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on the verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate; an adjustment strategy corresponding to the second communication rate is determined based on a ratio of the second slave to the slave cluster. The power line signal transmission rate adjusting method can adaptively adjust the power line signal transmission rate according to actual requirements.

Description

Power line signal transmission rate adjusting method and device
Technical Field
The embodiment of the invention relates to the technical field of power line transmission rate, in particular to a method and a device for adjusting power line signal transmission rate.
Background
The power line technology is a technology of combining two power supply lines and two signal lines into two lines, realizes the sharing of signals and power supply, saves construction and cable cost, and brings great convenience to site construction and later maintenance. The method is widely applied to the fields of fire protection, instruments, sensors, industrial control and the like. The down-link adopts voltage pulse width modulation technology, and the up-link adopts current loop modulation technology.
With the development of power line technology toward intelligence, networking and multifunction, the more and better the number of slave controllers or components that can be hung on a power line circuit, the better the communication distance. The longer the communication distance, the more serious the pulse width signal distortion, and the larger the voltage drop, the more obvious the effect of the slaves at the end of the long line, as shown in fig. 1 and 2, due to the problems of parasitic line resistance, line capacitance, etc. of the power line. In the deployment process of an actual system, some systems have high communication speed, narrow pulse width and no special requirements on the number and distance of slaves; some systems require a large number of slaves and are far away, and do not have particularly high requirements on speed. In this way, the power line system with different working environments and construction requirements needs to be customized and developed according to different system requirements, and the requirements also provide great challenges for the development and research of the system.
Disclosure of Invention
The invention provides a power line signal transmission rate adjusting method and device capable of adaptively adjusting the power line signal transmission rate according to actual requirements.
In order to solve the above technical problems, an embodiment of the present invention provides a power line signal transmission rate adjustment method, which is applied to a host of a power line system, where the power line system is composed of a host and a slave cluster mounted on a power line, and the power line signal transmission rate adjustment method includes:
responding to the trigger of the debug mode, and sending a debug instruction to the slave cluster based on a first communication rate so as to enable the slave cluster to enter the debug mode;
constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host transmits the communication enhancement frame, and the second communication rate is not less than the first communication rate;
transmitting the communication enhancement frame to the slave cluster based on a second communication rate, and obtaining first feedback information generated by a first slave based on the communication enhancement frame, wherein the first slave is one or more slaves in the slave cluster;
verifying the first feedback information, and determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on a verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate;
And determining an adjustment strategy corresponding to the second communication rate based on the proportion of the second slave machine to the slave machine cluster.
As an optional example, the method further comprises:
after power-on, a group inspection frame is sent to the slave cluster through a third communication rate, and second feedback information fed back by part or all of the slaves in the slave cluster through responding to the group inspection frame is obtained, wherein the second feedback information represents that the slaves are currently in an on-line state;
determining a slave machine in an online state based on the second feedback information;
and when the proportion of the slave machines in the online state relative to the slave machine cluster meets a preset threshold, determining that the trigger condition of the debugging mode is met.
As an optional example, the method further comprises:
under a normal running state, determining the quantity of third feedback information received in a preset period, wherein each third feedback information corresponds to one slave;
and when the duty ratio of the quantity of the third feedback information relative to the total quantity of the slaves in the slave cluster meets a preset threshold, determining that the triggering condition of the debugging mode is met.
As an optional example, the constructing the communication enhancement frame based on at least the preset acknowledgement code includes:
Determining the acknowledgement code based at least on a second communication rate, the acknowledgement code consisting of one or more of 0 and 1;
and constructing the communication enhancement frame by combining the confirmation code based on a preset format, wherein the preset format is a frame header, the confirmation code, a frame type, an address, data and a slave code return area.
As an optional example, the verifying the first feedback information includes:
verifying whether the format of the first feedback information is the preset format;
if yes, verifying whether the corresponding slave machine code return area part in the first feedback information contains information about frame type, address and data returned by the slave machine, wherein the information about the frame type, the address and the data is obtained by analyzing the content of the communication enhancement frame by the slave machine according to a second communication rate, and the second communication rate is determined by measuring the pulse width of the confirmation code.
As an optional example, the determining, based on the ratio of the second slave to the slave cluster, an adjustment policy corresponding to the second communication rate includes:
when the proportion of the second slave machine relative to the slave machine cluster meets a first threshold value, the second communication rate is adjusted downwards to form a fourth communication rate;
When the proportion of the second slave machine relative to the slave machine cluster meets a second threshold value, the second communication rate is adjusted upwards to form a fifth communication rate;
updating an acknowledgement code based on the fourth communication rate or the fifth communication rate, and constructing a new communication enhancement frame based on the updated acknowledgement code, so as to detect the slave cluster again based on the new communication enhancement frame, and determine a third slave capable of communicating at the fourth communication rate or the fifth communication rate;
repeating the steps until the obtained proportion of the fourth slave machine to the slave machine cluster meets a third threshold value, determining the current communication rate, informing the slave machine cluster to operate at the current communication rate, exiting the debugging mode, and entering a normal operation mode; or (b)
And when the proportion of the second slave machine to the slave machine cluster meets the third threshold, informing the slave machine cluster to operate at a second communication rate, exiting the debugging mode and entering a normal operation mode.
The invention also provides a method for adjusting the signal transmission rate of a power line, which is applied to a slave machine of a power line system, wherein the power line system consists of a master machine and a slave machine cluster which are mounted on a power line, the slave machine is any slave machine in the slave machine cluster, and the method for adjusting the signal transmission rate of the power line comprises the following steps:
Responding to the debugging instruction, and entering a debugging mode;
obtaining a communication enhancement frame, and calculating a second communication rate through an acknowledgement code in the communication enhancement frame, wherein the second communication rate is the transmission rate of the communication enhancement frame;
updating the own communication rate based on the second communication rate;
analyzing the content recorded in the communication enhancement frame at the second communication rate to obtain an analysis result, wherein the analysis result comprises a first result which corresponds to successful analysis;
and generating first feedback information based on the first result, and feeding back the first feedback information to the host at the second communication rate.
As an optional example, the method further comprises:
and obtaining a group inspection frame, and feeding back second feedback information representing that the host computer is in an online state to the host computer.
The invention also provides a power line signal transmission rate adjusting device, which is applied to a host of a power line system, wherein the power line system consists of a host and a slave cluster which are mounted on a power line, and the power line signal transmission rate adjusting method comprises the following steps:
the first response module is used for responding to the triggering of the debugging mode, and sending a debugging instruction to the slave cluster based on a first communication rate so as to enable the slave cluster to enter the debugging mode;
The first construction module is used for constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host transmits the communication enhancement frame, and the second communication rate is not smaller than the first communication rate;
the first transceiver module is used for transmitting the communication enhancement frame to the slave cluster through a second communication rate and obtaining first feedback information generated by a first slave based on the communication enhancement frame, wherein the first slave is one or more slaves in the slave cluster;
the first processing module is used for verifying the first feedback information, determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on a verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate;
and the first adjustment module is used for determining an adjustment strategy corresponding to the second communication rate according to the proportion of the second slave machine relative to the slave machine cluster.
The invention also provides a device for adjusting the signal transmission rate of a power line, which is applied to a slave machine of a power line system, wherein the power line system consists of a master machine and a slave machine cluster which are mounted on a power line, and the slave machine is any slave machine in the slave machine cluster, and is characterized in that the method for adjusting the signal transmission rate of the power line comprises the following steps:
The second response module is used for responding to the debugging instruction and entering a debugging mode;
the second obtaining module is used for obtaining a communication enhancement frame, and calculating a second communication rate through an acknowledgement code in the communication enhancement frame, wherein the second communication rate is the transmission rate of the communication enhancement frame;
the second updating module is used for updating the communication rate according to the second communication rate;
the second analysis module is used for analyzing the content recorded in the communication enhancement frame at the second communication rate to obtain an analysis result, wherein the analysis result comprises a first result which corresponds to successful analysis;
and the second generation module is used for generating first feedback information according to the first result and feeding back the first feedback information to the host computer at the second communication rate.
Based on the disclosure of the above embodiment, it can be known that the embodiment of the present invention has the beneficial effects that when it is determined that the slave cluster needs to be debugged, a debug instruction is sent to the slave cluster based on the first communication rate, so that the slave cluster enters a debug mode. And then constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host computer transmits the communication enhancement frame, and the second communication rate is not smaller than the first communication rate. Then, based on a second communication rate, sending the communication enhancement frame to the slave cluster, obtaining first feedback information generated by a first slave based on the communication enhancement frame, verifying the first feedback information, and determining a second slave capable of correctly analyzing the content of the communication enhancement frame from the first slave based on a verification result, wherein the second slave is a slave capable of communicating based on the second communication rate; the adjustment strategy corresponding to the second communication rate is determined based on the proportion of the second slave machine to the slave machine cluster, and the scheme based on the embodiment can enable the slave machine to adaptively adjust the transmission rate of the power line to the slave machine cluster, ensure that the transmission rate can be matched with the performance of most or all slave machines, and ensure that the slave machine can normally transmit and receive signal data. The power line system can be used for realizing the matching adjustment of the communication rate, namely the matching adjustment of the communication rate can be realized according to the requirements of different systems so as to obtain the power line system meeting the requirements of different working environments and construction. The scheme has strong overall flexibility and wide application range, and after the speed is adjusted, each slave can stably operate, so that the power line system can still normally operate after the speed is adjusted.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a block diagram of a power line system in a prior art scheme.
Fig. 2 is a schematic diagram of the power line pulse width signal distortion and voltage drop in the prior art.
Fig. 3 is a flowchart illustrating a power line signal transmission rate adjustment method according to an embodiment of the invention.
Fig. 4 is a flowchart illustrating a power line signal transmission rate adjustment method according to another embodiment of the invention.
Fig. 5 is a diagram illustrating a relationship between slave units in the power line system according to an embodiment of the present invention.
Fig. 6 is a block diagram illustrating a power line signal transmission rate adjustment apparatus according to an embodiment of the present invention.
Fig. 7 is a block diagram illustrating a power line signal transmission rate adjusting apparatus according to another embodiment of the present invention.
Detailed Description
Hereinafter, specific embodiments of the present invention will be described in detail with reference to the accompanying drawings, but not limiting the invention.
It should be understood that various modifications may be made to the embodiments disclosed herein. Therefore, the following description should not be taken as limiting, but merely as exemplification of the embodiments. Other modifications within the scope and spirit of this disclosure will occur to persons of ordinary skill in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and, together with a general description of the disclosure given above and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.
These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It is also to be understood that, although the invention has been described with reference to some specific examples, a person skilled in the art will certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present disclosure will become more apparent in light of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present disclosure will be described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely examples of the disclosure, which may be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the disclosure in unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not intended to be limiting, but merely serve as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present disclosure in virtually any appropriately detailed structure.
The specification may use the word "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the disclosure.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
As shown in fig. 3, an embodiment of the present invention provides a method for adjusting a signal transmission rate of a power line, which is applied to a host of a power line system, where the power line system is composed of a host and a slave cluster mounted on a power line, and the method for adjusting a signal transmission rate of a power line includes:
S1: responding to the trigger of the debug mode, and sending a debug instruction to the slave cluster based on a first communication rate so as to enable the slave cluster to enter the debug mode;
s2: constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host transmits the communication enhancement frame, and the second communication rate is not less than the first communication rate;
s3: transmitting the communication enhancement frame to the slave cluster based on a second communication rate, and obtaining first feedback information generated by a first slave based on the communication enhancement frame, wherein the first slave is one or more slaves in the slave cluster;
s4: verifying the first feedback information, and determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on a verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate;
s5: and determining an adjustment strategy corresponding to the second communication rate based on the proportion of the second slave machine to the slave machine cluster.
The scheme based on the embodiment can enable the host to adaptively adjust the transmission rate of the power line of the slave cluster, ensure that the transmission rate can be matched with the performance of most or all of the slaves, and ensure that the slaves can normally transmit and receive signal data. The power line system is high in overall flexibility, wide in application range, and after the speed is adjusted, each slave can stably operate, and normal operation of the power line system can be effectively guaranteed after the speed is adjusted.
Further, the method further comprises:
s6: after power-on, a group inspection frame is sent to the slave cluster through a third communication rate, and second feedback information fed back by part or all of the slaves in the slave cluster through responding to the group inspection frame is obtained, wherein the second feedback information represents that the slaves are currently in an on-line state;
s7: determining a slave machine in an online state based on the second feedback information;
s8: and when the proportion of the slave machines in the online state relative to the slave machine cluster meets a preset threshold, determining that the trigger condition of the debugging mode is met.
For example, after power-up, the host may first send a group patrol frame at a third communication rate to collect on-line device information on the bus (power line), that is, determine which slaves are on-line, and count the number of on-line devices, and also determine the identity of the slaves, such as the slave code. The third communication rate is specifically indefinite, and may be set along with the communication rate of the patrol frame at the last power-up, or may be set by user-definition, for example, setting a slower communication rate, or setting a relatively faster communication rate, etc. After the state of the online slave device is confirmed, the host can issue a debug instruction, such as by broadcasting a command, so as to inform all online slave devices to enter a debug mode.
In the embodiment, the comparison is performed by determining that the current system state meets the triggering condition of the debug mode, for example, the total number of slaves in the original slave cluster is compared, if the calculated duty ratio is calculated, if the proportional relationship between the current number of slaves and the total number of slaves meets the preset threshold representing the system abnormality, the master can determine that the current power line system may have a situation that some slaves may be in the online state, but limited by the communication rate, so that information cannot be fed back, or information cannot be analyzed to realize feedback, so that the master can determine that the current system state meets the triggering condition of the debug mode, and needs to adjust the communication rate of the slaves.
In yet another embodiment, for the determination of the triggering condition, the method further comprises:
s9: under a normal running state, determining the quantity of third feedback information received in a preset period, wherein each third feedback information corresponds to one slave;
s10: and when the duty ratio of the quantity of the third feedback information relative to the total quantity of the slaves in the slave cluster meets a preset threshold, determining that the triggering condition of the debugging mode is met.
The method comprises the steps that when a host finds that a slave in a system has communication abnormality in a period of time, a command for entering a debugging mode is automatically issued, so that the host and the slave enter the debugging mode, and pulse width is properly adjusted through the method, namely, the communication rate is adjusted, so that all the slaves can send and receive signals normally, and communication is normal.
Or after obtaining the instruction input by the debugger, the host controls the host to enter the debugging mode in response to the input instruction, and simultaneously informs the slave in the system to enter the debugging mode.
Further, in this embodiment, the constructing the communication enhancement frame based at least on the preset acknowledgement code includes:
s11: determining the acknowledgement code based at least on a second communication rate, the acknowledgement code consisting of one or more of 0 and 1;
s12: and constructing the communication enhancement frame by combining the confirmation code based on a preset format, wherein the preset format is a frame header, the confirmation code, a frame type, an address, data and a slave code return area.
The sync acknowledgement code is specific content, such as 10101, and each 1 and 0 has a corresponding code width, and the slave can determine the communication rate by calculating and measuring the code element width of the acknowledgement code, that is, determine the communication rate of sending the communication enhancement frame.
Upon verifying the first feedback information, comprising:
s13: verifying whether the format of the first feedback information is the preset format;
s14: if yes, verifying whether the corresponding slave machine code return area part in the first feedback information contains information about frame type, address and data returned by the slave machine, wherein the information about the frame type, the address and the data is obtained by analyzing the content of the communication enhancement frame by the slave machine according to a second communication rate, and the second communication rate is determined by measuring the pulse width of the confirmation code.
For example, during verification, it is first verified whether the first feedback information is configured according to the format of the frame header, the acknowledgement code, the frame type, the address, the data, and the slave return code area. If so, further verifying the correctness of the content of the slave code region part in the first feedback information, namely whether the part of data is of correct frame type, address and data. And after the secondary machine determines the second communication rate through the confirmation code calculation, analyzing the content positioned behind the confirmation code in the communication enhancement frame based on the second communication rate, thereby obtaining corresponding code return data.
Specifically, as shown in fig. 5, in this embodiment, after receiving an instruction that the bus enters the debug mode, a plurality of slaves on the bus are converted into the debug mode, and the rate detection engine in the slave chip counts the high level and the low level and the acknowledgement code in the signal frame waveform through the clock, so as to calculate and obtain the pulse width of the synchronous acknowledgement code issued by the host. Then, the rate control module in the slave chip performs an average process on the multiple pulse widths to obtain the communication rate of the frame, namely, the second communication rate, and records the communication rate, so as to adjust the rate settings of the RX receiving module and the TX transmitting module according to the communication rate. After the slave updates the rate configuration, the command content after the confirmation code in the communication enhancement frame is analyzed according to the new rate setting, and the code returning is performed based on the analysis result. If the analysis fails, the code is not returned. After the host acquires the first feedback information fed back by the slave, sequentially verifying the format and the content of the first feedback information, when the verification is successful, the slave providing the first feedback information can be determined to be the equipment capable of realizing communication based on the second communication rate, and the slave failing to feed back the first feedback information and the slave corresponding to the first feedback information failing to verify are determined to be the equipment incapable of carrying out communication at the second communication rate.
In an alternative embodiment, the determining the adjustment policy corresponding to the second communication rate based on the ratio of the second slave to the slave cluster includes:
s15: when the proportion of the second slave machine relative to the slave machine cluster meets a first threshold value, the second communication rate is adjusted downwards to form a fourth communication rate;
s16: when the proportion of the second slave machine relative to the slave machine cluster meets a second threshold value, the second communication rate is adjusted upwards to form a fifth communication rate;
s17: updating an acknowledgement code based on the fourth communication rate or the fifth communication rate, and constructing a new communication enhancement frame based on the updated acknowledgement code, so as to detect the slave cluster again based on the new communication enhancement frame, and determine a third slave capable of communicating at the fourth communication rate or the fifth communication rate;
s18: repeating the steps until the obtained proportion of the fourth slave machine to the slave machine cluster meets a third threshold value, determining the current communication rate, informing the slave machine cluster to operate at the current communication rate, exiting the debugging mode, and entering a normal operation mode; or (b)
S19: and when the proportion of the second slave machine to the slave machine cluster meets the third threshold, informing the slave machine cluster to operate at a second communication rate, exiting the debugging mode and entering a normal operation mode.
In this embodiment, the foregoing scheme means that when the number of slaves capable of implementing communication at the second communication rate is determined to be not matched with the total number of slaves in the slave cluster through verification, or if the number is smaller, a rate down adjustment is required based on the second communication rate, and the specific down adjustment ratio is not fixed, and the host may be comprehensively determined according to a preset adjustment value or according to the configuration performance of the slaves. And then repeatedly executing the steps based on the down-regulated communication rate, detecting the slave computer cluster again by using the new communication enhancement frame, obtaining a detection result, and if the detection result still does not reach the standard, continuing to regulate until a communication rate which can be adapted to all the slave computers and meets the requirements of the power line system is found, for example, reducing the communication rate or maximizing the system requirements of the communication rate while meeting the normal communication of all the slave computers. If the number of the slaves passing the verification is the same as the total number of the slaves, the current second communication rate is not the highest rate in the feasible range, and there is an optimization space, and the host can adjust the second communication rate upwards and detect again, especially when the power line system needs to increase the rate, the host in the embodiment can adjust the communication rate upwards in response to the requirement until the maximum communication rate in the feasible range is obtained, so as to meet the requirement of the power line system.
As shown in fig. 4, another embodiment of the present invention provides a method for adjusting a signal transmission rate of a power line, which is applied to a slave of a power line system, where the power line system is composed of a master and a slave cluster mounted on a power line, and the slave is any slave in the slave cluster, and the method for adjusting the signal transmission rate of the power line includes:
s01: responding to the debugging instruction, and entering a debugging mode;
s02: obtaining a communication enhancement frame, and calculating a second communication rate through an acknowledgement code in the communication enhancement frame, wherein the second communication rate is the transmission rate of the communication enhancement frame;
s03: updating the own communication rate based on the second communication rate;
s04: analyzing the content recorded in the communication enhancement frame at the second communication rate to obtain an analysis result, wherein the analysis result comprises a first result which corresponds to successful analysis;
s05: and generating first feedback information based on the first result, and feeding back the first feedback information to the host at the second communication rate.
Specifically, as shown in fig. 5, in this embodiment, after receiving an instruction that the bus enters the debug mode, a plurality of slaves on the bus are converted into the debug mode, and the rate detection engine in the slave chip counts the high level and the low level and the acknowledgement code in the signal frame waveform through the clock, so as to calculate and obtain the pulse width of the synchronous acknowledgement code issued by the host. Then, the rate control module in the slave chip performs an average process on the multiple pulse widths to obtain the communication rate of the frame, namely, the second communication rate, and records the communication rate, so as to adjust the rate settings of the RX receiving module and the TX transmitting module according to the communication rate. After the slave updates the rate configuration, the command content after the confirmation code in the communication enhancement frame is analyzed according to the new rate setting, and the code returning is performed based on the analysis result. If the analysis fails, the code is not returned. After the host acquires the first feedback information fed back by the slave, sequentially verifying the format and the content of the first feedback information, when the verification is successful, the slave providing the first feedback information can be determined to be the equipment capable of realizing communication based on the second communication rate, and the slave failing to feed back the first feedback information and the slave corresponding to the first feedback information failing to verify are determined to be the equipment incapable of carrying out communication at the second communication rate.
Further, the method further comprises:
s06: and obtaining a group inspection frame, and feeding back second feedback information representing that the host computer is in an online state to the host computer.
As shown in fig. 6, another embodiment of the present invention further provides a power line signal transmission rate adjustment device 100, which is applied to a host of a power line system, where the power line system is composed of a host and a slave cluster mounted on a power line, and the power line signal transmission rate adjustment method includes:
the first response module is used for responding to the triggering of the debugging mode, and sending a debugging instruction to the slave cluster based on a first communication rate so as to enable the slave cluster to enter the debugging mode;
the first construction module is used for constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host transmits the communication enhancement frame, and the second communication rate is not smaller than the first communication rate;
the first transceiver module is used for transmitting the communication enhancement frame to the slave cluster through a second communication rate and obtaining first feedback information generated by a first slave based on the communication enhancement frame, wherein the first slave is one or more slaves in the slave cluster;
The first processing module is used for verifying the first feedback information, determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on a verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate;
and the first adjustment module is used for determining an adjustment strategy corresponding to the second communication rate according to the proportion of the second slave machine relative to the slave machine cluster.
As an alternative example, the apparatus further comprises:
the inspection module is used for sending a group inspection frame to the slave machine cluster through a third communication rate after power-on, and obtaining second feedback information fed back by part or all of the slave machines in the slave machine cluster through responding to the group inspection frame, wherein the second feedback information represents that the slave machines are currently in an on-line state;
the first determining module is used for determining the slave machine in the online state according to the second feedback information;
the judging module is used for determining that the trigger condition of the debugging mode is met when the proportion of the slave machine in the online state relative to the slave machine cluster meets a preset threshold.
As an optional example, the method further comprises:
under a normal running state, determining the quantity of third feedback information received in a preset period, wherein each third feedback information corresponds to one slave;
And when the duty ratio of the quantity of the third feedback information relative to the total quantity of the slaves in the slave cluster meets a preset threshold, determining that the triggering condition of the debugging mode is met.
As an optional example, the constructing the communication enhancement frame based on at least the preset acknowledgement code includes:
determining the acknowledgement code based at least on a second communication rate, the acknowledgement code consisting of one or more of 0 and 1;
and constructing the communication enhancement frame by combining the confirmation code based on a preset format, wherein the preset format is a frame header, the confirmation code, a frame type, an address, data and a slave code return area.
As an optional example, the verifying the first feedback information includes:
verifying whether the format of the first feedback information is the preset format;
if yes, verifying whether the corresponding slave machine code return area part in the first feedback information contains information about frame type, address and data returned by the slave machine, wherein the information about the frame type, the address and the data is obtained by analyzing the content of the communication enhancement frame by the slave machine according to a second communication rate, and the second communication rate is determined by measuring the pulse width of the confirmation code.
As an optional example, the determining, based on the ratio of the second slave to the slave cluster, an adjustment policy corresponding to the second communication rate includes:
When the proportion of the second slave machine relative to the slave machine cluster meets a first threshold value, the second communication rate is adjusted downwards to form a fourth communication rate;
when the proportion of the second slave machine relative to the slave machine cluster meets a second threshold value, the second communication rate is adjusted upwards to form a fifth communication rate;
updating an acknowledgement code based on the fourth communication rate or the fifth communication rate, and constructing a new communication enhancement frame based on the updated acknowledgement code, so as to detect the slave cluster again based on the new communication enhancement frame, and determine a third slave capable of communicating at the fourth communication rate or the fifth communication rate;
repeating the steps until the obtained proportion of the fourth slave machine to the slave machine cluster meets a third threshold value, determining the current communication rate, informing the slave machine cluster to operate at the current communication rate, exiting the debugging mode, and entering a normal operation mode; or (b)
And when the proportion of the second slave machine to the slave machine cluster meets the third threshold, informing the slave machine cluster to operate at a second communication rate, exiting the debugging mode and entering a normal operation mode.
As shown in fig. 7, another embodiment of the present invention further provides a power line signal transmission rate adjustment device 200, which is applied to a slave of a power line system, wherein the power line system is composed of a master and a slave cluster mounted on a power line, and the slave is any slave in the slave cluster, and the power line signal transmission rate adjustment device includes:
The second response module is used for responding to the debugging instruction and entering a debugging mode;
the second obtaining module is used for obtaining a communication enhancement frame, and calculating a second communication rate through an acknowledgement code in the communication enhancement frame, wherein the second communication rate is the transmission rate of the communication enhancement frame;
the second updating module is used for updating the communication rate according to the second communication rate;
the second analysis module is used for analyzing the content recorded in the communication enhancement frame at the second communication rate to obtain an analysis result, wherein the analysis result comprises a first result which corresponds to successful analysis;
and the second generation module is used for generating first feedback information according to the first result and feeding back the first feedback information to the host computer at the second communication rate.
The apparatus further comprises:
the third obtaining module is used for obtaining the group inspection frame and feeding back second feedback information representing that the host computer is in an on-line state to the host computer.
Another embodiment of the present invention also provides an electronic device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being configured to perform the power line signal transmission rate adjustment method as described in any one of the embodiments above.
Another embodiment of the present invention also provides a storage medium including a stored program, wherein the program, when executed, controls a device including the storage medium to perform the power line signal transmission rate adjustment method according to any one of the embodiments described above.
Embodiments of the present invention also provide a computer program product tangibly stored on a computer-readable medium and comprising computer-readable instructions that, when executed, cause at least one processor to perform a power line signal transmission rate adjustment method such as in the embodiments described above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiment, which is not described herein.
It should be noted that, the computer storage medium of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage media element, a magnetic storage media element, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, antenna, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to imply that the scope of the present application is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the spirit of the application, steps may be implemented in any order, and there are many other variations of the different aspects of one or more embodiments described above which are not provided in detail for the sake of brevity.
The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention, the scope of which is defined by the claims. Various modifications and equivalent arrangements of this invention will occur to those skilled in the art, and are intended to be within the spirit and scope of the invention.
The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention, the scope of which is defined by the claims. Various modifications and equivalent arrangements of this invention will occur to those skilled in the art, and are intended to be within the spirit and scope of the invention.

Claims (10)

1. The power line signal transmission rate adjusting method is applied to a host of a power line system, wherein the power line system consists of a host and a slave cluster which are mounted on a power line, and is characterized by comprising the following steps of:
responding to the trigger of the debug mode, and sending a debug instruction to the slave cluster based on a first communication rate so as to enable the slave cluster to enter the debug mode;
constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host transmits the communication enhancement frame, and the second communication rate is not less than the first communication rate;
transmitting the communication enhancement frame to the slave cluster based on a second communication rate, and obtaining first feedback information generated by a first slave based on the communication enhancement frame, wherein the first slave is one or more slaves in the slave cluster;
verifying the first feedback information, and determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on a verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate;
And determining an adjustment strategy corresponding to the second communication rate based on the proportion of the second slave machine to the slave machine cluster.
2. The power line signal transmission rate adjustment method according to claim 1, characterized in that the method further comprises:
after power-on, a group inspection frame is sent to the slave cluster through a third communication rate, and second feedback information fed back by part or all of the slaves in the slave cluster through responding to the group inspection frame is obtained, wherein the second feedback information represents that the slaves are currently in an on-line state;
determining a slave machine in an online state based on the second feedback information;
and when the proportion of the slave machines in the online state relative to the slave machine cluster meets a preset threshold, determining that the trigger condition of the debugging mode is met.
3. The power line signal transmission rate adjustment method according to claim 1, characterized in that the method further comprises:
under a normal running state, determining the quantity of third feedback information received in a preset period, wherein each third feedback information corresponds to one slave;
and when the duty ratio of the quantity of the third feedback information relative to the total quantity of the slaves in the slave cluster meets a preset threshold, determining that the triggering condition of the debugging mode is met.
4. The method for adjusting a transmission rate of a power line signal according to claim 1, wherein the constructing a communication enhancement frame based on at least a preset acknowledgement code comprises:
determining the acknowledgement code based at least on a second communication rate, the acknowledgement code consisting of one or more of 0 and 1;
and constructing the communication enhancement frame by combining the confirmation code based on a preset format, wherein the preset format is a frame header, the confirmation code, a frame type, an address, data and a slave code return area.
5. The power line signal transmission rate adjustment method according to claim 4, wherein the verifying the first feedback information includes:
verifying whether the format of the first feedback information is the preset format;
if yes, verifying whether the corresponding slave machine code return area part in the first feedback information contains information about frame type, address and data returned by the slave machine, wherein the information about the frame type, the address and the data is obtained by analyzing the content of the communication enhancement frame by the slave machine according to a second communication rate, and the second communication rate is determined by measuring the pulse width of the confirmation code.
6. The method of claim 1, wherein the determining an adjustment strategy for the second communication rate based on the ratio of the second slave to the slave cluster comprises:
When the proportion of the second slave machine relative to the slave machine cluster meets a first threshold value, the second communication rate is adjusted downwards to form a fourth communication rate;
when the proportion of the second slave machine relative to the slave machine cluster meets a second threshold value, the second communication rate is adjusted upwards to form a fifth communication rate;
updating an acknowledgement code based on the fourth communication rate or the fifth communication rate, and constructing a new communication enhancement frame based on the updated acknowledgement code, so as to detect the slave cluster again based on the new communication enhancement frame, and determine a third slave capable of communicating at the fourth communication rate or the fifth communication rate;
repeating the steps until the obtained proportion of the fourth slave machine to the slave machine cluster meets a third threshold value, determining the current communication rate, informing the slave machine cluster to operate at the current communication rate, exiting the debugging mode, and entering a normal operation mode; or (b)
And when the proportion of the second slave machine to the slave machine cluster meets the third threshold, informing the slave machine cluster to operate at a second communication rate, exiting the debugging mode and entering a normal operation mode.
7. The power line signal transmission rate adjusting method is applied to a slave machine of a power line system, wherein the power line system consists of a master machine and a slave machine cluster which are mounted on a power line, and the slave machine is any slave machine in the slave machine cluster, and is characterized in that the power line signal transmission rate adjusting method comprises the following steps:
Responding to the debugging instruction, and entering a debugging mode;
obtaining a communication enhancement frame, and calculating a second communication rate through an acknowledgement code in the communication enhancement frame, wherein the second communication rate is the transmission rate of the communication enhancement frame;
updating the own communication rate based on the second communication rate;
analyzing the content recorded in the communication enhancement frame at the second communication rate to obtain an analysis result, wherein the analysis result comprises a first result which corresponds to successful analysis;
and generating first feedback information based on the first result, and feeding back the first feedback information to the host at the second communication rate.
8. The power line signal transmission rate adjustment method according to claim 7, characterized in that the method further comprises:
and obtaining a group inspection frame, and feeding back second feedback information representing that the host computer is in an online state to the host computer.
9. The utility model provides a power cord signal transmission rate adjusting device, is applied to in the host computer of power cord system, power cord system is by the host computer and the slave machine cluster group who installs on the power cord, its characterized in that, power cord signal transmission rate adjusting method includes:
The first response module is used for responding to the triggering of the debugging mode, and sending a debugging instruction to the slave cluster based on a first communication rate so as to enable the slave cluster to enter the debugging mode;
the first construction module is used for constructing a communication enhancement frame at least based on a preset confirmation code, wherein the confirmation code is used for determining a second communication rate adopted when the host transmits the communication enhancement frame, and the second communication rate is not smaller than the first communication rate;
the first transceiver module is used for transmitting the communication enhancement frame to the slave cluster through a second communication rate and obtaining first feedback information generated by a first slave based on the communication enhancement frame, wherein the first slave is one or more slaves in the slave cluster;
the first processing module is used for verifying the first feedback information, determining a second slave machine capable of correctly analyzing the content of the communication enhancement frame from the first slave machine based on a verification result, wherein the second slave machine is a slave machine capable of communicating based on a second communication rate;
and the first adjustment module is used for determining an adjustment strategy corresponding to the second communication rate according to the proportion of the second slave machine relative to the slave machine cluster.
10. The utility model provides a power cord signal transmission rate adjusting device, is applied to the slave machine of power cord system, the power cord system is by the host computer and the slave machine cluster of hanging on the power cord, the slave machine is any slave machine in the slave machine cluster, its characterized in that, power cord signal transmission rate adjusting method includes:
the second response module is used for responding to the debugging instruction and entering a debugging mode;
the second obtaining module is used for obtaining a communication enhancement frame, and calculating a second communication rate through an acknowledgement code in the communication enhancement frame, wherein the second communication rate is the transmission rate of the communication enhancement frame;
the second updating module is used for updating the communication rate according to the second communication rate;
the second analysis module is used for analyzing the content recorded in the communication enhancement frame at the second communication rate to obtain an analysis result, wherein the analysis result comprises a first result which corresponds to successful analysis;
and the second generation module is used for generating first feedback information according to the first result and feeding back the first feedback information to the host computer at the second communication rate.
CN202311817821.XA 2023-12-27 2023-12-27 Power line signal transmission rate adjusting method and device Pending CN117792573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311817821.XA CN117792573A (en) 2023-12-27 2023-12-27 Power line signal transmission rate adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311817821.XA CN117792573A (en) 2023-12-27 2023-12-27 Power line signal transmission rate adjusting method and device

Publications (1)

Publication Number Publication Date
CN117792573A true CN117792573A (en) 2024-03-29

Family

ID=90388828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311817821.XA Pending CN117792573A (en) 2023-12-27 2023-12-27 Power line signal transmission rate adjusting method and device

Country Status (1)

Country Link
CN (1) CN117792573A (en)

Similar Documents

Publication Publication Date Title
US9113417B2 (en) Apparatus and method for controlling power for V2X communication
US10484100B2 (en) Optical module, optical module system and monitor method using the same
CN107331185B (en) Abnormal state processing method of traffic signal lamp machine, host and slave
CN103186440B (en) Detect subcard method, apparatus and system in place
CN104484260B (en) Simulation monitoring circuit based on GJB289 bus interface SoC (system on a chip)
CN117792573A (en) Power line signal transmission rate adjusting method and device
CN108761473A (en) Room-size detection method, air conditioner and the computer storage media of air conditioner
CN117792574A (en) Power line signal transmission rate adjusting method and device
CN105392083B (en) A kind of MPP speakers switching method and access controller
CN111342945A (en) Master-slave communication method and device
CN107994975B (en) Radio frequency data transmission optimization method, radio frequency data transmission equipment and radio frequency receiving end
CN106452679A (en) Robot development system and communication method thereof
CN114095300B (en) Data reading and writing method and device with self-adaptive rate
CN104933851A (en) Electric meter data collector with infrared upgrade function and upgrade method thereof
CN105282647B (en) A kind of MPP speaker control method and access controller
CN109032978A (en) A kind of document transmission method based on BMC, device, equipment and medium
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN104219004A (en) Electronic device and data processing method and device thereof
CN113556210A (en) Upper computer and method for establishing communication connection
US20200137831A1 (en) Frequency band authentication method and apparatus for wireless device, and computing device
CN102904564B (en) For method and the relevant apparatus of the drive current of adjustment transmission interface
CN107608483B (en) Method and device for controlling server fan
CN108009110B (en) Equipment identification method and device
CN106412657B (en) A kind of method and system of set-top box programming sequence code
CN106341295B (en) Communication method and device of intelligent platform management interface equipment and communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination