CN105180383A - Communication mode control method and system and air conditioner debugging device - Google Patents

Communication mode control method and system and air conditioner debugging device Download PDF

Info

Publication number
CN105180383A
CN105180383A CN201510708507.7A CN201510708507A CN105180383A CN 105180383 A CN105180383 A CN 105180383A CN 201510708507 A CN201510708507 A CN 201510708507A CN 105180383 A CN105180383 A CN 105180383A
Authority
CN
China
Prior art keywords
communication
mode
chip
air conditioner
modes
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.)
Granted
Application number
CN201510708507.7A
Other languages
Chinese (zh)
Other versions
CN105180383B (en
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 CN201510708507.7A priority Critical patent/CN105180383B/en
Publication of CN105180383A publication Critical patent/CN105180383A/en
Application granted granted Critical
Publication of CN105180383B publication Critical patent/CN105180383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The invention discloses a communication mode control method and system. The method is applied to an air conditioner debugging device and comprises an upwards-pulling resistance circuit, a communication chip, a first communication interface and a second communication interface. According to the method, by means of the enabling end of the communication chip, the communication chip is controlled to be in the working state or the non-working state, and the communication mode of the debugging device is controlled into the required mode. When the communication chip is controlled to be in the working state, the communication mode adopted for the debugging device is the first communication mode provided by a first communication circuit formed by the communication chip, the upwards-pulling resistance circuit and the first communication interface. When the communication chip is controlled to be in the non-working state, the communication mode adopted for the debugging device is a second communication mode provided by a second communication circuit formed by the second communication interface and the upwards-pulling resistance circuit. It can be seen that when the communication mode control method and system are applied, the air conditioner debugging device can be compatible to various air conditioner units without changing the dial-up mode, use is convenient, and reliability is high.

Description

A kind of communication modes control method, system and debugging air conditioner device
Technical field
The invention belongs to the switching control technology field between different communication modes, particularly relate to a kind of communication modes control method, system and debugging air conditioner device.
Background technology
Current air-conditioning products controller, as the mainboard controller etc. of air-conditioner set, for the consideration of the various factors such as cost and different functional requirements, different communication modes can be adopted to carry out communication, wherein, the communication modes adopted is generally 485 communications or UART (UniversalAsynchronousReceiver/Transmitter, universal asynchronous receiving-transmitting transmitter) communication.
For guaranteeing that the communication modes adopted with air-conditioning products controller matches, the debugging apparatus such as air-conditioning manual operator or display with functions such as unit regulation can not be designed to only adopt single communication modes, such as, for 485 communications and UART communication, the debugging apparatus that two kinds adopt different communication modes can be designed respectively, it is high that this mode has design cost, high and the not problem such as Portable belt of use cost, for this problem, develop at present and be designed with two cover communicating circuits simultaneously, the debugging apparatus of communication interface, this debugging apparatus uses following methods to carry out the control of communication modes: by carrying out dial-up control between two cover hardware circuits, the communication modes of debugging apparatus is realized to control as required communication modes.The method is owing to need change communication modes by dial-up, and operation comparatively bothers, and dial-up easily lost efficacy after using certain number of times.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of communication modes control method, system and debugging air conditioner device, be intended to by realizing a kind of communication modes control program without the need to dial-up, making debugging air conditioner device just can compatible multiple air-conditioner set without the need to changing dial-up, promoting property easy to use and the reliability of described debugging apparatus.
For this reason, the present invention's openly following technical scheme:
A kind of communication modes control method, be applied to debugging air conditioner device, described debugging air conditioner device comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Described method comprises:
Obtain target communication mode;
When described target communication mode is the first communication modes, by the Enable Pin of described communication chip, described communication chip is controlled as duty; Wherein, the first communicating circuit that in running order described communication chip and described first communication interface, pull-up resistor circuit are formed is for providing the communication function of described first communication modes;
When described target communication mode is the second communication modes, by the Enable Pin of described communication chip, described communication chip is controlled as off working state; Wherein, the second communicating circuit of forming of described second communication interface and described pull-up resistor circuit is for providing the communication function of described second communication modes.
Said method, preferably, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips; Described second communication interface is universal asynchronous receiving-transmitting transmitter UART communication port, and described second communication modes is UART communication.
Said method, preferably, described acquisition target communication mode comprises: receive the target communication mode that user is arranged by software mode.
Said method, preferably, described debugging air conditioner device also comprises microcontroller, then described acquisition target communication mode comprises:
Detect described 485 communication ports by the first I/O I/O port of described MCU to be connected with 485 communications between air-conditioner set and whether to connect; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
Said method, preferably, described debugging air conditioner device also comprises microcontroller, then described acquisition target communication mode comprises:
Receive the target communication mode that user is arranged by software mode; Or,
Detect described 485 communication ports by the first I/O I/O port of described MCU to be connected with 485 communications between air-conditioner set and whether to connect; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
Said method, preferably, described when described target communication mode is the first communication modes, by the Enable Pin of described communication chip, described communication chip is controlled, for duty, to comprise:
When described target communication mode is 485 communication, by second I/O port of described debugging air conditioner device MCU, the Enable Pin of described 485 chips is controlled to be the first level state;
It is in running order that described first level state characterizes described 485 chips.
Said method, preferably, described when described target communication mode is the second communication modes, by the Enable Pin of described communication chip, described communication chip is controlled, for off working state, to comprise:
When described target communication mode is UART communication, by second I/O port of described debugging air conditioner device MCU, the Enable Pin of described 485 chips is controlled as second electrical level state;
Described in described second electrical level state representation, 485 chips are in off working state.
A kind of communication modes control system, be applied to debugging air conditioner device, described debugging air conditioner device comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Described system comprises:
Acquisition module, for obtaining target communication mode;
First control module, for when described target communication mode is the first communication modes, controls as duty by the Enable Pin of described communication chip by described communication chip; Wherein, the first communicating circuit that in running order described communication chip and described first communication interface, pull-up resistor circuit are formed is for providing the communication function of described first communication modes;
Second control module, for when described target communication mode is the second communication modes, controls as off working state by the Enable Pin of described communication chip by described communication chip; Wherein, the second communicating circuit of forming of described second communication interface and described pull-up resistor circuit is for providing the communication function of described second communication modes.
Said system, preferably, described first communication modes is 485 communications, described communication chip is 485 chips, described second communication modes is UART communication, and described acquisition module comprises: receiving element, for receiving the target communication mode that user is arranged by software mode.
Said system, preferably, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips, and described second communication modes is UART communication, and described acquisition module comprises:
Whether IO detecting unit, be connected with 485 communications between air-conditioner set connect for being detected described 485 communication ports by the first I/O I/O port of described debugging air conditioner device MCU; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
Said system, preferably, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips, and described second communication modes is UART communication, and described acquisition module comprises:
Receiving element, for receiving the target communication mode that user is arranged by software mode;
Whether IO detecting unit, be connected with 485 communications between air-conditioner set connect for being detected described 485 communication ports by the first I/O I/O port of described debugging air conditioner device MCU; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
Said system, preferably, described first control module comprises: the first control unit, for when described target communication mode is 485 communication, the Enable Pin of described 485 chips is controlled to be the first level state by second I/O port of described debugging air conditioner device MCU;
It is in running order that described first level state characterizes described 485 chips.
Said system, preferably, described second control module comprises:
Second control unit, for when described target communication mode is UART communication, controls as second electrical level state by second I/O port of described debugging air conditioner device MCU by the Enable Pin of described 485 chips;
Described in described second electrical level state representation, 485 chips are in off working state.
A kind of debugging air conditioner device, comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Also comprise system as above.
From above scheme, method and system disclosed in the present application, is applied to debugging air conditioner device, and described debugging air conditioner device comprises pull-up resistor circuit, communication chip, the first communication interface and the second communication interface, communication chip controls to be duty by utilizing the Enable Pin of communication chip by described method, or off working state, realize the communication modes of debugging apparatus being controlled for required mode, wherein, when communication chip is controlled as duty, the communication modes that debugging apparatus adopts is by communication chip, the first communication modes that the first communicating circuit that pull-up resistor circuit and the first communication interface are formed provides, when communication chip is controlled as off working state, the communication modes that debugging apparatus adopts is by the second communication interface, the second communication modes that the second communicating circuit that pull-up resistor circuit is formed provides.Visible, application the application, debugging air conditioner device just can compatible multiple air-conditioner set without the need to changing dial-up, easy to use and reliability is high.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the hardware components schematic diagram of the debugging air conditioner device that the embodiment of the present invention one provides;
Fig. 2 is the debugging air conditioner device that provides of the embodiment of the present invention one and 485 and the wiring schematic diagram of UART two kinds of communication modes air-conditioner set;
Fig. 3 is the communication modes control method flow chart that the embodiment of the present invention one provides;
Fig. 4 is the structural representation of the communication modes control system that the embodiment of the present invention two provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The embodiment of the present invention one discloses a kind of communication modes control method, described method can be applicable in the debugging air conditioner devices such as air-conditioning manual operator, display, particularly, can be applicable to the MCU (microcontroller of debugging air conditioner device, MicrocontrollerUnit) in, below first to debugging air conditioner device realize the application's method based on necessary hardware foundation describe in detail.
With reference to figure 1, described debugging air conditioner device realize the application's method based on necessary hardware components comprise: MCU1, the pull-up resistor circuit 2 be connected with MCU1, the communication chip 3 be connected with described pull-up resistor circuit 2 and the second communication interface 4, the first communication interface 5 be connected with described communication chip 3.
485 communications that the present embodiment adopts air-conditioner set more often to use and UART communication two kinds of communication modes are described the application's method.Based on this, described first communication interface 5 is specially 485 communication ports, and described second communication interface 4 is specially UART communication port, and 485 communication need communication two parties have 485 chips, thus described communication chip 3 is specially 485 chips, such as, it can be MAX13089EESD chip etc.
With reference to figure 2, PCB (the PrintedCircuitBoard of described debugging air conditioner device, printed circuit board) can two group of 5 core terminal be passed through, or two group of 4 core terminal, or 5 two groups of terminals of core+4 core form, realize the air-conditioner set with 485 communication modes, communication between the air-conditioner set of UART communication modes connects, wherein, when 485 communication ports adopt 5 core terminal, pin function corresponding to each 485 communication terminals is: 1 pin → IO detection port, (namely debugging air conditioner device does not have independently power supply for 2 pin → 3.3 or 5V power supply, indirectly powered by air-conditioner set), 3 pin and 4 pin → communication, 5 pin → GND, wherein said 1 pin, the core 1 that 2 pin are corresponding, core 2 short circuit.Pin function corresponding to UART communication terminal is: 1 pin → unsettled, 2 pin → 3.3 or 5V power supply, 3,4 pin → communication, 5 pin → GND.If 485 communication ports or UART communication port adopt 4 core terminals, then correspondingly remove described 1 pin.
Described pull-up resistor circuit 2, for ensureing the reliability of 485 communication signals and UART communication signal, wherein, described pull-up resistor circuit 2 specifically comprises transmitting terminal pull-up resistor and receiving terminal pull-up resistor, transmitting terminal pull-up resistor is for ensureing the reliability of 485 communication signals that debugging air conditioner device sends and UART communication signal, receiving terminal pull-up resistor is for ensureing the reliability of 485 communication signals that debugging air conditioner device receives and UART communication signal, the large I of resistance of described transmitting terminal pull-up resistor and receiving terminal pull-up resistor is designed according to actual needs by designer, generally, the resistance size adopted can be 1K-10K Ω.
Described pull-up resistor circuit 2,485 chip and 485 communication ports form 485 communicating circuits, can provide 485 communication functions; Described pull-up resistor circuit 2 and UART communication port form UART communicating circuit, can provide UART communication function.The MCU1 of described debugging air conditioner device carries out the transmitting-receiving of 485 communication signals by described 485 communicating circuits, carried out the transmitting-receiving of UART communication signal by described UART communicating circuit.
Applicant finds after deliberation, when the Enable Pin of described 485 chips is activated, when making described 485 chips in running order, 485 chips can produce interference to UART communication signal, cause UART communication normally to carry out, thus 485 communications and UART communication are mutual exclusions in debugging air conditioner device, i.e. synchronization, if adopt 485 communications, then UART communication cannot normally be carried out, if adopt UART communication, then require UART communication not disturb by 485 chips.Therefore, when using described debugging air conditioner device, needing the actual demand according to user, the communication modes of described debugging air conditioner device is controlled, control it as 485 communications or the UART communication of required employing.
On this basis, continue to be described in detail to the application's method, with reference to figure 3, the communication modes control method of the application can comprise the following steps:
S301: obtain target communication mode.
Except the above-mentioned hardware components comprising the application and provide, described debugging air conditioner device also comprises some original conventional func software and hardware parts such as display board, button.
Based on this, by software mode on the display board of debugging air conditioner device for user provides communication modes to arrange function, the communication modes of debugging air conditioner device can be set to required mode by button or display board by user.Thus this step acquisition target communication mode is specifically as follows: receive the target communication mode that user is arranged by software mode.Under this kind of scheme, described 485 communication ports can adopt 4 core terminals.
In other embodiments of the present invention, also the current target communication mode that need adopt is identified by the 485 communication connection states detected between 485 communication ports of debugging air conditioner device and air-conditioner set.Under this kind of scheme, described 485 communication ports then need employing 5 core terminal.
As shown in Figure 2, core 2 short circuit that the core 1 that 1 pin of 4855 core terminals is corresponding is corresponding with 2 pin, thus the level signal of core 2 can be sent to IO detection port (i.e. described 1 pin) by core 1, the IO testing circuit that the present embodiment connects with described IO detection port by one, such as specifically by certain bleeder circuit, ensure the level signal of MCU energy normal sample to I/O port.
If the I/O port level signal collected is high level, 485 communications then between 485 communication ports of described debugging air conditioner device and air-conditioner set are connected, namely user has accessed 485 communication modes according to its actual demand, and therefore, the target communication mode that identifiable design goes out user is 485 communications; Otherwise if the I/O port level signal collected is low level, then user does not access or disconnects 485 communications, this kind of situation then thinks that the target communication mode of user is UART communication.
In other embodiments of the present invention, also compatiblely can adopt above two schemes, and can be as the criterion with the target communication mode of up-to-date acquisition (can obtain by receiving set-up mode, also can obtain by IO detection mode), the communication modes of debugging air conditioner device is controlled.It should be noted that, during compatible employing two schemes, the situation simultaneously being obtained target communication mode by two kinds of approach may be there is, for this situation, by carrying out priority setting in advance, such as give " being arranged by display board " mode higher priority etc., solve the problem that target communication mode that two kinds of modes obtain is inconsistent.
S302: when described target communication mode is the first communication modes, controls as duty by the Enable Pin of described communication chip by described communication chip; Wherein, the first communicating circuit that in running order described communication chip and described first communication interface, pull-up resistor circuit are formed is for providing the communication function of described first communication modes.
If described target communication mode is 485 communications, for ensureing that 485 chips can normally work, the Enable Pin of described 485 communication chips need be activated.
The application controls especially by IO (same IO non-with the detection IO above) Enable Pin of mouth to 485 chips of debugging air conditioner device MCU, particularly, can according to the technical requirement of 485 chips, the Enable Pin controlling 485 chips is high level or low level, make 485 chips in running order, to ensure the normal transmission of 485 data.
In such cases, UART communication is owing to can not normally can carry out by the interference of 485 chips, and therefore, now, the effective communication mode that debugging air conditioner device adopts is 485 communications.
S303: when described target communication mode is the second communication modes, controls as off working state by the Enable Pin of described communication chip by described communication chip; Wherein, the second communicating circuit of forming of described second communication interface and described pull-up resistor circuit is for providing the communication function of described second communication modes.
If described target communication mode is UART communication, for ensureing that UART communication signal is not disturbed by 485 chips, and then ensure normally carrying out of UART communication, need the technical requirement according to 485 chips, the level state of described 485 chip enable ends is controlled the inverse state for above-mentioned state: low level or high level, guarantee that 485 chips are in off working state, thus, now, the effective communication mode that debugging air conditioner device adopts is UART communication.
From above scheme, method disclosed in the present application is applied to debugging air conditioner device, and described debugging air conditioner device comprises pull-up resistor circuit, communication chip, the first communication interface and the second communication interface, communication chip controls to be duty by utilizing the Enable Pin of communication chip by described method, or off working state, realize the communication modes of debugging apparatus being controlled for required mode, wherein, when communication chip is controlled as duty, the communication modes that debugging apparatus adopts is by communication chip, the first communication modes that the first communicating circuit that pull-up resistor circuit and the first communication interface are formed provides, when communication chip is controlled as off working state, the communication modes that debugging apparatus adopts is by the second communication interface, the second communication modes that the second communicating circuit that pull-up resistor circuit is formed provides.Visible, application the application, debugging air conditioner device just can compatible multiple air-conditioner set without the need to changing dial-up, easy to use and reliability is high.
Embodiment two
The embodiment of the present invention two discloses a kind of communication modes control system, described system is applied to debugging air conditioner device, described debugging air conditioner device comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; With reference to figure 4, described system comprises: acquisition module 100, first control module 200 and the second control module 300.
Acquisition module 100, for obtaining target communication mode.
Wherein, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips; Described second communication interface is universal asynchronous receiving-transmitting transmitter UART communication port, and described second communication modes is UART communication.
In the present embodiment, described acquisition module 100 comprises receiving element, for receiving the target communication mode that user is arranged by software mode.
Whether in other embodiments of the present invention, described acquisition module 100 comprises IO detecting unit, to be connected to connect for being detected described 485 communication ports by the first I/O I/O port of described debugging air conditioner device MCU with 485 communications between air-conditioner set; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
In other embodiments of the present invention, described acquisition module 100 can also comprise described receiving element and described IO detecting unit simultaneously.
First control module 200, for when described target communication mode is the first communication modes, controls as duty by the Enable Pin of described communication chip by described communication chip; Wherein, the first communicating circuit that in running order described communication chip and described first communication interface, pull-up resistor circuit are formed is for providing the communication function of described first communication modes.
Described first control module 200 comprises the first control unit, for when described target communication mode is 485 communication, the Enable Pin of described 485 chips is controlled to be the first level state by second I/O port of described debugging air conditioner device MCU; It is in running order that described first level state characterizes described 485 chips.
Second control module 300, for when described target communication mode is the second communication modes, controls as off working state by the Enable Pin of described communication chip by described communication chip; Wherein, the second communicating circuit of forming of described second communication interface and described pull-up resistor circuit is for providing the communication function of described second communication modes.
Described second control module 300 comprises the second control unit, for when described target communication mode is UART communication, controls as second electrical level state by second I/O port of described debugging air conditioner device MCU by the Enable Pin of described 485 chips; Described in described second electrical level state representation, 485 chips are in off working state.
For communication modes control system disclosed in the embodiment of the present invention two, because it is corresponding with communication modes control method disclosed in embodiment one, so description is fairly simple, relevant similarity refers to the explanation of communication modes control method part in embodiment one, no longer describes in detail herein.
Embodiment three
The embodiment of the present invention three discloses a kind of debugging air conditioner device, and described debugging air conditioner device comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Also comprise as embodiment two the communication modes control system that provides.Described debugging air conditioner device just can compatible multiple air-conditioner set without the need to changing dial-up, easy to use and reliability is higher.
For convenience of description, various module or unit is divided into describe respectively with function when describing above system or device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Finally, also it should be noted that, in this article, the relational terms of such as first, second, third and fourth etc. and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (14)

1. a communication modes control method, it is characterized in that, be applied to debugging air conditioner device, described debugging air conditioner device comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Described method comprises:
Obtain target communication mode;
When described target communication mode is the first communication modes, by the Enable Pin of described communication chip, described communication chip is controlled as duty; Wherein, the first communicating circuit that in running order described communication chip and described first communication interface, pull-up resistor circuit are formed is for providing the communication function of described first communication modes;
When described target communication mode is the second communication modes, by the Enable Pin of described communication chip, described communication chip is controlled as off working state; Wherein, the second communicating circuit of forming of described second communication interface and described pull-up resistor circuit is for providing the communication function of described second communication modes.
2. method according to claim 1, is characterized in that, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips; Described second communication interface is universal asynchronous receiving-transmitting transmitter UART communication port, and described second communication modes is UART communication.
3. method according to claim 2, is characterized in that, described acquisition target communication mode comprises: receive the target communication mode that user is arranged by software mode.
4. method according to claim 2, is characterized in that, described debugging air conditioner device also comprises microcontroller, then described acquisition target communication mode comprises:
Detect described 485 communication ports by the first I/O I/O port of described MCU to be connected with 485 communications between air-conditioner set and whether to connect; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
5. method according to claim 2, is characterized in that, described debugging air conditioner device also comprises microcontroller, then described acquisition target communication mode comprises:
Receive the target communication mode that user is arranged by software mode; Or,
Detect described 485 communication ports by the first I/O I/O port of described MCU to be connected with 485 communications between air-conditioner set and whether to connect; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
6. the method according to claim 3-5 any one, is characterized in that, described when described target communication mode is the first communication modes, is controlled, for duty, to comprise by described communication chip by the Enable Pin of described communication chip:
When described target communication mode is 485 communication, by second I/O port of described debugging air conditioner device MCU, the Enable Pin of described 485 chips is controlled to be the first level state;
It is in running order that described first level state characterizes described 485 chips.
7. the method according to claim 3-5 any one, is characterized in that, described when described target communication mode is the second communication modes, is controlled, for off working state, to comprise by described communication chip by the Enable Pin of described communication chip:
When described target communication mode is UART communication, by second I/O port of described debugging air conditioner device MCU, the Enable Pin of described 485 chips is controlled as second electrical level state;
Described in described second electrical level state representation, 485 chips are in off working state.
8. a communication modes control system, it is characterized in that, be applied to debugging air conditioner device, described debugging air conditioner device comprises pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Described system comprises:
Acquisition module, for obtaining target communication mode;
First control module, for when described target communication mode is the first communication modes, controls as duty by the Enable Pin of described communication chip by described communication chip; Wherein, the first communicating circuit that in running order described communication chip and described first communication interface, pull-up resistor circuit are formed is for providing the communication function of described first communication modes;
Second control module, for when described target communication mode is the second communication modes, controls as off working state by the Enable Pin of described communication chip by described communication chip; Wherein, the second communicating circuit of forming of described second communication interface and described pull-up resistor circuit is for providing the communication function of described second communication modes.
9. system according to claim 8, it is characterized in that, described first communication modes is 485 communications, described communication chip is 485 chips, described second communication modes is UART communication, described acquisition module comprises: receiving element, for receiving the target communication mode that user is arranged by software mode.
10. system according to claim 8, is characterized in that, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips, and described second communication modes is UART communication, and described acquisition module comprises:
Whether IO detecting unit, be connected with 485 communications between air-conditioner set connect for being detected described 485 communication ports by the first I/O I/O port of described debugging air conditioner device MCU; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
11. systems according to claim 8, is characterized in that, described first communication interface is 485 communication ports, and described first communication modes is 485 communications, and described communication chip is 485 chips, and described second communication modes is UART communication, and described acquisition module comprises:
Receiving element, for receiving the target communication mode that user is arranged by software mode;
Whether IO detecting unit, be connected with 485 communications between air-conditioner set connect for being detected described 485 communication ports by the first I/O I/O port of described debugging air conditioner device MCU; If connected, then described target communication mode is described 485 communications; If access failure, then described target communication mode is described UART communication.
12. systems according to claim 9-11 any one, it is characterized in that, described first control module comprises: the first control unit, for when described target communication mode is 485 communication, by second I/O port of described debugging air conditioner device MCU, the Enable Pin of described 485 chips is controlled to be the first level state;
It is in running order that described first level state characterizes described 485 chips.
13. systems according to claim 9-11 any one, it is characterized in that, described second control module comprises:
Second control unit, for when described target communication mode is UART communication, controls as second electrical level state by second I/O port of described debugging air conditioner device MCU by the Enable Pin of described 485 chips;
Described in described second electrical level state representation, 485 chips are in off working state.
14. 1 kinds of debugging air conditioner devices, is characterized in that, comprise pull-up resistor circuit, the communication chip be connected with described pull-up resistor circuit and the second communication interface, the first communication interface be connected with described communication chip; Also comprise system as claimed in claim 8.
CN201510708507.7A 2015-10-26 2015-10-26 A kind of communication modes control method, system and debugging air conditioner device Active CN105180383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510708507.7A CN105180383B (en) 2015-10-26 2015-10-26 A kind of communication modes control method, system and debugging air conditioner device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510708507.7A CN105180383B (en) 2015-10-26 2015-10-26 A kind of communication modes control method, system and debugging air conditioner device

Publications (2)

Publication Number Publication Date
CN105180383A true CN105180383A (en) 2015-12-23
CN105180383B CN105180383B (en) 2017-11-17

Family

ID=54902650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510708507.7A Active CN105180383B (en) 2015-10-26 2015-10-26 A kind of communication modes control method, system and debugging air conditioner device

Country Status (1)

Country Link
CN (1) CN105180383B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110686368A (en) * 2019-09-26 2020-01-14 珠海格力电器股份有限公司 Communication control device, internal machine, external machine, temperature controller, communication method and air conditioner
CN111412630A (en) * 2020-04-22 2020-07-14 珠海格力电器股份有限公司 Communication interface control circuit and air conditioning unit

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377339A (en) * 2007-08-31 2009-03-04 海尔集团公司 Method and device for regulating and controlling air conditioner
CN101398682A (en) * 2007-09-27 2009-04-01 项珏 Split type or integral air conditioner cluster network centralization of management control device and method
CN101834769A (en) * 2010-03-31 2010-09-15 青岛海信日立空调系统有限公司 Two-way communication switching method of HBS (High Byte Strobe) bus communication protocol and RS-485 bus communication protocol
CN102538139A (en) * 2012-01-13 2012-07-04 青岛海信日立空调系统有限公司 Communication identification system and method of indoor and outdoor units of air conditioner
KR20140097693A (en) * 2013-01-29 2014-08-07 삼성전자주식회사 Communication module, multi-type air conditioning apparatus using the same, and control method thereof
CN104728988A (en) * 2013-12-18 2015-06-24 珠海格力电器股份有限公司 Air conditioner and communication method, device and equipment of inside and outside machines of air conditioner

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377339A (en) * 2007-08-31 2009-03-04 海尔集团公司 Method and device for regulating and controlling air conditioner
CN101398682A (en) * 2007-09-27 2009-04-01 项珏 Split type or integral air conditioner cluster network centralization of management control device and method
CN101834769A (en) * 2010-03-31 2010-09-15 青岛海信日立空调系统有限公司 Two-way communication switching method of HBS (High Byte Strobe) bus communication protocol and RS-485 bus communication protocol
CN102538139A (en) * 2012-01-13 2012-07-04 青岛海信日立空调系统有限公司 Communication identification system and method of indoor and outdoor units of air conditioner
KR20140097693A (en) * 2013-01-29 2014-08-07 삼성전자주식회사 Communication module, multi-type air conditioning apparatus using the same, and control method thereof
CN104728988A (en) * 2013-12-18 2015-06-24 珠海格力电器股份有限公司 Air conditioner and communication method, device and equipment of inside and outside machines of air conditioner

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110686368A (en) * 2019-09-26 2020-01-14 珠海格力电器股份有限公司 Communication control device, internal machine, external machine, temperature controller, communication method and air conditioner
CN110686368B (en) * 2019-09-26 2021-03-23 珠海格力电器股份有限公司 Communication control device, internal machine, external machine, temperature controller, communication method and air conditioner
CN111412630A (en) * 2020-04-22 2020-07-14 珠海格力电器股份有限公司 Communication interface control circuit and air conditioning unit

Also Published As

Publication number Publication date
CN105180383B (en) 2017-11-17

Similar Documents

Publication Publication Date Title
CN104657313B (en) Detecting system and method for universal serial bus device
CN105677420B (en) interface pin configuration method and device
CN102479133B (en) USB (Universal Serial Bus) equipment and detection method thereof
CN102565563B (en) For robotization integrated test system and the method for automotive electronics electric system
CN105453484A (en) Power-over-Ethernet (PoE) control system
CN204231179U (en) Adapter, power supply adaptor and electronic equipment
CN103959592A (en) Power adapter and method of adapting power for electronic devices
CN103684407A (en) Otg device
CN105180383A (en) Communication mode control method and system and air conditioner debugging device
CN102609339A (en) Embedded main board testing device
CN203894742U (en) Programmer of automotive electric control unit (ECU)
CN103546114A (en) Circuit and method for adjusting pull-up voltage of bus according to pull-up voltage of slave unit
CN109743240B (en) Interface switching device and method for communication equipment
CN103607192A (en) Airborne serial interface conversion device and application
CN203799198U (en) Control module enabling CAN terminal resistor to be intelligently accessed
CN204480237U (en) A kind of connector, universal serial bus device and intelligent terminal
CN203537553U (en) An Interface circuit realizing serial port and infrared multiplex functions
CN104615209B (en) Hard disk expansion apparatus
CN113253652A (en) Unit communication control device, method and unit
CN203455695U (en) Switch signal input/output extended module
US20140006811A1 (en) Power supply circuit for hard disk backplane and server system using same
CN103795583A (en) Testing device
CN203982293U (en) USB-LIN interconnecting device
CN203351911U (en) USB line system
CN103346448B (en) USB line system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant