CN105180383B - 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 PDFInfo
- Publication number
- CN105180383B CN105180383B CN201510708507.7A CN201510708507A CN105180383B CN 105180383 B CN105180383 B CN 105180383B CN 201510708507 A CN201510708507 A CN 201510708507A CN 105180383 B CN105180383 B CN 105180383B
- Authority
- CN
- China
- Prior art keywords
- communication
- chip
- mode
- target
- air conditioner
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 419
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004378 air conditioning Methods 0.000 claims abstract description 12
- 238000001514 detection method Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 abstract description 4
- 101100236764 Caenorhabditis elegans mcu-1 gene Proteins 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 238000000465 moulding Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/30—Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/62—Control 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/63—Electronic 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 application discloses a communication mode control method and a system, wherein the method is applied to an air conditioner debugging device, and the device comprises a pull-up resistor circuit, a communication chip, a first communication interface and a second communication interface; the method comprises the steps that the communication chip is controlled to be in a working state or a non-working state by utilizing an enabling end of the communication chip, so that the communication mode of the debugging device is controlled to be a required mode, wherein when the communication chip is controlled to be in the working state, the communication mode adopted by the debugging device is a first communication mode provided by a first communication circuit formed by the communication chip, a pull-up resistor circuit and a first communication interface, and when the communication chip is controlled to be in the non-working state, the communication mode adopted by the debugging device is a second communication mode provided by a second communication circuit formed by a second communication interface and a pull-up resistor circuit. It can be seen that, use this application, air conditioner debugging device need not to change dial-up alright compatible multiple air conditioning unit, and convenient to use and reliability are high.
Description
Technical field
The invention belongs to the switching control technical field between different communication modes, more particularly to a kind of communication modes controlling party
Method, system and debugging air conditioner device.
Background technology
Current air-conditioning products controller, the mainboard controller of such as air-conditioner set, needed for cost and different functions
The consideration of various factors such as ask, can be communicated using different communication modes, wherein, the communication modes of use are generally 485
Communication or UART (Universal Asynchronous Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter) are logical
News.
Communication modes match used by ensure with air-conditioning products controller, have the air-conditioning of the functions such as unit regulation
The debugging apparatus such as manual operator or display can not be designed as only with single communication modes, for example, leading to for 485 communications and UART
News, the debugging apparatus of the different communication modes of two kinds of uses can be separately designed out, it is high that this mode has features designed to this height, use cost
And not Portable belt the problems such as, for this problem, developed at present while be designed with the debugging of two sets of communicating circuits, communication interface
Device, the debugging apparatus carry out the control of communication modes using following methods:By carrying out dial-up control between two sets of hardware circuits
System, realize that by the communication modes control of debugging apparatus be required communication modes.This method is communicated due to that need to be changed by dial-up
Mode, operation is more troublesome, and dial-up after certain number using easily failing.
The content of the invention
In view of this, it is an object of the invention to provide a kind of communication modes control method, system and debugging air conditioner device,
It is intended to by realizing a kind of communication modes control program without dial-up, debugging air conditioner device is changed dial-up can be compatible
A variety of air-conditioner sets, lift the property and reliability easy to use of the debugging apparatus.
Therefore, the present invention is disclosed directly below technical scheme:
A kind of communication modes control method, applied to debugging air conditioner device, the debugging air conditioner device includes pull-up resistor
Circuit, the communication chip and the second communication interface being connected with the pull-up resistor circuit, is connected with the communication chip
First communication interface;Methods described includes:
Obtain target communication mode;
When the target communication mode is the first communication modes, by the Enable Pin of the communication chip by the communication
Chip controls are working condition;Wherein, the in running order communication chip and first communication interface, pull-up resistor
The first communicating circuit that circuit is formed is used for the communication function for providing first communication modes;
When the target communication mode is the second communication modes, by the Enable Pin of the communication chip by the communication
Chip controls are off working state;Wherein, the second communication electricity that second communication interface is formed with the pull-up resistor circuit
Road is used for the communication function for providing second communication modes.
The above method, it is preferred that first communication interface is 485 communication ports, and first communication modes are 485 logical
News, the communication chip is 485 chips;Second communication interface is universal asynchronous receiving-transmitting transmitter UART communication ports, described
Second communication modes communicate for UART.
The above method, it is preferred that the acquisition target communication mode includes:Receive what user was set by software mode
Target communication mode.
The above method, it is preferred that the debugging air conditioner device also includes microcontroller, then the acquisition target communication
Mode includes:
485 communications between 485 communication port and air-conditioner set are detected by the first input/output I/O port of the MCU
Whether connection connects;If it is switched on, then the target communication mode is described 485 communications;If it is not on, then the target is led to
News mode communicates for the UART.
The above method, it is preferred that the debugging air conditioner device also includes microcontroller, then the acquisition target communication
Mode includes:
Receive the target communication mode that user is set by software mode;Or,
485 communications between 485 communication port and air-conditioner set are detected by the first input/output I/O port of the MCU
Whether connection connects;If it is switched on, then the target communication mode is described 485 communications;If it is not on, then the target is led to
News mode communicates for the UART.
The above method, it is preferred that it is described when the target communication mode is the first communication modes, pass through the communication core
Communication chip control is working condition by the Enable Pin of piece, including:
When the target communication mode is 485 communication, by the second I/O port of the debugging air conditioner device MCU by described in
The Enable Pin control of 485 chips is the first level state;
It is in running order that first level state characterizes 485 chip.
The above method, it is preferred that it is described when the target communication mode is the second communication modes, pass through the communication core
Communication chip control is off working state by the Enable Pin of piece, including:
When the target communication mode is that UART is communicated, by the second I/O port of the debugging air conditioner device MCU by institute
The Enable Pin control for stating 485 chips is second electrical level state;
485 chips are in off working state described in the second electrical level state representation.
A kind of communication modes control system, applied to debugging air conditioner device, the debugging air conditioner device includes pull-up resistor
Circuit, the communication chip and the second communication interface being connected with the pull-up resistor circuit, is connected with the communication chip
First communication interface;The system includes:
Acquisition module, for obtaining target communication mode;
First control module, for when the target communication mode is the first communication modes, passing through the communication chip
Enable Pin by the communication chip control be working condition;Wherein, the in running order communication chip and described the
The first communicating circuit that one communication interface, pull-up resistor circuit are formed is used for the communication function for providing first communication modes;
Second control module, for when the target communication mode is the second communication modes, passing through the communication chip
Enable Pin by the communication chip control be off working state;Wherein, second communication interface and pull-up resistor electricity
The second communicating circuit that road is formed is used for the communication function for providing second communication modes.
Said system, it is preferred that first communication modes are 485 communications, and the communication chip is 485 chips, described
Second communication modes communicate for UART, and the acquisition module includes:Receiving unit, set for receiving user by software mode
The target communication mode put.
Said system, it is preferred that first communication interface is 485 communication ports, and first communication modes are 485 logical
News, the communication chip are 485 chips, and second communication modes communicate for UART, and the acquisition module includes:
IO detection units, for detecting described 485 by the first input/output I/O port of the debugging air conditioner device MCU
Whether 485 communication connections between communication port and air-conditioner set connect;If it is switched on, then the target communication mode is described 485
Communication;If it is not on, then the target communication mode communicates for the UART.
Said system, it is preferred that first communication interface is 485 communication ports, and first communication modes are 485 logical
News, the communication chip are 485 chips, and second communication modes communicate for UART, and the acquisition module includes:
Receiving unit, the target communication mode set for receiving user by software mode;
IO detection units, for detecting described 485 by the first input/output I/O port of the debugging air conditioner device MCU
Whether 485 communication connections between communication port and air-conditioner set connect;If it is switched on, then the target communication mode is described 485
Communication;If it is not on, then the target communication mode communicates for the UART.
Said system, it is preferred that first control module includes:First control unit, in the target communication
When mode is 485 communication, it is by the Enable Pin control of 485 chip by the second I/O port of the debugging air conditioner device MCU
First level state;
It is in running order that first level state characterizes 485 chip.
Said system, it is preferred that second control module includes:
Second control unit, for when the target communication mode is that UART is communicated, passing through the debugging air conditioner device
The Enable Pin control of 485 chip is second electrical level state by MCU the second I/O port;
485 chips are in off working state described in the second electrical level state representation.
A kind of debugging air conditioner device, including pull-up resistor circuit, the communication chip being connected with the pull-up resistor circuit
And second communication interface, the first communication interface being connected with the communication chip;Also include system as described above.
From above scheme, disclosed method and system, applied to debugging air conditioner device, the debugging air conditioner
Device includes pull-up resistor circuit, communication chip, the first communication interface and the second communication interface;Methods described is by using communication
Communication chip control is working condition by the Enable Pin of chip, or off working state, is realized the communication modes control of debugging apparatus
Be made as required mode, wherein, when by communication chip control be working condition when, the communication modes that debugging apparatus uses is by leading to
Chip is interrogated, the first communication modes that the first communicating circuit that pull-up resistor circuit and the first communication interface are formed provides, when will be logical
When news chip controls are off working state, the communication modes that debugging apparatus uses is by the second communication interface, pull-up resistor circuits
The second communication modes that the second communicating circuit formed provides.It can be seen that using the application, debugging air conditioner device need not change dial-up
Can compatible a variety of air-conditioner sets, easy to use and reliability is high.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the hardware components schematic diagram for the debugging air conditioner device that the embodiment of the present invention one provides;
Fig. 2 is two kinds of communication modes air-conditioner sets of debugging air conditioner device and 485 and UART that the embodiment of the present invention one provides
Wiring schematic diagram;
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 for the communication modes control system that the embodiment of the present invention two provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, 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, and methods described can be applied to air-conditioning manual operator, show
Show in the debugging air conditioner device such as device, specifically, can be applied to debugging air conditioner device MCU (microcontroller,
Microcontroller Unit) in, realize the necessary hardware that the application method is based on to debugging air conditioner device first below
Basis describes in detail.
With reference to figure 1, the debugging air conditioner device realizes that the necessary hardware components that the application method is based on include:MCU 1,
The pull-up resistor circuit 2 being connected with MCU 1, the communication of communication chip 3 and second being connected with the pull-up resistor circuit 2 connect
Mouth 4, the first communication interface 5 being connected with the communication chip 3.
485 communications and UART that the present embodiment is more often used using air-conditioner set communicate two kinds of communication modes to the application side
Method illustrates.Based on this, first communication interface 5 is specially 485 communication ports, and second communication interface 4 is specially
UART communication ports, 485 communication need communication two parties have 485 chips, so as to which the communication chip 3 is specially 485 chips, such as
Can be MAX13089EESD chips etc..
With reference to figure 2, the PCB (Printed Circuit Board, printed circuit board) of the debugging air conditioner device can lead to
Two group of 5 core terminal, or two group of 4 core terminal, or two groups of terminals of the core form of 5 core+4 are crossed, realize the air conditioner with 485 communication modes
Group, UART communication modes air-conditioner set between communication connection, wherein, when 485 communication ports use 5 core terminal, it is each 485 communicate
Pin function corresponding to terminal is:1 pin → IO detections port, (i.e. debugging air conditioner device is not only for 2 pin → 3.3 or 5V power supplys
Vertical power supply, powered indirectly by air-conditioner set), 3 pin and 4 pin → communication, 5 pin → GND, wherein 1 pin, 2 pin pair
Core 1, the short circuit of core 2 answered.Pin function corresponding to UART communication terminals is:1 pin → hanging, 2 pin → 3.3 or 5V electricity
Source, 3,4 pin → communication, 5 pin → GND.If 485 communication ports or UART communication ports use 4 core terminals, accordingly remove described 1
Pin.
The pull-up resistor circuit 2, for ensureing the reliability of 485 communication signals and UART communication signals, wherein, it is described
Pull-up resistor circuit 2 specifically includes transmitting terminal pull-up resistor and receiving terminal pull-up resistor, and transmitting terminal pull-up resistor is used to ensure sky
485 communication signals and the reliability of UART communication signals that tune debugging apparatus is sent, receiving terminal pull-up resistor are used to ensure air-conditioning
485 communication signals and the reliability of UART communication signals that debugging apparatus receives, on the transmitting terminal pull-up resistor and receiving terminal
The big I of resistance of pull-up resistor is designed according to being actually needed by designer, generally, used resistance size
Can be 1K-10K Ω.
The pull-up resistor circuit 2,485 chips and 485 communication ports form 485 communicating circuits, it is possible to provide 485 communication work(
Energy;The pull-up resistor circuit 2 and UART communication ports form UART communicating circuits, it is possible to provide UART communication functions.The air-conditioning
The MCU 1 of debugging apparatus carries out the transmitting-receiving of 485 communication signals by 485 communicating circuit, passes through the UART communicating circuits
Carry out the transmitting-receiving of UART communication signals.
Applicant it has been investigated that, when the Enable Pin of 485 chip is activated, 485 chip is in work shape
During state, 485 chips can produce interference to UART communication signals, cause UART communications not to be normally carried out, so as in debugging air conditioner
485 communications and UART communications are mutual exclusions in device, i.e. synchronization, if using 485 communications, UART communications can not be normal
Carry out, if communicated using UART, it is required that UART communications are not disturbed by 485 chips.Therefore, the debugging air conditioner is being used
, it is necessary to which the communication modes of the debugging air conditioner device are controlled, controlled by actual demand according to user during device
For 485 communications or UART communications of required use.
On this basis, continue that the application method is described in detail, with reference to figure 3, the communication modes of the application control
Method may comprise steps of:
S301:Obtain target communication mode.
Except the above-mentioned hardware components provided comprising the application, the debugging air conditioner device also includes display board, button etc. one
A little original conventional func software and hardware parts.
Based on this, communication modes can be provided for user on the display board of debugging air conditioner device by software mode and set
The communication modes of debugging air conditioner device can be arranged to required mode by function, user by button or display board.So as to this
Step obtains target communication mode and is specifically as follows:Receive the target communication mode that user is set by software mode.It is such a
Under scheme, 485 communication port can use 4 core terminals.
In other embodiments of the present invention, can also be by detecting between 485 communication ports of debugging air conditioner device and air-conditioner set
485 communication connection states identify the target communication mode that need to currently use.Under such a scheme, 485 communication port then needs
Using 5 core terminals.
As shown in Fig. 2 the short circuit of core 2 corresponding with 2 pin of core 1 corresponding to 1 pin of 4855 core terminals, so as to core 2
Level signal can be sent to IO detections port (i.e. described 1 pin) by core 1, and the present embodiment passes through one and the IO test sides
The IO detection circuits that mouth connects, such as specifically by certain bleeder circuit MCU energy normal samples can be ensured to the level of I/O port
Signal.
If the I/O port level signal collected is high level, 485 communication ports and air-conditioning of the debugging air conditioner device
485 communications between unit are connected, i.e., user has accessed 485 communication modes according to its actual demand, therefore, may recognize that use
The target communication mode of person is 485 communications;, whereas if the I/O port level signal collected is low level, then user does not connect
Enter or disconnect 485 communications, such a situation then thinks that the target communication mode of user communicates for UART.
In other embodiments of the present invention, it is also compatible to use both the above scheme, and can be with the target of newest acquisition
Communication modes (may be obtained by receiving set-up mode, it is also possible to obtained by IO detection modes) are defined, and debugging air conditioner is filled
The communication modes put are controlled.It should be noted that when compatibility uses two schemes, may exist same by two kinds of approach
When obtain the situation of target communication mode, can be by carrying out priority setting in advance for this situation, such as assign " by aobvious
Show that plate is set " the higher priority of mode etc., to solve the problems, such as that the target communication mode that two ways obtains is inconsistent.
S302:When the target communication mode is the first communication modes, by the Enable Pin of the communication chip by institute
It is working condition to state communication chip control;Wherein, the in running order communication chip and first communication interface, on
The first communicating circuit that pull-up resistor circuit is formed is used for the communication function for providing first communication modes.
If the target communication mode be 485 communication, for ensure 485 chips can normal work, described 485 need to be activated
The Enable Pin of communication chip.
The application is especially by debugging air conditioner device MCU IO (with the non-same IO of detection IO above) mouth to 485 chips
Enable Pin be controlled, specifically, the Enable Pins of 485 chips according to the technical requirements of 485 chips, can be controlled for high level or
Low level, make 485 chips in running order, to ensure the normal transmission of 485 data.
In such cases, UART communications by the interference of 485 chips due to that be able to can not be normally carried out, therefore, now, air-conditioning
The effective communication mode that debugging apparatus uses is 485 communication.
S303:When the target communication mode is the second communication modes, by the Enable Pin of the communication chip by institute
It is off working state to state communication chip control;Wherein, second communication interface and the second of pull-up resistor circuit composition
Communicating circuit is used for the communication function for providing second communication modes.
If the target communication mode communicates for UART, to ensure that UART communication signals are not disturbed by 485 chips, and then
Ensure being normally carried out for UART communications, the technical requirements according to 485 chips are needed, by the level state of the 485 chip Enable Pin
Control as the inverse state of above-mentioned state:Low level or high level, it is ensured that 485 chips are in off working state, so as to, now,
The effective communication mode that debugging air conditioner device uses communicates for UART.
From above scheme, disclosed method is applied to debugging air conditioner device, the debugging air conditioner device bag
Include pull-up resistor circuit, communication chip, the first communication interface and the second communication interface;Methods described is by using communication chip
Communication chip control be working condition by Enable Pin, or off working state, realizes that by the communication modes control of debugging apparatus be institute
Need mode, wherein, when by communication chip control be working condition when, the communication modes that debugging apparatus uses is by communication cores
The first communication modes that the first communicating circuit that piece, pull-up resistor circuit and the first communication interface are formed provides, when core will be communicated
Piece control is when being off working state, and the communication modes that debugging apparatus uses is are made up of the second communication interface, pull-up resistor circuit
The second communicating circuit provide the second communication modes.It can be seen that using the application, debugging air conditioner device need not change dial-up
Compatible a variety of air-conditioner sets, easy to use and reliability are high.
Embodiment two
The embodiment of the present invention two discloses a kind of communication modes control system, and the system is applied to debugging air conditioner device, institute
Stating debugging air conditioner device includes pull-up resistor circuit, and the communication chip being connected with the pull-up resistor circuit and the second communication connect
Mouthful, the first communication interface being connected with the communication chip;With reference to figure 4, the system includes:Acquisition module 100, first is controlled
The control module 300 of molding block 200 and second.
Acquisition module 100, for obtaining target communication mode.
Wherein, first communication interface is 485 communication ports, and first communication modes communicate for 485, the communication core
Piece is 485 chips;Second communication interface is universal asynchronous receiving-transmitting transmitter UART communication ports, and second communication modes are
UART is communicated.
In the present embodiment, the acquisition module 100 includes receiving unit, is set for receiving user by software mode
Target communication mode.
In other embodiments of the present invention, the acquisition module 100 includes IO detection units, for being adjusted by the air-conditioning
Whether the 485 communication connections that the first input/output I/O port that MCU is put in trial assembly is detected between 485 communication port and air-conditioner set connect
It is logical;If it is switched on, then the target communication mode is described 485 communications;If it is not on, then the target communication mode is institute
State UART communications.
In other embodiments of the present invention, the acquisition module 100 can also include the receiving unit and described simultaneously
IO detection units.
First control module 200, for when the target communication mode is the first communication modes, passing through the communication core
Communication chip control is working condition by the Enable Pin of piece;Wherein, the in running order communication chip with it is described
The first communicating circuit that first communication interface, pull-up resistor circuit are formed is used for the communication work(for providing first communication modes
Energy.
First control module 200 includes the first control unit, for being 485 communications in the target communication mode
When, it is the first level state to be controlled the Enable Pin of 485 chip by the second I/O port of the debugging air conditioner device MCU;
It is in running order that first level state characterizes 485 chip.
Second control module 300, for when the target communication mode is the second communication modes, passing through the communication core
Communication chip control is off working state by the Enable Pin of piece;Wherein, second communication interface and the pull-up resistor
The second communicating circuit that circuit is formed is used for the communication function for providing second communication modes.
Second control module 300 includes the second control unit, for being communicated in the target communication mode for UART
When, it is second electrical level state to be controlled the Enable Pin of 485 chip by the second I/O port of the debugging air conditioner device MCU;
485 chips are in off working state described in the second electrical level state representation.
For communication modes control system disclosed in the embodiment of the present invention two, due to leading to disclosed in itself and embodiment one
News mode control method is corresponding, so description is fairly simple, related similarity refers to communication modes in embodiment one
The explanation of control method part, is no longer described in detail herein.
Embodiment three
The embodiment of the present invention three discloses a kind of debugging air conditioner device, and the debugging air conditioner device includes pull-up resistor circuit,
The communication chip and the second communication interface being connected with the pull-up resistor circuit, first to be connected with the communication chip are logical
Communication interface;The communication modes control system provided such as embodiment two is also provided.The debugging air conditioner device need not change dial-up
Can compatible a variety of air-conditioner sets, easy to use and reliability is higher.
For convenience of description, describe to be divided into various modules when system above or device with function or unit describes respectively.
Certainly, the function of each unit can be realized in same or multiple softwares and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical scheme essence of the application
On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment
(can be personal computer, server, either network equipment etc.) performs some of each embodiment of the application or embodiment
Method described in part.
Finally, it is to be noted that, herein, the relational terms of such as first, second, third and fourth or the like
It is used merely to make a distinction an entity or operation with another entity or operation, and not necessarily requires or imply these
Any this actual relation or order be present between entity or operation.Moreover, term " comprising ", "comprising" or its is any
Other variants are intended to including for nonexcludability, so that process, method, article or equipment including a series of elements
Not only include those key elements, but also the other element including being not expressly set out, or also include for this process, side
Method, article or the intrinsic key element of equipment.In the absence of more restrictions, limited by sentence "including a ..."
Key element, it is not excluded that other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of communication modes control method, it is characterised in that applied to debugging air conditioner device, the debugging air conditioner device includes
Pull-up resistor circuit, the communication chip and the second communication interface being connected with the pull-up resistor circuit, with the communication chip
The first communication interface being connected;Methods described includes:
Obtain target communication mode;
When the target communication mode is the first communication modes, by the Enable Pin of the communication chip by the communication chip
Control as working condition;Wherein, the in running order communication chip and first communication interface, pull-up resistor circuit
The first communicating circuit formed is used for the communication function for providing first communication modes;
When the target communication mode is the second communication modes, by the Enable Pin of the communication chip by the communication chip
Control as off working state;Wherein, second communication interface is used with the second communicating circuit that the pull-up resistor circuit is formed
In the communication function for providing second communication modes.
2. according to the method for claim 1, it is characterised in that first communication interface is 485 communication ports, described first
Communication modes are 485 communications, and the communication chip is 485 chips;Second communication interface is universal asynchronous receiving-transmitting transmitter
UART communication ports, second communication modes communicate for UART.
3. according to the method for claim 2, it is characterised in that the acquisition target communication mode includes:Receive user
The target communication mode set by software mode.
4. according to the method for claim 2, it is characterised in that the debugging air conditioner device also includes microcontroller, then
The acquisition target communication mode includes:
485 communications detected by the first input/output I/O port of the MCU between 485 communication port and air-conditioner set connect
Whether connect;If it is switched on, then the target communication mode is described 485 communications;If it is not on, the then target communication side
Formula communicates for the UART.
5. according to the method for claim 2, it is characterised in that the debugging air conditioner device also includes microcontroller, then
The acquisition target communication mode includes:
Receive the target communication mode that user is set by software mode;Or,
485 communications detected by the first input/output I/O port of the MCU between 485 communication port and air-conditioner set connect
Whether connect;If it is switched on, then the target communication mode is described 485 communications;If it is not on, the then target communication side
Formula communicates for the UART.
6. according to the method described in claim 4-5 any one, it is characterised in that described when the target communication mode is the
During one communication modes, it is working condition to be controlled the communication chip by the Enable Pin of the communication chip, including:
When the target communication mode is 485 communication, pass through the second I/O port of the microcontroller of the debugging air conditioner device
It is the first level state by the Enable Pin control of 485 chip;
It is in running order that first level state characterizes 485 chip.
7. according to the method described in claim 4-5 any one, it is characterised in that described when the target communication mode is the
During two communication modes, it is off working state to be controlled the communication chip by the Enable Pin of the communication chip, including:
When the target communication mode is that UART is communicated, pass through the 2nd IO of the microcontroller of the debugging air conditioner device
The Enable Pin control of 485 chip is second electrical level state by mouth;
485 chips are in off working state described in the second electrical level state representation.
8. a kind of communication modes control system, it is characterised in that applied to debugging air conditioner device, the debugging air conditioner device includes
Pull-up resistor circuit, the communication chip and the second communication interface being connected with the pull-up resistor circuit, with the communication chip
The first communication interface being connected;The system includes:
Acquisition module, for obtaining target communication mode;
First control module, for when the target communication mode is the first communication modes, passing through making for the communication chip
Communication chip control is working condition by energy end;Wherein, the in running order communication chip leads to described first
The first communicating circuit that communication interface, pull-up resistor circuit are formed is used for the communication function for providing first communication modes;
Second control module, for when the target communication mode is the second communication modes, passing through making for the communication chip
Communication chip control is off working state by energy end;Wherein, second communication interface and the pull-up resistor circuit structure
Into the second communicating circuit be used to provide the communication functions of second communication modes.
9. system according to claim 8, it is characterised in that first communication modes communicate for 485, the communication core
Piece is 485 chips, and second communication modes communicate for UART, and the acquisition module includes:Receiving unit, used for receiving
The target communication mode that person is set by software mode.
10. system according to claim 8, it is characterised in that first communication interface is 485 communication ports, described
One communication modes are 485 communications, and the communication chip is 485 chips, and second communication modes communicate for UART, the air-conditioning
Debugging apparatus also includes microcontroller, and the acquisition module includes:
IO detection units, the first input/output I/O port for the microcontroller by the debugging air conditioner device detect institute
State whether 485 between 485 communication ports and air-conditioner set communication connections connect;If it is switched on, then the target communication mode is institute
State 485 communications;If it is not on, then the target communication mode communicates for the UART.
11. system according to claim 8, it is characterised in that first communication interface is 485 communication ports, described
One communication modes are 485 communications, and the communication chip is 485 chips, and second communication modes communicate for UART, the air-conditioning
Debugging apparatus also includes microcontroller, and the acquisition module includes:
Receiving unit, the target communication mode set for receiving user by software mode;
IO detection units, the first input/output I/O port for the microcontroller by the debugging air conditioner device detect institute
State whether 485 between 485 communication ports and air-conditioner set communication connections connect;If it is switched on, then the target communication mode is institute
State 485 communications;If it is not on, then the target communication mode communicates for the UART.
12. according to the system described in claim 10-11 any one, it is characterised in that first control module includes:The
One control unit, for when the target communication mode is 485 communication, passing through the microcontroller of the debugging air conditioner device
The Enable Pin control of 485 chip is the first level state by MCU the second I/O port;
It is in running order that first level state characterizes 485 chip.
13. according to the system described in claim 10-11 any one, it is characterised in that second control module includes:
Second control unit, for when the target communication mode is that UART is communicated, passing through the micro- of the debugging air conditioner device
The Enable Pin control of 485 chip is second electrical level state by controller MCU the second I/O port;
485 chips are in off working state described in the second electrical level state representation.
14. a kind of debugging air conditioner device, it is characterised in that including pull-up resistor circuit, be connected with the pull-up resistor circuit
Communication chip and the second communication interface, the first communication interface being connected with the communication chip;Also include such as claim 8
Described system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510708507.7A CN105180383B (en) | 2015-10-26 | 2015-10-26 | Communication mode control method and system and air conditioner debugging device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510708507.7A CN105180383B (en) | 2015-10-26 | 2015-10-26 | Communication mode control method and system and air conditioner debugging device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN105180383A CN105180383A (en) | 2015-12-23 |
| CN105180383B true 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 | Communication mode control method and system and air conditioner debugging device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105180383B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110686368B (en) * | 2019-09-26 | 2021-03-23 | 珠海格力电器股份有限公司 | Communication control device, internal machine, external machine, temperature controller, communication method and air conditioner |
| CN111412630B (en) * | 2020-04-22 | 2021-06-25 | 珠海格力电器股份有限公司 | Communication interface control circuit and air conditioning unit |
Citations (6)
| 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 for indoor unit and outdoor unit of air conditioner |
-
2015
- 2015-10-26 CN CN201510708507.7A patent/CN105180383B/en active Active
Patent Citations (6)
| 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 for indoor unit and outdoor unit of air conditioner |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105180383A (en) | 2015-12-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102479133B (en) | USB (Universal Serial Bus) equipment and detection method thereof | |
| CN106033400A (en) | Universal serial bus (USB) cable variety detection device and method | |
| WO2023125108A1 (en) | Controller, control system, and communication method for controller | |
| CN201740832U (en) | Integrated detection device of cab electrical appliance | |
| CN105180383B (en) | Communication mode control method and system and air conditioner debugging device | |
| CN109743240B (en) | Interface switching device and method for communication equipment | |
| CN218788164U (en) | IVI testing device and testing system | |
| CN102495613A (en) | Controller area network (CAN)-control-based auxiliary control unit for locomotive | |
| CN205454102U (en) | Multi-network signal switching device | |
| CN203894742U (en) | Programmer of automotive electric control unit (ECU) | |
| CN105425659B (en) | Unidirectional two lines Non-polarity communication circuit and the air-conditioning system with it | |
| CN107713907A (en) | A kind of dust catcher working state control device and dust catcher | |
| CN105527520A (en) | Quick charger test system and test method | |
| CN106546833B (en) | A kind of electric energy meter RS-485 communication chip networkings test system | |
| CN107239428A (en) | Can interface circuit | |
| CN103311766A (en) | Mobile equipment switching device and working mode switching method thereof | |
| CN2824127Y (en) | Complex impedance dispensing apparatus with integrated controller for microwave load tracting measurement | |
| CN206892859U (en) | Can interface circuit | |
| CN214954608U (en) | Communication control device of unit and unit | |
| CN109254891A (en) | A kind of debugging board | |
| CN205029687U (en) | CAN communication device of transmission rate automatic switch -over | |
| CN107070547A (en) | A kind of CPCI type gigabit Ethernet devices with failure monitoring ability | |
| CN103558829B (en) | A kind of can the signal regulating device of management logic passage and method automatically | |
| CN206323392U (en) | A kind of In-vehicle networking physical layer test board | |
| CN207098196U (en) | Socket |
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 |