CN115643127A - Communication system, control method, intelligent household appliance, electronic device and medium - Google Patents

Communication system, control method, intelligent household appliance, electronic device and medium Download PDF

Info

Publication number
CN115643127A
CN115643127A CN202211202793.6A CN202211202793A CN115643127A CN 115643127 A CN115643127 A CN 115643127A CN 202211202793 A CN202211202793 A CN 202211202793A CN 115643127 A CN115643127 A CN 115643127A
Authority
CN
China
Prior art keywords
communication
bus
communication bus
control
communication data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211202793.6A
Other languages
Chinese (zh)
Inventor
张洁
唐琳
胡宏豪
陈梓雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202211202793.6A priority Critical patent/CN115643127A/en
Publication of CN115643127A publication Critical patent/CN115643127A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention relates to a communication system, a control method, an intelligent household appliance, an electronic device and a medium. The communication system includes: the control panel comprises a communication control module, and the communication control module comprises an IO selection unit; the communication bus comprises a first communication bus and a second communication bus; the first communication bus and the second communication bus are independent in time sharing and are connected with the control panel through a bus channel selector and an IO selection unit. According to the scheme, when the first communication bus is in communication fault, the first communication bus of default communication can be switched to the second communication bus through the IO selection unit of the communication control module, communication data which are not successfully sent are sent to the second communication bus again, the whole machine can continue to communicate, and the problems that data loss and the like caused by communication recovery through a chip of a hardware reset fault board are effectively avoided.

Description

Communication system, control method, intelligent household appliance, electronic device and medium
Technical Field
The present application relates to the field of intelligent home appliances, and in particular, to a communication system, a control method thereof, an intelligent home appliance, an electronic device, and a medium.
Background
A communication system is a generic term for a technical system for performing an information transmission process. A system for transmitting information by electrical signals (or optical signals) is generally an organic whole consisting of a plurality of units with specific functions, interactions and interdependencies and achieving a unified goal, wherein inter-board communication refers to communication between boards on the same device by a certain technology.
Along with the high-speed development and popularization in the technical field of intelligent home furnishing, the function integration degree of intelligent home appliances is higher and higher, the communication system between the electric appliances and the inter-board communication system in the system of the electric appliances have larger influence on the reliability of the home appliance system, and along with the increase of application functions, the reliability requirement on the communication system is higher and higher. At present, intelligent household appliances such as televisions, air conditioners and washing machines transmit digital signals in a wired connection mode between a network cable or a built-in WIFI and a router, and then communicate data interaction with a 4G base station through the router through optical fibers and cables.
The problem of communication interference is shielded by external hardware circuit design or structural design of the existing intelligent household appliance, in the using process, particularly a washing machine, if a communication fault occurs, because a washing/drying program is executed, if the communication is recovered by resetting a chip of a fault board through hardware, the current washing communication data can not be continuously executed with the program before the fault, if a user does not timely process the program, the problem that bacteria are bred or clothes are damaged can be caused because the clothes are soaked for too long time or the clothes are sealed in a washing drum for a long time after being soaked can be caused. When the software recovery chip communication module is used, communication cannot be recovered due to program errors or hardware disconnection, so that the washing machine is stopped for a long time, and only can wait for a user to restart and power off or contact after-sale maintenance, the time consumption is long, the use of the user is influenced, and the experience of the user is reduced; and when the multiple control boards work cooperatively, if a communication fault occurs, the normal operation of the intelligent household appliance (washing machine) can be influenced because the fault board cannot be positioned and the communication function cannot be quickly recovered.
Therefore, it is urgently needed to design a communication system, when a communication fault occurs between plates in an intelligent household appliance (washing machine), the communication system can be switched to a standby bus to continue communication, the operation of the whole machine is not influenced, fault detection is carried out, a fault board is positioned and information is reported, the time required by technical personnel for troubleshooting is shortened, and the robustness of the whole communication system is enhanced.
Disclosure of Invention
In order to solve the problems in the related art, the communication system and control method, the intelligent household appliance, the electronic device and the medium are provided, and when the first communication bus has a communication fault, the IO selection unit of the communication control module switches the first communication bus of default communication to the second communication bus, so that the whole machine can continue to communicate.
The first aspect of the present application provides a communication system, including a control board, a communication bus, and a bus channel selector, where the control board includes a communication control module, and the communication control module includes an IO selection unit; the communication bus comprises a first communication bus and a second communication bus; the first communication bus and the second communication bus are independent in time sharing and are connected with the control panel through a bus channel selector and an IO selection unit.
In one embodiment, the communication control module further comprises a communication data transmission unit, a fault detection unit and a fault processing unit; the communication data transmission unit, the fault detection unit and the fault processing unit are all in communication connection with the first communication bus and the second communication bus.
In one embodiment, further comprising a first signal transceiver and a second signal transceiver; the first signal transceiver and the second signal transceiver are respectively electrically connected with the control board and the bus channel selector; the bus channel selector is electrically connected with the first communication bus and the second communication bus.
In one embodiment, the control board includes a main board, a display board, and a driving board; the main board is electrically connected with at least one of the temperature sensing bulb, the water level sensor, the flowmeter or the door lock and is used for controlling the whole operation process and detecting the operation state of the whole machine; the display panel is arranged in the display screen and used for displaying the current program information; the driving plate is connected with the motor and used for driving the motor to rotate and providing a power source.
A second aspect of the present application provides a method for controlling a communication system, which is implemented based on the above communication system, and specifically includes the following steps:
s101, connecting the control panel with a power supply, and judging whether the control panel is a host or not by the control panel; if yes, sending communication data to the first communication bus, and if not, waiting for receiving the communication data in a standby mode;
s102, the host acquires communication data within preset time, if the acquisition is successful, S103 is executed, and if the acquisition is failed, S104 is executed;
s103, the host checks the acquired communication data and processes related information;
and S104, the host executes a fault detection and processing program, switches the default first communication bus to a second communication bus, replaces the first communication bus with the second communication bus to transmit data, and continues to complete the communication of the whole machine.
In one embodiment, the host performing a fault detection and handling procedure comprises:
s1041, after the host computer does not successfully acquire the communication data within the preset time, continuously acquiring the communication data within a period of time, and if the acquisition is successful, continuously executing other subsequent steps; if the acquisition fails, executing S1042;
s1042, closing the first communication bus signal source channel, opening the second communication bus signal source channel, detecting error identification stored in the internal UART module and the current level of the control pin of the chip of the first communication bus by each control board, and sending the detection result to other control boards in a second communication bus communication form.
In one embodiment, the host performing the fault detection and handling procedure further comprises:
each control board continuously detects the error identification stored by the internal UART module and the current level of the control pin of the chip of the first communication bus, if the error identification still exists or the level of the control pin of the first communication bus is abnormal, the second communication bus is continuously used for normal communication data communication, otherwise, the next step is executed;
and opening the first communication bus signal source channel, closing the second communication bus signal source channel, and continuously adopting the first communication bus to transmit the communication data of the whole machine.
The third aspect of the present application provides an intelligent household appliance, which includes the above communication system.
A fourth aspect of the present application provides an electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform a method as described above.
Compared with the prior art, the technical scheme provided by the application can comprise the following beneficial effects:
(1) Through using first communication bus and second communication bus, when the control panel to first communication bus sends communication data, but when first communication bus goes wrong, carry out communication control module's fault detection procedure earlier, switch over the first communication bus of acquiescence communication to second communication bus through communication control module's IO optional unit, make the second communication bus circuit of control panel communicates, the control panel sends the data that do not send successfully to other control panels through the second communication bus, makes the complete machine can continue the communication, thereby the whole laundry/dry clothing flow of carrying out completely, resets the mode of restarting the operation through hardware/software among the prior art, and the scheme of this application has effectively avoided the clothing to soak the problem that bacterial growing or clothing damage that leads to for a long time in inclosed wash bucket through the second communication bus.
(2) Through the fault detection unit and the fault processing unit in the communication control module, a fault board can be quickly positioned, fault information reported by the second communication bus can be displayed through the display panel, the technical troubleshooting difficulty of communication faults occurring in the cooperative work of a plurality of control panels is reduced, technicians can be helped to quickly troubleshoot fault reasons, local reset is tried to restore the corresponding module, the requirement that the foreground displays the running state of the whole machine is not influenced, faults can be recorded at the background, the communication operation of a recovery system is executed, and the robustness of the whole communication system is improved.
(3) The communication control mode provided by the invention can be applied to control programs with complex logic and derivative programs thereof, under the technical requirement of quick updating and iteration of an electric appliance, a single control program relates to multiple changes and secondary development, the robustness of the program is enhanced by locally detecting faults and resetting the communication module, the condition that the whole machine is in operation paralysis due to the local change error of software is avoided, and the possibility of more secondary development is provided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application, as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
Fig. 1 is a schematic diagram of communication relationships of a communication system according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a control relationship of a communication system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a display panel and communication bus connection shown in an embodiment of the present application;
fig. 4 is a flowchart illustrating a communication system control method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a communication fault detection and processing procedure according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Reference numerals:
11. a display panel; 12. a main board; 13. a drive plate; 21. a first communication bus; 22. a second communication bus; 3. a communication control module; 31. an IO selection unit; 32. a data transmission unit; 33. a failure detection unit; 34. a failure processing unit; 4. a 485 transceiver; 5. a CAN transceiver; 6. a bus channel selector.
Detailed Description
Preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While the preferred embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
When a communication fault occurs in the conventional intelligent washing machine, because a washing/drying program is being executed, if communication is recovered by resetting a chip of a fault board through hardware, the current washing communication data can be lost, and the program before the fault can not be continuously executed.
In order to solve the above problem, an embodiment of the present application provides a communication system, when an inter-plate communication fault occurs in an intelligent household appliance (washing machine), the communication system can be switched to a standby bus to continue communication, and communication data which is not successfully sent is retransmitted, so that the washing machine can continue communication, a whole washing/drying process is completely executed, and bacterial growth or damage of clothes caused by long-time soaking of the clothes in a closed washing drum is effectively avoided.
The technical solutions of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
In the embodiment of the present application, the intelligent home appliance is a washing machine as an example.
In a first embodiment, please refer to fig. 1 to fig. 3, fig. 1 is a schematic diagram illustrating a communication relationship of a communication system according to an embodiment of the present application.
The communication system mainly comprises a control panel and a communication bus.
The control boards include a main board 12, a display board 11 and a driving board 13, and when one of the control boards is used as a master, the other two control boards are used as slaves. The main board 12 is used for controlling the whole operation process (i.e. washing process of the washing machine), is electrically connected with at least one load structure of a thermal bulb, a water level sensor, a flowmeter or a door lock, and can detect the operation state and control the load action; the display panel 11 is provided in the display screen, and is a main component of the display screen, and is mainly used for displaying current program information (i.e., current washing program information), including but not limited to: washing mode, running time, running parameters, setting, fault prompt, background picture and the like; the driving plate 13 is connected with a motor and used for driving the motor to rotate and providing a power source.
The main board 12, the display panel 11 and the driving board 13 are in communication connection with the communication bus, specifically, the main board 12, the display panel 11 and the driving board 13 include a main control chip, the main control chip includes a UART module, and the UART module is used for sending initial communication data and receiving final communication data, so that the main board 12, the display panel 11 and the driving board 13 can send communication data to the communication bus and receive communication data transmitted by the communication bus during the operation of the washing machine, and normal operation of the washing machine is guaranteed through mutual transmission of the communication data.
The communication buses comprise a first communication bus 21 and a second communication bus 22; the first communication bus 21 and the second communication bus 22 are independent in time sharing, and the display panel 11, the main board 12 and the driving board 13 are respectively and directly connected with the first communication bus 21 and the second communication bus 22 in a communication way; specifically, the first communication bus 21 is a 485 bus, the 485 bus is a communication line formed by a 485 chip, a main control chip in the display panel 11, the main board 12 or the drive board 13, and a connection circuit, and transmits communication data according to the specification of a 485 communication protocol; the second communication bus 22 is a CAN bus, which is a communication line formed by a CAN chip, a main control chip in the display panel 11, the main board 12 or the drive board 13, and a connection circuit, and transmits communication data according to the specification of a CAN communication protocol; the main control chip in the display panel 11, the main board 12 or the driving board 13 includes a UART module, and the UART module is used for receiving or sending communication data, and specifically, the UART module is used for the display panel 11, the main board 12 or the driving board 13 to send and receive communication data. It should be noted that the 485 bus is a conceptual bus rather than an actual circuit connecting line and is responsible for transmitting the communication data of the display panel 11, the motherboard 12 and the driving board 13, and similarly, the CAN bus is a conceptual bus rather than an actual circuit connecting line and is responsible for transmitting the communication data of the display panel 11, the motherboard 12 and the driving board 13.
As shown in fig. 2, the control board further includes a communication control module 3, that is, the display panel 11, the main board 12 and the driving board 13 all include an independent communication control module 3 and are electrically connected to the first communication bus 21 and the second communication bus 22; specifically, the communication control module 3 includes an IO selection unit 31, a communication data transmission unit 32, a fault detection unit 33, and a fault processing unit 34. The IO selection unit 31 includes an interface portion and an IO interface control of the control board and the bus channel selector 6, and has a main function that the control board CAN switch and select whether the first communication bus 21 (i.e. 485 bus) or the second communication bus 22 (i.e. CAN bus) is currently used for communication by changing an output of a pin in the IO selection unit 31; the communication data transmission unit 32 is configured to switch and control the current state of the control board to be a communication data sending state or a communication data receiving state. The fault detection unit 33 is mainly used for reading an error identifier of the UART module and a current level of a control pin (DE pin) of the 485 chip and judging whether a fault exists between the 485 bus and the control board after the control board receives communication data overtime or communication data check is abnormal; specifically, the master control chip can store the error identifier of the UART module in the storage space inside the master control chip through a program, so that whether the 485 bus has a fault can be judged by reading the error identifier of the UART module stored in the master control chip; secondly, the master control chip is also connected with a control pin (DE pin) of the 485 chip, the control pin (DE pin) determines whether the 485 chip is in a receiving state or a sending state at present, if the control pin (DE pin) keeps a high level all the time, the master control chip is in the sending state all the time, the state can cause that communication data cannot be received, communication faults are caused, and therefore whether the 485 bus is in fault can be judged by reading the current level state of the control pin (DE pin). The fault processing unit 34 is mainly used for switching a communication bus signal source through a bus chip selection pin when the control board receives communication data overtime or detects that the control board is abnormal, reporting or acquiring a fault detection result through a CAN bus, displaying fault information through a display screen, and communicating by using the CAN bus before fault recovery.
As shown in fig. 3, taking the connection between the display panel 11 and the communication bus as an example, the communication system further includes a bus channel selector 6, a first signal transceiver, and a second signal transceiver; the first signal transceiver and the second signal transceiver are arranged in parallel between the control board (i.e., the display board 11) and the bus channel selector 6 and are electrically connected with the control board (i.e., the display board 11) and the bus channel selector 6, respectively, and the bus channel selector 6 is electrically connected with the first communication bus 21 (i.e., the 485 bus) or the second communication bus 22 (i.e., the CAN bus) through a signal line 1 and a signal line 2; specifically, the bus channel selector 6 is a signal switch control circuit, and is configured to control signal source switching and signal line output of the bus channel selector 6, the first signal transceiver is the 485 transceiver 4, and the 485 transceiver 4 is used as a 485 signal source of the bus channel selector 6; the second signal transceiver is a CAN transceiver 5, and the CAN transceiver 5 is used as a CAN signal source of the bus channel selector 6.
The display panel 11 comprises an I/01 pin, an I/02 pin, an I/03 pin, an I/04 pin and an I/05 pin; the I/01 pin is a bus chip selection pin and is directly connected with a chip selection terminal (CS pin) of the bus channel selector 6, so that the fault processing unit 34 can switch a communication bus signal source; the I/02 pin is a UART _ Tx pin of the main control chip and is used for sending communication data; the I/03 pin is a UART _ Rx pin of the main control chip and is used for receiving communication data; the I/02 pin and the I/03 pin are both directly and electrically connected with the 485 transceiver 4 and are used as a signal source of the 485 transceiver 4, and the 485 transceiver 4 is an RS485 circuit for example; after receiving communication data, the 485 transceiver 4 converts the communication data into differential signals and sends the differential signals to a bus channel selector 6 through a 485_A signal line and a 485_B signal line which are connected with the output end of the 485 transceiver 4; the I/04 pin is a CAN _ Tx pin of the main control chip and is used for sending communication data; the I/05 pin is a CAN _ Rx pin of a main control chip and is used for receiving communication data, the I/04 pin and the I/05 pin are both directly and electrically connected with the CAN transceiver 5 and serve as a signal source of the CAN transceiver 5, and the CAN transceiver 5 is a CAN circuit for example; after receiving communication data, the CAN transceiver 5 converts the communication data into differential signals and sends the differential signals to a bus channel selector 6 through a CAN _ H signal line and a CAN _ L signal line which are connected with the output end of the CAN transceiver 5; and when the bus channel selector 6 receives the communication data sent by the 485 transceiver 4 or the CAN transceiver 5, the communication data is correspondingly sent to the 485 bus or the CAN bus.
In practical use, the number of signal lines used by the first communication bus 21 (i.e., 485 bus) and the second communication bus 22 (i.e., CAN bus) may be two or four, and when two signal lines are used, because the data transmission mode and the data format are different under different conditions, the two signal lines are defaulted to be used for 485 bus communication, and CAN be switched to the CAN bus through the bus channel selector 6; under the condition of using four signal wires, two of the signal wires are used as 485 bus for communication, and the other two signal wires are used as CAN bus for communication.
It should be noted that fig. 3 only illustrates a connection manner between the display panel 11 and the communication bus, but the connection manners between the main board 12 and the driving board 13 and the communication bus are the same, that is, the main board 12 or the driving board 13 can replace the display panel 11, and therefore, the connection manners between the main board 12 and the driving board 13 and the communication bus are not repeated herein.
In this embodiment one, through using first communication bus and second communication bus, when the control panel to first communication bus sends communication data, but when first communication bus breaks down in communication, the IO selection unit through communication control module switches over the first communication bus of acquiescence communication to the second communication bus, makes the control panel with second communication bus communication is connected, then the control panel will not send successful data to the second communication bus again, makes the complete machine can continue the communication, thereby the whole laundry/dry clothing flow of complete execution, compares the mode of restarting the operation through hardware/software reset among the prior art, and the scheme of this application has effectively avoided the clothing to wet the bacterial growing or the problem of clothing damage that leads to for a long time in inclosed wash drum through the second communication bus. And through the fault detection unit and the fault processing unit in the communication control module, a fault board can be quickly positioned, fault information reported by the second communication bus can be displayed through the display panel, the technical troubleshooting difficulty of communication faults occurring in the cooperative work of a plurality of control panels is reduced, technicians can be helped to quickly troubleshoot fault reasons, partial reset is tried, the corresponding module is recovered, and the robustness of the whole communication system is improved.
Example two
Referring to fig. 4, fig. 4 is a schematic flow chart of a control method of a communication system according to an embodiment of the present application, specifically:
s101, connecting the control panel with a power supply, and judging whether the control panel is a host or not by the control panel; if yes, sending communication data to the bus, and if not, waiting for receiving the communication data.
In S101, the first communication bus (i.e., the 485 bus) is a default communication bus, and is configured to transmit communication data, at this time, the UART _ Tx pin and the UART _ Rx pin are in a default on state, the 485 transceiver is in a transmitting state, the CAN _ Tx pin and the CAN _ Rx pin are in a default off state, the CAN transceiver is in an off state, the bus channel selector selects the 485 transceiver as a signal source by default, and the 485 bus is turned on.
Illustratively, taking the display panel as a master and the motherboard and the driver board as slaves, the master (display panel) transmits communication data to the 485 bus at intervals, specifically, the interval may be 300ms, the display panel transmits the communication data to the 485 transceiver through the UART _ Tx pin, converts the communication data into a differential signal, and transmits the differential signal to the bus channel selector through the 485\\ a signal line and the 485 u b signal line connected to the output end of the 485 transceiver; after receiving the communication data, the bus channel selector sends the communication data to a 485 bus, and then the 485 bus sends the communication data to a slave; the signal line 1 and the signal line 2 form a 485 bus, and the communication data is MODBUS protocol communication data.
And S102, the host acquires communication data within a preset time, if the acquisition is successful, S103 is executed, and if the acquisition is failed, S104 is executed.
In S102, after the display panel finishes sending the communication data, the 485 transceiver is switched to a receiving state, and the display panel waits to receive the communication data fed back from a slave (a motherboard or a drive board); specifically, the display panel tries to acquire communication data fed back from the slave through a 485 bus within a preset time, if the communication data of the MODBUS protocol is acquired successfully, step S103 is executed, otherwise, step S104 is executed; the preset time may be 5s.
And S103, the display panel verifies the acquired communication data and processes related information.
In S103, after the slave (motherboard or driver board) feeds back communication data to the 485 bus, the 485 bus transmits the communication data to the bus channel selector, at this time, the bus channel selector converts the communication data into differential signals, and transmits the differential signals to the 485 transceiver through the 485_a signal line and the 485_b signal line, and then the 485 transceiver transmits the differential signals to the display panel through the UART _ Rx pin, and the display panel enters a standby state after checking the communication data through a protocol and displaying related information, and waits for the next transmission of the communication data.
And S104, the host executes a fault detection and processing program, switches the default first communication bus to a second communication bus, replaces the first communication bus with the second communication bus to transmit data, and continues to complete the communication of the whole machine.
In S104, when the display panel does not successfully receive the fed back communication data, the failure detection unit executes a failure detection operation, and the failure processing unit executes a recovery processing operation, and at the same time, after switching the default first communication bus to a second communication bus, the second communication bus is used to replace the first communication bus to transmit data, and then steps S101 to S103 are repeated to continue to complete the communication of the whole device. At this time, the bus channel selector selects the second communication bus, closes UART _ Tx and UART _ Rx, closes the 485 transceiver, opens CAN _ Tx and CAN _ Rx, opens the CAN transceiver using the CAN module, closes the 485 bus channel through the bus channel selector, and opens the CAN bus channel.
As shown in fig. 4, in order to facilitate understanding of the flow of the entire communication system, taking the main board as an example of a slave, the slave specifically includes the following steps in the communication flow of the entire communication system:
s201, the slave machine acquires communication data within preset time, if the communication data are successfully acquired, S202 is executed, and if the communication data are failed to acquire, S104 is executed.
In S201, the first communication bus (i.e., 485 bus) is a default communication bus, and communication data is transmitted, at this time, the UART _ Tx pin and the UART _ Rx pin are in a default on state, the 485 transceiver is in a sending state, the CAN _ Tx pin and the CAN _ Rx pin are in a default off state, the CAN transceiver is in an off state, and the bus channel selector selects the first communication bus (i.e., 485 bus) by default, that is, MODBUS protocol communication data is transmitted by the 485 bus.
The main board acquires communication data sent by a host from a 485 bus within preset time, if the communication data of the MODBUS protocol is successfully acquired, the step S202 is executed, otherwise, the step S104 is executed; the preset time may be 5s.
And S202, after the slave machine checks and analyzes the acquired communication data, controlling the load operation of the whole machine.
In S202, after the motherboard obtains the communication data, the motherboard controls the load operation of the entire device after checking and analyzing the communication data through the protocol, obtains the operation state of the entire device, and feeds back the communication data to the host, where the specific steps are detailed in S103, and then the host returns to the standby communication data receiving state to wait for the next time to receive the communication data transmitted by the communication bus.
In the embodiment of the application, a first communication bus (485 bus) is set as a default communication bus for transmitting communication data, then after the host sends data communication data, communication data fed back from a slave is obtained within a preset time, if the receiving fails, a fault detection and processing program is executed, the default first communication bus is switched to a second communication bus, and the transmission of the communication data of the whole machine is carried out again, so that the whole machine communication can be continuously completed through the second communication bus after the first communication bus fails, in the process, the slave is firstly in a standby receiving state, after the communication data sent by the host is received, the communication data is verified and analyzed, the main board is switched to a sending state, and the communication data are fed back to the host, so that the communication data transmission between the host and the slave can be realized, the whole machine communication is completed, and the whole machine can normally operate according to a specified program.
EXAMPLE III
To implement the host in S104 to execute the fault detection and processing procedure, the present application proposes a corresponding scheme, please refer to fig. 4-5, where fig. 5 is a flowchart of the fault detection unit and the processing procedure, and specifically includes:
s1041, after the host computer does not successfully acquire the communication data within the preset time, continuously acquiring the communication data within a period of time, and if the acquisition is successful, continuously executing other subsequent steps; if the acquisition fails, S1042 is executed.
In S1041, when the host does not successfully obtain the communication data within the preset time, that is, after waiting for the preset time to exceed, the host continues to maintain for a period of time, which may be 30S, to obtain the communication data from the 485 bus, and within this period of time, if the host successfully obtains the communication data, the host exits from waiting, and continues to execute the subsequent other steps; otherwise, S1042 is performed.
S1042, closing the first communication bus signal source channel, opening the second communication bus signal source channel, detecting error identification stored by the internal UART module and the current level of the control pin of the chip of the first communication bus by each control panel, and sending the detection result to other control panels in a second communication bus communication form.
In S1042, after the host still does not receive the communication data after a period of time (30 seconds), the host closes the UART _ Tx pin, the UART _ Rx pin, and the 485 transceiver, opens the CAN _ Tx pin, the CAN _ Rx pin, and the CAN transceiver, closes the first communication bus signal source channel (485 bus channel) and opens the second communication bus signal source channel (CAN bus channel) through the bus channel selector; at the moment, the CAN transceiver is in a sending state, the host detects the error identifier of the UART module stored in the main control chip and the current level of a control pin (DE pin) of a chip (485 chip) of the first communication bus, converts a detection result into a CAN message and then sends the CAN message to the CAN bus, and the CAN bus transmits communication data, wherein the detection result comprises communication data before and current communication faults; specifically, the host sends the communication data before the communication fault and the current communication data to the CAN bus at intervals in the form of CAN messages, and the interval may be 300ms. It should be noted that, after receiving the CAN message (communication data) fed back from the slave machine through the CAN bus, the host machine (display panel) displays the fault information and the detection result thereof included in the CAN message (communication data) through the display screen.
And S1043, continuously detecting the error identifier stored by the internal UART module and the current level of the control pin of the chip of the first communication bus by each control board, if the error identifier or the level of the control pin of the first communication bus is abnormal, executing S1044, otherwise executing S1045.
In S1043, when the CAN bus is used to transmit communication data, each control board continuously detects an error flag stored in the internal UART module and a current level of a control pin (DE pin) of the 485 chip, and the frequency of the continuous detection may be 1 min/time; if the detection result still has the error identification or the 485 module control pin level is abnormal, executing the step S1044; if no error identification exists and the 485 module controls the pin level to recover to normal, then S1045 is executed.
And S1044, continuing to use the second communication bus to carry out normal communication data communication.
In S1044, the host converts the detection result into a CAN message and transmits the CAN message to a second communication bus (CAN bus), and then continues to use the CAN bus to perform normal communication data communication, and then performs other steps of the total communication flow, including a step of transmitting the CAN message to the slave and a subsequent step related to the slave feeding back communication data to the host.
S1045, opening the first communication bus signal source channel, closing the second communication bus signal source channel, and continuing to adopt the first communication bus to transmit the whole communication data.
In S1045, the host computer closes the CAN _ Tx pin, the CAN _ Rx pin, and the CAN transceiver, opens the UART _ Tx pin, the UART _ Rx pin, and the 485 transceiver, opens the 485 bus channel through the bus channel selector, closes the CAN bus channel, re-uses the 485 bus to transmit the communication data of the whole machine, and continues to execute other subsequent steps in the control method of the communication system.
In order to facilitate understanding of the whole fault detection and processing program, taking the main board as an example of a slave, the slave specifically includes the following steps in the whole fault detection and processing program:
when the mainboard is used as a slave, the CAN transceiver is in a receiving state, the mainboard waits for communication data sent by the host, and after the communication data sent by the host are received, the state of the whole machine is converted into the communication data to be fed back to the host.
It should be noted that the communication system and the control method of the present invention are preferably applied to an inter-board communication and an on-board communication system of a washing machine.
In the embodiment of the application, through a fault detection and processing program, the IO selection unit is controlled to select the second communication bus for communication, the slave computer reports a communication fault detection result and resends communication data, and tries to recover 485 communication related modules within a period of time, if the recovery is successful, the slave computer is informed through a CAN message, and then the IO selection unit is controlled to switch back to the first communication bus for communication, otherwise, the second channel signal line is continuously used, the display panel is informed to display fault information, the technical troubleshooting difficulty of communication fault occurring in the cooperative work of a plurality of control panels is reduced, a technician CAN be helped to quickly troubleshoot the fault reason, and the condition that the normal operation CAN be recovered only through power-off reset is effectively avoided.
Example four
On the basis of the structure of the embodiment, the application also provides an intelligent household appliance communication system, which comprises an intelligent household appliance and the communication system; the intelligent household appliance includes but is not limited to a washing machine; the communication system is installed on the intelligent household appliance.
The specific structure of the communication system is detailed in the above embodiments, and is not described herein again.
In the embodiment of the application, the intelligent household appliance adopting the communication system of the application is adopted, when the household appliance has communication faults in the operation process, communication is not required to be recovered through a chip of a hardware reset fault board, and the communication is also not required to be recovered through a software recovery chip, so that the problem that communication data loss or hardware short circuit caused by communication recovery in the mode is effectively avoided, and by adopting the communication system of the application, when the communication faults occur on a default first communication bus, communication can be continued through a second communication bus which is switched to be standby, the operation of the whole appliance is not influenced, meanwhile, fault detection is carried out on a background, the fault board is positioned and information is reported, the time for technical personnel to troubleshoot the faults is shortened, and the operation stability of the intelligent household appliance is enhanced.
EXAMPLE five
Corresponding to the embodiment of the application function implementation method, the application also provides electronic equipment and a corresponding embodiment.
Fig. 6 is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
Referring to fig. 6, the electronic device includes: a communication data acquisition device 2000 and a controller 1000; wherein, the controller 1000 includes: a memory 1010 and a processor 1020.
In the embodiment of the application, the communication data acquisition device is connected with the controller and used for sending the communication data to the controller, and the controller is used for acquiring the parameters acquired by the communication data acquisition device and executing the control method of the communication system.
The Processor 1020 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 1010 may include various types of storage units, such as system memory, read Only Memory (ROM), and permanent storage. Wherein the ROM may store static communication data or instructions for the processor 1020 or other modules of the computer. The persistent storage device may be a read-write storage device. The persistent storage may be a non-volatile storage device that does not lose stored instructions and communication data even after the computer is powered off. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the permanent storage may be a removable storage device (e.g., floppy disk, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as a dynamic random access memory. The system memory may store instructions and communication data that are needed to operate some or all of the processors. Further, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic and/or optical disks, among others. In some embodiments, memory 1010 may include a removable storage device that is readable and/or writable, such as a Compact Disc (CD), a digital versatile disc read only (e.g., DVD-ROM, dual layer DVD-ROM), a Blu-ray disc read only, an ultra-dense optical disc, flash memory cards (e.g., SD, min SD, micro-SD, etc.), a magnetic floppy disk, and so forth. Computer-readable storage media do not contain carrier waves or transitory electronic signals transmitted by wireless or wired means.
The memory 1010 has stored thereon executable code that, when processed by the processor 1020, may cause the processor 1020 to perform some or all of the methods described above.
The aspects of the present application have been described in detail hereinabove with reference to the accompanying drawings. In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments. Those skilled in the art should also appreciate that the acts and modules referred to in the specification are not necessarily required in the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application may be sequentially adjusted, combined, and deleted according to actual needs, and the modules in the device of the embodiment of the present application may be combined, divided, and deleted according to actual needs.
EXAMPLE six
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing some or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a non-transitory machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) having stored thereon executable code (or a computer program, or computer instruction code) which, when executed by a processor of an electronic device (or electronic device, server, etc.), causes the processor to perform part or all of the various steps of the above-described method according to the present application.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the applications disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (10)

1. A communication system, characterized by: the system comprises a control panel, a communication bus and a bus channel selector, wherein the control panel comprises a communication control module which comprises an IO selection unit;
the communication bus comprises a first communication bus and a second communication bus; the first communication bus and the second communication bus are independent in time sharing and are connected with the control panel through a bus channel selector and an IO selection unit.
2. The communication system of claim 1, wherein:
the communication control module also comprises a communication data transmission unit, a fault detection unit and a fault processing unit;
the communication data transmission unit, the fault detection unit and the fault processing unit are all connected with the first communication bus and the second communication bus.
3. The communication system of claim 1, wherein:
the system also comprises a first signal transceiver and a second signal transceiver;
the first signal transceiver and the second signal transceiver are respectively electrically connected with the control board and the bus channel selector;
the bus channel selector is electrically connected with the first communication bus and the second communication bus.
4. The communication system of claim 1, wherein:
the control board comprises a main board, a display board and a drive board;
the main board is electrically connected with at least one of the temperature sensing bulb, the water level sensor, the flowmeter or the door lock and is used for controlling the whole operation process and detecting the operation state of the whole machine;
the display panel is arranged in the display screen and used for displaying the current program information;
the driving plate is connected with the motor and used for driving the motor to rotate and providing a power source.
5. A communication system control method, implemented based on the communication system of any one of claims 1 to 4, comprising the steps of:
s101, connecting the control panel with a power supply, and judging whether the control panel is a host or not by the control panel; if yes, sending communication data to the first communication bus, and if not, waiting for receiving the communication data in a standby mode;
s102, the host acquires communication data within preset time, if the acquisition is successful, S103 is executed, and if the acquisition is failed, S104 is executed;
s103, the host checks the acquired communication data and processes related information;
and S104, the host executes a fault detection and processing program, switches the default first communication bus to a second communication bus, replaces the first communication bus with the second communication bus to transmit data, and continues to complete the communication of the whole machine.
6. The communication system control method of claim 5, wherein:
the host executing the fault detection and processing program comprises:
s1041, after the host computer does not successfully acquire the communication data within the preset time, continuously acquiring the communication data within a period of time, and if the acquisition is successful, continuously executing other subsequent steps; if the acquisition fails, executing S1042;
s1042, closing the first communication bus signal source channel, opening the second communication bus signal source channel, detecting error identification stored in the internal UART module and the current level of the control pin of the chip of the first communication bus by each control board, and sending the detection result to other control boards in a second communication bus communication form.
7. The communication system control method of claim 5, wherein:
the host executing the fault detection and handling procedure further comprises:
each control board continuously detects the error identification stored by the internal UART module and the current level of the control pin of the chip of the first communication bus, if the error identification still exists or the level of the control pin of the first communication bus is abnormal, the second communication bus is continuously used for normal communication data communication, otherwise, the next step is executed;
and opening the first communication bus signal source channel, closing the second communication bus signal source channel, and continuously adopting the first communication bus to transmit the communication data of the whole machine.
8. An intelligent appliance comprising the communication system of any one of claims 1 to 4.
9. An electronic device, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any of claims 5-7.
10. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to perform the method of any of claims 5-7.
CN202211202793.6A 2022-09-29 2022-09-29 Communication system, control method, intelligent household appliance, electronic device and medium Pending CN115643127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211202793.6A CN115643127A (en) 2022-09-29 2022-09-29 Communication system, control method, intelligent household appliance, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211202793.6A CN115643127A (en) 2022-09-29 2022-09-29 Communication system, control method, intelligent household appliance, electronic device and medium

Publications (1)

Publication Number Publication Date
CN115643127A true CN115643127A (en) 2023-01-24

Family

ID=84942238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211202793.6A Pending CN115643127A (en) 2022-09-29 2022-09-29 Communication system, control method, intelligent household appliance, electronic device and medium

Country Status (1)

Country Link
CN (1) CN115643127A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634084A (en) * 2023-07-03 2023-08-22 无锡德凡医疗科技有限公司 Multichannel video signal processing system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116634084A (en) * 2023-07-03 2023-08-22 无锡德凡医疗科技有限公司 Multichannel video signal processing system and method

Similar Documents

Publication Publication Date Title
US20100042764A1 (en) Programmable Multi-Function Adapter for Wireless Networks
CN115643127A (en) Communication system, control method, intelligent household appliance, electronic device and medium
CN104683797A (en) Intelligent television production test method and system
CN114866365A (en) Arbitration machine election method and device, intelligent equipment and computer readable storage medium
CN113630187B (en) PHY initialization method, system, equipment and medium
CN108954702B (en) Control method and device of air conditioner, air conditioner and storage medium
EP3510192B1 (en) A combination of an external device and a laundry machine
KR101733263B1 (en) Control device and method for operating such a control device
WO1999021322A9 (en) Method and system for fault-tolerant network connection switchover
CN111427259B (en) Main and standby switching method of machine frame slot type, intelligent equipment and storage medium
CN112178881B (en) Self-checking method and device of RS485 network
CN115733729B (en) Communication fault processing method, system and equipment
US20180139065A1 (en) Power distribution unit, power distribution system and network-connecting relay method thereof
CN117319185A (en) Multi-equipment master-slave communication system based on CAN communication and addressing and monitoring method
WO2018018853A1 (en) Control apparatus and method for peripheral bus
CN105306289A (en) Method and device for improving reliability of multi-module devices, and client terminal device
CN109557453B (en) Multi-master-control-chip identification processing method and system
US9900176B2 (en) Communication method and apparatus using smart module in home network system
CN113721448B (en) Redundant module switching method and device
CN111431668B (en) Baud rate switching method based on multi-node UART communication, air conditioning system and processor
KR102290796B1 (en) Method of automatically restarting ecu upon occurrence of lin communicatin errors
CN105245840A (en) Data forwarding method and device and camera
JP2000350271A (en) Power-line carrier communication system
CN108307542B (en) Method and device for realizing reconnection of Bluetooth peripheral equipment by intelligent television during Bluetooth adapter replacement
TWI693512B (en) Server device and power management method thereof

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