CN110260475A - Bus control method, device, equipment, upper computer and air conditioner - Google Patents

Bus control method, device, equipment, upper computer and air conditioner Download PDF

Info

Publication number
CN110260475A
CN110260475A CN201910392242.2A CN201910392242A CN110260475A CN 110260475 A CN110260475 A CN 110260475A CN 201910392242 A CN201910392242 A CN 201910392242A CN 110260475 A CN110260475 A CN 110260475A
Authority
CN
China
Prior art keywords
bus
communication
data
communication data
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910392242.2A
Other languages
Chinese (zh)
Inventor
吴学伟
杨华生
邹宏亮
陈毛毛
黄向聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910392242.2A priority Critical patent/CN110260475A/en
Publication of CN110260475A publication Critical patent/CN110260475A/en
Pending legal-status Critical Current

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
    • F24F11/32Responding to malfunctions or emergencies
    • F24F11/38Failure diagnosis
    • 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/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • 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/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/61Control or safety arrangements characterised by user interfaces or communication using timers
    • 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
    • F24F11/64Electronic processing using pre-stored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to a bus control method, a device, equipment, an upper computer and an air conditioner, wherein the bus control method comprises the following steps: detecting whether the upper computer finishes power supply; if the upper computer finishes power supply, detecting whether a residual voltage exists in the bus; if the bus does not have residual voltage, the bus is controlled to enter a normal communication mode, the self-adaptive detection of how long the interval is controlled after the upper computer finishes power supply is realized, the phenomenon that normal communication cannot be performed due to insufficient fixed time is avoided, and the phenomenon that the communication efficiency is low due to too long fixed time is also avoided. By adopting the technical scheme of the invention, the reliability of the switching mode between different working modes of the bus can be improved, and further, the success rate of communication and the efficiency of communication are improved.

Description

Bus control method, device, equipment, host computer and air-conditioning
Technical field
The present invention relates to communication technique fields, and in particular to a kind of bus control method, device, equipment, host computer and sky It adjusts.
Background technique
The fields such as Industry Control, air-conditioning mostly use greatly the buses such as long transmission distance, strong antijamming capability, at low cost to be counted According to transmission.Since there are two independent power supply lines for the connection of common four line, so that cable consumptive material is more, cost is increased, and And identification sequence is needed when wiring, the difficulty of engineering wiring and the probability of error are increased, therefore it is proposed that two cores communicate Scheme, i.e., by two core wires complete provide power supply and communication function, cable consumptive material halves, and the nonpolarity requirement of wiring, Reduce the difficulty and failure rate of project installation.
Bus exists due to factors such as bus capacitances after a power up, and the voltage of bus will not decline immediately, needs to wait total The residual voltage of line can just carry out normal communication after ruing out of, so needing reserved certain after host computer completes power supply Time, then control bus is switched to communication mode, carries out data transmission.In the prior art, the set time is usually set, is realized Switching to bus different working modes, that is, after host computer is completed to power and reach the set time of setting, control bus is cut Communication mode is changed to, after reaching the set time of setting again, control bus is switched to powering mode, repeatedly.
But in bus residual voltage run out of the required time be it is unfixed, this results in accurately setting Required set time when different working modes switch over, if the set time of setting is inadequate, it will cause can not positive normal open News, if setting set time it is too long, cause the switching time in bus between different working modes longer, communication efficiency compared with It is low.Therefore, the switching mode reliability between the different working modes of existing bus is lower.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of bus control method, device, equipment, host computer and air-conditioning, The switching mode reliability between different working modes to solve the problems, such as existing bus is lower.
In order to achieve the above object, the present invention provides a kind of bus control method, comprising:
Whether detection host computer is completed to power;
If the host computer completes power supply, detection bus whether there is residual voltage;
If residual voltage is not present in the bus, controls the bus and enter normal communication mode.
Further, in method described above, the detection bus whether there is residual voltage, comprising:
Communication data is sent to the bus;
Detect whether to receive the feedback data of the bus;
If receiving the feedback data, judge whether the feedback data is consistent with the communication data;
If the feedback data is consistent with the communication data, detecting the bus, there is no residual voltages.
Further, method described above, further includes:
If the feedback data and the communication data are inconsistent, it is based on preset sending cycle, again to the bus Send communication data.
Further, described to be based on preset sending cycle in method described above, it is sent again to the bus logical Before news data, further includes:
Count the transmission times that communication data is sent to the bus;
If the transmission times is greater than preset threshold, determining the bus, there are signal interference failures;
It is described to be based on preset sending cycle, communication data is sent to the bus again, comprising:
If the transmission times is less than or equal to the preset threshold, it is based on preset sending cycle, again to described Bus sends communication data.
Further, in method described above, before the feedback data for detecting whether to receive the bus, also Include:
Obtain the timing duration after sending the communication data;
The size for comparing the timing duration and preset duration, obtains comparison result;
The feedback data for detecting whether to receive the bus, comprising:
If the comparison result indicates that the timing duration is less than the preset duration, detect whether to receive the bus Feedback data.
Further, method described above, further includes:
If the comparison result indicates that the timing duration is more than or equal to the preset duration, determine that the bus is deposited In communication failure.
The present invention also provides a kind of bus control devices, comprising:
First detection module, for detecting whether host computer is completed to power;
Second detection module, if completing power supply for the host computer, detection bus whether there is residual voltage;
Control module controls the bus and enters normal communication mode if residual voltage is not present for the bus.
Further, in device described above, second detection module is specifically used for:
Communication data is sent to the bus;
Detect whether to receive the feedback data of the bus;
If receiving the feedback data, judge whether the feedback data is consistent with the communication data;
If the feedback data is consistent with the communication data, detecting the bus, there is no residual voltages.
The present invention also provides a kind of bus marcos to control equipment, including processor and memory, the processor and storage Device is connected by communication bus:
Wherein, the processor, for calling and executing the program stored in the memory;
The memory, is used for storing said program, and described program is at least used to execute bus marco control described above Method processed.
The present invention also provides a kind of host computers, are provided with bus marco control equipment as described above.
The present invention also provides a kind of air-conditionings, including slave computer, bus and host computer as described above;
The host computer passes through the described and bus and the slave computer communication connection.
Bus control method, device, equipment, host computer and air-conditioning of the invention, by detecting whether host computer is completed to supply Electricity, if host computer complete power supply, detection bus whether there is residual voltage, if bus be not present residual voltage, control bus into Enter normal communication mode, realizes after self-adapting detecting host computer completes power supply be spaced how long control the bus into positive normal open News mode, avoid because setting the set time it is inadequate, it will cause can not normal communication the phenomenon that, also avoid because setting fix Time is too long, the lower phenomenon of communication efficiency.Using technical solution of the present invention, can be improved bus different working modes it Between switching mode reliability, and then improve communication success rate, improve communication efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of bus control method embodiment one of the invention;
Fig. 2 is the flow chart of bus control method embodiment two of the invention;
Fig. 3 is the structural schematic diagram of bus control device embodiment of the invention;
Fig. 4 is the structural schematic diagram that bus marco of the invention controls apparatus embodiments.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work Other embodiment belongs to the range that the present invention is protected.
Fig. 1 is the flow chart of bus control method embodiment one of the invention, as shown in Figure 1, total line traffic control of the present embodiment Method processed can specifically include following steps:
100, whether detection host computer is completed to power;
In the fields such as Industry Control, air-conditioning, the bus for communication can use time-sharing multiplexing technology, utilize two electricity The mode of cable connection, realizes the energization and communication to the line control machine of slave computer.Specific control logic is to power on the master of rear host computer Plate loads the DC voltage of 24V in bus, and the storage capacitor on the line control machine of slave computer starts to charge at this time, after a certain period of time Storage capacitor charging on the line control machine of slave computer, which reaches voltage rating, can start to work normally, and then the mainboard of host computer is logical It crosses control circuit and disconnects power supply, there is no supply voltage in bus at this time, can normally be communicated, the line traffic control of slave computer Device charges again after the communication of one circulation, circuits sequentially by the corona discharge work of itself storage capacitor storage, from And under smaller cost, so that bus is completed to power and is communicated.Wherein, bus is preferably RS485 communication bus.
It is red in practical application, the mainboard of host computer to the line control machine of slave computer complete after power supply due to bus capacitance etc. because Number exists, and voltage will not decline immediately, the buses residual voltage such as needs can just carry out normal communication after ruing out of, therefore, In this implementation, after host computer powers on, need to detect whether host computer completes power supply to the line control machine of slave computer.For example, if surveying The electricity of storage capacitor on the line control machine of slave computer, and/or, the mainboard of host computer disconnects power supply by control circuit, It can detecte host computer and complete power supply, otherwise, host computer does not complete power supply.
If 101, host computer completes power supply, detection bus whether there is residual voltage;
Due to, in bus residual voltage run out of the required time be it is unfixed, therefore, in order to avoid the time of setting It is unreasonable, cause not communicated between host computer and slave computer, alternatively, the time of bus switch to communication mode is longer, Influence communication efficiency.In the present embodiment, the time for specifically switching to communication mode is not reset, but due to remaining electricity in bus It presses electricity and is necessarily required to the regular hour, so the present embodiment after detecting that host computer completes power supply, should not be detected directly total Line whether there is residual voltage, but can set active detecting bus and whether there is the time of residual voltage.If host computer is complete At power supply, it can actively go detection bus with the presence or absence of residual voltage, so as to according to detection after reaching the time of setting As a result it determines whether control bus and enters normal communication mode.If host computer does not complete power supply, host computer is continued to test Whether completion is powered.
, can be with after host computer completes power supply during a specific implementation, by bus switch to detecting communication mode, And communication data can be sent to bus, after bus receives the communication data of transmission, corresponding feedback data can be generated, and Feedback data is fed back.Wherein, if residual voltage is not present in bus, i.e. the communication channel of bus is clean, communication number It will not be interfered according in the communication channel of bus, the feedback data i.e. communication data that bus generates.If bus exists Residual voltage, i.e. the communication channel of bus be it is sordid, communication data will receive interference in the bus, and other in bus Data carry out coupling and become fused data as feedback data.The communication data of the present embodiment is preferably a byte number According to such as 0-0xff, that is, 0-255.
Causing communication data that can not be sent to the feedback of bus or bus there may be due to communication failure etc. Data can not return, and therefore, in the present embodiment, after sending communication data to bus, can detecte and whether receive bus Feedback data judges whether the feedback data of bus is consistent with communication data if receiving the feedback data of bus;If bus Feedback data is consistent with communication data, and detecting bus, there is no residual voltages.That is, since there is no residual electricity for bus Pressure, communication data will not be interfered in the communication channel of bus, so that the communication data issued is equal to received bus Feedback data.If the feedback data of bus and communication data are inconsistent, it can determine that there are residual voltages for bus, that is to say, that Since bus is there are residual voltage, communication data is interfered in the communication channel of bus, so that the communication data issued is not Equal to the feedback data of received bus.
Since there are residual voltages for bus, so that bus cannot be introduced into normal communication mode, therefore, can be based on preset Sending cycle sends communication data to bus again, after repeated detection, to determine bus with the presence or absence of residual voltage.
It should be noted that each interval time is ofer short duration, in the sending cycle of the present embodiment to avoid control bus It is longer into the time needed for normal communication mode, communication efficiency is influenced, but interval time can not be too short every time, to avoid Detect that bus is constantly present residual voltage.Specifically, the relatively reasonable time can be selected, as pre- based on practical experience If sending cycle.
In addition, interval time may be the same or different every time.For example, the present embodiment be preferably every minor tick when Between be it is different, can successively successively decrease.Such as, the time of detection is set as longer time for the first time, subsequent to detect every time Time is relative to the preceding primary shortening regular hour.Specifically, it is needed in the present embodiment with least number, shortest time, Bus is determined with the presence or absence of residual voltage, therefore, under the conditions of optimal, after sending communication data to bus for the first time According to the feedback data of the communication data and bus determine bus with the presence or absence of residual voltage, if but first sent to bus it is logical Bus is determined there are residual voltage after interrogating data, needs to send communication data to bus second.In practical application, bus it is big Portion of residual voltage is discharged, and only fraction residual voltage is not discharged, needed for this fraction residual voltage is discharged Time necessarily shorten, at this point, if according to first time detection time, to bus send communication data, necessarily will cause compared with It is prolonged to wait, communication efficiency is reduced, therefore, in the present embodiment, the time of second of detection is less than to be detected for the first time Time, similarly, the subsequent time detected every time is respectively less than the previous time.
If 102, residual voltage is not present in bus, control bus enters normal communication mode.
In the present embodiment, if detecting bus, there is no residual voltages, illustrate that the channel of bus is clean, will not be to logical News data impact, and normal communication can be carried out, at this point it is possible to which control bus enters normal communication mode.
The executing subject of the bus control method of the embodiment of the present invention can be bus control device, the bus control device It can specifically be integrated by software, such as the bus control device is specifically as follows an application or Embedded Operating System In, the present invention is to this without being particularly limited to.Wherein, the bus control device of the present embodiment is preferably arranged in host computer.
The bus control method of the present embodiment, by detecting whether host computer is completed to power, if host computer completes power supply, inspection Surveying bus whether there is residual voltage, if residual voltage is not present in bus, control bus enters normal communication mode, realize certainly It adapts to detection host computer is completed to be spaced after power supply how long to control the bus and enter normal communication mode, avoids because setting is fixed Time is inadequate, it will cause can not normal communication the phenomenon that, also avoid because setting the set time it is too long, communication efficiency is lower Phenomenon.Using technical solution of the present invention, the switching mode reliability between the different working modes of bus can be improved, in turn It improves communication success rate, improve communication efficiency.
Fig. 2 is the flow chart of bus control method embodiment two of the invention, as shown in Fig. 2, total line traffic control of the present embodiment It is further more detailed that technical side's scheme of the invention is described on the basis of method embodiment shown in Fig. 1 processed.Such as Shown in Fig. 2, the bus control method of the present embodiment can specifically include following steps:
200, whether detection host computer is completed to power;If so, step 201 is executed, if it is not, return step 200;
The realization process of the present embodiment is identical as the realization process of step 100 in above-described embodiment, please refers in detail above-mentioned Correlation is recorded, and details are not described herein.
201, communication data is sent to bus;
For example, host computer can be with after completing power supply, by bus switch to detecting communication mode, in the case where detecting communication mode, The equipment being connected with bus can send and receive bus transfer data.Specifically, communication data can be sent to bus, always Line and feedback data backtracking by generation.
202, the timing duration after sending communication data is obtained;
Under normal conditions, in order to be confirmed whether there are communication failure, communicating circuit can all be preset when design One overtime duration, if it exceeds this preset duration, is considered as time-out, was sentenced as preset duration, such as 30 seconds or 1 minute It is set to communication failure, otherwise, if it is being more than this preset duration, is considered as not occurring communication failure.Therefore, the present embodiment In, start timing after sending communication data, obtains sending the timing duration after communication data, and be acquired.
203, the size whether timing duration is less than preset duration is detected;If so, step 204 is executed, if it is not, executing step Rapid 209;
After getting the timing duration after sending communication data, the big of the timing duration and preset duration can be compared It is small, comparison result is obtained, to detect the size whether timing duration is less than preset duration, if comparison result indicates the timing It is long to be less than preset duration, illustrate that bus is normal, communication failure is not present, execute step 204, otherwise, if comparison result expression should Timing duration is more than or equal to preset duration, illustrates that bus is normal, and there are communication failures, executes step 210.
204, detect whether to receive the feedback data of bus;If so, step 205 is executed, if it is not, return step 203;
Causing communication data that can not be sent to the feedback of bus or bus there may be due to communication failure etc. Data can not return, and therefore, in the present embodiment, after sending communication data to bus, can detecte and whether receive bus Feedback data, if so, step 205 is executed, if it is not, return step 203.
205, judge whether the feedback data of bus is consistent with the communication data;If so, step 206 is executed, if it is not, returning Step 201;
Wherein, if bus is not present residual voltage, i.e. the communication channel of bus be it is clean, communication data is logical bus It will not be interfered in news channel, the feedback data i.e. communication data that bus generates.If there are residual voltages for bus, i.e., always The communication channel of line be it is sordid, communication data will receive interference in the bus, be coupled with other data in bus Become fused data as feedback data.Therefore, the feedback data of the communication data and bus can be compared, from And judge whether the feedback data of bus is consistent with the communication data.For example, having sent a byte 0, bus to communication bus The byte of return is 0, illustrates that the two is consistent, executes step 206, and the byte that bus returns is 1, then illustrates that the two is inconsistent, return Step 201 is returned, so that whether the channel for continuing to detect bus is clean.
206, control bus enters normal communication mode;
If the feedback data of bus is consistent with the communication data, illustrate that the channel of bus is clean, it will not be to communication number According to impacting, normal communication can be carried out, at this point it is possible to which control bus enters normal communication mode.Host computer and slave computer Between can switch to again charge mode, and so on normal communication, and after completing a communication cycle.
207, the transmission times that communication data is sent to bus is counted;
In practical applications, although the timing duration after sending communication data is less than or equal to preset duration, During the timing duration, if always detecting bus, there are residual voltages, and illustrating bus, there are signal interference failures, for example, nothing The failure that method is discharged.Therefore, in the present embodiment, if judging, the feedback data of bus and the communication data are inconsistent, Need to count the transmission times that communication data is sent to bus.
208, judge whether the transmission times that communication data is sent to bus is greater than preset threshold, if so, executing step 209, if it is not, return step 201;
It is obtaining after the transmission times that bus sends communication data, it can be determined that the transmission of communication data is sent to bus Whether number is greater than preset threshold, if so, illustrating that the residual voltage of bus possibly can not discharge, causes to interfere signal, So that feedback data is inconsistent with communication data, step 209 is executed, otherwise, preset sending cycle is based on, is sent out again to bus Communication data is sent, with return step 201.
209, determining bus, there are signal interference failures;
If judging, the transmission times that communication data is sent to bus is greater than preset threshold, can determine that there are signals for bus Failure is interfered, and corresponding prompt information can be exported, to prompt related personnel to safeguard.
210, determine that there are communication failures for bus.
If timing duration is more than or equal to preset duration, determining bus, there are communication failures, and can export corresponding Prompt information, to prompt related personnel to safeguard.
The bus control method of the present embodiment, realize self-adapting detecting host computer complete to be spaced after power supply how long control it is total Line enters normal communication mode, avoid because setting the set time it is inadequate, it will cause can not normal communication the phenomenon that, also avoid Because the setting set time is too long, communication efficiency lower phenomenon, while can be with, detect bus with the presence or absence of signal interference therefore Barrier, communication failure etc., to notify related personnel to safeguard in time.Using technical solution of the present invention, bus can be improved Different working modes between switching mode reliability, and then improve communication success rate, improve communication efficiency.
Fig. 3 is the structural schematic diagram of bus control device embodiment of the invention, as shown in figure 3, the bus of the present embodiment Control device includes first detection module 10, the second detection module 11 and control module 12.
First detection module 10, for detecting whether host computer is completed to power;
Second detection module 11, if completing power supply for host computer, detection bus whether there is residual voltage;
Control module 12, if residual voltage is not present for bus, control bus enters normal communication mode.
The bus control device of the present embodiment, by detecting whether host computer is completed to power, if host computer completes power supply, inspection Surveying bus whether there is residual voltage, if residual voltage is not present in bus, control bus enters normal communication mode, realize certainly Adapt to be spaced how long control bus enters normal communication mode after detection host computer completes power supply, avoid because setting the set time Not enough, it will cause can not normal communication the phenomenon that, also avoid because setting the set time it is too long, communication efficiency is lower existing As.Using technical solution of the present invention, the switching mode reliability between the different working modes of bus, Jin Erti can be improved Height communication success rate improves communication efficiency.
Further, in above-described embodiment, the second detection module 11 is specifically used for:
Communication data is sent to bus;
Detect whether to receive the feedback data of bus;
If receiving the feedback data of bus, judge whether feedback data is consistent with communication data;
If the feedback data of bus is consistent with the communication data, detecting bus, there is no residual voltages.
During a specific implementation, in above-described embodiment, the second detection module 11, if being also used to the feedback coefficient of bus According to inconsistent with the communication data, it is based on preset sending cycle, sends communication data to bus again, so as to by repeatedly inspection After survey, determine bus with the presence or absence of residual voltage.
Further, in above-described embodiment, the second detection module 11 is also used to:
Count the transmission times that communication data is sent to bus;
If transmission times is greater than preset threshold, determining bus, there are signal interference failures;
If transmission times is less than or equal to preset threshold, it is based on preset sending cycle, sends communicate to bus again Data.
Further, in above-described embodiment, the second detection module 11 is also used to:
Obtain the timing duration after sending communication data;
The size for comparing timing duration and preset duration, obtains comparison result;
Detect whether to receive the feedback data of bus, comprising:
If comparison result indicates that timing duration is less than preset duration, the feedback data for receiving bus is detected whether.
Further, in above-described embodiment, the second detection module 11 is also used to:
If comparison result indicates that timing duration is more than or equal to preset duration, determining bus, there are communication failures.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is the structural schematic diagram that bus marco of the invention controls apparatus embodiments, as shown in figure 4, the present embodiment It includes processor 20 and memory 21 that bus marco, which controls equipment, and processor 20 is connected with memory 21 by communication bus:
Wherein, processor 20, for calling and executing the program stored in memory 21;
Memory 21, for storing program, program is at least used to execute above-mentioned bus marco control method.
The present invention also provides a kind of host computer, which is provided with the bus marco control equipment of above-described embodiment.
The present invention also provides a kind of air-conditioning, which includes the host computer of slave computer, bus and embodiment of submitting a written statement to a higher authority;
Host computer by with bus and slave computer communication connection.
About bus marco control equipment, host computer, the air-conditioning etc. in above-described embodiment, the concrete mode of operation has been executed It is described in detail in the embodiment of the method, the present embodiment no longer elaborates explanation.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple " Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (11)

1. a kind of bus control method characterized by comprising
Whether detection host computer is completed to power;
If the host computer completes power supply, detection bus whether there is residual voltage;
If residual voltage is not present in the bus, controls the bus and enter normal communication mode.
2. the method according to claim 1, wherein the detection bus whether there is residual voltage, comprising:
Communication data is sent to the bus;
Detect whether to receive the feedback data of the bus;
If receiving the feedback data, judge whether the feedback data is consistent with the communication data;
If the feedback data is consistent with the communication data, detecting the bus, there is no residual voltages.
3. according to the method described in claim 2, it is characterized by further comprising:
If the feedback data and the communication data are inconsistent, it is based on preset sending cycle, is sent again to the bus Communication data.
4. according to the method described in claim 3, it is characterized in that, described be based on preset sending cycle, again to described total Line is sent before communication data, further includes:
Count the transmission times that communication data is sent to the bus;
If the transmission times is greater than preset threshold, determining the bus, there are signal interference failures;
It is described to be based on preset sending cycle, communication data is sent to the bus again, comprising:
If the transmission times is less than or equal to the preset threshold, it is based on preset sending cycle, again to the bus Send communication data.
5. according to the method described in claim 2, it is characterized in that, the feedback data for detecting whether to receive the bus Before, further includes:
Obtain the timing duration after sending the communication data;
The size for comparing the timing duration and preset duration, obtains comparison result;
The feedback data for detecting whether to receive the bus, comprising:
If the comparison result indicates that the timing duration is less than the preset duration, detect whether to receive the anti-of the bus Present data.
6. according to the method described in claim 5, it is characterized by further comprising:
If the comparison result indicates that the timing duration is more than or equal to the preset duration, it is logical to determine that the bus exists Interrogate failure.
7. a kind of bus control device characterized by comprising
First detection module, for detecting whether host computer is completed to power;
Second detection module, if completing power supply for the host computer, detection bus whether there is residual voltage;
Control module controls the bus and enters normal communication mode if residual voltage is not present for the bus.
8. device according to claim 7, which is characterized in that second detection module is specifically used for:
Communication data is sent to the bus;
Detect whether to receive the feedback data of the bus;
If receiving the feedback data, judge whether the feedback data is consistent with the communication data;
If the feedback data is consistent with the communication data, detecting the bus, there is no residual voltages.
9. a kind of bus marco controls equipment, which is characterized in that including processor and memory, the processor and memory are logical Communication bus is crossed to be connected:
Wherein, the processor, for calling and executing the program stored in the memory;
The memory, is used for storing said program, and described program is at least used for perform claim and requires 1-6 described in any item total Line traffic control control method.
10. a kind of host computer, which is characterized in that setting just like right want 9 described in bus marco control equipment.
11. a kind of air-conditioning, which is characterized in that including slave computer, bus and host computer as claimed in claim 10;
The host computer passes through the bus and the slave computer communication connection.
CN201910392242.2A 2019-05-13 2019-05-13 Bus control method, device, equipment, upper computer and air conditioner Pending CN110260475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910392242.2A CN110260475A (en) 2019-05-13 2019-05-13 Bus control method, device, equipment, upper computer and air conditioner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910392242.2A CN110260475A (en) 2019-05-13 2019-05-13 Bus control method, device, equipment, upper computer and air conditioner

Publications (1)

Publication Number Publication Date
CN110260475A true CN110260475A (en) 2019-09-20

Family

ID=67913042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910392242.2A Pending CN110260475A (en) 2019-05-13 2019-05-13 Bus control method, device, equipment, upper computer and air conditioner

Country Status (1)

Country Link
CN (1) CN110260475A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113048615A (en) * 2021-03-29 2021-06-29 珠海格力电器股份有限公司 Air conditioning system, communication control method and device thereof, storage medium and processor
CN117955867A (en) * 2024-03-25 2024-04-30 常州埃依琦科技有限公司 SF6 density monitoring system and working method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080034138A1 (en) * 2004-08-31 2008-02-07 Broadband Corporation Method and system for extending the functionality of an embedded USB transceiver interface to handle threshold shift of a USB 2.0 bus during high-speed chirp
CN107612661A (en) * 2017-09-07 2018-01-19 四川九洲北斗导航与位置服务有限公司 Data communication method and device
CN107844441A (en) * 2016-09-18 2018-03-27 南京中兴新软件有限责任公司 The means of communication and device of veneer
CN108732443A (en) * 2018-05-21 2018-11-02 湖北三江航天万峰科技发展有限公司 A kind of Auto-Test System and method based on Linux
CN109140684A (en) * 2018-08-21 2019-01-04 珠海格力电器股份有限公司 Air conditioner, communication fault detection method and device thereof and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080034138A1 (en) * 2004-08-31 2008-02-07 Broadband Corporation Method and system for extending the functionality of an embedded USB transceiver interface to handle threshold shift of a USB 2.0 bus during high-speed chirp
CN107844441A (en) * 2016-09-18 2018-03-27 南京中兴新软件有限责任公司 The means of communication and device of veneer
CN107612661A (en) * 2017-09-07 2018-01-19 四川九洲北斗导航与位置服务有限公司 Data communication method and device
CN108732443A (en) * 2018-05-21 2018-11-02 湖北三江航天万峰科技发展有限公司 A kind of Auto-Test System and method based on Linux
CN109140684A (en) * 2018-08-21 2019-01-04 珠海格力电器股份有限公司 Air conditioner, communication fault detection method and device thereof and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113048615A (en) * 2021-03-29 2021-06-29 珠海格力电器股份有限公司 Air conditioning system, communication control method and device thereof, storage medium and processor
CN113048615B (en) * 2021-03-29 2022-04-22 珠海格力电器股份有限公司 Air conditioning system, communication control method and device thereof, storage medium and processor
CN117955867A (en) * 2024-03-25 2024-04-30 常州埃依琦科技有限公司 SF6 density monitoring system and working method thereof
CN117955867B (en) * 2024-03-25 2024-06-07 常州埃依琦科技有限公司 SF6 density monitoring system and working method thereof

Similar Documents

Publication Publication Date Title
US20190041504A1 (en) Hostless parking radar system and control method
CN101896895A (en) Serial communication system and ID grant method thereof
KR102501641B1 (en) Distributed battery management system and method
CN104536321B (en) A kind of system and method for realizing detection of power loss and relay status control
CN104834233B (en) Jerk controls circuit and control method and pump truck
CN110260475A (en) Bus control method, device, equipment, upper computer and air conditioner
CN103645730A (en) Motion control card with self-checking function and detection method
CN106411655A (en) Communication processing method based on state diagnosis of serial communication equipment
CN103150224B (en) For improving the electronic equipment and method that start reliability
CN106502749A (en) Based on the method and system that program write with a brush dipped in Chinese ink by CAN multimachine
CN105510755A (en) Testing device
EP2782356B1 (en) Fault detection method and substation terminal used for said method
US5889272A (en) Coupler for managing communication between a portable data medium and a data exchange device, and data exchange device therefor
US11650258B2 (en) System for identifying controller causing electrical discharge of vehicle
CN105762782A (en) Electronic device and electrostatic discharging method
CN110688263A (en) FPGA-based hard disk automatic switching device and application method
US10243887B2 (en) Switch unit, ethernet network, and method for activating components in an ethernet network
CN112383462B (en) Network device and bus configuration method
CN112463707A (en) I2C link management system and method
CN105959193A (en) Train control method and system
EP2782357B1 (en) Input signal abnormality detection method and substation terminal used for method
CN219831682U (en) Safety circuit applied to medical equipment, medical equipment and system
CN106814643B (en) A kind of control method and system of two-node cluster hot backup
CN103063942A (en) Cycle detection method of HB 6096 bus interface
KR102501640B1 (en) Distributed battery management system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190920

RJ01 Rejection of invention patent application after publication