Movatterモバイル変換


[0]ホーム

URL:


CN120547013A - Communication rate adjustment method, device, equipment and storage medium - Google Patents

Communication rate adjustment method, device, equipment and storage medium

Info

Publication number
CN120547013A
CN120547013ACN202510635089.7ACN202510635089ACN120547013ACN 120547013 ACN120547013 ACN 120547013ACN 202510635089 ACN202510635089 ACN 202510635089ACN 120547013 ACN120547013 ACN 120547013A
Authority
CN
China
Prior art keywords
target
communication rate
rate
computer
communication
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
CN202510635089.7A
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of ZhuhaifiledCriticalGree Electric Appliances Inc of Zhuhai
Priority to CN202510635089.7ApriorityCriticalpatent/CN120547013A/en
Publication of CN120547013ApublicationCriticalpatent/CN120547013A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The embodiment of the application provides a method, a device, equipment and a storage medium for adjusting communication rate, which are used for receiving a rate adjustment signal sent by an upper computer when the number of target lower computers changes, wherein the rate adjustment signal comprises a target communication rate, adjusting a preset communication rate to the target communication rate, acquiring the error rate, an error rate threshold value, a stable communication rate and an optimized communication rate of the target lower computers, adjusting the preset communication rate to the stable communication rate if the error rate is higher than the error rate threshold value, and adjusting the preset communication rate to the optimized communication rate if the error rate is continuously lower than the error rate threshold value within preset time. The embodiment of the application effectively improves the response sensitivity of the communication rate adjustment, and the mechanism of the staged self-adaptive adjustment not only ensures the complete receiving and transmitting of the equipment data in the bus type network, but also can realize the cooperative optimization between the low-speed stable transmission of a single system and the high-speed communication requirement of a plurality of systems.

Description

Communication rate adjusting method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for adjusting a communication rate, an electronic device, and a storage medium.
Background
Currently, most multi-system commercial air conditioning units employing controller area network (Controller Area Network, CAN) bus control have a default communication rate of 20kbps (kilobits per second ) in a single system mode of operation. Although the speed can meet the transmission requirements of basic control instructions and state data, when the unit is switched to a double-system or multi-system cooperative operation mode, the number of devices running on a bus is obviously increased. In this case, the communication bandwidth of 20kbps is very easy to reach a saturated state, thereby causing a series of problems including data frame transmission delay, packet loss rate rise, and bus overload collision. These problems not only can cause abnormal equipment state synchronization and wrong execution of functional logic, but also can cause unit operation faults, thereby significantly increasing after-sales maintenance cost.
Therefore, how to adjust the communication rate of the bus network according to the operation mode of the devices on the bus network in time is a problem to be solved in the art.
Disclosure of Invention
The embodiment of the application provides a method for adjusting communication rate, which aims to solve the problem of adjusting the communication rate of a bus type network according to the operation mode of equipment on the bus type network in time.
Correspondingly, the embodiment of the application also provides a device for adjusting the communication rate, an electronic device and a storage medium, which are used for ensuring the realization and the application of the method.
In order to solve the above problems, an embodiment of the present application discloses a method for adjusting a communication rate, which is applied to a communication rate adjuster in a bus type network, wherein the bus type network further includes an upper computer and at least one lower computer, the upper computer, the lower computer and the communication rate adjuster communicate according to a preset communication rate, the lower computer includes a target lower computer, and the method includes:
When the number of the target lower computers is changed, receiving a rate adjustment signal sent by the upper computer, wherein the rate adjustment signal comprises a target communication rate;
adjusting the preset communication rate to the target communication rate;
acquiring the bit error rate, bit error rate threshold value, stable communication rate and optimized communication rate of the target lower computer;
If the error rate is higher than the error rate threshold, adjusting the preset communication rate to the stable communication rate;
And if the error rate is continuously lower than the error rate threshold value within the preset time, adjusting the preset communication rate to the optimized communication rate.
In an optional embodiment of the present application, the target lower computer has a corresponding device priority, where the device priority is a priority of data transmission in the communication process, and the method further includes:
acquiring the equipment load of the target lower computer;
And adjusting the equipment priority of the target lower computer according to the equipment load.
In an optional embodiment of the present application, the target lower computer has a corresponding device identifier, and the adjusting the device priority of the target lower computer according to the device load includes:
determining a high load area and a normal area in the bus type network according to the equipment identifier and the equipment load;
And increasing the equipment priority of the target lower computer in the high-load area or decreasing the equipment priority of the target lower computer in the normal area.
In an alternative embodiment of the present application, after the acquiring the device load of the target lower computer, the method further includes:
adjusting the bit error rate threshold according to the equipment load to obtain an adjusted bit error rate threshold;
and adjusting the preset communication rate according to the adjusted bit error rate threshold.
In an alternative embodiment of the application, the method further comprises:
acquiring the online state of the target lower computer;
If the offline lower computer exists in the target lower computer, the preset communication rate is reduced, and the reconnection attempt operation is executed on the offline lower computer.
In an alternative embodiment of the application, the method further comprises:
detecting the actual number of the currently running lower computers;
And if the actual number of the currently operated lower computers is larger than the number of the target lower computers, adjusting the preset communication rate according to the actual number.
In an alternative embodiment of the present application, the adjusting the preset communication rate to the target communication rate includes:
Transmitting the rate change signal to the target lower computer, wherein the rate change signal comprises the target communication rate;
receiving a rate receiving signal fed back by the target lower computer;
determining an abnormal lower computer from the target lower computers according to the rate receiving signals;
Resending the rate change signal to the abnormal lower computer;
and sending alarm information aiming at the abnormal lower computer to the upper computer.
The embodiment of the application also discloses a method for adjusting the communication rate, which is applied to an upper computer in a bus type network, wherein the bus type network also comprises a communication rate adjuster and at least one lower computer, the upper computer, the lower computer and the communication rate adjuster communicate according to a preset communication rate, the bus type network is provided with at least two system types, and different system types correspond to different numbers of target lower computers, and the method comprises the following steps:
Receiving a system switching request, wherein the system switching request comprises target system types, and the target system types have corresponding target quantity;
determining the target number of the target lower computers from the lower computers according to the target system type;
Transmitting a switching signal to the lower computer, wherein the switching signal comprises the target system type and the target lower computer so that the target lower computer operates according to the switching signal;
And sending a rate adjusting signal to the communication rate adjuster, so that the communication rate adjuster adjusts the preset communication rate according to a preset rule according to the rate adjusting signal.
In an optional embodiment of the present application, the determining, according to the target system type, the target number of the target lower computers from the lower computers includes:
Acquiring running accumulated time of the lower computer;
and determining the target lower computers with the target quantity from the lower computers according to the running accumulated time and the target system type.
The embodiment of the application also discloses a communication rate adjusting device which is applied to a communication rate adjuster in a bus type network, wherein the bus type network further comprises an upper computer and at least one lower computer, the upper computer, the lower computer and the communication rate adjuster communicate according to a preset communication rate, the lower computer comprises a target lower computer, and the device comprises:
The adjusting signal sending module is used for receiving a rate adjusting signal sent by the upper computer when the number of the target lower computers changes, and the rate adjusting signal comprises a target communication rate;
The first rate adjusting module is used for adjusting the preset communication rate to the target communication rate;
The adjusting parameter acquisition module is used for acquiring the bit error rate, the bit error rate threshold value, the stable communication rate and the optimized communication rate of the target lower computer;
The second rate adjusting module is used for adjusting the preset communication rate to the stable communication rate if the error rate is higher than the error rate threshold;
And the third rate adjusting module is used for adjusting the preset communication rate to the optimized communication rate if the error rate is continuously lower than the error rate threshold value within the preset time.
The embodiment of the application also discloses a device for adjusting the communication rate, which is applied to an upper computer in a bus type network, wherein the bus type network also comprises a communication rate adjuster and at least one lower computer, the upper computer, the lower computer and the communication rate adjuster communicate according to a preset communication rate, the bus type network is provided with at least two system types, different system types correspond to different numbers of target lower computers, and the device comprises:
The system comprises a switching request receiving module, a switching request processing module and a switching request processing module, wherein the switching request receiving module is used for receiving a system switching request, the system switching request comprises target system types, and the target system types have corresponding target quantity;
the target equipment determining module is used for determining the target lower computers with the target quantity from the lower computers according to the target system type;
the switching signal sending module is used for sending a switching signal to the lower computer, wherein the switching signal comprises the target system type and the target lower computer so that the target lower computer operates according to the switching signal;
and the rate adjusting module is used for sending a rate adjusting signal to the communication rate adjuster so that the communication rate adjuster can adjust the preset communication rate according to a preset rule according to the rate adjusting signal.
The embodiment of the application also discloses electronic equipment which comprises a processor and a memory, wherein executable codes are stored on the memory, and when the executable codes are executed, the processor is caused to execute the communication rate adjusting method according to one or more of the embodiments of the application.
Embodiments of the present application also disclose one or more machine readable media having executable code stored thereon that, when executed, cause a processor to perform a method of adjusting communication rate as described in one or more of the embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following advantages:
In the embodiment of the application, when the number of the target lower computers changes, a rate adjusting signal sent by the upper computer is received, the rate adjusting signal comprises a target communication rate, the preset communication rate is adjusted to the target communication rate, the error rate threshold value, the stable communication rate and the optimized communication rate of the target lower computers are obtained, the preset communication rate is adjusted to the stable communication rate if the error rate is higher than the error rate threshold value, and the preset communication rate is adjusted to the optimized communication rate if the error rate is continuously lower than the error rate threshold value within the preset time. When the number of the target lower computers is changed, the preset communication rate is automatically judged and adjusted to the corresponding target communication rate in real time through the communication rate regulator, so that the response sensitivity of the communication rate regulation is effectively improved; furthermore, the communication rate regulator can optimally adjust the preset communication rate to be stable or optimize the communication rate according to the real-time error rate of the bus type network, and the mechanism of the staged self-adaptive regulation ensures the complete receiving and transmitting of equipment data in the bus type network and simultaneously can realize the cooperative optimization between the low-speed stable transmission of a single system and the high-speed communication requirements of multiple systems.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a method for adjusting communication rate according to the present application;
FIG. 2 is a schematic diagram of a bus type network according to an embodiment of a communication rate adjustment method of the present application;
FIG. 3 is a flow chart of steps of another embodiment of a method for adjusting communication rate according to the present application;
FIG. 4 is a system type switching flow chart of an embodiment of a communication rate adjustment method of the present application;
FIG. 5 is a communication rate adjustment flow chart of an embodiment of a communication rate adjustment method according to the present application;
FIG. 6 is a block diagram illustrating an embodiment of a communication rate adjustment device according to the present application;
FIG. 7 is a block diagram of another embodiment of a communication rate adjustment device according to the present application;
fig. 8 is a schematic structural diagram of an apparatus according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description.
Referring to fig. 1, a flowchart of steps of an embodiment of a method for adjusting a communication rate according to the present application includes the following steps:
And step 101, when the number of the target lower computers is changed, receiving a rate adjustment signal sent by the upper computer, wherein the rate adjustment signal comprises a target communication rate.
Referring to fig. 2, a bus network is shown according to an embodiment of a method for adjusting a communication rate of the present application.
The communication rate adjusting method is applied to the communication rate adjuster in the bus type network. The bus type network is the CAN network. The CAN network comprises an upper computer, at least one lower computer and a communication rate regulator, and the upper computer, the lower computer and the communication rate regulator are communicated in the CAN network according to a preset communication rate through communication data. The CAN network CAN have a plurality of system types, and the number of the target lower computers which are required to be operated and are determined according to the current system types corresponds to the number of different target lower computers which are currently operated. The communication data is data communicated between the upper computer, the lower computer and the communication rate regulator through the CAN bus, and in an example, in a case where a single lower computer operates, the preset communication rate may be 20kbps.
In one embodiment, the upper computer may be a touch screen, and the touch screen is used as an industrial control screen, and includes a communication rate regulator and a display panel, and the touch screen may include functions of parameter setting, status, fault information display, and the like. The communication rate adjuster may adjust a specific value of the preset communication rate. The lower computer CAN be a unit system of the multi-system commercial air conditioner unit, the unit system comprises a main board, load equipment such as a compressor, a frequency converter, a bearing and other load equipment is connected through the main board, a plurality of lower computers CAN be arranged on a CAN network, the situation that N lower computers are arranged on the CAN network is shown in fig. 2, and N is a positive integer. And an error rate monitoring module can be further arranged, and each load device is embedded into the error rate monitoring module to monitor the error rate of the load device, so that the load device can feed back the error rate in real time, and the error rate of the load device can be displayed on the touch screen.
In step 101 of this embodiment, the target lower computer is that when the current user switches the system type through the upper computer, the number of target lower computers that need to be operated may be changed, so that a rate adjustment signal sent by the upper computer when switching the system type needs to be received, and the preset communication rate is adjusted to the target communication rate according to the number of target lower computers.
In one embodiment, corresponding target communication rates may be preset corresponding to different target numbers of lower computers. For example, in the case of a single lower computer operation, communication may be performed at a default preset communication rate m0 kbps, in the case of two lower computers operation, communication may be performed at a target communication rate m1 kbps(m1 > m 0), m1 kbps is a maximum communication rate in the case, in the case of three lower computers operation, communication may be performed at a target communication rate m2 kbps(m2>m1), m2 kbps is a maximum communication rate in the case, in the case of four lower computers operation, communication may be performed at a target communication rate m3 kbps(m3>m2), m3 kbps is a maximum communication rate in the case, in the case of N lower computers operation, communication may be performed at a target communication rate m(n-1)kbps(m(n-1)>m(n-2)), m(n-1) kbps is a maximum communication rate in the case, and N is a positive integer.
Step 102, adjusting the preset communication rate to the target communication rate.
In step 102, after receiving the rate adjustment signal, the communication rate adjuster adjusts the preset communication rate to the target communication rate. In one embodiment, the rate adjustment signal increases the predetermined communication rate to the target communication rate when switching from a single system to multiple systems, and decreases the predetermined communication rate to the target communication rate when switching from the single system to the multiple systems.
And 103, acquiring the bit error rate, the bit error rate threshold value, the stable communication rate and the optimized communication rate of the target lower computer.
In step 103, the communication rate regulator monitors the bit error rate of the target lower computer in real time, and determines whether the preset communication rate needs to be further adjusted from the target communication rate to a better communication rate according to the comparison condition of the bit error rate of the target lower computer and the bit error rate threshold value
And 104, if the error rate is higher than the error rate threshold, adjusting the preset communication rate to the stable communication rate.
In step 104, in the case that the bit error rate is higher than the bit error rate threshold, the preset communication rate may be adjusted to a stable communication rate, so that the communication on the bus network is more stable. In one example, in the case where the bit error rate is higher than the bit error rate threshold, the preset communication rate may be reduced to a stable communication rate, so as to avoid communication data transmission errors, communication interruption, and even system failure caused by too high bit error rate.
And step 105, if the bit error rate is continuously lower than the bit error rate threshold value within a preset time, adjusting the preset communication rate to the optimized communication rate.
In step 105, in the case where the bit error rate is continuously below the bit error rate threshold for a predetermined time, the predetermined communication rate may be adjusted to an optimal communication rate to further optimize communication over the bus-based network. Optimal performance of communication is achieved. In one example, the preset communication rate may be increased to an optimal communication rate in the event that the bit error rate continues to be below the bit error rate threshold for a preset time.
In one embodiment, the communication rate adjustment process of steps 101 to 105 may be briefly represented as three stages shown in table 1. When the number of target lower computers is increased due to the switching of the system types, the communication rate can be increased by delta m1, the communication rate can rapidly respond to the switching change of the system types through larger adjustment amplitude, the preset communication rate can be reduced by delta m2 under the condition that the error rate is higher than the error rate threshold value, communication abnormality caused by too high error rate can be avoided through smaller adjustment amplitude, and the preset communication rate can be further finely adjusted by delta m3 under the condition that the error rate is continuously lower than the error rate threshold value in preset time, and communication with optimal performance can be realized through extremely small adjustment amplitude.
TABLE 1 communication Rate segment adjustment strategy
System statusAdjusting policiesAdjusting amplitude
Target lower computer number increaseIncrease of communication rate Deltam 1Large adjustment amplitude
Bit error rate > preset bit error rate thresholdReducing communication rate Deltam 2Smaller adjustment amplitude
Long-term bit error rate is extremely lowFurther fine tuning of the rate Δm3Very small adjustment amplitude
The embodiment of the application does not limit the specific values of the target communication rate, the stable communication rate, the optimized communication rate and other data in the communication rate adjusting process corresponding to each system type, and can be set by a person skilled in the art according to actual requirements.
In one embodiment, after the communication rate adjustment is completed, a flag indicating that the communication rate adjustment is completed may be displayed on the upper computer touch screen.
When the number of the target lower computers is changed, the preset communication rate is automatically judged and adjusted to the corresponding target communication rate in real time through the communication rate regulator, so that the response sensitivity of the communication rate regulation is effectively improved; furthermore, the communication rate regulator can optimally adjust the preset communication rate to be stable or optimize the communication rate according to the real-time error rate of the bus type network, and the mechanism of the staged self-adaptive regulation ensures the complete receiving and transmitting of equipment data in the bus type network and simultaneously can realize the cooperative optimization between the low-speed stable transmission of a single system and the high-speed communication requirements of multiple systems.
In an optional embodiment of the present application, the target lower computer has a corresponding device priority, where the device priority is a priority of data transmission in the communication process, and the method further includes:
acquiring the equipment load of the target lower computer;
And adjusting the equipment priority of the target lower computer according to the equipment load.
In this embodiment, devices on the bus type network have different device priorities. In an example, the device priority of the upper computer may be the highest priority, so as to ensure that the control command of the upper computer can be transmitted preferentially and avoid interference by the low priority message of other devices, the device priority of other devices may be determined according to the device ID (Identifier) address, for example, the larger the ID address, the higher the device priority may be set, and in addition, some device priority determinations may be implemented through program software, for example, limiting the remote control priority to be higher than the local control. Those skilled in the art may set the device priority of the devices on the bus network according to actual needs, and the embodiment of the present application does not impose any limitation on the device priority of a specific device.
In the embodiment of the application, the equipment load of the target lower computer can be obtained in real time, and the equipment priority of the target lower computer is adjusted according to the equipment load of the target lower computer, for example, the equipment priority of the high-load target lower computer is improved, so that the data of the high-load target lower computer is transmitted preferentially, and the error rate of the data is reduced. In one embodiment, the priority transmission of the data of the high-load target lower computer can be achieved by increasing the data transmission frequency of the high-load target lower computer or reducing the load of other devices.
According to the embodiment of the application, the equipment load of the target lower computer is obtained, and the equipment priority of the target lower computer is adjusted according to the equipment load, so that the error rate of the target lower computer with high load is effectively reduced, and the communication quality is ensured.
In an optional embodiment of the present application, the target lower computer has a corresponding device identifier, and the adjusting the device priority of the target lower computer according to the device load includes:
determining a high load area and a normal area in the bus type network according to the equipment identifier and the equipment load;
And increasing the equipment priority of the target lower computer in the high-load area or decreasing the equipment priority of the target lower computer in the normal area.
In this embodiment, since each target lower computer will report its own data transmission amount and device identifier to the upper computer in real time, after the upper computer gathers, the load distribution on the bus can be analyzed according to the device identifier and the device load of the target lower computer. Specifically, it can be judged which device identifier has more data transmission amount, and the target lower computer corresponding to the device identifier is the high-load target lower computer, so that the data transmission amount is classified and analyzed according to the device ID and the data flow direction, and the high-load area and the normal area in the bus network are identified. The priority transmission of the data of the high-load target lower computer is realized by improving the equipment priority of the target lower computer in the high-load area or reducing the equipment priority of the target lower computer in the normal area.
In one embodiment, when the upper computer is a touch screen, the data transmission amount and the corresponding equipment identifier reported by the target lower computer can be displayed in real time.
According to the embodiment of the application, the high-load area and the normal area are identified according to the equipment identifier and the equipment load, and the equipment priority of the target lower computer in the high-load area and the normal area is adjusted, so that the priority transmission of the data of the target lower computer with high load is ensured, and the communication data congestion and delay are avoided.
In an alternative embodiment of the present application, after the acquiring the device load of the target lower computer, the method further includes:
adjusting the bit error rate threshold according to the equipment load to obtain an adjusted bit error rate threshold;
and adjusting the preset communication rate according to the adjusted bit error rate threshold.
In this embodiment, the bit error rate threshold may be dynamically adjusted according to the working state of the device and the environmental change. For example, the bit error rate threshold can be adjusted according to the equipment load, and the bit error rate threshold can be properly reduced to obtain the adjusted bit error rate threshold under the condition of higher equipment load or larger environmental interference, and then the preset communication rate is adjusted according to the adjusted bit error rate threshold.
The embodiment of the application can adjust the error rate threshold according to the equipment load, thereby further adjusting the preset communication rate according to the adjusted error rate threshold. After the error rate threshold is reduced, the adjustment of the preset communication rate is triggered more easily, the sensitivity of the communication rate adjustment is improved, and the system can flexibly face the conditions of higher equipment load or larger environmental interference.
In an alternative embodiment of the application, the method further comprises:
acquiring the online state of the target lower computer;
If the offline lower computer exists in the target lower computer, the preset communication rate is reduced, and the reconnection attempt operation is executed on the offline lower computer.
In the embodiment of the application, the communication rate regulator can also continuously scan the equipment identifier on the bus to monitor data and judge the on-line state of the target lower computer. The online status may include online and offline. If off-line lower computers exist in the target lower computers, namely the number of actually operated lower computers is smaller than that of the preset target lower computers, the communication rate regulator can reduce the preset communication rate, and the influence on the overall performance of the bus network due to single equipment faults is avoided. Meanwhile, the communication rate regulator also tries to reconnect the off-line lower computer.
The embodiment of the application can effectively avoid influencing the overall performance of the bus network due to single equipment faults by dynamically detecting the on-line state of the target lower computer and adjusting the communication rate, thereby realizing more sensitive communication rate adjustment. According to the embodiment of the application, the integrity of the bus type network can be quickly recovered on the premise of no manual intervention by automatically trying to reconnect the offline target lower computer.
In an alternative embodiment of the application, the method further comprises:
detecting the actual number of the currently running lower computers;
And if the actual number of the currently operated lower computers is larger than the number of the target lower computers, adjusting the preset communication rate according to the actual number.
In this embodiment, the communication rate regulator also continuously scans the device identifier on the bus to detect the actual number of the currently actually operated lower computer. If the fact that the new lower computers start to operate is detected, namely that the actual number of the currently operated lower computers is larger than the number of the target lower computers corresponding to the current system type is detected, the preset communication rate is adjusted according to the actual number of the currently operated lower computers, and therefore the system is enabled to adapt to the new load.
The embodiment of the application can realize more sensitive communication rate adjustment when new equipment is added by dynamically detecting the actual number of the currently running lower computers and adjusting the communication rate.
In an alternative embodiment of the present application, the adjusting the preset communication rate to the target communication rate includes:
Transmitting the rate change signal to the target lower computer, wherein the rate change signal comprises the target communication rate;
receiving a rate receiving signal fed back by the target lower computer;
determining an abnormal lower computer from the target lower computers according to the rate receiving signals;
Resending the rate change signal to the abnormal lower computer;
and sending alarm information aiming at the abnormal lower computer to the upper computer.
In this embodiment, the communication rate adjuster sends a rate change signal including the target communication rate to all devices involved in the communication, including an upper computer, a target lower computer, and other lower computers. After receiving the rate change signal, the target lower computer needs to feed back the rate receiving signal to the communication rate regulator to confirm that the target lower computer has received the rate change signal. In one embodiment, the communication rate adjustor can cycle through sending the rate altering signal until all of the rate receiving signals fed back by the devices involved in the communication are received.
If the target lower computer still does not feed back the rate receiving signal after the rate changing signal with preset times is sent, the target lower computer can be judged to be an abnormal lower computer, and the communication rate regulator sends alarm information aiming at the abnormal lower computer to the upper computer while sending the rate changing signal to the abnormal lower computer again. In one embodiment, the host computer may display the alarm information on the touch screen.
According to the communication rate regulator, through circularly sending the rate change signal, it is ensured that all devices participating in communication can receive the rate change signal to change the communication rate, meanwhile, the communication rate regulator judges an abnormal lower computer through the received rate receiving signal and alarms, and communication failure caused by failure of a target lower computer is avoided.
When the number of the target lower computers is changed, the preset communication rate is automatically judged and adjusted to the corresponding target communication rate in real time through the communication rate regulator, so that the response sensitivity of the communication rate regulation is effectively improved; furthermore, the communication rate regulator can optimally adjust the preset communication rate to be stable or optimize the communication rate according to the real-time error rate of the bus type network, and the mechanism of the staged self-adaptive regulation ensures the complete receiving and transmitting of equipment data in the bus type network and simultaneously can realize the cooperative optimization between the low-speed stable transmission of a single system and the high-speed communication requirements of multiple systems.
On the basis of the above embodiment, the present embodiment also provides another method for adjusting the communication rate.
Referring to fig. 3, a flowchart illustrating steps of another embodiment of a method for adjusting a communication rate according to the present application includes the steps of:
step 301, receiving a system switching request, where the system switching request includes a target system type, and the target system type has a corresponding target number.
The method for adjusting the communication rate is applied to an upper computer in a bus type network. Reference is made to the above and fig. 2 for specific structure of the bus type network, and details thereof are not repeated here. The bus type network has at least two system types, different system types correspond to different numbers of target lower computers, and corresponding target communication rates can be preset corresponding to different numbers of target lower computers. In one embodiment, different system types are identified by flag bits
For example, referring to table 2, in the case of a single lower computer operation (single system), the single system flag bit may be 0 according to the default preset communication rate m0 kbps, in the case of two lower computers operation (dual system), the single system flag bit may be 0 according to the target communication rate m1 kbps(m1>m0), m1 kbps may be 1 according to the maximum communication rate in the case, in the case of three lower computers operation (tri system), the single system flag bit may be 2 according to the target communication rate m2 kbps(m2>m1), m2 kbps may be the maximum communication rate in the case, the tri system flag bit may be 3 according to the target communication rate m3 kbps(m3>m2, in the case of four lower computers operation (quad system), m3 kbps may be 3 according to the target communication rate m(n-1)kbps(m(n-1)>m(n-2)), in the case of N lower computers operation, m(n-1) kbps may be the maximum communication rate in the case of N may be an integer N-N, and N may be a positive integer.
Table 2 system types and corresponding settings
In step 301 of this embodiment, the upper computer may receive a system switching request sent by a user on the touch screen, where the system switching request includes a flag bit, where the flag bit has a corresponding target system type, and the target system type has a corresponding target number of target lower computers.
And 302, determining the target number of the target lower computers from the lower computers according to the target system type.
In step 302, a target number of target lower computers is determined from the lower computers according to the flag bit in the system switch request. Specifically, the target lower computer used by default of different system types can be preset, and the target lower computer is determined directly according to the default setting when the target lower computer is determined. For example, assuming that there are four lower computers 1,2, 3,4, a single-system default lower computer 1 may be set to participate in operation, a dual-system default lower computer 1,2 may participate in operation, three-system default lower computers 1,2, 3 may participate in operation, and four-system default lower computers 1,2, 3,4 may all participate in operation. When the flag bit in the system switching request is 2 (i.e. switching to three systems), the lower computers 1,2 and 3 are directly confirmed as target lower computers.
And 303, sending a switching signal to the lower computer, wherein the switching signal comprises the target system type and the target lower computer so that the target lower computer operates according to the switching signal.
In step 303, according to the flag bit corresponding to the target system type and the target lower computer, the upper computer sends a switching signal containing the target system type and the target lower computer to the lower computer. After the lower computers receive the switching signals, the target lower computers in the lower computers start to operate according to the switching signals, and the rest lower computers stop operating.
And 304, sending a rate adjustment signal to the communication rate adjuster, so that the communication rate adjuster adjusts the preset communication rate according to a preset rule according to the rate adjustment signal.
In step 304, while the system type is switched, the upper computer also sends a rate adjustment signal to the communication rate adjuster, so that the communication rate adjuster adjusts the preset communication rate according to the preset rule according to the rate adjustment signal. The specific communication rate adjustment procedure is described in detail above and will not be described in detail here.
In the embodiment of the application, a system switching request is received, the system switching request comprises target system types, the target system types have corresponding target numbers, target lower computers of the target numbers are determined from lower computers according to the target system types, switching signals are sent to the lower computers, the switching signals comprise the target system types and the target lower computers so that the target lower computers can operate according to the switching signals, and a speed adjusting signal is sent to a communication speed regulator so that the communication speed regulator can adjust the preset communication speed according to a preset rule by the speed adjusting signal. When the number of the target lower computers is changed, the preset communication rate is adjusted to the corresponding target communication rate in real time through the communication rate regulator, so that the response sensitivity of the communication rate regulation is effectively improved, the complete receiving and transmitting of equipment data in the bus type network is ensured, and the collaborative optimization between the low-speed stable transmission of a single system and the high-speed communication requirements of multiple systems can be realized.
In an optional embodiment of the present application, the determining, according to the target system type, the target number of the target lower computers from the lower computers includes:
Acquiring running accumulated time of the lower computer;
and determining the target lower computers with the target quantity from the lower computers according to the running accumulated time and the target system type.
In this embodiment, the target lower computer may also be selected according to the running accumulated time of the lower computer. The upper computer can monitor the running accumulation time of each lower computer, and when the target lower computer is selected according to the type of the target system, the lower computer with less running accumulation time is selected from the lower computers according to the running accumulation time of the lower computers to serve as the target lower computer.
According to the embodiment of the application, the target lower computer is determined according to the running accumulated time, so that the load of the target lower computer is increased or the service life of the target lower computer is shortened caused by using the same target lower computer for a long time, the load balance of the lower computer is ensured, and the service life of the lower computer is prolonged.
In order to make the person skilled in the art more clearly aware of a communication rate adjustment method according to an embodiment of the present application, a complete flow of communication rate adjustment is described below with reference to fig. 4 and 5.
Referring to fig. 4, a system type switching flowchart of an embodiment of a communication rate adjusting method according to the present application is shown.
As shown in fig. 4, after the system type is switched, the number of running lower computer devices on the bus type network is changed, and thus the communication data amount is also changed. When the system type is switched, the touch screen is used as an upper computer, and a rate change request needs to be sent to the communication rate regulator to be used as a rate regulating signal. The communication rate regulator regulates the communication rate according to a preset rule, and after the regulation is completed, the devices in the bus network can communicate according to the regulated preset communication rate.
Referring to fig. 5, a communication rate adjustment flow chart of an embodiment of a communication rate adjustment method according to the present application is shown.
Specifically, referring to fig. 5, after receiving a rate change request sent by the upper computer touch screen, the communication rate regulator determines whether the number of currently running lower computer devices in the bus type network is the same as the target number, and whether all target lower computers in the bus type network are online. If the number of the currently running lower computer devices is different from the target number, or not all the target lower computers in the bus network are online, the communication rate regulator needs to re-receive the rate change request, and the communication rate is regulated according to the number of the actually running lower computers.
If the number of the currently running lower computer devices is the same as the target number and all target lower computers in the bus type network are online, the communication rate regulator circularly sends rate change signals containing new communication rate values to all devices participating in communication, and determines whether all the devices in the bus type network receive the rate change signals according to rate receiving signals fed back by the lower computers. After the communication rate adjustment is completed, the communication rate adjuster needs to send a rate adjustment completion flag to the host computer.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the application.
On the basis of the above embodiment, the present embodiment further provides a device for adjusting a communication rate, which is applied to electronic devices such as a terminal device and a server.
Referring to fig. 6, a block diagram of an embodiment of a communication rate adjusting device according to the present application is shown, which may specifically include the following modules:
The adjusting signal sending module 601 is configured to receive a rate adjusting signal sent by the upper computer when the number of the target lower computers changes, where the rate adjusting signal includes a target communication rate;
A first rate adjustment module 602, configured to adjust the preset communication rate to the target communication rate;
an adjustment parameter obtaining module 603, configured to obtain an error rate, an error rate threshold, a stable communication rate, and an optimized communication rate of the target lower computer;
a second rate adjustment module 604, configured to adjust the preset communication rate to the stable communication rate if the bit error rate is higher than the bit error rate threshold;
and a third rate adjustment module 605, configured to adjust the preset communication rate to the optimized communication rate if the bit error rate is continuously lower than the bit error rate threshold for a preset time.
In an optional embodiment of the present application, the target lower computer has a corresponding device priority, where the device priority is a priority of data transmission in the communication process, and the apparatus further includes:
The load acquisition module is used for acquiring the equipment load of the target lower computer;
And the load adjustment module is used for adjusting the equipment priority of the target lower computer according to the equipment load.
In an optional embodiment of the present application, the target lower computer has a corresponding device identifier, and the load adjustment module includes:
the area identification sub-module is used for determining a high-load area and a normal area in the bus type network according to the equipment identifier and the equipment load;
and the region adjustment sub-module is used for improving the equipment priority of the target lower computer in the high-load region or reducing the equipment priority of the target lower computer in the normal region.
In an alternative embodiment of the application, the apparatus further comprises:
the error rate threshold value adjusting module is used for adjusting the error rate threshold value according to the equipment load to obtain an adjusted error rate threshold value;
And the fourth rate adjusting module is used for adjusting the preset communication rate according to the adjusted bit error rate threshold value.
In an alternative embodiment of the application, the apparatus further comprises:
the lower computer state acquisition module is used for acquiring the online state of the target lower computer;
and the offline state processing module is used for reducing the preset communication rate and executing the reconnection attempt operation on the offline lower computer if the offline lower computer exists in the target lower computer.
In an alternative embodiment of the application, the apparatus further comprises:
The quantity detection module is used for detecting the actual quantity of the currently operated lower computers;
And the fifth rate adjusting module is used for adjusting the preset communication rate according to the actual number if the actual number of the currently operated lower computers is larger than the number of the target lower computers.
In an alternative embodiment of the present application, the first rate adjustment module 602 includes:
A change signal sending sub-module, configured to send the rate change signal to the target lower computer, where the rate change signal includes the target communication rate;
The feedback signal receiving sub-module is used for receiving a rate receiving signal fed back by the target lower computer;
the abnormality determination submodule is used for determining an abnormal lower computer from the target lower computers according to the rate receiving signals;
A signal retransmission sub-module, configured to retransmit the rate change signal to the abnormal lower computer;
And the alarm sub-module is used for sending alarm information aiming at the abnormal lower computer to the upper computer.
In the embodiment of the application, when the number of the target lower computers changes, a rate adjusting signal sent by the upper computer is received, the rate adjusting signal comprises a target communication rate, the preset communication rate is adjusted to the target communication rate, the error rate threshold value, the stable communication rate and the optimized communication rate of the target lower computers are obtained, the preset communication rate is adjusted to the stable communication rate if the error rate is higher than the error rate threshold value, and the preset communication rate is adjusted to the optimized communication rate if the error rate is continuously lower than the error rate threshold value within the preset time. When the number of the target lower computers is changed, the preset communication rate is automatically judged and adjusted to the corresponding target communication rate in real time through the communication rate regulator, so that the response sensitivity of the communication rate regulation is effectively improved; furthermore, the communication rate regulator can optimally adjust the preset communication rate to be stable or optimize the communication rate according to the real-time error rate of the bus type network, and the mechanism of the staged self-adaptive regulation ensures the complete receiving and transmitting of equipment data in the bus type network and simultaneously can realize the cooperative optimization between the low-speed stable transmission of a single system and the high-speed communication requirements of multiple systems.
Referring to fig. 7, a block diagram of another embodiment of a communication rate adjusting device according to the present application is shown, and may specifically include the following modules:
A handover request receiving module 701, configured to receive a system handover request, where the system handover request includes a target system type, and the target system type has a corresponding target number;
A target device determining module 702, configured to determine the target number of the target lower computers from the lower computers according to the target system type;
a switching signal sending module 703, configured to send a switching signal to the lower computer, where the switching signal includes the target system type and the target lower computer, so that the target lower computer operates according to the switching signal;
and the rate adjusting module 704 is configured to send a rate adjusting signal to the communication rate adjuster, so that the communication rate adjuster adjusts the preset communication rate according to a preset rule according to the rate adjusting signal.
In an alternative embodiment of the present application, the target device determining module 702 includes:
the running time acquisition sub-module is used for acquiring running accumulated time of the lower computer;
and the target lower computer determining submodule is used for determining the target lower computers with the target quantity from the lower computers according to the running accumulated time and the target system type.
In the embodiment of the application, a system switching request is received, the system switching request comprises target system types, the target system types have corresponding target numbers, target lower computers of the target numbers are determined from lower computers according to the target system types, switching signals are sent to the lower computers, the switching signals comprise the target system types and the target lower computers so that the target lower computers can operate according to the switching signals, and a speed adjusting signal is sent to a communication speed regulator so that the communication speed regulator can adjust the preset communication speed according to a preset rule by the speed adjusting signal. When the number of the target lower computers is changed, the preset communication rate is adjusted to the corresponding target communication rate in real time through the communication rate regulator, so that the response sensitivity of the communication rate regulation is effectively improved, the complete receiving and transmitting of equipment data in the bus type network is ensured, and the collaborative optimization between the low-speed stable transmission of a single system and the high-speed communication requirements of multiple systems can be realized.
The embodiment of the application also provides a non-volatile readable storage medium, where one or more modules (programs) are stored, where the one or more modules are applied to a device, and the instructions (instructions) of each method step in the embodiment of the application may cause the device to execute.
Embodiments of the application provide one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause an electronic device to perform a method as described in one or more of the above embodiments. In the embodiment of the application, the electronic equipment comprises various types of equipment such as terminal equipment, servers (clusters) and the like.
Embodiments of the present disclosure may be implemented as an apparatus for performing a desired configuration using any suitable hardware, firmware, software, or any combination thereof, which may include electronic devices such as terminal devices, servers (clusters), etc. Fig. 8 schematically illustrates an exemplary apparatus 1100 that may be used to implement various embodiments described in the present disclosure.
For one embodiment, fig. 8 illustrates an example apparatus 800 having one or more processors 802, a control module (chipset) 804 coupled to at least one of the processor(s) 802, a memory 806 coupled to the control module 804, a non-volatile memory (NVM)/storage 808 coupled to the control module 804, one or more input/output devices 810 coupled to the control module 804, and a network interface 812 coupled to the control module 804.
The processor 802 may include one or more single-core or multi-core processors, and the processor 802 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 800 can be used as a terminal device, a server (cluster), or the like in the embodiments of the present application.
In some embodiments, the apparatus 800 can include one or more computer-readable media (e.g., memory 806 or NVM/storage 808) having instructions 814 and one or more processors 802 coupled with the one or more computer-readable media and configured to execute the instructions 814 to implement the modules to perform the actions described in this disclosure.
For one embodiment, the control module 804 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 802 and/or any suitable device or component in communication with the control module 804.
The control module 804 may include a memory controller module to provide an interface to the memory 806. The memory controller modules may be hardware modules, software modules, and/or firmware modules.
Memory 806 may be used to load and store data and/or instructions 814 for device 800, for example. For one embodiment, memory 806 may include any suitable volatile memory, such as, for example, a suitable DRAM. In some embodiments, memory 806 may include double data rate type four synchronous dynamic random access memory (DDR 4 SDRAM).
For one embodiment, control module 804 may include one or more input/output controllers to provide an interface to NVM/storage 808 and input/output device(s) 810.
For example, NVM/storage 808 may be used to store data and/or instructions 814. NVM/storage 808 may include any suitable nonvolatile memory (e.g., flash memory) and/or may include any suitable nonvolatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 808 may include storage resources that are physically part of the device on which apparatus 800 is installed or may be accessible by the device without necessarily being part of the device. For example, NVM/storage 808 may be accessed over a network via input/output device(s) 810.
Input/output device(s) 810 may provide an interface for apparatus 800 to communicate with any other suitable devices, input/output device 810 may include communication components, audio components, sensor components, and the like. Network interface 812 may provide an interface for device 800 to communicate over one or more networks, and device 800 may communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G, 5G, etc., or a combination thereof.
For one embodiment, at least one of the processor(s) 802 may be packaged together with logic of one or more controllers (e.g., memory controller modules) of the control module 804. For one embodiment, at least one of the processor(s) 802 may be packaged together with logic of one or more controllers of the control module 804 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 802 may be integrated on the same die with logic of one or more controllers of the control module 804. For one embodiment, at least one of the processor(s) 802 may be integrated on the same die with logic of one or more controllers of the control module 804 to form a system on chip (SoC).
In various embodiments, apparatus 800 may be, but is not limited to being, a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, device 800 may have more or fewer components and/or different architectures. For example, in some embodiments, the apparatus 800 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and a speaker.
The detection device can adopt a main control chip as a processor or a control module, sensor data, position information and the like are stored in a memory or an NVM/storage device, a sensor group can be used as an input/output device, and a communication interface can comprise a network interface.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable communication rate adjustment terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable communication rate adjustment terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable communication rate adjustment terminal device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable communication rate regulating terminal device to cause a series of operational steps to be performed on the computer or other programmable terminal device to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal device provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing describes in detail a method and apparatus for adjusting a communication rate, an electronic device and a storage medium, wherein specific examples are provided herein to illustrate the principles and embodiments of the present application, and the above examples are provided to assist in understanding the method and core ideas of the present application, and meanwhile, to those skilled in the art, there are variations in the specific embodiments and application scope according to the ideas of the present application, so the disclosure should not be construed as limiting the present application.

Claims (13)

Translated fromChinese
1.一种通讯速率的调节方法,其特征在于,应用于总线型网络中的通讯速率调节器,所述总线型网络上还包括上位机和至少一个下位机,所述上位机、所述下位机和所述通讯速率调节器之间按照预设通讯速率进行通信,所述下位机包括目标下位机,所述方法包括:1. A method for adjusting a communication rate, characterized in that it is applied to a communication rate adjuster in a bus-type network, wherein the bus-type network also includes a host computer and at least one slave computer, wherein the host computer, the slave computers, and the communication rate adjuster communicate at a preset communication rate, and wherein the slave computers include a target slave computer, and the method comprises:在所述目标下位机的数量发生变化时,接收所述上位机发送的速率调节信号,所述速率调节信号包含目标通讯速率;When the number of the target slave computers changes, receiving a rate adjustment signal sent by the host computer, the rate adjustment signal including a target communication rate;将所述预设通讯速率调节至所述目标通讯速率;adjusting the preset communication rate to the target communication rate;获取所述目标下位机的误码率、误码率阈值、稳定通讯速率和优化通讯速率;Obtaining the bit error rate, bit error rate threshold, stable communication rate and optimized communication rate of the target slave computer;若所述误码率高于所述误码率阈值,则将所述预设通讯速率调节至所述稳定通讯速率;If the bit error rate is higher than the bit error rate threshold, adjusting the preset communication rate to the stable communication rate;若在预设时间内所述误码率持续低于所述误码率阈值,则将所述预设通讯速率调节至所述优化通讯速率。If the bit error rate is continuously lower than the bit error rate threshold within a preset time, the preset communication rate is adjusted to the optimized communication rate.2.根据权利要求1所述的方法,其特征在于,所述目标下位机具有对应的设备优先级,所述设备优先级为在通信过程中数据传输的优先级,所述方法还包括:2. The method according to claim 1, wherein the target slave computer has a corresponding device priority, wherein the device priority is a priority of data transmission during the communication process, and the method further comprises:获取所述目标下位机的设备负载;Obtaining the device load of the target slave computer;根据所述设备负载调整所述目标下位机的所述设备优先级。The device priority of the target slave computer is adjusted according to the device load.3.根据权利要求2所述的方法,其特征在于,所述目标下位机存在对应的设备标识,所述根据所述设备负载调整所述目标下位机的所述设备优先级,包括:3. The method according to claim 2, wherein the target slave computer has a corresponding device identifier, and the step of adjusting the device priority of the target slave computer according to the device load comprises:根据所述设备标识和所述设备负载确定所述总线型网络中的高负载区域和正常区域;determining a high-load area and a normal area in the bus network according to the device identifier and the device load;提高所述高负载区域中的目标下位机的所述设备优先级,或,降低所述正常区域中的目标下位机的所述设备优先级。The device priority of the target lower computer in the high-load area is increased, or the device priority of the target lower computer in the normal area is decreased.4.根据权利要求2所述的方法,其特征在于,在所述获取所述目标下位机的设备负载之后,所述方法还包括:4. The method according to claim 2, characterized in that after obtaining the device load of the target slave computer, the method further comprises:根据所述设备负载调整所述误码率阈值,得到调整后的误码率阈值;Adjusting the bit error rate threshold according to the device load to obtain an adjusted bit error rate threshold;根据所述调整后的误码率阈值调节所述预设通讯速率。The preset communication rate is adjusted according to the adjusted bit error rate threshold.5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, further comprising:获取所述目标下位机的在线状态;Obtaining the online status of the target slave computer;若所述目标下位机中存在离线的下位机,则降低所述预设通讯速率,并对所述离线的下位机执行尝试重连操作。If there is an offline slave computer among the target slave computers, the preset communication rate is reduced, and a reconnection attempt operation is performed on the offline slave computer.6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method according to claim 1, further comprising:检测当前运行的下位机的实际数量;Detect the actual number of currently running slave computers;若所述当前运行的下位机的实际数量大于所述目标下位机的数量,则按照所述实际数量调整所述预设通讯速率。If the actual number of the currently running slave computers is greater than the number of the target slave computers, the preset communication rate is adjusted according to the actual number.7.根据权利要求1所述的方法,其特征在于,所述将所述预设通讯速率调节至所述目标通讯速率,包括:7. The method according to claim 1, wherein adjusting the preset communication rate to the target communication rate comprises:向所述目标下位机发送所述速率变更信号,所述速率变更信号包括所述目标通讯速率;Sending the rate change signal to the target slave computer, wherein the rate change signal includes the target communication rate;接收所述目标下位机反馈的速率接收信号;Receive a rate reception signal fed back by the target slave computer;根据所述速率接收信号从所述目标下位机中确定异常下位机;Determining an abnormal slave computer from the target slave computers according to the rate receiving signal;向所述异常下位机重新发送所述速率变更信号;Resending the rate change signal to the abnormal lower computer;向所述上位机发送针对所述异常下位机的报警信息。Sending alarm information for the abnormal slave computer to the host computer.8.一种通讯速率的调节方法,其特征在于,应用于总线型网络中的上位机,所述总线型网络上还包括通讯速率调节器和至少一个下位机,所述上位机、所述下位机和所述通讯速率调节器之间按照预设通讯速率进行通信,所述总线型网络具有至少两个系统类型,不同的所述系统类型对应不同数量的目标下位机,方法包括:8. A method for adjusting a communication rate, characterized in that it is applied to a host computer in a bus-type network, wherein the bus-type network further includes a communication rate adjuster and at least one slave computer, wherein the host computer, the slave computers, and the communication rate adjuster communicate at a preset communication rate, and wherein the bus-type network has at least two system types, wherein different system types correspond to different numbers of target slave computers, and the method comprises:接收系统切换请求,所述系统切换请求中包括目标系统类型,所述目标系统类型存在对应的目标数量;receiving a system switching request, wherein the system switching request includes a target system type, and the target system type has a corresponding target quantity;根据所述目标系统类型从所述下位机中确定所述目标数量的所述目标下位机;Determining the target number of target slave computers from the slave computers according to the target system type;向所述下位机发送切换信号,所述切换信号包括所述目标系统类型和所述目标下位机,以使所述目标下位机根据所述切换信号运行;Sending a switching signal to the lower computer, wherein the switching signal includes the target system type and the target lower computer, so that the target lower computer operates according to the switching signal;向所述通讯速率调节器发送速率调节信号,以使所述通讯速率调节器根据所述速率调节信号按照预设规则调节所述预设通讯速率。A rate adjustment signal is sent to the communication rate adjuster, so that the communication rate adjuster adjusts the preset communication rate according to the rate adjustment signal and a preset rule.9.根据权利要求8所述的方法,其特征在于,所述根据所述目标系统类型从所述下位机中确定所述目标数量的所述目标下位机,包括:9. The method according to claim 8, wherein determining the target number of target slave computers from the slave computers according to the target system type comprises:获取所述下位机的运行累计时间;Obtaining the cumulative running time of the slave computer;根据所述运行累计时间和所述目标系统类型,从所述下位机中确定所述目标数量的所述目标下位机。The target number of target lower computers is determined from the lower computers according to the cumulative running time and the target system type.10.一种通讯速率的调节装置,其特征在于,应用于总线型网络中的通讯速率调节器,所述总线型网络上还包括上位机和至少一个下位机,所述上位机、所述下位机和所述通讯速率调节器之间按照预设通讯速率进行通信,所述下位机包括目标下位机,所述装置包括:10. A communication rate adjustment device, characterized by being applied to a communication rate adjuster in a bus-type network, wherein the bus-type network further includes a host computer and at least one slave computer, wherein the host computer, the slave computers, and the communication rate adjuster communicate at a preset communication rate, wherein the slave computers include a target slave computer, and wherein the device comprises:调节信号发送模块,用于在所述目标下位机的数量发生变化时,接收所述上位机发送的速率调节信号,所述速率调节信号包含目标通讯速率;an adjustment signal sending module, configured to receive a rate adjustment signal sent by the host computer when the number of the target slave computers changes, wherein the rate adjustment signal includes a target communication rate;第一速率调节模块,用于将所述预设通讯速率调节至所述目标通讯速率;A first rate adjustment module, configured to adjust the preset communication rate to the target communication rate;调节参数获取模块,用于获取所述目标下位机的误码率、误码率阈值、稳定通讯速率和优化通讯速率;An adjustment parameter acquisition module is used to obtain the bit error rate, bit error rate threshold, stable communication rate and optimized communication rate of the target slave computer;第二速率调节模块,用于若所述误码率高于所述误码率阈值,则将所述预设通讯速率调节至所述稳定通讯速率;a second rate adjustment module, configured to adjust the preset communication rate to the stable communication rate if the bit error rate is higher than the bit error rate threshold;第三速率调节模块,用于若在预设时间内所述误码率持续低于所述误码率阈值,则将所述预设通讯速率调节至所述优化通讯速率。The third rate adjustment module is configured to adjust the preset communication rate to the optimized communication rate if the bit error rate is continuously lower than the bit error rate threshold within a preset time.11.一种通讯速率的调节装置,其特征在于,应用于总线型网络中的上位机,所述总线型网络上还包括通讯速率调节器和至少一个下位机,所述上位机、所述下位机和所述通讯速率调节器之间按照预设通讯速率进行通信,所述总线型网络具有至少两个系统类型,不同的所述系统类型对应不同数量的目标下位机,所述装置包括:11. A communication rate adjustment device, characterized in that it is applied to a host computer in a bus-type network, the bus-type network also including a communication rate adjuster and at least one slave computer, the host computer, the slave computers, and the communication rate adjuster communicating at a preset communication rate, the bus-type network having at least two system types, different system types corresponding to different numbers of target slave computers, the device comprising:切换请求接收模块,用于接收系统切换请求,所述系统切换请求中包括目标系统类型,所述目标系统类型存在对应的目标数量;A switching request receiving module, configured to receive a system switching request, wherein the system switching request includes a target system type, and the target system type has a corresponding target quantity;目标设备确定模块,用于根据所述目标系统类型从所述下位机中确定所述目标数量的所述目标下位机;A target device determination module, configured to determine the target number of target lower computers from the lower computers according to the target system type;切换信号发送模块,用于向所述下位机发送切换信号,所述切换信号包括所述目标系统类型和所述目标下位机,以使所述目标下位机根据所述切换信号运行;a switching signal sending module, configured to send a switching signal to the slave computer, wherein the switching signal includes the target system type and the target slave computer, so that the target slave computer operates according to the switching signal;速率调节模块,用于向所述通讯速率调节器发送速率调节信号,以使所述通讯速率调节器根据所述速率调节信号按照预设规则调节所述预设通讯速率。The rate adjustment module is used to send a rate adjustment signal to the communication rate adjuster, so that the communication rate adjuster adjusts the preset communication rate according to the rate adjustment signal and a preset rule.12.一种电子设备,其特征在于,包括:处理器;和12. An electronic device comprising: a processor; and存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如权利要求1-9中任一所述的通讯速率的调节方法。A memory having executable codes stored thereon, which, when executed, causes the processor to execute the communication rate adjustment method according to any one of claims 1 to 9.13.一个或多个机器可读介质,其上存储有可执行代码,当所述可执行代码被执行时,使得处理器执行如权利要求1-9中一个或多个所述的通讯速率的调节方法。13. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the communication rate adjustment method according to one or more of claims 1-9.
CN202510635089.7A2025-05-162025-05-16 Communication rate adjustment method, device, equipment and storage mediumPendingCN120547013A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202510635089.7ACN120547013A (en)2025-05-162025-05-16 Communication rate adjustment method, device, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202510635089.7ACN120547013A (en)2025-05-162025-05-16 Communication rate adjustment method, device, equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN120547013Atrue CN120547013A (en)2025-08-26

Family

ID=96781227

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202510635089.7APendingCN120547013A (en)2025-05-162025-05-16 Communication rate adjustment method, device, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN120547013A (en)

Similar Documents

PublicationPublication DateTitle
US11120811B2 (en)Power optimized link quality detection and feedback
US10735554B1 (en)System for controlling use of a network
US10959122B2 (en)Method and device for transmitting data
EP2883329A1 (en)Computer information system and dynamic disaster recovery method therefor
CN105607590A (en)Methods and apparatus to provide redundancy in a process control system
US8566495B2 (en)Systems, methods and apparatus for data communication
CN116150054B (en)Interrupt information processing method based on PCIE
US9615328B2 (en)Method and device for reducing power consumption
WO2014121726A1 (en)Transmission power regulation
CN112565035B (en)Data transmission method, device and storage medium
CN117395716A (en)Multilink-based data transmission method, device, equipment and storage medium
EP4037272A1 (en)Data processing method and device
CN106851790B (en)Power consumption change control method and system and mobile terminal
WO2022268068A1 (en)Wireless communication method and apparatus, electronic device, and readable storage medium
US20080095063A1 (en)Relay Apparatus and Failure Monitoring Method
CN120547013A (en) Communication rate adjustment method, device, equipment and storage medium
JPWO2005043827A1 (en) TERMINAL DEVICE, TERMINAL DEVICE CONTROL METHOD, NETWORK SYSTEM, ITS CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
CN118540282A (en)Network flow control method, device, equipment and storage medium
CN112503717B (en)Control method and device of universal air conditioner controller and universal air conditioner controller
KR101377841B1 (en)Communication control method for network system
US10243864B1 (en)System for modifying data rates used by audio devices
CN118573936A (en)Audio and video synchronous transmission optimization method and vehicle-cloud integrated end-to-end audio and video communication system
JP2007325229A (en)Load control system and load control method
CN111356158A (en)Communication method and system for smart home and communication base station
WO2014187386A1 (en)Method, device, and base station for determining handover command transmission power

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp