WO2024078204A1 - 总线通信控制方法、装置、设备及存储介质 - Google Patents

总线通信控制方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2024078204A1
WO2024078204A1 PCT/CN2023/117090 CN2023117090W WO2024078204A1 WO 2024078204 A1 WO2024078204 A1 WO 2024078204A1 CN 2023117090 W CN2023117090 W CN 2023117090W WO 2024078204 A1 WO2024078204 A1 WO 2024078204A1
Authority
WO
WIPO (PCT)
Prior art keywords
load unit
master control
control authority
bus communication
authority
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.)
Ceased
Application number
PCT/CN2023/117090
Other languages
English (en)
French (fr)
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.)
Hefei Hualing Co Ltd
Midea Group Co Ltd
Hefei Midea Refrigerator Co Ltd
Original Assignee
Hefei Hualing Co Ltd
Midea Group Co Ltd
Hefei Midea Refrigerator Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Hualing Co Ltd, Midea Group Co Ltd, Hefei Midea Refrigerator Co Ltd filed Critical Hefei Hualing Co Ltd
Priority to EP23876409.6A priority Critical patent/EP4593331A4/en
Publication of WO2024078204A1 publication Critical patent/WO2024078204A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control
    • G06F13/364Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control using independent requests or grants, e.g. using separated request and grant lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40143Bus networks involving priority mechanisms
    • H04L12/4015Bus networks involving priority mechanisms by scheduling the transmission of messages at the communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • H04L12/40176Flexible bus arrangements involving redundancy
    • H04L12/40202Flexible bus arrangements involving redundancy by using a plurality of master stations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/22Pc multi processor system
    • G05B2219/2231Leader-follower
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the field of data communication technology, and in particular to a bus communication control method, device, equipment and storage medium.
  • the communication method between the internal components of various smart devices can be that the main controller controls all the loads, or it can be a multi-master and multi-slave method.
  • the host communication authority In the traditional multi-master and multi-slave communication method, if the load of a device communicates as a host, the host communication authority is directly transferred, and there may be a situation where other requests cannot be responded to in time, especially some requests that require quick responses, which greatly affects the user experience.
  • the main purpose of the present application is to provide a bus communication control method, device, equipment and storage medium, aiming to solve the technical problem in the prior art that in a multi-master and multi-slave communication mode, the transfer of master control authority will lead to the inability to respond to the rapid response requirements of other loads in a timely manner.
  • the present application provides a bus communication control method, which is applied to a main control board, the main control board is connected to at least one load unit via a communication bus, and the method comprises the following steps:
  • the master control authority When the master control authority is possessed and there is no target response requirement, the master control authority is transferred to the target load unit corresponding to the master control authority transfer request.
  • the method further includes:
  • the master control authority of the host load unit is revoked.
  • the reclaiming the master control authority of the host load unit includes:
  • the data transmission task is interrupted and the master control authority of the host load unit is reclaimed.
  • the method further includes:
  • the target load unit is controlled to release the master control authority and the master control authority is reclaimed.
  • the method further includes:
  • locking the master control authority includes:
  • the method when the master authority transfer request sent by the first load unit is detected, before determining whether there is a target response requirement from the second load unit, the method further includes:
  • determining whether there is a target response requirement from the second load unit includes:
  • the present application also proposes a bus communication control device, the bus communication control device includes a processor and a memory, the processor is used to execute the following program modules stored in the memory:
  • a detection module configured to determine whether there is a target response requirement from the second load unit when detecting a master control authority transfer request sent by the first load unit;
  • a judgment module is configured to judge whether the user has the master control authority
  • the transfer module is configured to transfer the master control authority to the target load unit corresponding to the master control authority transfer request when the master control authority is possessed and there is no target response requirement.
  • the judgment module is further configured to:
  • the master control authority of the host load unit is revoked.
  • the judgment module is further configured to:
  • the data transmission task is interrupted and the master control authority of the host load unit is reclaimed.
  • the judgment module is further configured to:
  • the target load unit is controlled to release the master control authority and the master control authority is reclaimed.
  • the judgment module is further configured to:
  • the judgment module is further configured to:
  • the inspection module is further configured to:
  • determining whether there is a target response requirement from the second load unit includes:
  • the present application also proposes a bus communication control device, which includes: a memory, a processor, and a bus communication control program stored in the memory and executable on the processor, and the bus communication control program is configured to implement the steps of the bus communication control method described above.
  • the present application also proposes a storage medium, on which a bus communication control program is stored, and when the bus communication control program is executed by a processor, the steps of the bus communication control method described above are implemented.
  • the present application also proposes a computer program product, including a computer program, which implements the steps of the bus communication control method described above when executed by a processor.
  • the present application discloses a bus communication control method, which is applied to a main control board, and the main control board is connected to at least one load unit through a communication bus; the bus communication control method includes: when a master control authority transfer request sent by a first load unit is detected, judging whether there is a target response requirement from a second load unit; judging whether there is master control authority; and when there is the master control authority and there is no target response requirement, transferring the master control authority to the target load unit corresponding to the master control authority transfer request.
  • the present application detects whether there is a target response requirement from another load unit before receiving the master control authority transfer request from the first load unit and transferring the master control authority to the first load unit, and when the main control board has the master control authority and there is no target response requirement, transfers the master control authority to the target load unit corresponding to the master control authority transfer request, thereby avoiding the technical problem in the prior art that in a multi-master and multi-slave communication mode, the transfer of master control authority will lead to the inability to respond to the rapid response requirements of other loads in a timely manner, thereby improving the user experience.
  • FIG. 1 is a schematic diagram of the structure of a bus communication control device in a hardware operating environment according to an embodiment of the present application
  • FIG2 is a flow chart of a first embodiment of a bus communication control method of the present application.
  • FIG3 is a block diagram of a bus communication system structure according to an embodiment of a bus communication control method of the present application
  • FIG4 is a flow chart of a second embodiment of a bus communication control method of the present application.
  • FIG. 5 is a schematic diagram of the broadcast polling control logic of an embodiment of the bus communication control method of the present application.
  • FIG6 is a structural block diagram of the first embodiment of the bus communication control device of the present application.
  • FIG. 1 is a schematic diagram of the structure of a bus communication control device in the hardware operating environment involved in the embodiment of the present application.
  • the bus communication control device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface).
  • the memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • FIG. 1 does not constitute a limitation on the bus communication control device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
  • the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a bus communication control program.
  • the network interface 1004 is mainly used for data communication with the network server;
  • the user interface 1003 is mainly used for data interaction with the user;
  • the processor 1001 and the memory 1005 in the bus communication control device of the present application can be set in the bus communication control device, and the bus communication control device calls the bus communication control program stored in the memory 1005 through the processor 1001, and executes the bus communication control method provided by the present application.
  • FIG. 2 is a flow chart of a first embodiment of a bus communication control method of the present application.
  • the bus communication control method comprises the following steps:
  • Step S10 when detecting the master authority transfer request sent by the first load unit, determining whether there is a target response requirement from the second load unit.
  • the executor of the method of the present application may be a main control board of an electronic device with data processing or data transmission.
  • the electronic device may be a smart refrigerator or smart home appliance, etc., or other devices or systems that can achieve the same or similar functions.
  • the present application does not impose specific restrictions on this. The present application will be explained using the main control board of a smart refrigerator as an example.
  • the bus communication system is generally composed of a main control board, at least one load unit and a communication bus, and the main control board and each load unit are connected to the communication bus.
  • the various load units are also different.
  • the load unit includes: a slave control board and a load component.
  • the compressor load unit includes: a compressor and a compressor slave control board
  • the display panel load unit includes: a display panel and a display panel slave control board.
  • the master control authority is generally on the main control board, which is used to respond to the requests or response signals of each load unit in a timely manner. Only after a load unit requests the transfer of the master control authority from the main control board and the load unit receives the master control authority can it actively send data to the communication main line to realize active data interaction.
  • the data interaction between the main control board and each load unit is carried out through broadcast polling to realize communication between each node.
  • the first load unit can be any energy-consuming load unit in the above-mentioned smart refrigerator, wherein, in the smart refrigerator proposed in the present application, a single load is integrated with the corresponding slave control panel to form a load unit, for example: a refrigeration fan unit, a wind direction unit, a display panel unit, and a motor unit, etc., and the master control authority transfer request can be a request instruction generated by the load unit due to data packet updates, software upgrades, or data sharing needs, and the present application does not impose specific restrictions on this.
  • slave control board in the present application may include but is not limited to communication boards such as display control boards, microcrystalline boards, frequency conversion boards, WIFI boards, and expansion boards, and may also include other types of communication boards, which are not limited in this embodiment.
  • load 1 in Figure 3 needs to share data with other loads.
  • the main control authority since the main control authority is on the main control board, it is necessary to send a data sharing request to the main board under normal conditions to send the data to be shared to the main control board.
  • the main control board After the main control board receives the data to be shared, it uploads the data to be shared to the communication main line for broadcasting.
  • load 1 receives the data to be shared first, and load 1 will feedback a received response instruction.
  • the main control board will upload the data to be shared to the communication main line for broadcasting again.
  • load 1 will no longer feedback a response instruction
  • load 2 will feedback a received response instruction based on the received data.
  • the data sharing task will not be completed until all load units on the communication bus have fed back response instructions.
  • the target response requirement refers to a requirement that requires the main control board to respond quickly.
  • the user increases the refrigeration temperature of the refrigerator through the display panel or buttons.
  • the refrigeration fan or electric fan does not need to run immediately, but the main control board needs to immediately adjust the LED display content displayed on the display panel to facilitate the user to determine whether the temperature adjustment is successful.
  • Adjusting the display content of the display panel requires the main control board to respond quickly. If the main control board does not have the main control authority at this time, it will cause the display of the display panel to be wrong, thereby reducing the user experience.
  • Step S20 Determine whether the user has the master control authority.
  • the master control authority can be on the main control board or on each load unit, and the master control authority can be transferred, but in the normal data communication process, the master control authority is generally on the main control board, and the transfer of the master control authority needs to be implemented through the main control board. The master control authority cannot be transferred directly from one load unit to another load unit.
  • Step S30 When the master control authority is present and there is no target response requirement, the master control authority is transferred to the target load unit corresponding to the master control authority transfer request if the main control board receives the authority transfer instruction of the first load unit.
  • the main control board receives the authority transfer instruction from the first load unit and other loads do not require a quick response, it will transfer the master control authority to the first load unit on the premise that it itself has the master control authority, so that the first load unit can perform the corresponding data processing task.
  • step S20 the method further includes:
  • the main control board receives the authority transfer instruction of the first load unit, and it itself does not have the master control authority, but there is a rapid response requirement for other loads, it means that the main control board needs to respond quickly to the request of the load unit. In order not to affect the user experience, at this time, the main control board needs to lock the master control authority to avoid the transfer of authority, which will lead to user control errors.
  • the rapid response requirements of the refrigerator load unit often correspond to multiple operation processes, for example, when the user needs to lower the temperature of the refrigerator freezer, the first thing that needs to be responded to quickly is to update the temperature display value on the display panel, and secondly, it is also necessary to control the speed of the refrigeration fan corresponding to the freezer and the operating frequency of the compressor, etc. Therefore, in order to meet the user's control needs, an interval time can be set so that after the rapid response requirement is completed, it returns to the step of determining whether there is a target response requirement from the second load unit, so as to re-perform the authority transfer operation.
  • the locking of the master control authority includes:
  • step S20 the method further includes:
  • the master control authority of the host load unit is revoked.
  • the master control authority when the main control board does not have master control authority, but there is a target response requirement and a request for master control authority transfer, the master control authority is on the slave control board in a certain load unit.
  • the master control authority of the current host load unit can be used to facilitate the subsequent transfer of the master control authority to the first load unit to complete the authority transfer, wherein the transfer of master control authority must be implemented through the main control board.
  • the load unit may have a data transmission task in progress.
  • the data transmission task can be interrupted and the master control authority of the host load unit can be reclaimed.
  • the priority of ordinary data transmission tasks is lower than the operation task corresponding to the master control authority transfer.
  • the master control authority can be transferred back to the host load unit whose data transmission task has not been completed. If there are multiple host load units, the transfer order can be determined according to the priority of each task or each load unit. This application does not impose any specific restrictions on this.
  • the present application discloses a bus communication control method, which is applied to a main control board, and the main control board is connected to at least one load unit through a communication bus;
  • the bus communication control method includes: when a master control authority transfer request sent by a first load unit is detected, judging whether there is a target response requirement from a second load unit; judging whether there is master control authority; and when there is the master control authority and there is no target response requirement, transferring the master control authority to the target load unit corresponding to the master control authority transfer request, by first detecting whether there is a target response requirement from another load unit before receiving the master control authority transfer request from the first load unit and transferring the master control authority to the first load unit, and when the main control board has the master control authority and there is no target response requirement, transferring the master control authority to the target load unit corresponding to the master control authority transfer request, thereby avoiding the technical problem in the prior art that in a multi-master and multi-slave communication mode, the transfer of master control authority will lead to the inability to respond to
  • FIG. 4 is a flow chart of a second embodiment of a bus communication control method of the present application.
  • step S20 the following steps are further included:
  • Step S01 Obtain identification information of each load unit.
  • the identification information may be information such as the load type, load model, and identity ID of a load unit.
  • the identification information can be used to determine the installation position or broadcasting order of each load unit on the electronic device.
  • Step S02 Generate a broadcast header according to the identification information and a preset broadcast communication instruction.
  • the broadcast header is used for data transmission in the communication main line, wherein the broadcast header can be composed of an interval field, a synchronization field, and an identifier field.
  • the interval field as the beginning of a header, can be composed of a period of low level.
  • the interval field can be composed of 20 bits of low level. Because the serial port sends a data byte composed of a start bit (1 bit) + data bit (8 bits) + stop bit (1 bit or 2 bits), so normal communication valid data will not have 20 low levels. By detecting the interval field, it can be effectively guaranteed that the valid data of the previous frame has been sent.
  • the synchronization field is used to synchronize the communication rate of the main control board from the control board.
  • the synchronization field can be composed of one or more bytes of data agreed in advance, that is, the synchronization field is not limited to a single byte representation, and can also be multiple bytes, such as 0x55, etc. This application does not impose any restrictions on this.
  • the identifier field is used to determine the type of home appliance, identification information and instruction type that the sending main control board wants to communicate with. If the main control board needs to communicate with itself, the target address can be the identification information of the main control board. If the main control board needs to communicate with the slave control board, the target address can be the identification information of the corresponding slave control board. This application does not impose any restrictions on this.
  • Step S03 broadcast and poll the header information via the communication bus to verify whether there is a fault on the communication bus.
  • broadcast polling requires data communication for each communication node in the bus communication system so that each communication node can feedback response information.
  • the load unit 1 now serves as the communication host and has the master control authority. At this time, if the load unit 1 needs to share data through the communication bus, the data to be sent will be uploaded to the communication main line, so that the main control board-load unit 1-load unit 2...load unit n will feedback response information in turn. Each time a feedback message is received, the load unit 1 needs to re-upload the data to be sent to the communication main line.
  • the control logic refers to Figure 5.
  • the corresponding feedback signal is received in the order described above within a certain time interval, it can be directly skipped, the data to be sent can be resent, and the next feedback response signal can be received again.
  • a 200ms timed polling method can be adopted, and the timeout time range can be within 100ms, which is not limited.
  • the fault detection process can send a fault detection instruction according to a preset broadcast order to receive fault detection information fed back by each load unit respectively, and then the main control board makes an operation fault judgment based on each fault detection information, wherein the broadcast order can be in the order of main control board-load unit 1-load unit 2...load unit n, and the present application does not impose any specific restrictions on this.
  • This embodiment generates broadcast information for broadcasting through the identification information of each load unit and the preset broadcast communication instructions, and verifies whether there is a communication failure in the entire bus communication system based on the broadcast response information fed back by each load unit, so as to avoid abnormalities in subsequent authority transfer and affect the operation of the equipment.
  • the present application also proposes a storage medium, on which a bus communication control program is stored.
  • a bus communication control program is executed by a processor, the steps of the bus communication control method described above are implemented.
  • the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
  • FIG. 6 is a structural block diagram of the first embodiment of the bus communication control device of the present application.
  • the bus communication control device includes a processor and a memory, wherein the processor is used to execute the following program modules stored in the memory:
  • the detection module 10 is configured to determine whether there is a target response requirement from the second load unit when a master control authority transfer request sent by the first load unit is detected.
  • the bus communication system is generally composed of a main control board, at least one load unit and a communication bus, and the main control board and each load unit are connected to the communication bus.
  • the various load units are also different.
  • the load unit includes: a slave control board and a load component.
  • the compressor load unit includes: a compressor and a compressor slave control board
  • the display panel load unit includes: a display panel and a display panel slave control board.
  • the master control authority is generally on the main control board, which is used to respond to the requests or response signals of each load unit in a timely manner. Only after a load unit requests the transfer of the master control authority from the main control board and the load unit receives the master control authority can it actively send data to the communication main line to realize active data interaction.
  • the data interaction between the main control board and each load unit is carried out through broadcast polling to realize communication between each node.
  • the first load unit can be any energy-consuming load unit in the above-mentioned smart refrigerator, wherein, in the smart refrigerator proposed in the present application, a single load is integrated with the corresponding slave control panel to form a load unit, for example: a refrigeration fan unit, a wind direction unit, a display panel unit, and a motor unit, etc., and the master control authority transfer request can be a request instruction generated by the load unit due to data packet updates, software upgrades, or data sharing needs, and the present application does not impose specific restrictions on this.
  • load 1 in Figure 3 needs to share data with other loads.
  • the main control authority since the main control authority is on the main control board, it is necessary to send a data sharing request to the main board under normal conditions to send the data to be shared to the main control board.
  • the main control board After the main control board receives the data to be shared, it uploads the data to be shared to the communication main line for broadcasting.
  • load 1 receives the data to be shared first, and load 1 will feedback a received response instruction.
  • the main control board will upload the data to be shared to the communication main line for broadcasting again.
  • load 1 will no longer feedback a response instruction
  • load 2 will feedback a received response instruction based on the received data.
  • the data sharing task will not be completed until all load units on the communication bus have fed back response instructions.
  • the target response requirement refers to a requirement that requires the main control board to respond quickly.
  • the user increases the refrigeration temperature of the refrigerator through the display panel or buttons.
  • the refrigeration fan or electric fan does not need to run immediately, but the main control board needs to immediately adjust the LED display content displayed on the display panel to facilitate the user to determine whether the temperature adjustment is successful.
  • Adjusting the display content of the display panel requires the main control board to respond quickly. If the main control board does not have the main control authority at this time, it will cause the display of the display panel to be wrong, thereby reducing the user experience.
  • the judging module 20 is configured to judge whether the user has the master control authority.
  • the master control authority can be on the main control board or on each load unit, and the master control authority can be transferred.
  • the master control authority is generally on the main control board, and the transfer of the master control authority needs to be implemented through the main control board. The master control authority cannot be directly transferred from one load unit to another load unit.
  • the transfer module 30 is configured to transfer the master control authority to the target load unit corresponding to the master control authority transfer request when the master control authority is possessed and there is no target response requirement.
  • the main control board receives the authority transfer instruction from the first load unit and other loads do not require a quick response, it will transfer the master control authority to the first load unit on the premise that it itself has the master control authority, so that the first load unit can perform the corresponding data processing task.
  • the transfer module 30 is further configured to:
  • the main control board receives the authority transfer instruction of the first load unit, and it itself does not have the master control authority, but there is a rapid response requirement for other loads, it means that the main control board needs to respond quickly to the request of the load unit. In order not to affect the user experience, at this time, the main control board needs to lock the master control authority to avoid the transfer of authority, which will lead to user control errors.
  • the rapid response requirements of the refrigerator load unit often correspond to multiple operation processes, for example, when the user needs to lower the temperature of the refrigerator freezer, the first thing that needs to be responded to quickly is to update the temperature display value on the display panel, and secondly, it is also necessary to control the speed of the refrigeration fan corresponding to the freezer and the operating frequency of the compressor, etc. Therefore, in order to meet the user's control needs, an interval time can be set so that after the rapid response requirement is completed, it returns to the step of determining whether there is a target response requirement from the second load unit, so as to re-perform the authority transfer operation.
  • the locking of the master control authority includes:
  • the transfer module 30 is further configured to:
  • the master control authority of the host load unit is revoked.
  • the master control authority when the main control board does not have master control authority, but there is a target response requirement and a request for master control authority transfer, the master control authority is on the slave control board in a certain load unit.
  • the master control authority of the current host load unit can be used to facilitate the subsequent transfer of the master control authority to the first load unit to complete the authority transfer, wherein the transfer of master control authority must be implemented through the main control board.
  • the load unit may have a data transmission task in progress.
  • the data transmission task can be interrupted and the master control authority of the host load unit can be reclaimed.
  • the priority of ordinary data transmission tasks is lower than the operation task corresponding to the master control authority transfer.
  • the master control authority can be transferred back to the host load unit whose data transmission task has not been completed. If there are multiple host load units, the transfer order can be determined according to the priority of each task or each load unit, and there is no specific restriction on this.
  • the present application discloses a bus communication control method, which is applied to a main control board, and the main control board is connected to at least one load unit through a communication bus;
  • the bus communication control method includes: when a master control authority transfer request sent by a first load unit is detected, judging whether there is a target response requirement from a second load unit; judging whether there is master control authority; and when there is the master control authority and there is no target response requirement, transferring the master control authority to the target load unit corresponding to the master control authority transfer request, by first detecting whether there is a target response requirement from another load unit before receiving the master control authority transfer request from the first load unit and transferring the master control authority to the first load unit, and when the main control board has the master control authority and there is no target response requirement, transferring the master control authority to the target load unit corresponding to the master control authority transfer request, thereby avoiding the technical problem in the prior art that in a multi-master and multi-slave communication mode, the transfer of master control authority will lead to the inability to respond to
  • the technical solution of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM)/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as a read-only memory (ROM)/RAM, a magnetic disk, or an optical disk
  • a terminal device which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)
  • Small-Scale Networks (AREA)

Abstract

本申请涉及数据通信技术领域,提供了一种总线通信控制方法、装置、设备及存储介质。本申请通过在接收到第一负载单元的主控权限转移请求,并将主控权限转移至所述第一负载单元之前,先检测是否存在来自另一负载单元的目标响应需求,并在主控板具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元。

Description

总线通信控制方法、装置、设备及存储介质
本申请要求于2022年10月10日申请的、申请号为202211236828.8的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及数据通信技术领域,尤其涉及一种总线通信控制方法、装置、设备及存储介质。
背景技术
随着智能家居的普及,各种智能设备的内部各组件之间的通信方式可以是主控器控制所有的负载,还可以是多主多从的方式,在传统的多主多从的通信方式中,如果一个设备的负载作为主机进行通信时,直接移交主机通信权限,会存在无法及时响应其他请求的情况,特别是一些需要快速响应的请求,极其影响用户的使用体验。
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。
技术问题
本申请的主要目的在于提供一种总线通信控制方法、装置、设备及存储介质,旨在解决现有技术在多主多从的通信方式中,主控权限的移交会导致无法及时响应其他负载快速响应需求的技术问题。
技术解决方案
为实现上述目的,本申请提供了一种总线通信控制方法,所述总线通信控制方法应用于主控板,所述主控板与至少一个负载单元通过通讯总线连接,所述方法包括以下步骤:
在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;
判断是否具有主控权限;以及
在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元。
在一实施例中,所述判断是否具有主控权限之后,还包括:
在不具有所述主控权限,且存在目标响应需求时,确定具有主控权限的主机负载单元;以及
收回所述主机负载单元的主控权限。
在一实施例中,所述收回所述主机负载单元的主控权限,包括:
检测所述主机负载单元是否存在进行中的数据传输任务;以及
若存在,则中断所述数据传输任务,并收回所述主机负载单元的主控权限。
在一实施例中,所述检测所述主机负载单元是否存在进行中的数据传输任务之后,还包括:
若不存在,则控制所述目标负载单元释放主控权限,并收回所述主控权限。
在一实施例中,所述判断是否具有主控权限之后,还包括:
在具有所述主控权限,且存在目标响应需求时,锁定所述主控权限;以及
间隔预设时长后,返回判断是否存在来自第二负载单元的目标响应需求的步骤。
在一实施例中,所述锁定所述主控权限,包括:
根据所述目标响应需求与预设负载单元优先级确定待运行负载单元与对应的运行任务;以及
在所述待运行负载单元未完成所述运行任务时,锁定所述主控权限。
在一实施例中,所述在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求之前,还包括:
获取各负载单元的识别信息;
根据所述识别信息与预设广播通信指令生成广播报头;以及
将所述报头信息通过所述通讯总线进行广播轮询,以验证所述通讯总线是否存在故障;
进一步地,所述在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求,包括:
在不存在故障,且检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求。
外,为实现上述目的,本申请还提出一种总线通信控制装置,所述总线通信控制装置包括处理器和存储器,所述处理器用于执行存储在存储器中的以下程序模块:
检测模块,设置为在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;
判断模块,设置为判断是否具有主控权限;
转移模块,设置为在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元。
在一实施例中,所述判断模块还设置为:
在不具有所述主控权限,且存在目标响应需求时,确定具有主控权限的主机负载单元;以及
收回所述主机负载单元的主控权限。
在一实施例中,所述判断模块还设置为:
检测所述主机负载单元是否存在进行中的数据传输任务;以及
若存在,则中断所述数据传输任务,并收回所述主机负载单元的主控权限。
在一实施例中,所述判断模块还设置为:
若不存在,则控制所述目标负载单元释放主控权限,并收回所述主控权限。
在一实施例中,所述判断模块还设置为:
在具有所述主控权限,且存在目标响应需求时,锁定所述主控权限;以及
间隔预设时长后,返回判断是否存在来自第二负载单元的目标响应需求的步骤。
在一实施例中,所述判断模块还设置为:
根据所述目标响应需求与预设负载单元优先级确定待运行负载单元与对应的运行任务;以及
在所述待运行负载单元未完成所述运行任务时,锁定所述主控权限。
在一实施例中,所述检查模块还设置为:
获取各负载单元的识别信息;
根据所述识别信息与预设广播通信指令生成广播报头;以及
将所述报头信息通过所述通讯总线进行广播轮询,以验证所述通讯总线是否存在故障;
进一步地,所述在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求,包括:
在不存在故障,且检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求。
此外,为实现上述目的,本申请还提出一种总线通信控制设备,所述总线通信控制设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的总线通信控制程序,所述总线通信控制程序配置为实现如上文所述的总线通信控制方法的步骤。
此外,为实现上述目的,本申请还提出一种存储介质,所述存储介质上存储有总线通信控制程序,所述总线通信控制程序被处理器执行时实现如上文所述的总线通信控制方法的步骤。
此外,为实现上述目的,本申请还提出一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上文所述的总线通信控制方法的步骤。
有益效果
本申请公开了一种总线通信控制方法,所述总线通信控制方法应用于主控板,所述主控板与至少一个负载单元通过通讯总线连接;所述总线通信控制方法包括:在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;判断是否具有主控权限;以及在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元,与现有技术相比,本申请通过在接收到第一负载单元的主控权限转移请求,并将主控权限转移至所述第一负载单元之前,先检测是否存在来自另一负载单元的目标响应需求,并在主控板具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元,避免了现有技术中在多主多从的通信方式中,主控权限的移交会导致无法及时响应其他负载快速响应需求的技术问题,提高了用户的使用体验。
附图说明
图1是本申请实施例方案涉及的硬件运行环境的总线通信控制设备的结构示意图;
图2为本申请总线通信控制方法第一实施例的流程示意图;
图3为本申请总线通信控制方法一实施例的总线通信系统结构框图;
图4为本申请总线通信控制方法第二实施例的流程示意图;
图5为本申请总线通信控制方法一实施例的广播轮询控制逻辑示意图;
图6为本申请总线通信控制装置第一实施例的结构框图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
本发明的实施方式
应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的总线通信控制设备结构示意图。
如图1所示,该总线通信控制设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,Wi-Fi)接口)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM),也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005还可以是独立于前述处理器1001的存储装置。
本领域技术人员可以理解,图1中示出的结构并不构成对总线通信控制设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及总线通信控制程序。
在图1所示的总线通信控制设备中,网络接口1004主要用于与网络服务器进行数据通信;用户接口1003主要用于与用户进行数据交互;本申请总线通信控制设备中的处理器1001、存储器1005可以设置在总线通信控制设备中,所述总线通信控制设备通过处理器1001调用存储器1005中存储的总线通信控制程序,并执行本申请提供的总线通信控制方法。
本申请提供了一种总线通信控制方法,参照图2,图2为本申请一种总线通信控制方法第一实施例的流程示意图。
在一实施例中,所述总线通信控制方法包括以下步骤:
步骤S10:在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求。
需要说明的是,本申请方法的执行主体可以是具有数据处理或者数据传输的电子设备的主控板,该电子设备可以是智能冰箱或者智能家电等,还可以是其他可以实现相同或者相似功能的设备或系统,本申请对此不做具体限制,本申请将会以智能冰箱的中主控板为例进行说明。
可以理解的是,在传统的多主多从的总线通信方式中,参考图3,一般是通过主控板、至少一个负载单元以及通讯总线组成总线通信系统,且主控板与各负载单元都连接在通讯总线上,根据总线通信系统所在的设备不同,各个负载单元也不同,其中,负载单元包括:从控板与负载件,例如:对于压缩机负载单元就包括:压缩机与压缩机从控板,显示面板负载单元包括:显示面板与显示面板从控板,本申请对此不作具体限制。
总线通信系统中只有具有主控权限的主机通信节点可以主动向外发送数据,而其他的通信节点可以通过接收通讯主线上的数据,反馈响应信息,且部分负载单元还可以接收来自外界的信号输入,例如:交互面板或者触摸显示器等,可以接收来自用户的触摸信号输入,本申请对此不做具体限制。
其中,在总线通信系统中,主控权限一般在主控板上,用于及时响应各负载单元的请求或者响应信号,而在某个负载单元向主控板请求主控权限转移,且该负载单元接收到主控权限之后,才可以向通讯主线上主动发送数据,以实现主动数据交互。
此外,上述的总线通信系统中,主控板与各负载单元之间的数据交互方式是通过广播轮询的方式,实现各节点之间的通信。
值得说明的是,第一负载单元可以是上述智能冰箱中的任意一个耗能的负载单元,其中,在本申请提出的智能冰箱中,是将单个负载与对应的从控板进行集成形成负载单元,例如:制冷风机单元、风向单元、显示面板单元以及电机单元等,且主控权限转移请求可以是该负载单元因为数据包更新、软件升级或者数据共享等需求生成的请求指令,本申请对此不做具体限制。
此外,本申请中的从控板可以包括但不限于显控板、微晶板、变频板、WIFI板以及拓展板等通信板,还可包括其他类型的通信板,本实施例对此不作限制。
例如:参考图3,图3中的负载1需要向其他的负载共享数据,此时,由于主控权限在主控板上,所以常规状态下需通过向主板发送数据共享的请求,以向主控板发送待共享数据,在主控板接收到所述待共享数据之后,将所述待共享数据上传至通讯主线进行广播,此时,首先是负载1先接收到这个待共享数据,负载1会反馈一个已接收的响应指令,此时,主控板会将所述待共享数据上传至通讯主线进行再次广播,此时,负载1不会再反馈响应指令,负载2将会根据接收到的数据反馈一个已接收的响应指令,直至所述通讯总线上所有负载单元都反馈响应指令之后,才会结束此次数据分享任务。
应当说明的是,目标响应需求是指需要主控板进行快速响应的需求,例如:用户通过显示面板或者按钮等,调高冰箱的冷藏温度,此时,冷藏风机或者电动风机等不需要立刻运行,但是主控板需要马上调整显示面板上显示的LED显示内容,以便于用户确定温度调整是否成功,调整显示面板的显示内容需要主控板快速响应,若此时主控板没有主控权限,将会导致显示面板的显示出错,进而降低用户体验。
步骤S20:判断是否具有主控权限。
需要说明的是,在本申请中主控权限可以在主控板上也可以在各负载单元上,且所述主控权限可以被转移,但是在正常的数据通信过程中,主控权限一般都在主控板上,且主控权限的转移都需要通过主控板实现,无法将主控权限从一个负载单元直接转移至另一负载单元。
步骤S30:在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元若主控板接收到了第一负载单元的权限转移指令。
在具体实施过程中,若主控板接收到了第一负载单元的权限转移指令,且其他负载没有快速响应的需求,最后本身具有主控权限的前提下,将会把主控权限移交至第一负载单元,以便于第一负载单元进行对应的数据处理任务。
进一步地,所述步骤S20之后,还包括:
在具有所述主控权限,且存在目标响应需求时,锁定所述主控权限;
间隔预设时长后,返回判断是否存在来自第二负载单元的目标响应需求的步骤。
可以理解的是,若主控板接收到了第一负载单元的权限转移指令,且本身在不具有主控权限的前提下,但是存在其他负载的快速响应需求时,表示此时需要主控板快速响应负载单元的请求,为了不影响用户的使用体验,此时,需要主控板锁定主控权限,避免出现权限转移,进而导致用户控制出错的情况发生。
在一实施例中,由于冰箱负载单元的快速响应需求往往会对应于多个操作流程,例如:在用户需要降低冰箱冷冻室的温度时,首先需要快速响应的是更新显示面板上的温度显示数值,其次,还需要控制冷冻室对应的冷冻风机的转速以及压缩机的运行频率等,因此,为了满足用户的控制需求,可以设置一个间隔时间,以便于在快速响应需求完成后,在返回判断是否存在来自第二负载单元的目标响应需求的步骤,以便于重新进行权限移交的操作。
进一步地,所述锁定所述主控权限,包括:
根据所述目标响应需求与预设负载单元优先级确定待运行负载单元与对应的运行任务;
在所述待运行负载单元未完成所述运行任务时,锁定所述主控权限。
需要说明的是,由于一个目标响应需求所控制的负载单元可能存在多个,但是在实际控制过程中,可能不需要对每一个需要运行的负载单元进行权限控制,例如:在用户需要降低冰箱冷冻室的温度时,首先需要控制显示面板的数值显示,其次,控制冷冻室对应的冷冻风机的转速以及压缩机的运行频率等,但是冷冻风机与压缩机不需要主控板实时快速控制,因此,待运行负载单元只有显示面板,在显示面板没有完成数值更新的任务时,需要锁定主控板的主控权限,避免出现显示错误。
进一步地,所述步骤S20之后,还包括:
在不具有所述主控权限,且存在目标响应需求时,确定具有主控权限的主机负载单元;
收回所述主机负载单元的主控权限。
值得说明的是,在主控板没有主控权限,但是存在目标响应需求以及主控权限转移请求的时候,主控权限在某一个负载单元中的从控板上,为了使得有需要的主控权限的负载完成对应的任务,可以当前主机负载单元的主控权限,以便于后续将主控权限转移至第一负载单元,完成权限转移,其中,主控权限的转移必须通过主控板实现。
在实际操作过程中,由于主控权限在某一个负载单元上,该负载单元可以存在有正在运行中的数据传输任务,为了保证权限转移的可行性,可以中断所述数据传输任务,再收回所述主机负载单元的主控权限。在本实施例中,普通的数据传输任务的优先级要低于主控权限转移对应的操作任务。
在一实施例中,若是在第一负载单元完成了其任务需求后,主控板收回主控权限之后,可以将主控权限重新转移至数据传输任务未完成的主机负载单元,若存在多个主机负载单元,可以根据各任务或者各负载单元的优先级确定转移顺序,本申请对此不做具体限制。
本申请公开了一种总线通信控制方法,所述总线通信控制方法应用于主控板,所述主控板与至少一个负载单元通过通讯总线连接;所述总线通信控制方法包括:在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;判断是否具有主控权限;以及在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元,通过在接收到第一负载单元的主控权限转移请求,并将主控权限转移至所述第一负载单元之前,先检测是否存在来自另一负载单元的目标响应需求,并在主控板具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元,避免了现有技术中在多主多从的通信方式中,主控权限的移交会导致无法及时响应其他负载快速响应需求的技术问题,提高了用户的使用体验。
参考图4,图4为本申请一种总线通信控制方法第二实施例的流程示意图。
基于上述第一实施例,在本实施例中,所述步骤S20之后还包括:
步骤S01:获取各负载单元的识别信息。
需要说明的是,识别信息可以是个负载单元的负载类型、负载型号以及身份ID等信息。
且所述识别信息可以用于确定各负载单元在电子设备上的安装位置或者广播顺序等。
步骤S02:根据所述识别信息与预设广播通信指令生成广播报头。
可以理解的是,广播报头用于在通讯主线中进行数据传输,其中,广播报头可由间隔场、同步场以及标识符场组成。间隔场作为一个报头的开始,可由一段时间的低电平组成,例如,间隔场可由20个bit低电平组成,因为串口发送一个数据字节由起始位(1位)+数据位(8位)+停机位(1位或2位)组成,所以正常通信有效数据不会出现20个低电平,通过检测间隔场可以有效的保证上一帧有效的数据已经发送完成。同步场用于从控板同步主控板的通信速率,同步场可由事先约定好的一个或多个字节数据组成,即同步场不限于单个字节表示,亦可以是多个字节,例如0x55等,本申请对此不作限制。标识符场用于确定发送的主控板要通信的家电类型、识别信息以及指令类型,其中,如果主控板需要与自己通信,则目标地址可为主控板的识别信息,如果主控板需要与从控板通信,则目标地址可为对应的从控板的识别信息,本申请对此不作限制。
步骤S03:将所述报头信息通过所述通讯总线进行广播轮询,以验证所述通讯总线是否存在故障。
应当说明的是,广播轮询需要针对总线通信系统中每一个通信节点进行数据通信,以使各通信节点反馈响应信息,例如:参考图3,现负载单元1作为通信主机,拥有主控权限,此时,若是负载单元1由通过通讯总线进行数据分享的需求,则会将待发送数据上传至通讯主线,以使主控板-负载单元1-负载单元2···负载单元n的依次反馈响应信息,其中,每接收到一个反馈信息,需要负载单元1重新上传待发送数据至通讯主线,其控制逻辑参考图5。
此外,在轮询的过程中,若是在一定的时间间隔内按照上文所述的顺序接收到对应的反馈信号,则可以直接跳过,重新发送待发送数据,并重新接收下一反馈响应信号。其中,可采用200ms的定时轮询方式,超时的时间范围可为100ms内,对此不作限制。
在一实施例中,故障检测的过程可以按照预设的广播顺序,发送一个故障检测指令,以分别接收到各负载单元反馈的故障检测信息,进而主控板根据各故障检测信息进行运行故障判断,其中,广播顺序可以是按照主控板-负载单元1-负载单元2···负载单元n的顺序,本申请对此不作具体限制。
本实施例通过各负载单元识别信息与预设广播通信指令生成用于进行广播的广播信息,并根据各负载单元反馈的广播响应信息验证整个总线通信系统中是否存在通信故障,避免后续权限转移出现异常,影响设备的运行。
此外,本申请还提出一种存储介质,所述存储介质上存储有总线通信控制程序,所述总线通信控制程序被处理器执行时实现如上文所述的总线通信控制方法的步骤。
由于本存储介质采用了上述所有实施例的全部技术方案,因此至少具有上述实施例的技术方案所带来的所有有益效果,在此不再一一赘述。
参照图6,图6为本申请总线通信控制装置第一实施例的结构框图。
如图6所示,本申请提出的总线通信控制装置包括处理器和存储器,所述处理器用于执行存储在存储器中的以下程序模块:
检测模块10,设置为在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求。
可以理解的是,在传统的多主多从的总线通信方式中,参考图3,一般是通过主控板、至少一个负载单元以及通讯总线组成总线通信系统,且主控板与各负载单元都连接在通讯总线上,根据总线通信系统所在的设备不同,各个负载单元也不同,其中,负载单元包括:从控板与负载件,例如:对于压缩机负载单元就包括:压缩机与压缩机从控板,显示面板负载单元包括:显示面板与显示面板从控板,本申请对此不作具体限制。
总线通信系统中只有具有主控权限的主机通信节点可以主动向外发送数据,而其他的通信节点可以通过接收通讯主线上的数据,反馈响应信息,且部分负载单元还可以接收来自外界的信号输入,例如:交互面板或者触摸显示器等,可以接收来自用户的触摸信号输入,本申请对此不做具体限制。
其中,在总线通信系统中,主控权限一般在主控板上,用于及时响应各负载单元的请求或者响应信号,而在某个负载单元向主控板请求主控权限转移,且该负载单元接收到主控权限之后,才可以向通讯主线上主动发送数据,以实现主动数据交互。
此外,上述的总线通信系统中,主控板与各负载单元之间的数据交互方式是通过广播轮询的方式,实现各节点之间的通信。
值得说明的是,第一负载单元可以是上述智能冰箱中的任意一个耗能的负载单元,其中,在本申请提出的智能冰箱中,是将单个负载与对应的从控板进行集成形成负载单元,例如:制冷风机单元、风向单元、显示面板单元以及电机单元等,且主控权限转移请求可以是该负载单元因为数据包更新、软件升级或者数据共享等需求生成的请求指令,本申请对此不做具体限制。
例如:参考图3,图3中的负载1需要向其他的负载共享数据,此时,由于主控权限在主控板上,所以常规状态下需通过向主板发送数据共享的请求,以向主控板发送待共享数据,在主控板接收到所述待共享数据之后,将所述待共享数据上传至通讯主线进行广播,此时,首先是负载1先接收到这个待共享数据,负载1会反馈一个已接收的响应指令,此时,主控板会将所述待共享数据上传至通讯主线进行再次广播,此时,负载1不会再反馈响应指令,负载2将会根据接收到的数据反馈一个已接收的响应指令,直至所述通讯总线上所有负载单元都反馈响应指令之后,才会结束此次数据分享任务。
应当说明的是,目标响应需求是指需要主控板进行快速响应的需求,例如:用户通过显示面板或者按钮等,调高冰箱的冷藏温度,此时,冷藏风机或者电动风机等不需要立刻运行,但是主控板需要马上调整显示面板上显示的LED显示内容,以便于用户确定温度调整是否成功,调整显示面板的显示内容需要主控板快速响应,若此时主控板没有主控权限,将会导致显示面板的显示出错,进而降低用户体验。
判断模块20,设置为判断是否具有主控权限。
需要说明的是,在本实施例中主控权限可以在主控板上也可以在各负载单元上,且所述主控权限可以被转移,但是在正常的数据通信过程中,主控权限一般都在主控板上,且主控权限的转移都需要通过主控板实现,无法将主控权限从一个负载单元直接转移至另一负载单元。
转移模块30,设置为在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元。
在具体实施过程中,若主控板接收到了第一负载单元的权限转移指令,且其他负载没有快速响应的需求,最后本身具有主控权限的前提下,将会把主控权限移交至第一负载单元,以便于第一负载单元进行对应的数据处理任务。
进一步地,所述转移模块30,还设置为:
在具有所述主控权限,且存在目标响应需求时,锁定所述主控权限;以及
间隔预设时长后,返回判断是否存在来自第二负载单元的目标响应需求的步骤。
可以理解的是,若主控板接收到了第一负载单元的权限转移指令,且本身在不具有主控权限的前提下,但是存在其他负载的快速响应需求时,表示此时需要主控板快速响应负载单元的请求,为了不影响用户的使用体验,此时,需要主控板锁定主控权限,避免出现权限转移,进而导致用户控制出错的情况发生。
在一实施例中,由于冰箱负载单元的快速响应需求往往会对应于多个操作流程,例如:在用户需要降低冰箱冷冻室的温度时,首先需要快速响应的是更新显示面板上的温度显示数值,其次,还需要控制冷冻室对应的冷冻风机的转速以及压缩机的运行频率等,因此,为了满足用户的控制需求,可以设置一个间隔时间,以便于在快速响应需求完成后,在返回判断是否存在来自第二负载单元的目标响应需求的步骤,以便于重新进行权限移交的操作。
进一步地,所述锁定所述主控权限,包括:
根据所述目标响应需求与预设负载单元优先级确定待运行负载单元与对应的运行任务;以及
在所述待运行负载单元未完成所述运行任务时,锁定所述主控权限。
需要说明的是,由于一个目标响应需求所控制的负载单元可能存在多个,但是在实际控制过程中,可能不需要对每一个需要运行的负载单元进行权限控制,例如:在用户需要降低冰箱冷冻室的温度时,首先需要控制显示面板的数值显示,其次,控制冷冻室对应的冷冻风机的转速以及压缩机的运行频率等,但是冷冻风机与压缩机不需要主控板实时快速控制,因此,待运行负载单元只有显示面板,在显示面板没有完成数值更新的任务时,需要锁定主控板的主控权限,避免出现显示错误。
进一步地,所述转移模块30,还设置为:
在不具有所述主控权限,且存在目标响应需求时,确定具有主控权限的主机负载单元;
收回所述主机负载单元的主控权限。
值得说明的是,在主控板没有主控权限,但是存在目标响应需求以及主控权限转移请求的时候,主控权限在某一个负载单元中的从控板上,为了使得有需要的主控权限的负载完成对应的任务,可以当前主机负载单元的主控权限,以便于后续将主控权限转移至第一负载单元,完成权限转移,其中,主控权限的转移必须通过主控板实现。
在实际操作过程中,由于主控权限在某一个负载单元上,该负载单元可以存在有正在运行中的数据传输任务,为了保证权限转移的可行性,可以中断所述数据传输任务,再收回所述主机负载单元的主控权限。在本实施例中,普通的数据传输任务的优先级要低于主控权限转移对应的操作任务。
在一实施例中,若是在第一负载单元完成了其任务需求后,主控板收回主控权限之后,可以将主控权限重新转移至数据传输任务未完成的主机负载单元,若存在多个主机负载单元,可以根据各任务或者各负载单元的优先级确定转移顺序,对此不做具体限制。
本申请公开了一种总线通信控制方法,所述总线通信控制方法应用于主控板,所述主控板与至少一个负载单元通过通讯总线连接;所述总线通信控制方法包括:在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;判断是否具有主控权限;以及在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元,通过在接收到第一负载单元的主控权限转移请求,并将主控权限转移至所述第一负载单元之前,先检测是否存在来自另一负载单元的目标响应需求,并在主控板具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元,避免了现有技术中在多主多从的通信方式中,主控权限的移交会导致无法及时响应其他负载快速响应需求的技术问题,提高了用户的使用体验。
应当理解的是,以上仅为举例说明,对本申请的技术方案并不构成任何限定,在具体应用中,本领域的技术人员可以根据需要进行设置,本申请对此不做限制。
需要说明的是,以上所描述的工作流程仅仅是示意性的,并不对本申请的保护范围构成限定,在实际应用中,本领域的技术人员可以根据实际的需要选择其中的部分或者全部来实现本实施例方案的目的,此处不做限制。
另外,未在本实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的总线通信控制方法,此处不再赘述。
此外,需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read Only Memory,ROM)/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (17)

  1. 一种总线通信控制方法,其中,所述总线通信控制方法应用于主控板,所述主控板与至少一个负载单元通过通讯总线连接;
    所述总线通信控制方法包括:
    在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;
    判断是否具有主控权限;以及
    在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元。
  2. 如权利要求1所述的总线通信控制方法,其中,所述判断是否具有主控权限之后,还包括:
    在不具有所述主控权限,且存在目标响应需求时,确定具有主控权限的主机负载单元;以及
    收回所述主机负载单元的主控权限。
  3. 如权利要求2所述的总线通信控制方法,其中,所述收回所述主机负载单元的主控权限,包括:
    检测所述主机负载单元是否存在进行中的数据传输任务;以及
    若存在,则中断所述数据传输任务,并收回所述主机负载单元的主控权限。
  4. 如权利要求3所述的总线通信控制方法,其中,所述检测所述主机负载单元是否存在进行中的数据传输任务之后,还包括:
    若不存在,则控制所述目标负载单元释放主控权限,并收回所述主控权限。
  5. 如权利要求1至4中任一项所述的总线通信控制方法,其中,所述判断是否具有主控权限之后,还包括:
    在具有所述主控权限,且存在目标响应需求时,锁定所述主控权限;以及
    间隔预设时长后,返回判断是否存在来自第二负载单元的目标响应需求的步骤。
  6. 如权利要求5所述的总线通信控制方法,其中,所述锁定所述主控权限,包括:
    根据所述目标响应需求与预设负载单元优先级确定待运行负载单元与对应的运行任务;以及
    在所述待运行负载单元未完成所述运行任务时,锁定所述主控权限。
  7. 如权利要求1至6中任一项所述的总线通信控制方法,其中,所述在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求之前,还包括:
    获取各负载单元的识别信息;
    根据所述识别信息与预设广播通信指令生成广播报头;以及
    将所述报头信息通过所述通讯总线进行广播轮询,以验证所述通讯总线是否存在故障;
    进一步地,所述在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求,包括:
    在不存在故障,且检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求。
  8. 一种总线通信控制装置,其中,所述总线通信控制装置包括处理器和存储器,所述处理器用于执行存储在存储器中的以下程序模块:
    检测模块,设置为在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求;
    判断模块,设置为判断是否具有主控权限;
    转移模块,设置为在具有所述主控权限,且不存在目标响应需求时,将主控权限转移至所述主控权限转移请求对应的目标负载单元。
  9. 如权利要求8所述的总线通信控制装置,其中,所述判断模块还设置为:
    在不具有所述主控权限,且存在目标响应需求时,确定具有主控权限的主机负载单元;以及
    收回所述主机负载单元的主控权限。
  10. 如权利要求9所述的总线通信控制装置,其中,所述判断模块还设置为:
    检测所述主机负载单元是否存在进行中的数据传输任务;以及
    若存在,则中断所述数据传输任务,并收回所述主机负载单元的主控权限。
  11. 如权利要求10所述的总线通信控制装置,其中,所述判断模块还设置为:
    若不存在,则控制所述目标负载单元释放主控权限,并收回所述主控权限。
  12. 如权利要求8至11中任一项所述的总线通信控制装置,其中,所述判断模块还设置为:
    在具有所述主控权限,且存在目标响应需求时,锁定所述主控权限;以及
    间隔预设时长后,返回判断是否存在来自第二负载单元的目标响应需求的步骤。
  13. 如权利要求12所述的总线通信控制装置,其中,所述判断模块还设置为:
    根据所述目标响应需求与预设负载单元优先级确定待运行负载单元与对应的运行任务;以及
    在所述待运行负载单元未完成所述运行任务时,锁定所述主控权限。
  14. 如权利要求8至13中任一项所述的总线通信控制装置,其中,所述检查模块还设置为:
    获取各负载单元的识别信息;
    根据所述识别信息与预设广播通信指令生成广播报头;以及
    将所述报头信息通过所述通讯总线进行广播轮询,以验证所述通讯总线是否存在故障;
    进一步地,所述在检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求,包括:
    在不存在故障,且检测到第一负载单元发送的主控权限转移请求时,判断是否存在来自第二负载单元的目标响应需求。
  15. 一种总线通信控制设备,其中,所述总线通信控制设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的总线通信控制程序,所述总线通信控制程序配置为实现如权利要求1至7中任一项所述的总线通信控制方法。
  16. 一种存储介质,其中,所述存储介质上存储有总线通信控制程序,所述总线通信控制程序被处理器执行时实现如权利要求1至7中任一项所述的总线通信控制方法。
  17. 一种计算机程序产品,包括计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的总线通信控制方法。
PCT/CN2023/117090 2022-10-10 2023-09-05 总线通信控制方法、装置、设备及存储介质 Ceased WO2024078204A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP23876409.6A EP4593331A4 (en) 2022-10-10 2023-09-05 METHOD AND APPARATUS FOR CONTROLLING BUS COMMUNICATION, AND STORAGE DEVICE AND SUPPORT

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211236828.8A CN115685776B (zh) 2022-10-10 2022-10-10 总线通信控制方法、装置、设备及存储介质
CN202211236828.8 2022-10-10

Publications (1)

Publication Number Publication Date
WO2024078204A1 true WO2024078204A1 (zh) 2024-04-18

Family

ID=85064438

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/117090 Ceased WO2024078204A1 (zh) 2022-10-10 2023-09-05 总线通信控制方法、装置、设备及存储介质

Country Status (3)

Country Link
EP (1) EP4593331A4 (zh)
CN (1) CN115685776B (zh)
WO (1) WO2024078204A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115685776B (zh) * 2022-10-10 2025-04-25 合肥美的电冰箱有限公司 总线通信控制方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046156A (zh) * 2015-08-26 2015-11-11 北京元心科技有限公司 智能终端及其设备访问权限控制方法
CN108228510A (zh) * 2018-01-17 2018-06-29 广东工业大学 一种总线的仲裁方法、设备、存储介质及总线仲裁器
CN115622834A (zh) * 2022-10-10 2023-01-17 合肥美的电冰箱有限公司 总线通信控制方法、装置、设备及存储介质
CN115685776A (zh) * 2022-10-10 2023-02-03 合肥美的电冰箱有限公司 总线通信控制方法、装置、设备及存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5845097A (en) * 1996-06-03 1998-12-01 Samsung Electronics Co., Ltd. Bus recovery apparatus and method of recovery in a multi-master bus system
JP2014016730A (ja) * 2012-07-06 2014-01-30 Canon Inc バス調停装置、バス調停方法、及びコンピュータプログラム
US9460027B2 (en) * 2015-01-26 2016-10-04 HGST Netherlands, B.V. Digital rights management system
CN206272637U (zh) * 2016-11-30 2017-06-20 浙江正泰中自控制工程有限公司 一种基于双数据同步总线的dcs冗余控制单元
CN107040284B (zh) * 2017-03-27 2020-10-02 西安电子科技大学 一种提高数据传输的可靠性与稳定性的多址接入方法
DE112020007491T5 (de) * 2020-08-05 2023-08-10 Mitsubishi Electric Corporation Benachrichtigungsvorrichtung und benachrichtigungsverfahren
KR20220135048A (ko) * 2021-03-29 2022-10-06 삼성전자주식회사 버스를 통해 자원을 공유하기 위한 장치 및 방법

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105046156A (zh) * 2015-08-26 2015-11-11 北京元心科技有限公司 智能终端及其设备访问权限控制方法
CN108228510A (zh) * 2018-01-17 2018-06-29 广东工业大学 一种总线的仲裁方法、设备、存储介质及总线仲裁器
CN115622834A (zh) * 2022-10-10 2023-01-17 合肥美的电冰箱有限公司 总线通信控制方法、装置、设备及存储介质
CN115685776A (zh) * 2022-10-10 2023-02-03 合肥美的电冰箱有限公司 总线通信控制方法、装置、设备及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4593331A4

Also Published As

Publication number Publication date
CN115685776B (zh) 2025-04-25
EP4593331A4 (en) 2026-01-28
EP4593331A1 (en) 2025-07-30
CN115685776A (zh) 2023-02-03

Similar Documents

Publication Publication Date Title
US10797988B2 (en) Method and apparatus for controlling and managing a field device using an industry internet operating system
CN108833122B (zh) 车载通信控制器的唤醒方法、装置及存储介质
US10602448B2 (en) Remote wakeup method, connection server, and networking apparatus having sleep mode
US10084827B2 (en) Methods and apparatus for registering a device to server
EP3404872B1 (en) Device control method, network device, and network system
US20050185595A1 (en) Method of assigning addresses to a plurality of devices on a network and a network system therefor
US11792865B2 (en) Device binding method and apparatus, and electronic device
WO2024078204A1 (zh) 总线通信控制方法、装置、设备及存储介质
US20050232301A1 (en) Home network system with multi-network manager and method for controlling the same
GB2617297A (en) Bluetooth connection method and system, intelligent terminal and computer storage medium
CN115622834B (zh) 总线通信控制方法、装置、设备及存储介质
CN109218994B (zh) 基于网关的等价设备蓝牙通信方法和装置
CN110807011B (zh) 文件同步方法、电子设备、存储介质及系统
CN117917048A (zh) 对桥接设备进行配置的方法、装置、设备及存储介质
CN109089250B (zh) 基于网关调度的蓝牙通信方法和装置
CN109151786B (zh) 基于网关调度连接的蓝牙通信方法和装置
CN114448799B (zh) 远程升级方法、装置、主控板、家电设备及存储介质
CN115987748A (zh) 智能电视控制方法、装置、存储介质及电子设备
CN115396470B (zh) 一种微控制单元升级方法、装置、智能设备及存储介质
KR20070037931A (ko) 홈네트워크 시스템을 제어하는 홈서버 및 그 제어방법
US20240256647A1 (en) Authentication method and authentication apparatus
CN110971716A (zh) 地址配置方法、装置、系统和计算机可读存储介质
JP2001053766A (ja) ネットワークシステム、ネットワーク機器、排他制御方法及び記録媒体
CN115378612A (zh) 协同认证方法、装置、电子设备及存储介质
CN117346320A (zh) 多主机控制方法、显示板、主控板及控制系统、空调机组

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23876409

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2023876409

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2023876409

Country of ref document: EP

Effective date: 20250423

NENP Non-entry into the national phase

Ref country code: DE

WWP Wipo information: published in national office

Ref document number: 2023876409

Country of ref document: EP