centralized control system
By identifying the business type and switching the UART communication interface rate, the communication efficiency and stability issues of the centralized controller system during large-scale data communication were resolved, achieving an efficient and flexible communication mode and improving user experience and system response speed.
Patent Information
- Application Number
- CN202211208659.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2025-12-23
- Estimated Expiration
- 2042-09-30
AI Technical Summary
When existing centralized controller systems perform large-scale data communication, the low UART communication rate leads to excessively long communication times, resulting in a poor user experience. Furthermore, the system has poor anti-interference capabilities in complex scenarios, affecting system stability.
By identifying the current service type and configuring the rate parameters of the UART communication interface, the switching between high and low rates is achieved. The switching rate signal is sent through the GPIO interface between the main control unit and the wireless communication unit, and the wireless communication unit is restarted to match the rate requirements of the current service type.
It improves communication efficiency, meets the communication needs of different business types in multiple scenarios, enhances user experience and system stability, and reduces communication costs.
Smart Images

Figure CN115930375B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of centralized control, in particular to a centralized control system. BACKGROUND
[0002] The centralized controller of the central air conditioner brings the user the convenient operation, and is mainly divided into two categories of local end and remote end. The remote end mainly accesses the network through the wired mode (LAN, etc.) or the wireless mode (such as 4G, NB-Iot, WiFi, etc.), can collect the state parameters of the air conditioning unit and send to the centralized controller, and the control instruction issued by the centralized controller is received by the air conditioning unit.
[0003] The system design of the existing centralized controller is shown in Figure 1 , including a main control unit (MCU) 10, an air conditioner communication loop, a wireless communication unit (for example, a WiFi module) 20, a touch / display module and a power supply loop.
[0004] Among them, the air conditioner communication loop is responsible for communication with the air conditioning unit; the wireless communication unit 20 is responsible for connecting the router, accessing the cloud platform, and further communicating with the user terminal through the cloud platform to realize remote management; the touch / display module displays and controls the local state of the air conditioner; the power supply loop provides power for the centralized control system.
[0005] Referring to Figure 2 , the wireless communication unit 20 and the main control unit 10 are connected through the UART communication interface, the communication is simple and stable, and can meet most application scenarios, but when large data volume communication is performed, low-rate communication is still used, which will have a great impact on user use and system response, for example, when the application of large data volume transmission such as remote upgrade (OTA) or advertisement placement is required, the UART communication rate is fixed and low, which will inevitably cause the communication time to be too long, the user experience to be poor, and the system risk to be high. If high-speed communication is used, the anti-interference performance is poor, the retransmission rate will increase when the communication fails, which is not conducive to use in complex scenarios. SUMMARY
[0006] The present application provides a centralized control system, which can configure the rate parameters of the UART communication interface according to the required rate of the business type, realize the switching of high and low rates, improve the communication efficiency, and meet the flexible use of the centralized control system in multiple scenarios.
[0007] The present application provides a centralized control system, which comprises:
[0008] A main control unit for executing centralized control functions;
[0009] A wireless communication unit connected with the main control unit through a UART communication interface, responsible for network access;
[0010] The master control unit is configured to:
[0011] disable the wireless communication unit;
[0012] identify a required rate based on a current service type of the centralized system, and configure a first rate parameter of a UART communication interface of the master control unit;
[0013] send a rate switching signal to the wireless communication unit;
[0014] restart the wireless communication unit;
[0015] The wireless communication unit is configured to:
[0016] configure a second rate parameter of a UART communication interface of the wireless communication unit after receiving the rate switching signal, and complete high-low rate switching between the master control unit and the wireless communication unit;
[0017] The second rate parameter corresponds to the first rate parameter.
[0018] In this way, by identifying a required rate based on a current service type, configuring a first rate parameter of a UART communication rate of the master control unit, and informing the wireless communication unit that the current rate parameter needs to be switched by sending a rate switching signal to the wireless communication unit.
[0019] After the wireless communication unit is restarted, the wireless communication unit receives the rate switching signal, i.e., informs the wireless communication unit that it should configure a second rate parameter corresponding to the first rate parameter to achieve high-low rate switching to match the required rate of the current service type. Rate switching can improve communication efficiency and flexibly meet different requirements of high-low rate in multiple scenarios.
[0020] In some embodiments of the present application, in order to avoid rate loss after the centralized system is abnormally or restarted during the current service type, the master control unit is further configured to:
[0021] based on the current service type, store a configuration file corresponding to the current service type for recovering the current service type after the centralized system is abnormally or restarted.
[0022] In some embodiments of the present application, different service types require different communication rates. In order to flexibly meet the communication needs of different service types, the current service type includes a first service type and a second service type, the first service type is executed at a high rate, and the second service type is executed at a low rate.
[0023] When the first service type is identified, the required rate is identified as a high rate, and the first rate parameter is configured as a high rate parameter.
[0024] When the second service type is identified, a required rate is identified as a low rate, and the first rate parameter is configured as a low rate parameter.
[0025] In this way, the rate can be matched according to the service type, flexibility can be achieved to satisfy the communication of the centralized control system, and when the first service type is identified, the high rate parameter can be switched to, the communication efficiency is improved, the system response is accelerated, and the user experience is improved.
[0026] In some embodiments of the present application, in order to improve the data transmission efficiency of the master control unit and the wireless communication unit, a direct signal transmission mode between interfaces is adopted, which is simple and reliable, reduces communication cost and improves communication stability.
[0027] The wireless communication unit is connected with an interface GPIO2 of the master control unit through an interface GPIO;
[0028] The interface GPIO2 sends the switching rate signal to the interface GPIO.
[0029] In some embodiments of the present application, when the first rate parameter is configured as the high rate parameter, the switching rate signal is one of a high level and a low level;
[0030] When the first rate parameter is configured as the low rate parameter, the switching rate signal is the other of the high level and the low level.
[0031] The switching rate signal being a high level or a low level is only a kind of signal transmission, and therefore can be freely set according to requirements.
[0032] In some embodiments of the present application, the restart of the wireless communication unit includes two modes: power-on restart and reset restart.
[0033] An interface GPIO1 of the master control unit is connected with a reset pin of the wireless communication unit;
[0034] When the master control unit outputs the switching rate signal, the wireless communication unit is reset and restarted.
[0035] When the master control unit completes the configuration and outputs the switching rate signal to the wireless communication unit, the wireless communication unit is restarted, which facilitates the rate switching of the wireless communication unit.
[0036] When the power-on restart is performed, the power supply of the wireless communication unit needs to be controlled, and the centralized control system comprises:
[0037] a power supply control unit having a power supply for providing power to the wireless communication unit, a control terminal of the power supply control unit being connected to an interface GPIO1 of the master control unit for controlling the connection or disconnection of a power transmission path of the power supply to the wireless communication unit.
[0038] In some embodiments of the present application, when the centralized control system is powered on for initialization, the signal output by the interface GPIO1 disconnects the power transmission path;
[0039] When the master control unit outputs the switching rate signal, the signal output by the interface GPIO1 connects the power transmission path, so that the wireless communication unit is powered on and restarted.
[0040] In some embodiments of the present application, the power supply control unit comprises:
[0041] a switching circuit comprising a switching control element, a control terminal of the switching control element being connected to the interface GPIO1, an input terminal of the switching circuit being connected to the power supply, and an output terminal of the switching circuit being connected to a power supply terminal of the wireless communication unit.
[0042] In some embodiments of the present application, the switching control element is a high-level conduction switching element;
[0043] One end of the high-level conduction switching element is connected to the power supply through a first pull-up resistor, and the other end is connected to a first ground resistor. The connection position between the first pull-up resistor and one end of the high-level conduction switching element is the output terminal of the switching circuit, or the connection position between the first ground resistor and the other end of the high-level conduction switching element is the output terminal of the switching circuit.
[0044] In some embodiments of the present application, the switching control element is a low-level conduction switching element;
[0045] One end of the low-level conduction switching element is connected to a first high-level, and the other end is connected to a second ground resistor. The connection position between the second ground resistor and the other end of the low-level conduction switching element is the output terminal of the switching circuit. BRIEF DESCRIPTION OF DRAWINGS
[0046] Figure 1 A system diagram of a centralized control system is shown;
[0047] Figure 2 A circuit diagram showing communication between a master control unit and a wireless communication unit in a centralized control system using a UART communication interface according to some embodiments is shown;
[0048] Figure 3A flow chart showing the rate switching of the master unit in the centralized control system according to some embodiments is shown.
[0049] Figure 4 A communication line when the master unit and the wireless communication unit in the centralized control system according to some embodiments perform rate switching is shown Figure 1 .
[0050] Figure 5 A circuit of the power control unit in the centralized control system according to some embodiments is shown Figure 1 .
[0051] Figure 6 A circuit of the power control unit in the centralized control system according to some embodiments is shown Figure 2 .
[0052] Figure 7 A circuit of the power control unit in the centralized control system according to some embodiments is shown Figure 3 .
[0053] Figure 8 A communication line when the master unit and the wireless communication unit in the centralized control system according to some embodiments perform rate switching is shown Figure 2 .
[0054] Figure 9 A communication line when the master unit and the wireless communication unit in the centralized control system according to some embodiments perform rate switching is shown Figure 2 .
[0055] Figure 10 A flow chart showing the rate switching of the wireless communication unit in the centralized control system according to some embodiments is shown. DETAILED DESCRIPTION
[0056] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0057] In the description of the present application, it should be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like indicate the orientation or positional relationship based on the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application.
[0058] The terms "first", "second", etc. are used only for the purpose of description and do not imply or indicate relative importance or imply the number of the technical features indicated. Thus, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified and limited.
[0059] In the description of the present application, it should be noted that unless otherwise explicitly specified and limited, the terms "mounting", "connecting", "connection" should be understood broadly, for example, it can be fixed connection, or detachable connection, or integrally connected; it can be mechanical connection, or electrical connection; it can be directly connected, or indirectly connected through intermediate medium, or the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.
[0060] In the present application, unless otherwise explicitly specified and limited, the "upper" or "lower" of the first feature to the second feature can include that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, the "upper", "above" and "on" of the first feature to the second feature includes that the first feature is directly above and obliquely above the second feature, or only means that the horizontal height of the first feature is higher than that of the second feature. The "under", "below" and "under" of the first feature to the second feature includes that the first feature is directly below and obliquely below the second feature, or only means that the horizontal height of the first feature is less than that of the second feature.
[0061] The following disclosure provides many different embodiments or examples for implementing different structures of the present application. In order to simplify the disclosure of the present application, the components and arrangements of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeatedly refer to numbers and / or letters in different examples, and such repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or arrangements discussed. In addition, the present application provides examples of various specific processes and materials, but those skilled in the art can realize the application of other processes and / or the use of other materials.
[0062] As Figure 1 The centralized control system is used for centralized control of central air conditioners, and can realize local and remote control. If used for remote control and remote data uploading, it needs to be connected through the wireless communication unit 20 and logged in the centralized control system for operation.
[0063] The basic principle of the air conditioner is described as follows.
[0064] An air conditioner performs a refrigeration cycle of the air conditioner by using a compressor, a condenser, an expansion valve, and an evaporator. The refrigeration cycle includes a series of processes involving compression, condensation, expansion, and evaporation, and supplies refrigerant to air that has been adjusted and heat-exchanged.
[0065] The compressor compresses refrigerant gas in a high-temperature and high-pressure state and discharges the compressed refrigerant gas. The discharged refrigerant gas flows into the condenser. The condenser condenses the compressed refrigerant into a liquid phase, and heat is released to the surrounding environment through the condensation process.
[0066] The expansion valve expands the liquid-phase refrigerant condensed in the condenser into a low-pressure liquid phase. The evaporator evaporates the refrigerant expanded in the expansion valve and returns the refrigerant gas in a low-temperature and low-pressure state to the compressor. The evaporator can achieve a refrigeration effect by heat-exchanging with a material to be cooled using latent heat of evaporation of the refrigerant. Throughout the cycle, the air conditioning unit can adjust the temperature of an indoor space.
[0067] The air conditioner outdoor unit refers to a portion including the compressor of the refrigeration cycle, and the air conditioner indoor unit includes the indoor heat exchanger, and the expansion valve can be provided in the air conditioner indoor unit or the outdoor unit.
[0068] The indoor heat exchanger and the outdoor heat exchanger serve as a condenser or an evaporator. When the indoor heat exchanger serves as a condenser, the air conditioner serves as a heater in a heating mode, and when the indoor heat exchanger serves as an evaporator, the air conditioner serves as a cooler in a cooling mode.
[0069] Referring to Figure 2 , the master control unit 10 and the wireless communication unit 20 in the centralized control system are connected through a UART communication interface, the communication connection is stable, the comprehensive cost is low, the development cycle is short, and the remote control demand of most application scenarios (such as ordinary air conditioner control, air conditioner state reporting) of users is met.
[0070] However, when performing applications such as remote upgrading, advertisement delivery, and the like requiring large data transmission, the current communication mode with fixed and low rate of the UART communication rate will have problems such as slow system response, long communication time, and poor user experience.
[0071] To solve the above technical problems, the present application relates to a centralized control system, which switches the rate by identifying the required rate based on the service type, and flexibly realizes the variable speed problem of the UART communication interface.
[0072] Referring to Figure 3 , the present application mainly relates to the processing of the UART communication mode between the master control unit 10 and the wireless communication unit 20.
[0073] S1: power on
[0074] That is, the power of the centralized control system is turned on.
[0075] Referring to Figure 1 The centralized control system controls the power on through the power supply circuit.
[0076] S2: The centralized control system is initialized
[0077] After the centralized control system is powered on, the centralized control system is initialized so as to enter the centralized control.
[0078] S3: The wireless communication unit is disabled.
[0079] After the centralized control system is initialized, the wireless communication unit 20 is disabled.
[0080] In some embodiments of the present application, the disabling of the wireless communication unit 20 includes two kinds: (1) disabling the power supply for the wireless communication unit 20; (2) keeping the wireless communication unit 20 in reset.
[0081] The above describes the two cases respectively.
[0082] (1) For example, the power supply path to the power supply end VCC1 of the wireless communication unit 20 can be controlled to be disconnected, so as to disable the wireless communication unit 20 and save the power at the same time.
[0083] Referring to Figure 4 The power supply control unit 30 can be arranged between the interface GPIO1 of the main control unit 10 and the power supply end VCC1 of the wireless communication unit 20.
[0084] The power supply control unit 30 is used to control the power supply to the power supply end VCC1 or not according to the signal output by the interface GPIO1.
[0085] In some embodiments of the present application, the power supply control unit 30 has a power supply VCC for providing power to the wireless communication unit 20, and the control end of the power supply control unit 30 is connected with an interface GPIO1 of the main control unit 10, for controlling the power transmission path of the power supply VCC to the wireless communication unit 20 to be connected or disconnected.
[0086] That is, the power transmission path is the path from the power supply VCC to the power supply end VCC1.
[0087] When the centralized control system is powered on and initialized, the signal output by the interface GPIO1 disconnects the power transmission path.
[0088] The signal output by the interface GPIO1 can be high level or low level, which is designed according to the requirement.
[0089] In some embodiments of the present application, the power control unit 30 comprises a switching circuit.
[0090] The switching circuit comprises a switching control element, a control terminal of the switching control element is connected to the interface GPIO1, an input terminal of the switching circuit is connected to the power supply VCC, and an output terminal of the switching circuit is connected to the power supply terminal VCC1 of the wireless communication unit 20.
[0091] Reference is made to Figures 5 to 7 to describe the structure of the switching circuit in the power control unit 30.
[0092] The switching circuit comprises the switching control element and its peripheral circuit.
[0093] In some embodiments of the present application, the switching control element can also be a high-level on switch element or a low-level on switch element, but when different switching elements are selected, the adaptive peripheral circuit is different.
[0094] Irrespective of whether the signal output by the interface GPIO1 is high level or low level, and irrespective of whether the switching control element is a high-level on switch element or a low-level on switch element, as long as the signal output by the interface GPIO1 can make the power control unit 30 not supply power to the wireless communication unit 20 during the power-on initialization of the centralized control system, i.e., the wireless communication unit does not work.
[0095] When the switching control element is a high-level on switch element, refer to Figure 5 and Figure 6 , the high-level on switch element is selected as an NPN transistor Q1'.
[0096] Refer to Figure 5 , the control terminal (i.e., the base) of the transistor Q1' is connected to the interface GPIO1 through the current-limiting resistor R2', and is connected with the pull-down resistor R3', the collector is connected to the power supply VCC through the pull-up resistor R4', the emitter is connected to the grounding resistor R1', and the connection position between the pull-up resistor R4' and the collector of the transistor Q1' is the output terminal of the switching circuit, and the output terminal of the switching circuit is connected to the power supply terminal VCC1 of the wireless communication unit 20.
[0097] When the centralized control system is powered on, it is not desired to supply power to the wireless communication unit 20, and then the host control unit 10 outputs a high-level signal at the interface GPIO1.
[0098] Since the control terminal of the transistor Q1' is high level, the transistor Q1' is turned on, and the electric energy at VCC1 is pulled down to zero through the grounding resistor R1', and the wireless communication unit 20 cannot be powered, i.e., the power-on of the wireless communication unit 20 is prohibited.
[0099] Correspondingly, if the wireless communication unit 20 is to be restarted, the master control unit 10 outputs a low-level signal at the interface GPIO1.
[0100] Since the control end of the transistor Q1' is at a low level, the transistor Q1' is cut off, and VCC is at a high level, the power supply end VCC1 of the wireless communication unit 20 has power, which can supply power to the wireless communication unit 20, i.e., restart the wireless communication unit 20 (see Figure 8 ).
[0101] Similarly, referring to Figure 6 , the control end (i.e., the base) of the transistor Q1' is connected to the interface GPIO1 through the current-limiting resistor R2', and is connected with the pull-down resistor R3', the collector is connected to the power supply VCC through the pull-up resistor R4', and the emitter is connected to the ground resistor R1', the connection position between the ground resistor R1' and the emitter of the transistor Q1' is the output end of the switch circuit, and the output end of the switch circuit is connected to the power supply end VCC1 of the wireless communication unit 20.
[0102] When the centralized control system is powered on, it is not desired to supply power to the wireless communication unit 20, and the master control unit 10 outputs a low-level signal at the interface GPIO1.
[0103] Since the control end of the transistor Q1' is at a low level, the transistor Q1' is not turned on, and the power at VCC1 is pulled down to zero through the ground resistor R1', which cannot supply power to the wireless communication unit 20, i.e., the wireless communication unit 20 is prohibited from being powered on.
[0104] Correspondingly, if the wireless communication unit 20 is to be restarted, the master control unit 10 outputs a high-level signal at the interface GPIO1.
[0105] Since the control end of the transistor Q1' is at a high level, the transistor Q1' is turned on, and VCC is at a high level, the power supply end VCC1 of the wireless communication unit 20 has power, which can supply power to the wireless communication unit 20, i.e., restart the wireless communication unit 20 (see Figure 8 ).
[0106] The switch control element can also be selected as Figure 7 the PNP transistor Q1 and its peripheral circuit as shown, which will not be described in detail here.
[0107] (2) A reset signal can also be continuously sent to the reset pin RES of the wireless communication unit 20 by a preset program, so that the wireless communication unit 20 is continuously in a reset state and cannot enter a working state, thereby prohibiting the wireless communication unit 20 from working.
[0108] In some embodiments of the present application, referring to Figure 9The GPIO1 interface of the main control unit 10 is directly connected to the reset pin RES of the wireless communication unit 20.
[0109] When the centralized control system is powered on, if the wireless communication unit 20 is not to be activated, the main control unit 10 will continuously output a reset signal at interface GPIO1 according to the first preset program.
[0110] When the reset pin RES receives a reset signal, it remains in the reset state, that is, the wireless communication unit 20 is disabled.
[0111] Accordingly, if the wireless communication unit 20 needs to be restarted, the main control unit 10 outputs a reset signal at interface GPIO1 according to the second preset program, which is used to restart the wireless communication unit 20 after a reset.
[0112] Depending on the requirements, any of the above-mentioned methods can be selected to disable the operation of the wireless communication unit 20.
[0113] In some embodiments of this application, the power control unit 30 is selected for control based on the service type and application scenario. In this way, power consumption can be further reduced by cutting off the power supply of the wireless communication unit 20 when no network connection is required.
[0114] S4: Determine if the required rate is high, and proceed to S5.
[0115] The main control unit 10 identifies the required rate based on the current service type of the centralized control system.
[0116] There is a correlation between service type and speed; the speed is determined based on the service type.
[0117] The business types include a first business type and a second business type. The first business type is characterized by its business being executed at a low rate, while the second business type is characterized by its business being executed at a high rate.
[0118] The first type of business includes services such as remote upgrades and advertising video playback.
[0119] This type of service requires high-speed communication between the main control unit 10 and the wireless communication unit 20 via the UART communication interface.
[0120] The second type of business includes routine air conditioning control, such as cooling and heating, and air conditioning status reporting.
[0121] This type of service can be executed using the low-speed, stable, and fixed rate of the UART communication interface between the main control unit 10 and the wireless communication unit 20.
[0122] Therefore, by identifying the current business type, the required rate can be determined.
[0123] For example, if the current service type is the remote upgrade service, the required rate should be the high rate; if the current service type is the air conditioner regular control service, the required rate should be the low rate.
[0124] In this way, by matching different service types, the rate switching between the high rate and the low rate is performed, the communication efficiency is improved, and the application scenarios of the centralized control system are expanded.
[0125] In some embodiments of the present application, when the main control unit 10 identifies the current service type, the current configuration file is stored to prevent the system from recovering the execution of the current service type after the system is abnormally executed or restarted.
[0126] Therefore, referring to the dashed box part S3' in Figure 3 and Figure 8 , after the centralized control system is powered on and initialized, the main control unit 10 needs to read the configuration file to recover the current service type.
[0127] If the low-rate air conditioner regular control service is executed before the restart, that is, the configuration file of the low-rate configuration is called, the air conditioner regular control service needs to be recovered after the initialization, and the required rate of the current service type is identified.
[0128] If the required rate of the current service type is the high rate, the main control unit 10 updates the configuration file to the configuration file of the high-rate configuration, and then performs the rate switching from the low rate to the high rate.
[0129] If the required rate of the current service type is still the low rate, the main control unit 10 does not update the configuration file.
[0130] Similarly, if the high-rate advertising video service is executed before the restart, that is, the configuration file of the high-rate configuration is called, the advertising video service needs to be recovered after the initialization, and the required rate of the current service type is identified.
[0131] If the required rate of the current service type is the low rate, the main control unit 10 updates the configuration file to the configuration file of the low-rate configuration, and then performs the rate switching from the high rate to the low rate.
[0132] If the required rate is still the high rate, the main control unit 10 does not update the configuration file.
[0133] S5: The first rate parameter of the UART communication interface of the main control unit 10 is configured.
[0134] According to the required rate in S4, the first rate parameter is determined to be the high-rate parameter or the low-rate parameter.
[0135] If the required rate is high rate in S4, the first rate parameter is configured as high rate parameter, for example, the communication rate is 2Mbps.
[0136] If the required rate is low rate in S4, the first rate parameter is configured as low rate parameter, for example, the communication rate is 9.6Kbps.
[0137] S6: sending the switching rate signal to the wireless communication unit 20.
[0138] In the present application, referring to Figure 4 and Figure 9 , the switching rate signal is sent through connecting an interface GPIO2 of the host control unit 10 and an interface GPIO of the wireless communication unit 20.
[0139] The interface GPIO2 of the host control unit 10 sends the switching rate signal to an interface GPIO of the wireless communication unit 20.
[0140] The switching rate signal indicates that the wireless communication unit 20 should configure the rate parameter.
[0141] The configured rate parameter (i.e., the second rate parameter as described below) corresponds to and matches the first rate parameter.
[0142] That is, when the first rate parameter is high rate parameter, the configured rate parameter is also high rate parameter, for example, 2Mbps; when the first rate parameter is low rate parameter, the configured rate parameter is also low rate parameter, for example, 9.6Kbps.
[0143] S7: restarting the wireless communication unit 20.
[0144] As described above, the wireless communication unit 20 can be restarted in the manner of S3.
[0145] Restarting the wireless communication unit 20 includes two ways: (1) power-on restart (see Figure 8 ); (2) reset restart.
[0146] (11) Referring to Figure 5 , if the wireless communication unit 20 is to be power-on restarted, the host control unit 10 outputs a low-level signal at the interface GPIO1.
[0147] Since the control end of the transistor Q1' is low level, the transistor Q1' is cut off, and VCC is high level, the power supply end VCC1 of the wireless communication unit 20 has power and can supply power to the wireless communication unit 20, that is, the wireless communication unit 20 is power-on restarted.
[0148] (12) Referring to Figure 6If the wireless communication unit 20 is to be restarted, the host unit 10 outputs a high level signal at the interface GPIO1.
[0149] Since the control end of the transistor Q1' is at a high level, the transistor Q1' is turned on, and VCC is at a high level, the power supply end VCC1 of the wireless communication unit 20 has power, which can supply power to the wireless communication unit 20, i.e., restart the wireless communication unit 20.
[0150] (21) If the wireless communication unit 20 is to be restarted, the host unit 10 outputs a reset signal at the interface GPIO1 according to the second preset program, which is used to restart the wireless communication unit 20 after the wireless communication unit 20 is reset once.
[0151] As described above, the host unit 10 completes the rate switching.
[0152] After the host unit 10 completes the rate switching, the wireless communication unit 20 is restarted, which facilitates the rate matching switching of the wireless communication unit 20.
[0153] Referring to Figure 10 which shows a flowchart of the rate switching of the wireless communication unit 20.
[0154] S8: The wireless communication unit 20 receives the switching rate signal.
[0155] As described above, the interface GPIO2 of the host unit 10 sends the switching rate signal to an interface GPIO of the wireless communication unit 20.
[0156] After the wireless communication unit 20 is restarted in S7, the interface GPIO of the wireless communication unit 20 receives the switching rate signal and configures the rate parameter of the wireless communication unit 20 according to the switching rate signal.
[0157] The switching rate signal can be any one of a high level and a low level.
[0158] Suppose that when the switching rate signal is at a high level, the required rate parameter corresponding to the wireless communication unit 20 is a high rate parameter, then when the switching rate signal is at a low level, the required rate parameter corresponding to the wireless communication unit 20 is a low rate parameter.
[0159] Conversely, when the switching rate signal is at a low level, the required rate parameter corresponding to the wireless communication unit 20 is a high rate parameter, then when the switching rate signal is at a high level, the required rate parameter corresponding to the wireless communication unit 20 is a low rate parameter.
[0160] The specific switching rate signal is selected as a high level or a low level, which can be freely set according to the needs.
[0161] In some embodiments of the present application, when the switching rate signal is high, the wireless communication unit 20 corresponds to the required configuration of the rate parameter as the high rate parameter.
[0162] When the switching rate signal is low, the wireless communication unit 20 corresponds to the required configuration of the rate parameter as the low rate parameter.
[0163] As described in S7, if the first rate parameter is the high rate parameter, an interface GPIO of the wireless communication unit 20 receives the switching rate signal as high, i.e., the required configuration of the rate parameter is the high rate parameter, such as 2 Mbps.
[0164] If the first rate parameter is the low rate parameter, an interface GPIO of the wireless communication unit 20 receives the switching rate signal as low, i.e., the required configuration of the rate parameter is the low rate parameter, such as 9.6 Kbps.
[0165] S9: Determine whether the rate corresponding to the switching rate signal is the high rate and proceed to S10.
[0166] As described in S8, the wireless communication unit 20 identifies the corresponding rate based on the switching rate signal.
[0167] The switching rate signal has a corresponding relationship with the rate.
[0168] In some embodiments of the present application, when an interface GPIO of the wireless communication unit 20 receives the switching rate signal as high, it indicates that the corresponding rate is the high rate.
[0169] When an interface GPIO of the wireless communication unit 20 receives the switching rate signal as low, it indicates that the corresponding rate is the low rate.
[0170] S10: Configure the second rate parameter of the UART communication interface of the wireless communication unit.
[0171] According to the required rate in S9, determine whether the second rate parameter is the high rate parameter or the low rate parameter that matches the first rate parameter.
[0172] If the first rate parameter is the high rate parameter, it is determined in S9 that the required rate should be the high rate, and therefore, the second rate parameter is configured as the high rate parameter, such as a communication rate of 2 Mbps.
[0173] If the first rate parameter is the low rate parameter, it is determined in S9 that the required rate should be the low rate, and therefore, the second rate parameter is configured as the low rate parameter, such as a communication rate of 9.6 Kbps.
[0174] As described above, the service type, the first rate parameter, the switching rate signal, and the second rate parameter correspond to each other.
[0175] That is, if the required rate of the service type is a high rate parameter, the first rate parameter is configured as a high rate parameter, the rate corresponding to the switching rate signal is a high rate, and thus the second rate parameter is configured as a high rate parameter.
[0176] For example, the first rate parameter and the second rate parameter are both 2 Mbps.
[0177] If the required rate of the service type is a low rate parameter, the first rate parameter is configured as a low rate parameter, the rate corresponding to the switching rate signal is a low rate, and thus the second rate parameter is configured as a low rate parameter.
[0178] For example, the first rate parameter and the second rate parameter are both 9.6 Kbps.
[0179] In some embodiments of the present application, two signal transmission paths are arranged between the interface of the master control unit 10 and the interface of the wireless communication unit 20.
[0180] That is, the first signal transmission path between the interface GPIO1 of the master control unit 10 and the power supply end VCC1 of the wireless communication unit 20, and the second signal transmission path between the interface GPIO2 of the master control unit 10 and the interface GPIO of the wireless communication unit 20.
[0181] In combination with the service type, the master control unit 10 and the wireless communication unit 20 respectively configure the rate parameters.
[0182] When the service type requires high rate communication, switching to high rate parameter for communication, and when the service type requires low rate communication, switching to low rate parameter for communication, flexibly meeting the communication requirements of different service types and improving the communication efficiency.
[0183] In addition, the two signal transmission paths added in the present application have simple structure, are easy to implement and reliable in communication, not only reducing the communication cost, but also ensuring the switching stability.
[0184] In some embodiments of the present application, when the high rate scene is completed, it is also necessary to switch to low rate operation again, and the above process is also required. After being configured as a low rate parameter, communication can be performed again.
[0185] In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0186] The above merely illustrates the specific embodiments of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A centralized control system, comprising: a master control unit configured to perform a centralized control function; a wireless communication unit connected to the master control unit through a UART communication interface and responsible for network connection; characterized in that the master control unit is configured to: inhibit the wireless communication unit from working; identify a required rate based on a current service type of the centralized control system, and configure a first rate parameter of the UART communication interface of the master control unit; send a rate switching signal to the wireless communication unit; restart the wireless communication unit; the wireless communication unit is configured to: configure a second rate parameter of the UART communication interface of the wireless communication unit after receiving the rate switching signal, and complete the switching between high and low rates between the master control unit and the wireless communication unit; wherein the second rate parameter corresponds to the first rate parameter.
2. The control system of claim 1, wherein, the master control unit is further configured to: based on the current service type, store a configuration file corresponding to the current service type, for recovering the current service type after the centralized control system abnormally or restarts.
3. The centralized control system of claim 2, wherein: the current service type includes a first service type and a second service type, the first service type is executed at a high rate, and the second service type is executed at a low rate; when the first service type is identified, the required rate is identified as a high rate, and the first rate parameter is configured as a high rate parameter; when the second service type is identified, the required rate is identified as a low rate, and the first rate parameter is configured as a low rate parameter.
4. The centralized control system of claim 1, wherein: the wireless communication unit is connected to an interface GPIO2 of the master control unit through an interface GPIO; the interface GPIO2 sends the rate switching signal to the interface GPIO.
5. The centralized control system of claim 4, wherein: when the first rate parameter is configured as a high rate parameter, the rate switching signal is one of a high level and a low level; when the first rate parameter is configured as a low rate parameter, the rate switching signal is the other of the high level and the low level.
6. The centralized control system of claim 1, wherein: an interface GPIO1 of the master control unit is connected to a reset pin of the wireless communication unit; when the master control unit outputs the rate switching signal, the wireless communication unit is reset to restart.
7. The control system of claim 1, wherein, further comprising: a power control unit having a power supply for providing power to the wireless communication unit, a control end of the power control unit being connected to an interface GPIO1 of the master control unit for controlling the power transmission path of the power supply to the wireless communication unit.
8. The centralized control system of claim 7, wherein: when the centralized control system is powered on and initialized, the signal output by the interface GPIO1 disconnects the power transmission path. When the master control unit outputs the switching rate signal, the signal output by the interface GPIO1 is connected to the power transmission path, and the wireless communication unit is powered on and restarted.
9. The collection system of claim 7, wherein, The power supply control unit comprises: The switch circuit comprises a switch control element, a control end of the switch control element is connected to the interface GPIO1, an input end of the switch circuit is connected to the power supply, and an output end of the switch circuit is connected to a power supply end of the wireless communication unit.
10. The centralized control system according to claim 9, wherein The switch control element is a high-level conduction switch element; One end of the high-level conduction switch element is connected to the power supply through a first pull-up resistor, and the other end is connected to a first grounding resistor, a connection position between the first pull-up resistor and the one end of the high-level conduction switch element is the output end of the switch circuit, or a connection position between the first grounding resistor and the other end of the high-level conduction switch element is the output end of the switch circuit; or The switch control element is a low-level conduction switch element; One end of the low-level conduction switch element is connected to a first high-level, and the other end is connected to a second grounding resistor, and a connection position between the second grounding resistor and the other end of the low-level conduction switch element is the output end of the switch circuit.
Citation Information
Patent Citations
Protocol conversion device, communication system and communication method for air conditioner
CN112448922A
Communication controller, and facility communication system
JP2018101832A