CN107957969A - Judge the method for equipment connection status and device type - Google Patents

Judge the method for equipment connection status and device type Download PDF

Info

Publication number
CN107957969A
CN107957969A CN201610901247.XA CN201610901247A CN107957969A CN 107957969 A CN107957969 A CN 107957969A CN 201610901247 A CN201610901247 A CN 201610901247A CN 107957969 A CN107957969 A CN 107957969A
Authority
CN
China
Prior art keywords
equipment
device type
address
data
connection status
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610901247.XA
Other languages
Chinese (zh)
Other versions
CN107957969B (en
Inventor
颜启原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitac Computer Shunde Ltd
Shencloud Technology Co Ltd
Original Assignee
Mitac Computer Shunde Ltd
Shencloud Technology Co Ltd
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 Mitac Computer Shunde Ltd, Shencloud Technology Co Ltd filed Critical Mitac Computer Shunde Ltd
Priority to CN201610901247.XA priority Critical patent/CN107957969B/en
Publication of CN107957969A publication Critical patent/CN107957969A/en
Application granted granted Critical
Publication of CN107957969B publication Critical patent/CN107957969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Abstract

A kind of method for judging equipment connection status and device type, is implemented and is comprised the steps of by a processing unit:(A) multiple inquiry requests are respectively transmitted to multiple address of an IC bus, to confirm whether each address is connected with any appliance;And (B) when receiving from the reply message of at least equipment of at least one for being correspondingly connected to such address, an at least address of the reply message corresponding to an at least equipment and its corresponding device type are compared according to a look-up table, to compare out the device type of an at least equipment of a corresponding at least address, the wherein look-up table corresponds respectively to multiple by least one address set formed with reference to address comprising multiple equipment type.

Description

Judge the method for equipment connection status and device type
Technical field
The invention relates to a kind of method for judging equipment connection status and device type, particularly relates to a kind of for collecting Into the method for the judgement equipment connection status and device type of circuit bus.
Background technology
Integrated circuit (Inter-Integrated Circuit, abbreviation I2C) bus is by data line SDA(Serial Data Line)With clock SCL(Serial Clock Line)The serial bus of composition, can be transmitted and receive data.Various moulds Block circuit is connected in parallel in this bus, and each circuit and module have unique address, have only through address could with it is specific Modular circuit linked up.In the transmitting procedure of information, in I2C buses and each modular circuit for connecing is both main controller (Or controlled device), and be transmitter(Or receiver), this depends on its function to be completed.In general, by processing unit The control signal sent is divided into address code and controlled quentity controlled variable two parts, and address code is used for addressing, that is, connects the module for needing to control Circuit, determines the species of control;Controlled quentity controlled variable determines the classification of the adjustment(Such as contrast, brightness)And need the amount adjusted.So And if being connected with which equipment in I2C buses to be learnt, existing method needs to obtain which equipment circuit diagram can just learn It is connected I2C buses.
However, circuit diagram is often before equipment has actually been connected I2C buses, i.e., cooked up in advance, but it is actual The equipment for being connected to I2C buses not necessarily can be according to the programming of circuit diagram originally, therefore after circuit diagram is obtained, need confirm electricity Whether the figure indicated I2C buses address for being connected with an equipment in road is connected with an equipment really, such as is indicated in circuit diagram I2C bus address 0x01 0xa0 are connected with can make carbon copies read-only storage just like the electronics formula of erasing(Electrically Erasable Programmable Read Only Memory, EEPROM)In the case of equipment.If it is intended to confirm a certain address Such as, 0x01 0xa0(That is, the address 0xa0 of bus 1)When whether being connected with an equipment really, it can be transmitted by a processing unit One instructs such as comprising a wisdom Platform Management Interface (Intelligent Platform Management Interface), The inquiry request of ipmitool raw 0x06 0x52 0x01 0xa0 0x01 0x00 is to being connected to I2C bus address 0x01 The equipment of 0xa0.If the processing unit receives from I2C bus address 0x01 0xa0 and is correspondingly connected to I2C bus address 0x01 During the reply message of the equipment of 0xa0, which determines I2C bus address 0x01 0xa0 and is connected with one really and set It is standby.If the processing unit from I2C buses address 0x01 0xa0 without receive it is any reply message when, the processing unit i.e. judge Go out I2C bus address 0x01 0xa0 and be not connected with any equipment.
However, above-mentioned instructed using wisdom Platform Management Interface to carry out confirmation method, only can confirm that indicated by circuit diagram The I2C buses address for being connected with an equipment whether be connected with an equipment really, it is connectionless can not but to confirm that circuit diagram indicates The whether certain connectionless equipment of the I2C buses address of one equipment.Therefore, in order to make the reality of circuit diagram and follow-up I2C buses Connection status is consistent, equipment have to be connected to I2C buses completely in accordance with the programming of circuit diagram originally, consequently, it is possible to will cause The connection of follow-up equipment loses the elasticity of change, real to belong to inconvenience.In addition, for confirming to be connected with an equipment indicated by circuit diagram I2C buses address whether be connected with really an equipment the wisdom Platform Management Interface instruction not only must include one must read-write refer to Kenel (e.g., 0x06 0x52), an inquiry address (e.g., 0x01 0xa0) and a passback request (e.g., 0x01) are made, must also include connecting It is connected to an instruction set (e.g., 0x00) for the equipment of the inquiry address.That is, the user must be in advance using circuit diagram come the company of learning A device type of the equipment of the inquiry address is connected to, can just be included corresponding to using processing unit transmission according to the device type In the wisdom Platform Management Interface instruction of the instruction set of the device type, whether the inquiry address for confirmation connects really There is an equipment, also fall within inconvenience.
The content of the invention
Therefore, the purpose of the present invention, i.e., provide a kind of elastic judgement equipment connection status for promoting equipment connection and The method of device type.
Then, present invention determine that the method for equipment connection status and device type, is implemented, and wrap by a processing unit Containing following steps:
(A) multiple inquiry requests are respectively transmitted to multiple address of an IC bus, to confirm whether each address connects There is any appliance;And
(B) when receiving from the reply message of at least equipment of at least one for being correspondingly connected to such address, according to One look-up table compares an at least address of the reply message corresponding to an at least equipment and its corresponding device type, with The device type of an at least equipment of a corresponding at least address is compared out, the wherein look-up table includes multiple equipment type point Dui Yingyu not be multiple by least one address set formed with reference to address.
The effect of of the invention, is:By the processing unit, just transmission is more after equipment has been connected IC bus A inquiry request to the IC bus such address, to judge the equipment for being connected to equipment on the IC bus Type, thereby, the connection of follow-up equipment are not necessary to connect completely in accordance with the programming of circuit diagram originally, thus can promote and subsequently set The elasticity of standby connection, in addition, the processing unit extremely should in the inquiry request of transmission comprising wisdom Platform Management Interface instruction During each address of IC bus, it is not required in advance to know a device type of the equipment for being connected to the inquiry address.
【Brief description of the drawings】
Fig. 1 is a flow chart, is illustrated present invention determine that one in the embodiment of the method for equipment connection status and device type sets Standby type alignment programs;And
Fig. 2,3 and 4 ordinatedly illustrate present invention determine that one in the embodiment of the method for equipment connection status and device type sets Standby type approval program.
【Embodiment】
Illustrate the embodiment present invention determine that the method for equipment connection status and device type below in conjunction with institute's accompanying drawings, this A device type alignment programs and a device type are implemented and sequentially included to embodiment by a processing unit (not shown) Proving program.
Refering to Fig. 1, which implements present invention determine that the equipment class of the method for equipment connection status and device type Type alignment programs.The device type alignment programs of the method for the judgement equipment connection status and device type illustrate how to obtain The device type of the equipment of an IC bus is connected to, and is comprised the steps of.
In a step 11, which is respectively transmitted multiple inquiry requests to multiple address of the IC bus, To confirm whether each address is connected with any appliance.If a certain address is connected with an equipment, which can send back should In an inquiry request reply message to the processing unit.Such address is, for example, all address (that is, position of bus 1 of bus Location 0x00 ~ address 0xfe), thereby, which can confirm the connection status of all address of bus.Each inquiry request Comprising a wisdom Platform Management Interface (Intelligent Platform Management Interface) instruction such as, ipmitool raw 0x06 0x52 0x01 0xa0 0x01.Each wisdom Platform Management Interface instruction includes a palpus read-write and refers to Make kenel (e.g., 0x06 0x52), an inquiry address (e.g., the one of which of address 0x01 0x00 ~ address 0x01 0xfe) and one Passback request (e.g., 0x01), and not comprising an instruction set of the equipment for being connected to the inquiry address.
In step 12, when the processing unit is received from being correspondingly connected at least one at least the one of such address During the reply message of equipment, the processing unit according to a look-up table compare corresponding to an at least equipment reply message this extremely A few address and its corresponding device type, to compare out the equipment class of an at least equipment of a corresponding at least address Type, the wherein look-up table correspond respectively to multiple by least one address set formed with reference to address comprising multiple equipment type. Each reply message in response to the inquiry request only includes the data of 1byte.Table 1 is an exemplary look-up table.
Address set Device type
0x36、0x66、0xa6 Peripheral element interconnection solid state hard disc (Peripheral component interconnect express solid state drive, abbreviation PCIe SSD)
0xa0、0xb0 Power-supply unit (Power supply unit, abbreviation PSU)
0xa0 Can field replacement unit (Field replacement unit, abbreviation FRU)
0xb0 Power-supply unit (PSU)
0x98 Temperature sensor
0xE0 Multiplexer (Multiplexer, abbreviation MUX)
Table 1
It is noted that at least address for all corresponding to the reply message of an at least equipment all can be with the look-up table Compare.In the present embodiment, it is corresponding with and at most enjoys highest comparison cis-position with reference to the address set of address, is corresponding with minimum ginseng The address set for examining address enjoys minimum comparison cis-position.For example, if an at least address for 0xa0,0xb0,0x36, 0x66,0xa6, the processing unit is according to an at least address (0xa0,0xb0,0x36,0x66,0xa6) and the look-up table (table 1) it is PCIe SSD, to compare out 0x36,0x66,0xa6, and compares out 0xa0,0xb0 PSU, therefore, this at least one corresponding The device type of an at least equipment of location (0xa0,0xb0,0x36,0x66,0xa6) is PCIe SSD, PSU.The processing list Member at most enjoys highest comparison cis-position when 0xa0,0xb0 is compared, due to being corresponding with reference to the address set of address, should Processing unit can be compared preferentially with 2 address set 0xa0,0xb0 with reference to address, without by 0xa0,0xb0 with only having There is the 1 address set 0xa0 and address set 0xb0 with reference to address to compare, therefore the processing unit can compare out 0xa0,0xb0 is The comparison result of the device type of PSU.
Refering to Fig. 2, Fig. 3 and Fig. 4, which implements present invention determine that the method for equipment connection status and device type Device authentication program, to verify whether the device type that the device type alignment programs compare out correct, and comprising following Step.It is noted that probably there is erroneous judgement in the device type that the device type alignment programs compare out, thus, it must pass through The device authentication program come verify that the device type alignment programs compare out be correspondingly connected to an at least address this extremely Whether the device type of few equipment is correct, and thereby, which can confirm that the device type alignment programs compare out All at least equipment that an address is connected for being connected with equipment device type it is whether correct.
In step 201, for each at least equipment for being correspondingly connected to an at least address, the processing list Member judges whether the device type of the equipment belongs to one first device category.When the device type for determining the equipment belong to this During one device category, step 202 is carried out.Otherwise, flow carries out step 208.In the present embodiment, which includes The device type of one power-supply unit (PSU), but not limited to this.
In step 202, which transmits each address that an equipment data asks to be connected to the equipment.
In step 203, when the processing unit receives the equipment data of each address connected from the equipment, The processing unit judges whether the equipment data corresponding to each address is all coincident with and is relevant in first device category with being somebody's turn to do First preset knowledge of the identical device type of the device type of equipment.When determining the equipment data, to be coincident with this first default During data, step 204 is carried out.Otherwise, flow carries out step 205.
It is noted that the equipment data for each address that the processing unit system is connected by judging the equipment whether All meet first preset knowledge, to verify whether the equipment is correct in the device type that step 12 is compared out.When determining When equipment data corresponding to each address all meets the preset knowledge, device type quilt which is compared out in step 12 It is verified as correct;Otherwise, which is verified as endless total correctness in the device type that step 12 is compared out.
In step 204, which stores device type that the equipment is compared out in step 12 and its corresponding An equipment table of comparisons of the address collection together in a storage element for being electrically connected the processing unit.
In step 205, whether the equipment data which judges not being coincident with first preset knowledge is all consistent In be relevant to one can field replacement unit (FRU) device type the second preset knowledge.When determine be not coincident with this first When the equipment data of preset knowledge is all coincident with second preset knowledge, step 206 is carried out.Otherwise, flow carries out step 207.
It is noted that the processing unit system by judge be not coincident with first preset knowledge equipment data whether Be coincident with second preset knowledge, with verify the address corresponding to the equipment data for not being coincident with first preset knowledge company The device type of the equipment connect whether be this can field replacement unit device type.When determining, not to be coincident with this first default When the equipment data of data is coincident with second preset knowledge, be not coincident with first preset knowledge equipment data it is corresponding it The device type for the equipment that address connects be verified as this can field replacement unit device type;Otherwise, it is not coincident with The device type for the equipment that the corresponding address of the equipment data of first preset knowledge connects is verified as not being that this can The device type of field replacement unit, nor the device type being compared out in step 12.Institute's illustrated example before continuity, The comparison of an at least address (0xa0,0xb0,0x36,0x66,0xa6) through step 12 can compare out 0x36,0x66,0xa6 and be PCIe SSD, and the comparison result that 0xa0,0xb0 are PSU.In general, 0xa0,0xb0 have very high probability to connect PSU, But actual connection is also likely to be 0xa0 connection FRU, and 0xb0 connection PSU, therefore, by judging that the equipment is connected The equipment data of each address such as 0xa0,0xb0 whether all meet first preset knowledge, you can whether verification 0xa0,0xb0 Really all it is connection PSU.If it is determined that the equipment data for going out address 0xa0 is coincident with second preset knowledge, and address 0xb0 is set Standby data is coincident with first preset knowledge, then the device type for the equipment that address 0xa0 is connected is FRU, address 0xb0 institutes The device type of the equipment of connection is PSU.
In step 206, processing unit storage is coincident with the address corresponding to the equipment data of first preset knowledge The device type that the equipment connected is compared out in step 12, and its be coincident with first preset knowledge equipment data institute it is right The address answered, and be coincident with the equipment that the address corresponding to the equipment data of second preset knowledge connects and be verified as this Can field replacement unit device type, and its be coincident with the corresponding address of equipment data of second preset knowledge and set in this The standby table of comparisons.
In step 207, processing unit storage is coincident with the address corresponding to the equipment data of first preset knowledge The device type that the equipment connected is compared out in step 12, and its be coincident with first preset knowledge equipment data institute it is right The address answered, and be coincident with the equipment that the address corresponding to the equipment data of second preset knowledge connects and be verified as this Can field replacement unit device type, and its be coincident with the corresponding address of equipment data of second preset knowledge, without Storage is not coincident with the equipment that the address corresponding to the equipment data of first preset knowledge and second preset knowledge connects The device type being compared out in step 12 and its corresponding address are in the equipment table of comparisons.
In a step 208, which judges whether the device type of the equipment belongs to one second device category.When sentencing When making the device type of the equipment and belonging to second device category, step 209 is carried out.Otherwise, flow carries out step 213. In the present embodiment, second device category include a peripheral element interconnection solid state hard disc (PCIe SSD) device type and one can At least one of which of the device type of field replacement unit (FRU), but not limited to this.
In step 209, which transmits an equipment data and asks to the equipment.
In step 210, when the processing unit receives the equipment data from the equipment, which judges should Whether equipment data, which is coincident with, is relevant to the of device type identical with the device type of the equipment in second device category Three preset knowledges.When determining the equipment data and being coincident with three preset knowledges, step 211 is carried out.Otherwise, flow carries out Step 212.
It is noted that the processing unit system is by judging whether the equipment data meets the 3rd preset knowledge, with Verify whether the equipment is correct in the device type that step 12 is compared out.When determining the equipment data, to meet the 3rd default During data, which is verified as correctly in the device type that step 12 is compared out;Otherwise, which is compared in step 12 The device type gone out is verified as incorrect.
In step 211, which stores device type that the equipment is compared out in step 12 and its corresponding Address collection is together in the equipment table of comparisons.
In the step 212, which does not store the device type and its correspondence that the equipment is compared out in step 12 Address collection together in the equipment table of comparisons.
In step 213, which judges whether the device type of the equipment belongs to one the 3rd device category.When sentencing When making the device type of the equipment and belonging to three device categories, step 214 is carried out.Otherwise, flow carries out step 218. In the present embodiment, the 3rd device category includes the device type of a temperature sensing unit, but not limited to this.
In step 214, which transmits an equipment data and asks to the equipment.
In step 215, when the processing unit receives the equipment data from the equipment, which judges should Whether equipment data meets a preset knowledge form.When determining the equipment data and meeting the preset knowledge form, walked Rapid 216.Otherwise, flow carries out step 217.
It is noted that the processing unit system is by judging whether the data formats of the equipment data meet the default money Form is expected, to verify whether the equipment is correct in the device type that step 12 is compared out.When the money for determining the equipment data When material form meets the preset knowledge form, which is verified as correctly in the device type that step 12 is compared out;Otherwise, The equipment is verified as incorrect in the device type that step 12 is compared out.
In the step 216, which stores device type that the equipment is compared out in step 12 and its corresponding Address collection is together in the equipment table of comparisons.
In step 217, which does not store the device type and its correspondence that the equipment is compared out in step 12 Address collection together in the equipment table of comparisons.
In step 218, which judges whether the device type of the equipment belongs to one the 4th device category.When sentencing When making the device type of the equipment and belonging to four device categories, step 219 is carried out.Otherwise, flow carries out step 222. In the present embodiment, the 4th device category includes the device type of a multiplexer (MUX), but not limited to this.
In step 219, which judges whether the one of which of multiple output ports of the equipment is connected with and appoints One device.When determining the one of which for belonging to such output port and being connected with any device, step 220 is carried out.Otherwise, flow Cheng Jinhang steps 221.
It is noted that the processing unit system is by judging it is any whether the one of which of such output port is connected with Device, to verify whether the equipment is correct in the device type that step 12 is compared out.When determine such output port its When middle one is connected with any device, which is verified as correctly in the device type that step 12 is compared out;Otherwise, this sets The standby device type being compared out in step 12 is verified as incorrect.
In a step 220, which stores device type that the equipment is compared out in step 12 and its corresponding Address collection is together in the equipment table of comparisons.
In step 221, which does not store the device type and its correspondence that the equipment is compared out in step 12 Address collection together in the equipment table of comparisons.
In step 222, the processing unit do not store be not belonging to first device category, second device category, this The device type and its corresponding address collection that the equipment of three device categories and the 4th device category is compared out in step 12 Together in the equipment table of comparisons.
In conclusion present invention determine that the method for equipment connection status and device type, by the processing unit in equipment It has been connected and multiple inquiry requests is just transmitted after IC bus to such address of the IC bus, judges to connect The device type for the equipment being connected on the IC bus, thereby, the connection of follow-up equipment are not necessary to completely in accordance with electric originally The programming of road figure connects, thus can promote the elasticity of follow-up equipment connection, in addition, the processing unit includes the wisdom in transmission Platform Management Interface instruction the inquiry request to the IC bus each address when, be not necessary to learn being connected to this in advance Inquire a device type of the equipment of address, furthermore, which can also be by performing the proving program, should with verification basis Whether the device type that an at least address and the look-up table compare out is correct, and then obtains the high equipment control of accuracy Table, therefore the purpose of the present invention can be reached really.
Above in conjunction with attached drawing to the present invention embodiment and embodiment elaborate, but cannot with restriction The scope of the present invention, the impartial modification and transformation made in scope of the present invention patent, should all belong to patent of the present invention In the range of.

Claims (10)

1. a kind of method for judging equipment connection status and device type, is implemented by a processing unit, it is characterised in that:Bag Containing following steps:
(A) multiple inquiry requests are respectively transmitted to multiple address of an IC bus, to confirm whether each address connects There is any appliance;And
(B) when receiving from the reply message of at least equipment of at least one for being correspondingly connected to such address, according to One look-up table compares an at least address of the reply message corresponding to an at least equipment and its corresponding device type, with The device type of an at least equipment of a corresponding at least address is compared out, the wherein look-up table includes multiple equipment type point Dui Yingyu not be multiple by least one address set formed with reference to address.
2. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (B) in, it is corresponding with and at most enjoys highest comparison cis-position with reference to the address set of address, is corresponding with the minimum address for referring to address Set enjoys minimum comparison cis-position.
3. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (A) in, each inquiry request is instructed comprising a wisdom Platform Management Interface.
4. the method according to claim 3 for judging equipment connection status and device type, it is characterised in that:In step (A) in, wisdom Platform Management Interface instruction includes a palpus read write command kenel, an inquiry address and a passback request, without An instruction set comprising the equipment for being connected to the inquiry address.
5. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (B) after, also comprise the steps of:
(C) for each of an at least equipment, judge whether the device type of the equipment belongs to one first device category, should First device category includes the device type of a power-supply unit;
(D) when the device type for determining the equipment belongs to first device category, one equipment data of transmission asks to this to set The standby each address connected;And
(E) when receiving the equipment data of each address connected from the equipment, setting corresponding to each address is judged Whether standby data, which is all coincident with, is relevant to the of device type identical with the device type of the equipment in first device category One preset knowledge;
Wherein, when determining the equipment data corresponding to each address and being all coincident with first preset knowledge, the equipment is in step Suddenly the device type that (B) is compared out is verified as correctly.
6. the method according to claim 5 for judging equipment connection status and device type, is characterized in that:Step (E) after, also comprise the steps of:
(F) when determining that the equipment data corresponding to each address is non-to be all coincident with first preset knowledge, judgement is not consistent In the equipment data of first preset knowledge whether be coincident be relevant to one can field replacement unit device type it is second pre- If data;And
(G) when determining the equipment data for not being coincident with first preset knowledge and being coincident with second preset knowledge, it is not consistent The device type for the equipment that the address corresponding to equipment data in first preset knowledge connects, which is verified as this, to be showed The device type of field displacement unit.
7. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (B) after, also comprise the steps of:
(H) for each of an at least equipment, judge whether the device type of the equipment belongs to one second device category, should Second device category includes the device type of a peripheral element interconnection solid state hard disc, and one can field replacement unit device type At least one of which;
(I) when the device type for determining the equipment belongs to second device category, one equipment data of transmission asks to this to set It is standby;And
(J) when receiving the equipment data from the equipment, judge whether the equipment data is coincident with and be relevant to this and second set 3rd preset knowledge of the device type identical with the device type of the equipment in the class that makes preparations for sowing;
Wherein, when determining the equipment data and being coincident with three preset knowledges, which sets what step (B) was compared out Standby type is verified as correctly.
8. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (B) after, also comprise the steps of:
(K) for each of an at least equipment, judge whether the device type of the equipment belongs to one the 3rd device category, should 3rd device category includes the device type of a temperature sensing unit;
(L) when the device type for determining the equipment belongs to three device categories, one equipment data of transmission asks to this to set It is standby;And
(M) when receiving the equipment data from the equipment, judge whether the equipment data meets one and be relevant to the 3rd and set The preset knowledge form of the device type identical with the device type of the equipment in the class that makes preparations for sowing;
Wherein, when determining the equipment data and meeting the preset knowledge form, equipment which is compared out in step (B) Type is verified as correctly.
9. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (B) after, also comprise the steps of:
(N) for each of an at least equipment, judge whether the device type of the equipment belongs to one the 4th device category, 4th device category includes the device type of a multiplexer;And
(O) when the device type for determining the equipment belongs to four device categories, multiple output ports of the equipment are judged One of which whether be connected with any device;
Wherein, when the one of which for determining such output port is connected with any device, which is compared in step (B) The device type gone out is verified as correctly.
10. the method according to claim 1 for judging equipment connection status and device type, it is characterised in that:In step (B) in, each reply message in response to the inquiry request only includes the data of 1 byte.
CN201610901247.XA 2016-10-17 2016-10-17 Method for judging device connection state and device type Active CN107957969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610901247.XA CN107957969B (en) 2016-10-17 2016-10-17 Method for judging device connection state and device type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610901247.XA CN107957969B (en) 2016-10-17 2016-10-17 Method for judging device connection state and device type

Publications (2)

Publication Number Publication Date
CN107957969A true CN107957969A (en) 2018-04-24
CN107957969B CN107957969B (en) 2021-11-16

Family

ID=61953328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610901247.XA Active CN107957969B (en) 2016-10-17 2016-10-17 Method for judging device connection state and device type

Country Status (1)

Country Link
CN (1) CN107957969B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579116A (en) * 2019-09-29 2021-03-30 佛山市顺德区顺达电脑厂有限公司 Control method for updating firmware remotely

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585127A (en) * 2003-08-21 2005-02-23 松下电器产业株式会社 Semiconductor integrated circuit device
US20060153122A1 (en) * 2005-01-13 2006-07-13 Hinman Brian L Controlling wireless access to a network
TW200839532A (en) * 2007-03-30 2008-10-01 Via Tech Inc Data transmission systems and methods
CN201141902Y (en) * 2007-09-28 2008-10-29 德律科技股份有限公司 Detection system of electronic element
CN101411136A (en) * 2006-04-03 2009-04-15 极进网络股份有限公司 Method of performing table lookup operation with table index that exceeds CAM key size
CN101414175A (en) * 2008-11-21 2009-04-22 浙江中控技术股份有限公司 Method, apparatus and system for equipment interconnection
CN101604277A (en) * 2008-06-11 2009-12-16 比亚迪股份有限公司 I 2C bus verification system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1585127A (en) * 2003-08-21 2005-02-23 松下电器产业株式会社 Semiconductor integrated circuit device
US20060153122A1 (en) * 2005-01-13 2006-07-13 Hinman Brian L Controlling wireless access to a network
CN101411136A (en) * 2006-04-03 2009-04-15 极进网络股份有限公司 Method of performing table lookup operation with table index that exceeds CAM key size
TW200839532A (en) * 2007-03-30 2008-10-01 Via Tech Inc Data transmission systems and methods
CN201141902Y (en) * 2007-09-28 2008-10-29 德律科技股份有限公司 Detection system of electronic element
CN101604277A (en) * 2008-06-11 2009-12-16 比亚迪股份有限公司 I 2C bus verification system and method
CN101414175A (en) * 2008-11-21 2009-04-22 浙江中控技术股份有限公司 Method, apparatus and system for equipment interconnection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHENG ZHU: "Multi-Machine Communication Based on I2C-BUS", 《SENSORS & TRANSDUCERS》 *
龙珂: "试论I2C总线通信接口的FPGA实现", 《通讯世界》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579116A (en) * 2019-09-29 2021-03-30 佛山市顺德区顺达电脑厂有限公司 Control method for updating firmware remotely
CN112579116B (en) * 2019-09-29 2023-07-18 佛山市顺德区顺达电脑厂有限公司 Control method for remote updating firmware

Also Published As

Publication number Publication date
CN107957969B (en) 2021-11-16

Similar Documents

Publication Publication Date Title
US10387345B2 (en) USB port controller with automatic transmit retries and receive acknowledgements
US11016837B2 (en) Memory module register access
US20160205066A1 (en) Unique device address assignment technique for bidirectional daisy chain system
TWI424176B (en) Systems and methods for testing integrated circuit devices
CN104315657B (en) The method and remote control of a kind of Intelligent Dynamic control air-conditioning regulation room temperature
CN101751035A (en) Methods and systems to verify a communication path between a field device and a process controller in a process control system
CN107924171B (en) Slave device, control method for slave device, and recording medium
CN104422088B (en) Air-conditioning apparatus
JP2008539497A (en) Device identification coding of slave devices between integrated circuits
CN105528989B (en) Driver and operation method thereof
WO1985003151A1 (en) Method of and apparatus for diagnosing channel control unit
CN104517554A (en) Vcom (voltage of common electrode) adjustment device and method of MIPI (mobile industry processor interface) liquid crystal module on basis of FPGA (field programmable gate array)
CN103793307A (en) Electronic device, management method thereof and cabinet servo system
CN101409111A (en) Method for formatting/testing general sequence bus device
CN103838591A (en) Upgrading method and device of multiple single-chip microcomputers based on serial buses
CN102929321A (en) Analog quantity conditioning and distributing device with high precision and all-digital calibration
CN107957969A (en) Judge the method for equipment connection status and device type
US8266348B2 (en) System and method of communicating with portable devices
US20210109885A1 (en) Device for managing hdd backplane
KR20030028819A (en) Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system
CN110096291A (en) Power management chip upgrades circuit, method and the network equipment
CN204288758U (en) Based on the MIPI liquid crystal module Vcom calibration apparatus of FPGA
CN103500585A (en) Control circuit for controlling single programmable memory and control method of control circuit
JP3838809B2 (en) Serial data transfer device
CN204719462U (en) A kind of manifold pressure sensor microcomputer measuring and controlling plug-in card able to programme

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
GR01 Patent grant
GR01 Patent grant