CN115622871A - Bus load determination method, device, home appliance and storage medium - Google Patents
Bus load determination method, device, home appliance and storage medium Download PDFInfo
- Publication number
- CN115622871A CN115622871A CN202211236843.2A CN202211236843A CN115622871A CN 115622871 A CN115622871 A CN 115622871A CN 202211236843 A CN202211236843 A CN 202211236843A CN 115622871 A CN115622871 A CN 115622871A
- Authority
- CN
- China
- Prior art keywords
- load
- abnormal
- gating
- bus
- unit
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/403—Bus networks with centralised control, e.g. polling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0677—Localisation of faults
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/0816—Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明属于通信技术领域,公开了一种总线负载确定方法、装置、家电设备及存储介质。本发明公开了总线负载确定方法用于主控板,所述主控板与通讯总线连接,多个负载单元分别通过对应的选通单元与所述通讯总线连接,使得在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态;检测所述通讯总线的通讯状态是否恢复正常;根据检测结果从各负载单元中确定异常负载单元。在通讯总线与负载单元中设置了对应的选通单元,使得在检测到通讯总线的通讯状态出现异常时,可以根据预设策略对各个选通模块的开关状态进行调整,并在进行调整时检测通讯总线的通讯状态,最后根据检测结果确定异常负载单元,从而准确的筛选出发生故障的负载单元。
The invention belongs to the technical field of communication, and discloses a bus load determination method, device, home appliance and storage medium. The invention discloses a bus load determination method for a main control board, the main control board is connected to a communication bus, and a plurality of load units are respectively connected to the communication bus through corresponding gating units, so that the communication in the communication bus When the state is abnormal, adjust the switching state of each gating unit according to the preset strategy; detect whether the communication state of the communication bus returns to normal; determine the abnormal load unit from each load unit according to the detection result. The corresponding gating unit is set in the communication bus and the load unit, so that when the communication status of the communication bus is detected to be abnormal, the switch state of each gating module can be adjusted according to the preset strategy, and the detection can be detected during the adjustment. The communication status of the communication bus, and finally determine the abnormal load unit according to the detection results, so as to accurately screen out the faulty load unit.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种总线负载确定方法、装置、家电设备及存储介质。The present invention relates to the field of communication technology, in particular to a bus load determination method, device, home appliance and storage medium.
背景技术Background technique
随着科技的发展和进步,家用电器在普通家庭的日常生活中逐渐得到普及,并且家用电器普遍使用总线技术进行控制和连接。总线通信的优势在于通信链路简单,传输高效,任何一个负载都与总控以及其他负载直接连接。当有负载出现故障:如短路,除自身工作异常外,还可能影响总线上的通信和其他负载的运行。所以传统的总线结构的稳定性过于依赖系统的硬件可靠性,如有一个负载影响总线上的通信,则整个系统瘫痪。而现有技术中仅仅能通过总线的电平高低判断总线是否出现故障,但是并不能自动确定和定位是具体发生故障的负载。With the development and progress of science and technology, household appliances are gradually popularized in the daily life of ordinary families, and household appliances generally use bus technology for control and connection. The advantage of bus communication is that the communication link is simple, the transmission is efficient, and any load is directly connected to the master control and other loads. When a load fails: such as a short circuit, in addition to its own abnormal operation, it may also affect the communication on the bus and the operation of other loads. Therefore, the stability of the traditional bus structure depends too much on the hardware reliability of the system. If a load affects the communication on the bus, the entire system will be paralyzed. However, in the prior art, it is only possible to judge whether the bus is faulty through the level of the bus, but it cannot automatically determine and locate the specific faulty load.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.
发明内容Contents of the invention
本发明的主要目的在于提供一种总线负载确定方法、装置、家电设备及存储介质,旨在解决现有技术在负载出现故障时无法自动完成故障定位的技术问题。The main purpose of the present invention is to provide a bus load determination method, device, home appliance and storage medium, aiming to solve the technical problem that the prior art cannot automatically complete the fault location when the load fails.
为实现上述目的,本发明提供了一种总线负载确定方法,所述总线负载确定方法用于主控板,所述主控板与通讯总线连接,多个负载单元分别通过对应的选通单元与所述通讯总线连接;In order to achieve the above object, the present invention provides a bus load determination method, the bus load determination method is used for the main control board, the main control board is connected to the communication bus, and a plurality of load units are connected to each other through corresponding gating units respectively. The communication bus is connected;
所述总线负载确定方法包括:The method for determining the bus load includes:
在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态;When the communication status of the communication bus is abnormal, adjust the switching status of each gating unit according to a preset strategy;
检测所述通讯总线的通讯状态是否恢复正常;Detecting whether the communication state of the communication bus returns to normal;
根据检测结果从各负载单元中确定异常负载单元。Determine the abnormal load unit from each load unit according to the detection result.
可选地,所述在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态,包括:Optionally, when the communication status of the communication bus is abnormal, adjusting the switching status of each gating unit according to a preset strategy includes:
在所述通讯总线的通讯状态异常时,获取各负载单元的负载识别号;Obtaining the load identification number of each load unit when the communication state of the communication bus is abnormal;
根据所述负载识别号确定各选通单元的选通编号;determining the gate number of each gate unit according to the load identification number;
根据所述负载识别号和所述选通编号确定预设策略;determining a preset strategy according to the load identification number and the gating number;
按照所述预设策略调整各选通单元的开关状态。The switch state of each gating unit is adjusted according to the preset strategy.
可选地,所述根据所述负载识别号和所述选通编号确定预设策略,包括:Optionally, the determining a preset strategy according to the load identification number and the gating number includes:
根据所述负载识别号和所述选通编号确定各负载单元与各选通单元之间的对应关系;determining the correspondence between each load unit and each gating unit according to the load identification number and the gating number;
根据所述选通编号和所述对应关系确定各选通单元的开关顺序;determining the switching sequence of each gating unit according to the gating number and the corresponding relationship;
根据所述开关顺序确定预设策略,所述预设策略包括按照所述开关顺序依次将各正常负载单元对应的各选通单元的开关状态调整为连通状态的策略。A preset strategy is determined according to the switching sequence, and the preset strategy includes a strategy of sequentially adjusting the switching states of the gate units corresponding to the normal load units to a connected state according to the switching sequence.
可选地,所述根据所述开关顺序确定预设策略之前,还包括:Optionally, before determining the preset strategy according to the switching sequence, it further includes:
获取异常识别号记录;Obtain the exception identification number record;
根据所述异常识别号记录确定已被记录的异常负载识别号;determining the recorded abnormal load identification number according to the abnormal identification number record;
根据所述异常负载识别号和所述负载识别号确定正常负载识别号;determining a normal load identification number according to the abnormal load identification number and the load identification number;
根据所述正常负载识别号确定正常负载单元。A normal load unit is determined according to the normal load identification number.
可选地,所述根据检测结果从各负载单元中确定异常负载单元之后,还包括:Optionally, after determining the abnormal load unit from each load unit according to the detection result, it also includes:
记录所述异常负载单元的负载识别号为目标识别号;Recording the load identification number of the abnormal load unit as the target identification number;
根据所述目标识别号更新所述异常识别号记录,并将各选通单元的开关状态调整为断开状态,检测所述通讯总线的通讯状态。Updating the record of the abnormal identification number according to the target identification number, adjusting the switching state of each gating unit to an off state, and detecting the communication state of the communication bus.
可选地,所述根据所述目标识别号更新所述异常识别号记录,并将各选通单元的开关状态调整为断开状态之后,还包括:Optionally, after updating the record of the abnormal identification number according to the target identification number, and adjusting the switch state of each gating unit to an off state, the method further includes:
根据所述目标识别号和所述开关顺序确定所述异常负载单元的开关顺位;determining the switching sequence of the abnormal load unit according to the target identification number and the switching sequence;
根据所述开关顺位和更新后的异常识别号记录确定待恢复负载单元和待排查负载单元;Determine the load unit to be restored and the load unit to be checked according to the switch sequence and the updated record of the abnormal identification number;
将各待恢复负载单元对应的选通模块的开关状态调整为连通状态,并将各待排查负载单元对应的选通模块的开关状态调整为断开状态。Adjust the switch state of the gating module corresponding to each load unit to be restored to a connected state, and adjust the switch state of the gating module corresponding to each load unit to be checked to an off state.
可选地,所述在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态,包括:Optionally, when the communication status of the communication bus is abnormal, adjusting the switching status of each gating unit according to a preset strategy includes:
在所述通讯总线的通讯状态异常时,将各选通单元的开关状态调整为断开状态;When the communication state of the communication bus is abnormal, adjusting the switching state of each gating unit to an off state;
按照预设策略调整各选通单元的开关状态。Adjust the switching state of each gating unit according to a preset strategy.
此外,为实现上述目的,本发明还提出一种总线负载确定装置,所述总线负载确定装置包括:In addition, in order to achieve the above object, the present invention also proposes a bus load determination device, the bus load determination device includes:
选通控制模块,用于在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态;The gating control module is used to adjust the switch state of each gating unit according to a preset strategy when the communication state of the communication bus is abnormal;
通讯检测模块,用于检测所述通讯总线的通讯状态是否恢复正常;A communication detection module, used to detect whether the communication state of the communication bus returns to normal;
负载确定模块,用于根据检测结果从各负载单元中确定异常负载单元。The load determination module is used to determine the abnormal load unit from each load unit according to the detection result.
此外,为实现上述目的,本发明还提出一种家电设备,所述家电设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的总线负载确定程序,所述总线负载确定程序配置为实现如上文所述的总线负载确定方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a household electrical appliance, which includes: a memory, a processor, and a bus load determination program stored in the memory and operable on the processor, the The bus load determination program is configured to implement the steps of the bus load determination method as described above.
此外,为实现上述目的,本发明还提出一种存储介质,所述存储介质上存储有总线负载确定程序,所述总线负载确定程序被处理器执行时实现如上文所述的总线负载确定方法的步骤。In addition, in order to achieve the above object, the present invention also proposes a storage medium, on which a bus load determination program is stored, and when the bus load determination program is executed by a processor, the bus load determination method as described above is realized. step.
本发明所述总线负载确定方法用于主控板,所述主控板与通讯总线连接,多个负载单元分别通过对应的选通单元与所述通讯总线连接,使得在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态;检测所述通讯总线的通讯状态是否恢复正常;根据检测结果从各负载单元中确定异常负载单元。在本发明中通过在通讯总线与各个负载单元之间设置选通单元,使得在检测到通讯总线的通讯状态出现异常时,可以根据预设策略对各个选通模块的开关状态进行调整,并在进行调整时检测通讯总线的通讯状态,最后根据检测结果确定异常负载单元,从而准确的筛选出发生故障的负载单元。The bus load determination method of the present invention is used for the main control board, the main control board is connected to the communication bus, and a plurality of load units are respectively connected to the communication bus through corresponding gating units, so that the communication in the communication bus When the state is abnormal, adjust the switching state of each gating unit according to the preset strategy; detect whether the communication state of the communication bus returns to normal; determine the abnormal load unit from each load unit according to the detection result. In the present invention, a gating unit is set between the communication bus and each load unit, so that when the communication state of the communication bus is detected to be abnormal, the switch state of each gating module can be adjusted according to the preset strategy, and the Detect the communication status of the communication bus during adjustment, and finally determine the abnormal load unit according to the detection result, so as to accurately screen out the faulty load unit.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的家电设备的结构示意图;FIG. 1 is a schematic structural diagram of a home appliance in a hardware operating environment involved in the solution of an embodiment of the present invention;
图2为本发明总线负载确定方法一实施例中的流程示意图;Fig. 2 is a schematic flow chart of an embodiment of the bus load determination method of the present invention;
图3为本发明总线负载确定方法一实施例中的通讯总线系统示意图;3 is a schematic diagram of the communication bus system in an embodiment of the bus load determination method of the present invention;
图4为本发明总线负载确定方法一实施例中的通讯总线结构示意图;Fig. 4 is a schematic diagram of the structure of the communication bus in an embodiment of the method for determining the bus load of the present invention;
图5为本发明总线负载确定方法第二实施例的流程示意图;FIG. 5 is a schematic flow chart of a second embodiment of the bus load determination method of the present invention;
图6为本发明总线负载确定方法第三实施例的流程示意图;FIG. 6 is a schematic flowchart of a third embodiment of the bus load determination method of the present invention;
图7为本发明总线负载确定方法一实施例中的总线异常负载确定流程示意图;FIG. 7 is a schematic diagram of a flow chart of determining an abnormal bus load in an embodiment of a method for determining a bus load according to the present invention;
图8为本发明总线负载确定装置第一实施例的结构框图。FIG. 8 is a structural block diagram of the first embodiment of the bus load determination device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
参照图1,图1为本发明实施例方案涉及的硬件运行环境的家电设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of a home appliance in a hardware operating environment involved in the solution of an embodiment of the present invention.
如图1所示,该家电设备可以包括:处理器1001,例如中央处理器(CentralProcessing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,Wi-Fi)接口)。存储器1005可以是高速的随机存取存储器(RandomAccess Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the home appliance may include: a
本领域技术人员可以理解,图1中示出的结构并不构成对家电设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not constitute a limitation on the home appliance, and may include more or less components than shown in the illustration, or combine some components, or arrange different components.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及总线负载确定程序。As shown in FIG. 1 , the
在图1所示的家电设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本发明家电设备中的处理器1001、存储器1005可以设置在家电设备中,所述家电设备通过处理器1001调用存储器1005中存储的总线负载确定程序,并执行本发明实施例提供的总线负载确定方法。In the home appliance shown in Figure 1, the
本发明实施例提供了一种总线负载确定方法,参照图2,图2为本发明一种总线负载确定方法第一实施例的流程示意图。An embodiment of the present invention provides a method for determining a bus load. Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a first embodiment of a method for determining a bus load according to the present invention.
本实施例中,所述总线负载确定方法用于主控板,主控板和通讯总线,主控板与通讯总线的一端连接,通讯总线的另一端向远处延伸,各个负载单元分别连接到通讯总线上,形成并联结构,并且在每一个负载单元与通讯总线之间连接有对应的选通单元,即选通单元的一端连接负载单元,另一端连接到通讯总线上。In this embodiment, the bus load determination method is used for the main control board, the main control board and the communication bus, the main control board is connected to one end of the communication bus, the other end of the communication bus extends far away, and each load unit is connected to On the communication bus, a parallel structure is formed, and a corresponding gating unit is connected between each load unit and the communication bus, that is, one end of the gating unit is connected to the load unit, and the other end is connected to the communication bus.
参照图3,图3为通讯总线系统示意图,所述总线通信系统包括:所述总线负载确定方法用于主控板,所述主控板与通讯总线连接,多个负载单元分别通过对应的选通单元与所述通讯总线连接;Referring to Fig. 3, Fig. 3 is a schematic diagram of a communication bus system, the bus communication system includes: the method for determining the bus load is used for a main control board, the main control board is connected to the communication bus, and a plurality of load units are respectively selected by corresponding The communication unit is connected to the communication bus;
所述总线负载确定方法包括:The method for determining the bus load includes:
步骤S10:在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态。Step S10: When the communication status of the communication bus is abnormal, adjust the switching status of each gating unit according to a preset strategy.
需要说明的是,本实施例方法的执行主体可以是具有数据处理、网络通信以及程序运行功能的主控板,或者是其他能够实现相同或相似功能的装置或设备,此处以上述主控板为例进行说明。It should be noted that the execution subject of the method in this embodiment may be a main control board with functions of data processing, network communication, and program operation, or other devices or devices capable of realizing the same or similar functions. Here, the above-mentioned main control board is referred to as Example to illustrate.
应当理解的是,选通单元可以为控制负载单元与通讯总线的电路连通或者断开的单元,具体可以为任意类型的能实现此功能的开关或者选通单元,本实施例对此不加以限制。进一步的,选通单元基于接收到的外部信号控制对应的负载单元是否连接到通讯总线,上述的外部信号为主控板向各个选通单元发出的信号,在具体的连接中,各个选通单元可以分别有导线与主控板连接,从而可以不通过通讯总线接受主控板发出的信号,以免在故障的负载的故障信号抬高或者拉低时,通讯总线被占用从而无法直接通过通讯总线向各个选通单元发送外部信号。It should be understood that the gating unit may be a unit that controls the connection or disconnection of the circuit between the load unit and the communication bus, and specifically may be any type of switch or gating unit that can realize this function, which is not limited in this embodiment . Further, the gating unit controls whether the corresponding load unit is connected to the communication bus based on the received external signal. The above-mentioned external signal is a signal sent by the main control board to each gating unit. In a specific connection, each gating unit Wires can be connected to the main control board respectively, so that the signal sent by the main control board can not be received through the communication bus, so as to avoid that when the fault signal of the faulty load is raised or lowered, the communication bus is occupied and cannot be directly sent to the main control board through the communication bus. Each gating unit sends an external signal.
在具体实现中,预设策略为主控板控制各个选通模块的断开与连接从而控制在通讯总线上的各个负载单元的策略。In a specific implementation, the preset strategy controls the disconnection and connection of each gating module by the main control board, thereby controlling the strategy of each load unit on the communication bus.
需要说明的是,主控板根据预设策略向各选通单元发送控制信号;各选通模块根据所述控制信号确定对应的信号类型,并基于所述信号类型连通或者断开各负载单元与所述通信总线的连接。It should be noted that the main control board sends control signals to each gating unit according to the preset strategy; each gating module determines the corresponding signal type according to the control signal, and connects or disconnects each load unit and connection of the communication bus.
应当理解的是,主控板实时监测通讯状态是否为异常状态,当通讯状态为异常状态时再根据预设策略对各个选通模块的开关状态进行调整。It should be understood that the main control board monitors whether the communication status is abnormal in real time, and then adjusts the switching status of each gating module according to a preset strategy when the communication status is abnormal.
需要说明的是,各个选通单元的开关状态指的是各个选通单元的连通状态或断开状态,选通模块可以为接收主控板发出的控制信号并识别信号类型,再根据信号类型进行开关状态的调整的任意模块,可以为拥有信号处理能力并带有继电器或者开关的任意集成单元模块。It should be noted that the switching state of each gating unit refers to the connected state or disconnected state of each gating unit. The gating module can receive the control signal sent by the main control board and identify the signal type, and then perform Any module for adjusting the switch state can be any integrated unit module with signal processing capability and with relays or switches.
步骤S20:检测所述通讯总线的通讯状态是否恢复正常。Step S20: Detect whether the communication state of the communication bus returns to normal.
在具体实现中,在主控板发送控制信号之后,每当一个选通单元的开关状态发生变化时,再实时检测并记录通讯总线的通讯状态。从而确定在调整开关状态时通讯状态是否恢复正常。其中,通讯总线是否恢复正常依据电平判断。In a specific implementation, after the main control board sends the control signal, whenever the switch state of a gating unit changes, the communication state of the communication bus is detected and recorded in real time. Thereby it is determined whether the communication state returns to normal when the switch state is adjusted. Wherein, whether the communication bus returns to normal is judged according to the level.
应当理解的是,预设策略可以为依次将筛选后得到的正常负载单元对应的选通单元的开关状态进行调整的策略。当由于部分负载单元在出现故障向总线发送电信号,主控板发送控制信号,各个选通单元根据控制信号进行开关状态的调整。具体为将选通单元依次调整为连通状态,当一个选通模块调整为连通状态时,通讯总线的通讯状态为正常时,则判定该选通模块对应的负载单元为正常;当将一个模块调整为连通状态时,通讯总线的通讯状态由正常状态变成异常状态时,则判定该选通模块对应的负载单元为出现故障的负载单元。It should be understood that the preset strategy may be a strategy for sequentially adjusting the switching states of the gating units corresponding to the normal load units obtained after screening. When some load units fail to send electrical signals to the bus, the main control board sends control signals, and each gating unit adjusts the switch state according to the control signals. Specifically, the gating units are adjusted to the connected state in turn. When a gating module is adjusted to the connected state and the communication status of the communication bus is normal, it is determined that the load unit corresponding to the gating module is normal; when a module is adjusted When it is in the connected state, when the communication state of the communication bus changes from a normal state to an abnormal state, it is determined that the load unit corresponding to the gating module is a faulty load unit.
步骤S30:根据检测结果从各负载单元中确定异常负载单元。Step S30: Determine the abnormal load unit from each load unit according to the detection result.
在具体实现中,如图4所示为通讯总线结构示意图,通讯总线上并联有主控板,以及附有编号1、2、3、4的四个负载单元。其中,通讯总线与4个负载单元之间的位置处对应的设置有选通模块A、B、C、D。主控板根据预设策略确定需要进行开关状态调整的选通模块A、B、C,首先连通选通模块A,即连接了负载单元1与通讯总线之间的连接,若此时通讯总线的通讯状态未恢复正常,则判定负载单元1为异常负载单元;若此时通讯总线的通讯状态恢复正常,则保持选通模块A连通,继续连通选通模块B,即此时连接了负载单元2与通讯总线之间的连接,若此时通讯总线的通讯状态未恢复正常,则判定负载单元2为异常负载单元。并依次类推,当执行将某一个选通模块连通时,通讯总线的通讯状态由正常状态变为异常状态时,则该选通模块对应的负载单元为异常负载单元。In the specific implementation, as shown in Fig. 4 is a schematic diagram of the structure of the communication bus, the main control board is connected in parallel on the communication bus, and four load units numbered 1, 2, 3, 4 are attached. Wherein, gating modules A, B, C, and D are correspondingly arranged at positions between the communication bus and the four load units. The main control board determines the gating modules A, B, and C that need to adjust the switch state according to the preset strategy, and first connects the gating module A, that is, connects the connection between the
本实施例通过在通讯总线与各个负载单元之间设置选通单元,使得在检测到通讯总线的通讯状态出现异常时,可以根据预设策略对各个选通模块的开关状态进行调整,并在进行调整时检测通讯总线的通讯状态,最后根据检测结果确定异常负载单元,从而准确的筛选出发生故障的负载单元。In this embodiment, a gating unit is set between the communication bus and each load unit, so that when an abnormality is detected in the communication state of the communication bus, the switch state of each gating module can be adjusted according to a preset strategy, and the During the adjustment, the communication state of the communication bus is detected, and finally the abnormal load unit is determined according to the detection result, so as to accurately screen out the faulty load unit.
参考图5,图5为本发明一种总线负载确定方法第二实施例的流程示意图。Referring to FIG. 5 , FIG. 5 is a schematic flowchart of a second embodiment of a method for determining a bus load according to the present invention.
基于上述第一实施例,本实施例总线负载确定方法在所述步骤S10包括:Based on the above-mentioned first embodiment, the bus load determination method of this embodiment includes in the step S10:
步骤S101:在所述通讯总线的通讯状态异常时,获取各负载单元的负载识别号。Step S101: Obtain the load identification number of each load unit when the communication status of the communication bus is abnormal.
需要说明的是,负载识别号指的是对于连接到通讯总线上的各个负载单元对应的硬件识别号,可以为各个负载单元本身的硬件识别号,也可以为主控板上存储的预先为各个负载单元赋予的编号。其中,每一个负载单元对应设定的负载识别号都不相同,所以负载识别号可以区别各个负载单元的不同。It should be noted that the load identification number refers to the hardware identification number corresponding to each load unit connected to the communication bus, which can be the hardware identification number of each load unit itself, or the pre-stored on the main control board The number assigned to the load unit. Wherein, the load identification number corresponding to each load unit is different, so the load identification number can distinguish the difference of each load unit.
步骤S102:根据所述负载识别号确定各选通单元的选通编号。Step S102: Determine the gate number of each gate unit according to the load identification number.
应当理解的是,当得到了负载识别号,再基于负载识别号为各个负载单元对应的选通单元赋予编号,即得到了选通编号。其中,各个选通模块对应的选通编号也各不相同,各个选通模块对应了唯一且与其他不同的选通编号。It should be understood that when the load identification number is obtained, the gating unit corresponding to each load unit is given a number based on the load identification number, that is, the gating number is obtained. Wherein, the gate number corresponding to each gate module is also different, and each gate module corresponds to a unique gate number which is different from other gate numbers.
步骤S103:根据所述负载识别号和所述选通编号确定预设策略。Step S103: Determine a preset policy according to the load identification number and the gating number.
在具体实现中,当确定了负载识别号和选通模块的选通编号之后,确定各个负载单元和各个选通单元之间的对应关系。再根据选通编号和对应关系确定开关顺序。其中,开关顺序即将所有的负载单元通过固定的顺序进行编号和排序,具体的开关顺序的排序规则可以为从通讯总线的主控板已断开时,向另一端由近至远开始排序各个负载单元的顺序,或者预先设置的其他编号顺序,本实施例对此不加以限制。In a specific implementation, after the load identification number and the gating number of the gating module are determined, the corresponding relationship between each load unit and each gating unit is determined. Then determine the switching sequence according to the gate number and the corresponding relationship. Among them, the switching sequence means that all load units are numbered and sorted in a fixed sequence. The specific switching sequence sorting rule can be that when the main control board of the slave communication bus is disconnected, the loads are sorted from near to far to the other end. The order of the units, or other preset numbering orders, is not limited in this embodiment.
需要说明的是,预设策略可以为按照开关顺序依次将各个负载单元中的正常负载单元对应的选通单元的开关状态调整为连通状态。即首先将顺序为1的正常负载单元对应的选通模块调整为连通状态,再将顺序为2的正常负载单元对应的选通模块调整为连通状态,以此类推。It should be noted that the preset strategy may be to sequentially adjust the switching state of the gate unit corresponding to the normal load unit among the load units to the connected state according to the switching sequence. That is, firstly adjust the gating module corresponding to the normal load unit with
应当理解的是,在根据开关顺序设定预设策略之前,还获取异常识别号记录,然后确定已经记载在异常负载识别号中的异常负载识别号。其中,异常识别号记录为预先存储的记录了已经检测出的异常负载单元对应的负载识别号的记录文件,所有已经被异常识别号记录的负载识别号作为异常负载识别号。然后再将不是异常负载识别号的负载识别号,作为正常负载识别号,最后将正常负载识别号对应的负载单元作为正常负载单元。通过确定正常负载单元,并将预设策略设定为按照开关顺序依次将各个正常负载单元对应的选通模块调整为连通状态,使得可以当确定了一个异常负载单元之后进行记录。然后再次进行选通单元的开关状态调整,只连通正常负载单元,不连通异常负载单元,使得可以进行多轮的负载单元的故障排查,从而确定在通讯总线上的多个出现故障的负载单元。由于根据检测结果会确定异常负载单元,所以在下一轮的故障排查中只连通正常负载单元对应的选通模块,可以再一次根据检测结果确定是否存在其他的异常负载单元,直到将所有的负载单元进行排查。It should be understood that before setting the preset strategy according to the switching sequence, the record of the abnormal identification number is also obtained, and then the abnormal load identification number recorded in the abnormal load identification number is determined. Wherein, the abnormal identification number record is a pre-stored record file that records the load identification numbers corresponding to the detected abnormal load units, and all the load identification numbers that have been recorded by the abnormal identification numbers are used as abnormal load identification numbers. Then use the load identification number that is not the abnormal load identification number as the normal load identification number, and finally use the load unit corresponding to the normal load identification number as the normal load unit. By determining the normal load unit and setting the preset strategy to sequentially adjust the gating modules corresponding to each normal load unit to the connected state according to the switching sequence, it is possible to record after an abnormal load unit is determined. Then adjust the switch state of the gating unit again, only connecting the normal load unit, not connecting the abnormal load unit, so that multiple rounds of fault checking of the load unit can be carried out, thereby determining multiple faulty load units on the communication bus. Since the abnormal load unit will be determined according to the detection result, only the gating module corresponding to the normal load unit will be connected in the next round of troubleshooting, and it can be determined whether there are other abnormal load units according to the detection result again until all load units Do an investigation.
步骤S104:按照所述预设策略调整各选通单元的开关状态。Step S104: Adjust the switch state of each gating unit according to the preset strategy.
在具体实现中,当确定了预设策略之后,即通过主控板按照预设策略向各个选通单元发送控制信号,使得各个选通模块可以根据控制信号调整开关状态,然后实时检测通讯总线的通讯状态,得到检测结果,最后根据检测结果确定异常负载单元。在确定了异常负载单元之后,再记录异常负载单元的负载识别号作为目标识别号,再将目标识别号加入异常识别号记录,实现了异常识别号记录的实时更新,也就是每当排查到新的异常负载单元即更新异常识别号记录,使得正常负载单元也得到更新,下一次的按照预设策略调整选通模块的开关策略不会确定相同的异常负载单元。In the specific implementation, after the preset strategy is determined, the main control board sends control signals to each gating unit according to the preset strategy, so that each gating module can adjust the switch state according to the control signal, and then detect the status of the communication bus in real time. The communication status is obtained, and the detection result is obtained, and finally the abnormal load unit is determined according to the detection result. After determining the abnormal load unit, record the load identification number of the abnormal load unit as the target identification number, and then add the target identification number to the record of the abnormal identification number to realize the real-time update of the abnormal identification number record, that is, whenever a new The abnormal load unit is to update the record of the abnormal identification number, so that the normal load unit is also updated, and the next time the switching strategy of the gating module is adjusted according to the preset strategy, the same abnormal load unit will not be determined.
需要说明的是,当更新了异常识别号记录之后,再将断开所有选通单元,即断开负载单元与通讯总线的连接。然后可以继续执行检测总线的通讯状态,实现了不会排查到相同的异常负载单元。It should be noted that after the record of the abnormal identification number is updated, all the gating units will be disconnected, that is, the connection between the load unit and the communication bus will be disconnected. Then you can continue to detect the communication status of the bus, so that the same abnormal load unit will not be detected.
应当理解的是,在通讯总线上连接的负载单元均为可替换以及可拆卸的负载单元,所以当异常负载单元被替换时,将替换连接到通讯总线的替换负载单元先作为正常负载单元,然后执行S10开始的步骤,使得可以在替换新的负载单元之后可以自动检测替换负载单元是否出现故障。It should be understood that the load units connected to the communication bus are all replaceable and detachable load units, so when the abnormal load unit is replaced, the replacement load unit connected to the communication bus is firstly used as a normal load unit, and then Executing the steps beginning with S10 makes it possible to automatically detect whether the replacement load unit is faulty after the new load unit is replaced.
在具体实施中,在将所有的选通单元的开关状态调整为断开状态之后,再确定异常负载单元处于开关顺序中的具体顺位,例如:开关顺位50个负载单元中的第48个。然后再确定待恢复负载单元和待排查负载单元,具体的,当开关顺位为开关顺序中的最后一位时,即异常负载单元为通讯总线上按照开关顺序计算的最后一个负载单元时,将所有的正常负载单元作为待恢复负载单元,所有被记录的异常负载单元作为待排查负载单元。当确定了待恢复负载单元和待排查负载单元之后,再将所有的待恢复负载单元对应的选通模块调整为连通状态,所有的待排查负载单元对应的选通模块调整为断开状态,实现了将所有的异常负载单元排除,并恢复所有没有出现故障的负载单元与通讯总线的连接并正常运作,使得出现故障的负载单元并不会影响正常使用的负载单元的正常运作。In a specific implementation, after adjusting the switching states of all gating units to the off state, determine the specific order of the abnormal load unit in the switching sequence, for example: the 48th load unit in the switching order of 50 . Then determine the load unit to be restored and the load unit to be checked. Specifically, when the switch order is the last one in the switch sequence, that is, when the abnormal load unit is the last load unit calculated according to the switch sequence on the communication bus, the All normal load units are regarded as load units to be restored, and all recorded abnormal load units are regarded as load units to be checked. After determining the load unit to be restored and the load unit to be checked, adjust the gating modules corresponding to all the load units to be recovered to the connected state, and adjust the gating modules corresponding to all the load units to be checked to the disconnected state to realize In order to eliminate all abnormal load units, and restore all load units that have not failed to connect to the communication bus and operate normally, so that the load units that have failed will not affect the normal operation of the load units that are normally used.
本实施例通过负载单元的负载识别号和选通模块的选通编号确定预设策略,从而准确的控制各个选通单元的开关状态,使得主控板可以基于负载识别号和选通编号准确的发出控制信号控制各个选通模块,使得排查出现故障的负载单元更加准确和快捷。In this embodiment, the preset strategy is determined by the load identification number of the load unit and the gate number of the gate module, so as to accurately control the switch state of each gate unit, so that the main control board can accurately control the load based on the load identification number and the gate number. The control signal is sent to control each gating module, so that the troubleshooting of the faulty load unit is more accurate and faster.
参考图6,图6为本发明一种总线负载确定方法第三实施例的流程示意图。Referring to FIG. 6 , FIG. 6 is a schematic flowchart of a third embodiment of a method for determining a bus load according to the present invention.
基于上述第一实施例,本实施例总线负载确定方法在所述步骤S10包括:Based on the above-mentioned first embodiment, the bus load determination method of this embodiment includes in the step S10:
步骤S11:在所述通讯总线的通讯状态异常时,将各选通单元的开关状态调整为断开状态。Step S11: When the communication status of the communication bus is abnormal, adjust the switch status of each gating unit to an off status.
需要说明的是,在检测到通讯总线为异常状态时,首先断开各个选通单元。并且在通讯总线的通讯状态出现异常时首先断开所有负载单元与通讯总线的连接,防止发生故障的负载单元对通讯总线和其他负载单元产生影响对整个通讯总线系统造成更大的损伤。It should be noted that, when it is detected that the communication bus is in an abnormal state, each gate unit is firstly disconnected. And when the communication status of the communication bus is abnormal, all the load units are first disconnected from the communication bus to prevent the failed load unit from affecting the communication bus and other load units and causing greater damage to the entire communication bus system.
步骤S12:按照预设策略调整各选通单元的开关状态。Step S12: Adjust the switching state of each gating unit according to a preset strategy.
应当理解的是,各个选通单元的开关状态调整为断开状态之后,再按照预设策略调整各个选通单元的开关状态,使得完成异常负载单元的排查,如图7所示为在本实施例的方案的基础上得到的总线异常负载确定流程,首先所有的负载单元正常工作,当发现通讯状态出现异常时,先断开所有选通模块,然后逐个连接正常负载单元并判断通讯是否恢复正常,当未恢复正常时记录异常负载识别号,并再次断开所有的选通模块,开启下一轮的逐个连接并排查故障的负载单元。当恢复正常后确定恢复正常的正常负载单元是否为最后顺位,如果是,则完成故障排查。It should be understood that after the switch state of each gating unit is adjusted to the off state, the switch state of each gating unit is adjusted according to the preset strategy, so that the investigation of the abnormal load unit is completed, as shown in FIG. 7 in this implementation The process of determining the bus abnormal load based on the scheme of the example, firstly all the load units work normally, when the communication status is found to be abnormal, first disconnect all the gating modules, then connect the normal load units one by one and judge whether the communication is back to normal , record the abnormal load identification number when it does not return to normal, and disconnect all the gating modules again, start the next round of connection one by one and check the faulty load unit. After returning to normal, determine whether the normal load unit that returns to normal is the last priority, and if so, complete the troubleshooting.
本实施例通过在发现通讯总线的通讯状态异常时先将各个选通单元的开关状态调整为断开状态,防止发生故障的负载单元对通讯总线和其他负载单元产生影响对整个通讯总线系统造成更大的损伤。In this embodiment, when the communication state of the communication bus is found to be abnormal, the switch state of each gating unit is first adjusted to the disconnected state, so as to prevent the faulty load unit from affecting the communication bus and other load units and causing further damage to the entire communication bus system. big damage.
此外,本发明实施例还提出一种存储介质,所述存储介质上存储有总线负载确定程序,所述总线负载确定程序被处理器执行时实现如上文所述的总线负载确定方法的步骤。In addition, an embodiment of the present invention also proposes a storage medium, on which a bus load determination program is stored, and when the bus load determination program is executed by a processor, the steps of the method for determining the bus load as described above are implemented.
由于本存储介质采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不一一赘述。Since the storage medium adopts all the technical solutions of all the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
参照图8,图8为本发明总线负载确定装置第一实施例的结构框图。Referring to FIG. 8 , FIG. 8 is a structural block diagram of a first embodiment of an apparatus for determining a bus load according to the present invention.
如图8所示,本发明实施例提出的总线负载确定装置包括:As shown in FIG. 8, the device for determining the bus load proposed by the embodiment of the present invention includes:
选通控制模块10,用于在所述通讯总线的通讯状态异常时,按照预设策略调整各选通单元的开关状态。The
需要说明的是,本实施例方法的执行主体可以是具有数据处理、网络通信以及程序运行功能的主控板,或者是其他能够实现相同或相似功能的装置或设备,此处以上述主控板为例进行说明。It should be noted that the execution subject of the method in this embodiment may be a main control board with functions of data processing, network communication, and program operation, or other devices or devices capable of realizing the same or similar functions. Here, the above-mentioned main control board is referred to as Example to illustrate.
应当理解的是,选通单元可以为控制负载单元与通讯总线的电路连通或者断开的单元,具体可以为任意类型的能实现此功能的开关或者选通单元,本实施例对此不加以限制。进一步的,选通单元基于接收到的外部信号控制对应的负载单元是否连接到通讯总线,上述的外部信号为主控板向各个选通单元发出的信号,在具体的连接中,各个选通单元可以分别有导线与主控板连接,从而可以不通过通讯总线接受主控板发出的信号,以免在故障的负载的故障信号抬高或者拉低时,通讯总线被占用从而无法直接通过通讯总线向各个选通单元发送外部信号。It should be understood that the gating unit may be a unit that controls the connection or disconnection of the circuit between the load unit and the communication bus, and specifically may be any type of switch or gating unit that can realize this function, which is not limited in this embodiment . Further, the gating unit controls whether the corresponding load unit is connected to the communication bus based on the received external signal. The above-mentioned external signal is a signal sent by the main control board to each gating unit. In a specific connection, each gating unit Wires can be connected to the main control board respectively, so that the signal sent by the main control board can not be received through the communication bus, so as to avoid that when the fault signal of the faulty load is raised or lowered, the communication bus is occupied and cannot be directly sent to the main control board through the communication bus. Each gating unit sends an external signal.
在具体实现中,预设策略为主控板控制各个选通模块的断开与连接从而控制在通讯总线上的各个负载单元的策略。In a specific implementation, the preset strategy controls the disconnection and connection of each gating module by the main control board, thereby controlling the strategy of each load unit on the communication bus.
需要说明的是,主控板根据预设策略向各选通单元发送控制信号;各选通模块根据所述控制信号确定对应的信号类型,并基于所述信号类型连通或者断开各负载单元与所述通信总线的连接。It should be noted that the main control board sends control signals to each gating unit according to the preset strategy; each gating module determines the corresponding signal type according to the control signal, and connects or disconnects each load unit and connection of the communication bus.
应当理解的是,主控板实时监测通讯状态是否为异常状态,当通讯状态为异常状态时再根据预设策略对各个选通模块的开关状态进行调整。It should be understood that the main control board monitors whether the communication status is abnormal in real time, and then adjusts the switching status of each gating module according to a preset strategy when the communication status is abnormal.
需要说明的是,各个选通单元的开关状态指的是各个选通单元的连通状态或断开状态,选通模块可以为接收主控板发出的控制信号并识别信号类型,再根据信号类型进行开关状态的调整的任意模块,可以为拥有信号处理能力并带有继电器或者开关的任意集成单元模块。It should be noted that the switching state of each gating unit refers to the connected state or disconnected state of each gating unit. The gating module can receive the control signal sent by the main control board and identify the signal type, and then perform Any module for adjusting the switch state can be any integrated unit module with signal processing capability and with relays or switches.
需要说明的是,负载识别号指的是对于连接到通讯总线上的各个负载单元对应的硬件识别号,可以为各个负载单元本身的硬件识别号,也可以为主控板上存储的预先为各个负载单元赋予的编号。其中,每一个负载单元对应设定的负载识别号都不相同,所以负载识别号可以区别各个负载单元的不同。It should be noted that the load identification number refers to the hardware identification number corresponding to each load unit connected to the communication bus, which can be the hardware identification number of each load unit itself, or the pre-stored on the main control board The number assigned to the load unit. Wherein, the load identification number corresponding to each load unit is different, so the load identification number can distinguish the difference of each load unit.
应当理解的是,当得到了负载识别号,再基于负载识别号为各个负载单元对应的选通单元赋予编号,即得到了选通编号。其中,各个选通模块对应的选通编号也各不相同,各个选通模块对应了唯一且与其他不同的选通编号。It should be understood that when the load identification number is obtained, the gating unit corresponding to each load unit is given a number based on the load identification number, that is, the gating number is obtained. Wherein, the gate number corresponding to each gate module is also different, and each gate module corresponds to a unique gate number which is different from other gate numbers.
在具体实现中,当确定了负载识别号和选通模块的选通编号之后,确定各个负载单元和各个选通单元之间的对应关系。再根据选通编号和对应关系确定开关顺序。其中,开关顺序即将所有的负载单元通过固定的顺序进行编号和排序,具体的开关顺序的排序规则可以为从通讯总线的主控板已断开时,向另一端由近至远开始排序各个负载单元的顺序,或者预先设置的其他编号顺序,本实施例对此不加以限制。In a specific implementation, after the load identification number and the gating number of the gating module are determined, the corresponding relationship between each load unit and each gating unit is determined. Then determine the switching sequence according to the gate number and the corresponding relationship. Among them, the switching sequence means that all load units are numbered and sorted in a fixed sequence. The specific switching sequence sorting rule can be that when the main control board of the slave communication bus is disconnected, the loads are sorted from near to far to the other end. The order of the units, or other preset numbering orders, is not limited in this embodiment.
需要说明的是,预设策略可以为按照开关顺序依次将各个负载单元中的正常负载单元对应的选通单元的开关状态调整为连通状态。即首先将顺序为1的正常负载单元对应的选通模块调整为连通状态,再将顺序为2的正常负载单元对应的选通模块调整为连通状态,以此类推。It should be noted that the preset strategy may be to sequentially adjust the switching state of the gate unit corresponding to the normal load unit among the load units to the connected state according to the switching sequence. That is, firstly adjust the gating module corresponding to the normal load unit with
应当理解的是,在根据开关顺序设定预设策略之前,还获取异常识别号记录,然后确定已经记载在异常负载识别号中的异常负载识别号。其中,异常识别号记录为预先存储的记录了已经检测出的异常负载单元对应的负载识别号的记录文件,所有已经被异常识别号记录的负载识别号作为异常负载识别号。然后再将不是异常负载识别号的负载识别号,作为正常负载识别号,最后将正常负载识别号对应的负载单元作为正常负载单元。通过确定正常负载单元,并将预设策略设定为按照开关顺序依次将各个正常负载单元对应的选通模块调整为连通状态,使得可以当确定了一个异常负载单元之后进行记录。然后再次进行选通单元的开关状态调整,只连通正常负载单元,不连通异常负载单元,使得可以进行多轮的负载单元的故障排查,从而确定在通讯总线上的多个出现故障的负载单元。由于根据检测结果会确定异常负载单元,所以在下一轮的故障排查中只连通正常负载单元对应的选通模块,可以再一次根据检测结果确定是否存在其他的异常负载单元,直到将所有的负载单元进行排查。It should be understood that before setting the preset strategy according to the switching sequence, the record of the abnormal identification number is also obtained, and then the abnormal load identification number recorded in the abnormal load identification number is determined. Wherein, the abnormal identification number record is a pre-stored record file that records the load identification numbers corresponding to the detected abnormal load units, and all the load identification numbers that have been recorded by the abnormal identification numbers are used as abnormal load identification numbers. Then use the load identification number that is not the abnormal load identification number as the normal load identification number, and finally use the load unit corresponding to the normal load identification number as the normal load unit. By determining the normal load unit and setting the preset strategy to sequentially adjust the gating modules corresponding to each normal load unit to the connected state according to the switching sequence, it is possible to record after an abnormal load unit is determined. Then adjust the switch state of the gating unit again, only connecting the normal load unit, not connecting the abnormal load unit, so that multiple rounds of fault checking of the load unit can be carried out, thereby determining multiple faulty load units on the communication bus. Since the abnormal load unit will be determined according to the detection result, only the gating module corresponding to the normal load unit will be connected in the next round of troubleshooting, and it can be determined whether there are other abnormal load units according to the detection result again until all load units Do an investigation.
在具体实现中,当确定了预设策略之后,即通过主控板按照预设策略向各个选通单元发送控制信号,使得各个选通模块可以根据控制信号调整开关状态,然后实时检测通讯总线的通讯状态,得到检测结果,最后根据检测结果确定异常负载单元。在确定了异常负载单元之后,再记录异常负载单元的负载识别号作为目标识别号,再将目标识别号加入异常识别号记录,实现了异常识别号记录的实时更新,也就是每当排查到新的异常负载单元即更新异常识别号记录,使得正常负载单元也得到更新,下一次的按照预设策略调整选通模块的开关策略不会确定相同的异常负载单元。In the specific implementation, after the preset strategy is determined, the main control board sends control signals to each gating unit according to the preset strategy, so that each gating module can adjust the switch state according to the control signal, and then detect the status of the communication bus in real time. The communication status is obtained, and the detection result is obtained, and finally the abnormal load unit is determined according to the detection result. After determining the abnormal load unit, record the load identification number of the abnormal load unit as the target identification number, and then add the target identification number to the record of the abnormal identification number to realize the real-time update of the abnormal identification number record, that is, whenever a new The abnormal load unit is to update the record of the abnormal identification number, so that the normal load unit is also updated, and the next time the switching strategy of the gating module is adjusted according to the preset strategy, the same abnormal load unit will not be determined.
需要说明的是,当更新了异常识别号记录之后,再将断开所有选通单元,即断开负载单元与通讯总线的连接。然后可以继续执行检测总线的通讯状态,实现了不会排查到相同的异常负载单元。It should be noted that after the record of the abnormal identification number is updated, all the gating units will be disconnected, that is, the connection between the load unit and the communication bus will be disconnected. Then you can continue to detect the communication status of the bus, so that the same abnormal load unit will not be detected.
应当理解的是,在通讯总线上连接的负载单元均为可替换以及可拆卸的负载单元,所以当异常负载单元被替换时,将替换连接到通讯总线的替换负载单元先作为正常负载单元,然后执行S10开始的步骤,使得可以在替换新的负载单元之后可以自动检测替换负载单元是否出现故障。It should be understood that the load units connected to the communication bus are all replaceable and detachable load units, so when the abnormal load unit is replaced, the replacement load unit connected to the communication bus is firstly used as a normal load unit, and then Executing the steps beginning with S10 makes it possible to automatically detect whether the replacement load unit is faulty after the new load unit is replaced.
在具体实施中,在将所有的选通单元的开关状态调整为断开状态之后,再确定异常负载单元处于开关顺序中的具体顺位,例如:开关顺位50个负载单元中的第48个。然后再确定待恢复负载单元和待排查负载单元,具体的,当开关顺位为开关顺序中的最后一位时,即异常负载单元为通讯总线上按照开关顺序计算的最后一个负载单元时,将所有的正常负载单元作为待恢复负载单元,所有被记录的异常负载单元作为待排查负载单元。当确定了待恢复负载单元和待排查负载单元之后,再将所有的待恢复负载单元对应的选通模块调整为连通状态,所有的待排查负载单元对应的选通模块调整为断开状态,实现了将所有的异常负载单元排除,并恢复所有没有出现故障的负载单元与通讯总线的连接并正常运作,使得出现故障的负载单元并不会影响正常使用的负载单元的正常运作。In a specific implementation, after adjusting the switching states of all gating units to the off state, determine the specific order of the abnormal load unit in the switching sequence, for example: the 48th load unit in the switching order of 50 . Then determine the load unit to be restored and the load unit to be checked. Specifically, when the switch order is the last one in the switch sequence, that is, when the abnormal load unit is the last load unit calculated according to the switch sequence on the communication bus, the All normal load units are regarded as load units to be restored, and all recorded abnormal load units are regarded as load units to be checked. After determining the load unit to be restored and the load unit to be checked, adjust the gating modules corresponding to all the load units to be recovered to the connected state, and adjust the gating modules corresponding to all the load units to be checked to the disconnected state to realize In order to eliminate all abnormal load units, and restore all load units that have not failed to connect to the communication bus and operate normally, so that the load units that have failed will not affect the normal operation of the load units that are normally used.
需要说明的是,在检测到通讯总线为异常状态时,首先断开各个选通单元。并且在通讯总线的通讯状态出现异常时首先断开所有负载单元与通讯总线的连接,防止发生故障的负载单元对通讯总线和其他负载单元产生影响对整个通讯总线系统造成更大的损伤。It should be noted that, when it is detected that the communication bus is in an abnormal state, each gate unit is firstly disconnected. And when the communication status of the communication bus is abnormal, all the load units are first disconnected from the communication bus to prevent the failed load unit from affecting the communication bus and other load units and causing greater damage to the entire communication bus system.
应当理解的是,各个选通单元的开关状态调整为断开状态之后,再按照预设策略调整各个选通单元的开关状态,使得完成异常负载单元的排查,如图7所示为在本实施例的方案的基础上得到的总线异常负载确定流程,首先所有的负载单元正常工作,当发现通讯状态出现异常时,先断开所有选通模块,然后逐个连接正常负载单元并判断通讯是否恢复正常,当未恢复正常时记录异常负载识别号,并再次断开所有的选通模块,开启下一轮的逐个连接并排查故障的负载单元。当恢复正常后确定恢复正常的正常负载单元是否为最后顺位,如果是,则完成故障排查。It should be understood that after the switch state of each gating unit is adjusted to the off state, the switch state of each gating unit is adjusted according to the preset strategy, so that the investigation of the abnormal load unit is completed, as shown in FIG. 7 in this implementation The process of determining the bus abnormal load based on the scheme of the example, firstly all the load units work normally, when the communication status is found to be abnormal, first disconnect all the gating modules, then connect the normal load units one by one and judge whether the communication is back to normal , record the abnormal load identification number when it does not return to normal, and disconnect all the gating modules again, start the next round of connection one by one and check the faulty load unit. After returning to normal, determine whether the normal load unit that returns to normal is the last priority, and if so, complete the troubleshooting.
通讯检测模块20,用于检测所述通讯总线的通讯状态是否恢复正常。The
在具体实现中,在主控板发送控制信号之后,每当一个选通单元的开关状态发生变化时,再实时检测并记录通讯总线的通讯状态。从而确定在调整开关状态时通讯状态是否恢复正常。其中,通讯总线是否恢复正常依据电平判断。In a specific implementation, after the main control board sends the control signal, whenever the switch state of a gating unit changes, the communication state of the communication bus is detected and recorded in real time. Thereby it is determined whether the communication state returns to normal when the switch state is adjusted. Wherein, whether the communication bus returns to normal is judged according to the level.
应当理解的是,预设策略可以为依次将筛选后得到的正常负载单元对应的选通单元的开关状态进行调整的策略。当由于部分负载单元在出现故障向总线发送电信号,主控板发送控制信号,各个选通单元根据控制信号进行开关状态的调整。具体为将选通单元依次调整为连通状态,当一个选通模块调整为连通状态时,通讯总线的通讯状态为正常时,则判定该选通模块对应的负载单元为正常;当将一个模块调整为连通状态时,通讯总线的通讯状态由正常状态变成异常状态时,则判定该选通模块对应的负载单元为出现故障的负载单元。It should be understood that the preset strategy may be a strategy for sequentially adjusting the switching states of the gating units corresponding to the normal load units obtained after screening. When some load units fail to send electrical signals to the bus, the main control board sends control signals, and each gating unit adjusts the switch state according to the control signals. Specifically, the gating units are adjusted to the connected state in turn. When a gating module is adjusted to the connected state and the communication status of the communication bus is normal, it is determined that the load unit corresponding to the gating module is normal; when a module is adjusted When it is in the connected state, when the communication state of the communication bus changes from a normal state to an abnormal state, it is determined that the load unit corresponding to the gating module is a faulty load unit.
负载确定模块30,用于根据检测结果从各负载单元中确定异常负载单元。The
在具体实现中,如图4所示为通讯总线结构示意图,通讯总线上并联有主控板,以及附有编号1、2、3、4的四个负载单元。其中,通讯总线与4个负载单元之间的位置处对应的设置有选通模块A、B、C、D。主控板根据预设策略确定需要进行开关状态调整的选通模块A、B、C,首先连通选通模块A,即连接了负载单元1与通讯总线之间的连接,若此时通讯总线的通讯状态未恢复正常,则判定负载单元1为异常负载单元;若此时通讯总线的通讯状态恢复正常,则保持选通模块A连通,继续连通选通模块B,即此时连接了负载单元2与通讯总线之间的连接,若此时通讯总线的通讯状态未恢复正常,则判定负载单元2为异常负载单元。并依次类推,当执行将某一个选通模块连通时,通讯总线的通讯状态由正常状态变为异常状态时,则该选通模块对应的负载单元为异常负载单元。In the specific implementation, as shown in Fig. 4 is a schematic diagram of the structure of the communication bus, the main control board is connected in parallel on the communication bus, and four load units numbered 1, 2, 3, 4 are attached. Wherein, gating modules A, B, C, and D are correspondingly arranged at positions between the communication bus and the four load units. The main control board determines the gating modules A, B, and C that need to adjust the switch state according to the preset strategy, and first connects the gating module A, that is, connects the connection between the
应当理解的是,以上仅为举例说明,对本发明的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本发明对此不做限制。It should be understood that the above is only an example, and does not constitute any limitation to the technical solution of the present invention. In specific applications, those skilled in the art can make settings according to needs, and the present invention is not limited thereto.
本实施例通过通过在通讯总线与各个负载单元之间设置选通单元,使得在检测到通讯总线的通讯状态出现异常时,可以根据预设策略对各个选通模块的开关状态进行调整,并在进行调整时检测通讯总线的通讯状态,最后根据检测结果确定异常负载单元,从而准确的筛选出发生故障的负载单元。In this embodiment, by setting a gating unit between the communication bus and each load unit, when an abnormality is detected in the communication state of the communication bus, the switch state of each gating module can be adjusted according to a preset strategy, and the Detect the communication status of the communication bus during adjustment, and finally determine the abnormal load unit according to the detection result, so as to accurately screen out the faulty load unit.
由于本装置采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不一一赘述。Since the device adopts all the technical solutions of the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本发明的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。It should be noted that the workflow described above is only illustrative and does not limit the protection scope of the present invention. In practical applications, those skilled in the art can select part or all of them to implement according to actual needs. The purpose of the scheme of this embodiment is not limited here.
另外,未在本实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的总线负载确定方法,此处不再赘述。In addition, for technical details not described in detail in this embodiment, reference may be made to the method for determining a bus load provided in any embodiment of the present invention, which will not be repeated here.
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。Furthermore, it should be noted that in this document, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, but also other elements not expressly listed, or elements inherent in such a process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as a read-only memory (Read Only Memory) , ROM)/RAM, magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device, etc.) execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211236843.2A CN115622871A (en) | 2022-10-10 | 2022-10-10 | Bus load determination method, device, home appliance and storage medium |
PCT/CN2023/117091 WO2024078205A1 (en) | 2022-10-10 | 2023-09-05 | Bus load determination method and apparatus, household appliance device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211236843.2A CN115622871A (en) | 2022-10-10 | 2022-10-10 | Bus load determination method, device, home appliance and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115622871A true CN115622871A (en) | 2023-01-17 |
Family
ID=84863130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211236843.2A Pending CN115622871A (en) | 2022-10-10 | 2022-10-10 | Bus load determination method, device, home appliance and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115622871A (en) |
WO (1) | WO2024078205A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024078205A1 (en) * | 2022-10-10 | 2024-04-18 | 合肥美的电冰箱有限公司 | Bus load determination method and apparatus, household appliance device, and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118708366B (en) * | 2024-08-29 | 2024-12-20 | 苏州元脑智能科技有限公司 | Storage device adaptation method, storage device, storage medium and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108073540A (en) * | 2018-02-11 | 2018-05-25 | 云丁网络技术(北京)有限公司 | I2C bus systems, warping apparatus investigation method |
US20180227150A1 (en) * | 2017-02-06 | 2018-08-09 | Ricoh Company, Ltd. | Ground short circuit portion detecting apparatus, ground short circuit portion detecting method, and computer-readable recording medium |
CN113434354A (en) * | 2021-08-27 | 2021-09-24 | 苏州浪潮智能科技有限公司 | Bus exception handling method and device, electronic equipment and readable storage medium |
CN113645112A (en) * | 2021-07-15 | 2021-11-12 | 珠海格力电器股份有限公司 | Bus communication control circuit and control method thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6831375B1 (en) * | 2000-09-06 | 2004-12-14 | Paccar Inc. | Diagnostics, protection, and isolation system for electronic devices on a vehicle data communication bus |
CN109271273A (en) * | 2018-10-15 | 2019-01-25 | 郑州云海信息技术有限公司 | A kind of method, abnormal restoring equipment and storage medium that communication abnormality restores |
CN115622871A (en) * | 2022-10-10 | 2023-01-17 | 合肥美的电冰箱有限公司 | Bus load determination method, device, home appliance and storage medium |
-
2022
- 2022-10-10 CN CN202211236843.2A patent/CN115622871A/en active Pending
-
2023
- 2023-09-05 WO PCT/CN2023/117091 patent/WO2024078205A1/en not_active Ceased
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180227150A1 (en) * | 2017-02-06 | 2018-08-09 | Ricoh Company, Ltd. | Ground short circuit portion detecting apparatus, ground short circuit portion detecting method, and computer-readable recording medium |
CN108073540A (en) * | 2018-02-11 | 2018-05-25 | 云丁网络技术(北京)有限公司 | I2C bus systems, warping apparatus investigation method |
CN113645112A (en) * | 2021-07-15 | 2021-11-12 | 珠海格力电器股份有限公司 | Bus communication control circuit and control method thereof |
CN113434354A (en) * | 2021-08-27 | 2021-09-24 | 苏州浪潮智能科技有限公司 | Bus exception handling method and device, electronic equipment and readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024078205A1 (en) * | 2022-10-10 | 2024-04-18 | 合肥美的电冰箱有限公司 | Bus load determination method and apparatus, household appliance device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2024078205A1 (en) | 2024-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11144416B2 (en) | Device fault processing method, apparatus, and system | |
CN115622871A (en) | Bus load determination method, device, home appliance and storage medium | |
CN108170507B (en) | Virtual application management method/system, computer readable storage medium and server | |
CN111858122A (en) | Fault detection method, device, equipment and storage medium of storage link | |
CN111399879A (en) | A firmware upgrade system and method for CPLD | |
CN110895469A (en) | Upgrading method, device, electronic device and storage medium for dual-system hot standby system | |
EP2093935A1 (en) | Method, device and system of test access equipment configuration identification | |
CN114244735B (en) | Master and slave operation switching method, device and storage medium | |
CN111506331A (en) | Server BMC refreshing method, system, terminal and storage medium | |
CN118550578A (en) | Computer system, single and double uplink mode detection method, storage medium and program product | |
CN115509209A (en) | Bus fault detection method, device, home appliance and storage medium | |
CN112667428A (en) | BMC fault processing circuit, method and device, electronic equipment and storage medium | |
CN118642897A (en) | Controller switching method, device, electronic device and storage medium | |
CN112463045B (en) | Method, device, equipment and product for controlling diversity of redundant arrays of disks in batch | |
US9246848B2 (en) | Relay apparatus, storage system, and method of controlling relay apparatus | |
CN106534262A (en) | Network information system fault switching method | |
CN114546842A (en) | Interface test method and device, storage medium and electronic equipment | |
CN112052024A (en) | Upgrading method, device, equipment and medium for BIOS of mega-core server | |
CN115834288B (en) | Control method, control device, storage medium and processor for bus network | |
CN116880896B (en) | Recovery method, system, terminal and storage medium of crystal growth furnace control machine | |
JP2001156926A (en) | Data collecting method and data receiving device | |
CN116155691B (en) | Data processing method and device | |
CN119155162A (en) | Network port multiplexing method, device, equipment and medium | |
CN107590053A (en) | A kind of hardware monitoring system and method | |
CN116085942A (en) | Air Conditioning Control Method, Device, Storage Medium, and Electronic 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 |