Nothing Special   »   [go: up one dir, main page]

CN104572361B - Device method for detecting and its calculator device during start - Google Patents

Device method for detecting and its calculator device during start Download PDF

Info

Publication number
CN104572361B
CN104572361B CN201310472749.1A CN201310472749A CN104572361B CN 104572361 B CN104572361 B CN 104572361B CN 201310472749 A CN201310472749 A CN 201310472749A CN 104572361 B CN104572361 B CN 104572361B
Authority
CN
China
Prior art keywords
bus
destination apparatus
conducting
conducting state
buses
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
Application number
CN201310472749.1A
Other languages
Chinese (zh)
Other versions
CN104572361A (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 Kunshan Co Ltd
Getac Technology Corp
Original Assignee
Mitac Computer Kunshan Co Ltd
Mitac Technology Corp
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 Kunshan Co Ltd, Mitac Technology Corp filed Critical Mitac Computer Kunshan Co Ltd
Priority to CN201310472749.1A priority Critical patent/CN104572361B/en
Publication of CN104572361A publication Critical patent/CN104572361A/en
Application granted granted Critical
Publication of CN104572361B publication Critical patent/CN104572361B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Bus Control (AREA)

Abstract

A kind of device method for detecting during start, it comprises the following steps:Receive starting-up signal;According to starting-up signal, multiple buses of calculator device each conducting state with destination apparatus is detected;Foundation conducting state, obtains the conducting bus of bus;Maintain the electric connection of conducting bus and destination apparatus.The present invention by control unit in the start process of calculator device, detection bus each conducting state with destination apparatus, and be maintained conducting bus and the electric connection of destination apparatus of conducting state.In addition, control unit can also record conducting bus in storage element so that when starting shooting for secondary time, what control unit was not required to repeat detect calculator device.Consequently, it is possible to the convenience used can be increased.

Description

Device method for detecting and its calculator device during start
【Technical field】
A kind of method for detecting and processing unit, device method for detecting and its calculator dress during particularly with regard to a kind of start Put.
【Background technology】
With the fast development of integrated circuit, the volume of many electronic products also tends to be light and short day.For in response to corpusculum Long-pending electronic product, so the volume of the various slot on electronic product is also required to reduce.Except the slot using smaller size smaller Outside, the slot of All-in-One can also be used instead so that the space service efficiency in electronic product reaches maximum.
In general, the slot of All-in-One needs to set more to judge foot position, wherein judging that pin number amount corresponds to slot Compatible devices quantity.Since the space of electronic product has limited, circuit will be improved if setting more to judge foot position Composition volume.This will cause circuit volume excessively huge, and draw high the cost of making.And electronic product is opened every time During machine, detecting that all can be again, which whether there is device, to be connected.So the available machine time of electronic product will be extended, this It can influence the use feeling of user.
【The content of the invention】
The invention reside in the device method for detecting and its calculator device during a kind of start of offer, so as to being detected in start The conducting state of destination apparatus and bus, and electric connection of the destination apparatus with corresponding bus is maintained, and can avoid turning on The repetition detecting of state, to increase ease of use.
Disclosed herein start when device method for detecting, comprise the following steps.Receive starting-up signal.According to start Signal, detects multiple buses of calculator device each conducting state with destination apparatus.According to conducting state, bus is obtained Turn on bus.Maintain the electric connection of conducting bus and destination apparatus.
The present invention separately discloses a kind of calculator device, including multiple buses, switch unit and control unit.Bus is to even Connect destination apparatus.Switch unit is connected between bus and destination apparatus, to according to multiple control signal, with switch bus with Destination apparatus is attached.Control unit is connected to bus and switch unit, and control unit receives starting-up signal, and produces control Signal, with the respective conducting state with destination apparatus of detection bus, and according to conducting state, obtains the conducting bus of bus, and Control unit controls switch unit, to maintain the electric connection of conducting bus and destination apparatus.
Device method for detecting and its calculator device during start proposed by the invention, by control unit in calculator In the start process of device, detection bus each conducting state with destination apparatus, and be maintained the conducting bus of conducting state With the electric connection of destination apparatus.In addition, control unit can also record conducting bus in storage element so that calculator device in During secondary time start, what control unit was not required to repeat detect.Consequently, it is possible to the convenience used can be increased.
Characteristics and implementation for the present invention, hereby coordinate schema to make embodiment detailed description as follows.
【Brief description of the drawings】
Fig. 1 is the schematic diagram of the calculator device of the present invention.
The flow chart of device method for detecting when Fig. 2 is the start of the present invention.
Fig. 3 is the detail flowchart of the step S220 of Fig. 2.
Another flow chart of device method for detecting when Fig. 4 is the start of the present invention.
【Embodiment】
Please refer to Figure 1 as shown, it is the schematic diagram of the calculator device of the present invention.The calculator device of the present embodiment 100 can be used among personal computer, notebook computer, tablet PC, mobile phone or personal digital assistant. It is single that calculator device 100 includes multiple bus 110_1~110_N, switch unit 120, control unit 130, slot 140 and storage Member 150.Bus 110_1~110_N is to linking objective device 180.Wherein, foregoing bus 110_1~110_N is for example including string Row high-tech configures(Serial Advanced Technology Attachment,SATA), small serial high-tech configuration (mSATA), universal serial bus(Universal Serial Bus,USB)Or quick perimeter component interconnection(Peripheral Component Interconnect Express,PCI-E)Deng.
Switch unit 120 is connected between bus 110_1~110_N and destination apparatus 180, to according to multiple control letters Number, it is attached with switching bus 110_1~110_N with destination apparatus 180.
Control unit 130 is connected to bus 110_1~110_N and switch unit 130.Control unit 130 receives start letter Number, and aforementioned control signals are produced, with the respective conducting states with destination apparatus 180 of detection bus 110_1~110_N.Into one For step, control unit 130 detects bus 110_1~110_N of calculator device 100 and the conducting state of destination apparatus 180 Such as carried out in a manner of poll.
Also, control unit 130 according to conducting state, can obtain the conducting bus of bus 110_1~110_N(It is such as total Line 110_1)Then, control unit 130 controls switch unit 120, to maintain conducting bus(Such as bus 110_1)Filled with target Put 180 electric connection.
Slot 140 is electrically connected between switch unit 120 and destination apparatus 180, to make destination apparatus 180 can be by Slot 140 and be connected really with the switch unit of calculator device 120.In the present embodiment, control unit 110 and switch unit 120 are set respectively.In another embodiment, control unit 110 can also be incorporated into same chip with switch unit 120. In addition, switch unit 120 can be further transmitted through universal input and output with control unit 110(General Purpose I/ O, GPIO)Or inter-integrated circuit(Inter-Integrated Circuit, I2C)It is connected to switch unit 120.
First, destination apparatus 180 is connected to the slot of calculator device 100 so that destination apparatus 180 can be with switching Unit 120 is electrically connected.Then, calculator device 100 is started, and calculator device 100 can operational calculator device 100 itself Start self detection(Power-On Self Test,POST).When calculator device 100 is booting up the mistake of self detection When in journey, control unit 110 understands detection bus 110_1~110_N each conducting states with destination apparatus 180.
In one embodiment, the respective conducting shapes with destination apparatus 180 of 130 detection bus 110_1~110_N of control unit State for example in a manner of poll exemplified by carry out.For example, control unit 130 can elder generation detection bus 110_1 and destination apparatus 180 Conducting state, then control unit 130 detection bus 110_2 and destination apparatus 180 again conducting state, remaining is then analogized. When control unit 130 has detected the conducting state of all bus 110_1~110_N and destination apparatus 180, control unit 130 The conducting bus in bus 110_1~110_N, such as bus 110_2 can be obtained according to foregoing conducting state.Then, control is single Member 120 can control switch unit 120, to maintain conducting bus(Bus 110_2)With the electric connection of destination apparatus 180.Also, The relevant information for turning on bus further can be recorded in storage element 150 by control unit 120.
Foregoing calculator device 100 is accepted during self detection is booted up.In another embodiment, control is single Member 130 can read default value, and wherein default value corresponds to the default bus of a little buses.This default value is for example stored in control unit In 130 buffer, or it is stored in storage element 150.Also, this default value can be corresponded to according to default bus, such as bus 110_2.Then, control unit 130 can carry out calculator device 100 operation of boots.
After boots calculator device 100, control unit 130 can first judge default bus according to foregoing default value(Always Line 110_2)Whether the conducting state with destination apparatus is conducting.When judging default bus(Bus 110_2)With destination apparatus Conducting state for conducting when, control unit 130 can be by default bus(Bus 110_2)It is considered as conducting bus, and will be remaining Bus(Such as bus 110_1,110_3~110_N)Each it is considered as with the conducting state of destination apparatus 180 and does not turn on.
On the other hand, when judging default bus(Bus 110_2)Conducting state with destination apparatus 180 is not turn on When, switch remaining bus(Such as bus 110_1,110_3~110_N)One of them is as test bus, such as bus 110_3.Then, control unit 130 can carry out calculator device 100 operation of boots.In boots calculator device 100 Afterwards, control unit 130 can judge to test bus(Bus 110_3)Whether the conducting state with destination apparatus 180 is conducting.
When judge test bus(Bus 110_3)When conducting state with destination apparatus 180 is conducting, control unit 130 can will test bus(Bus 110_3)It is considered as conducting bus, and by remaining bus(Such as bus 110_1,110_2, 110_4~110_N)Each it is considered as with the conducting state of destination apparatus 180 and does not turn on.Then, control unit 120 can control switching Unit 120, to maintain conducting bus(Bus 110_3)With the electric connection of destination apparatus 180.Also, control unit 120 can be into The relevant information for turning on bus is recorded in storage element 150 by one step.
On the other hand, when test bus(Bus 110_3)Conducting state with destination apparatus is control unit when not turning on 130 can switch remaining bus again(Such as bus 110_1,110_4~110_N)One of them is used as test bus, such as Bus 110_4.
Then, the boots calculator device 100, and judge to test bus again of control unit 130(Bus 110_4)With target Whether the conducting state of device 180 is conducting.If test bus(Bus 110_4)Conducting state with destination apparatus 180 is still Do not turn on, then control unit 130 can switch bus 110_5 and be detected, remaining is then analogized, until control unit 130 is judged Bus is tested with the conducting state of destination apparatus 180 as untill turning on.It is assumed that bus 110_6 is considered as conducting by control unit 130 Bus, then control unit 130 can control switch unit 120, to maintain the electric connection of bus 110_6 and destination apparatus 180.And And the relevant information for turning on bus further can be recorded in storage element 150 by control unit 120.
Consequently, it is possible to by the information of record conducting bus in storage element 150 so that calculator device 100 is next time During start, control unit 130 is directly detected by previous recorded conducting bus as default bus, without repeating to detect Conducting state of all buses each with destination apparatus 180 is surveyed, to increase the convenience used.
By the explanation of above-described embodiment, device detecting during a kind of start applied to calculator device can be summarized Method.It refer to shown in " the 2nd figure ", the flow chart of device method for detecting when it is the start of the present invention.In step S210, Receive starting-up signal.In step S220, according to starting-up signal, multiple buses of calculator device are detected each and destination apparatus Conducting state.In step S230, according to conducting state, the conducting bus of bus is obtained.In step S240, conducting is maintained The electric connection of bus and destination apparatus.In the present embodiment, the bus and the destination apparatus of foregoing detecting calculator device Conducting state carries out for example in a manner of poll.
It refer to shown in " the 3rd figure ", it is the detail flowchart of the step S220 of " the 2nd figure ".In step S310, read Default value, wherein default value correspond to the default bus of bus.In step s 320, boots calculator device.In step S330 In, according to default value, whether the conducting state for first judging default bus and destination apparatus is conducting.
When default bus and the conducting state of destination apparatus is turn on, then S340 is entered step, default bus is considered as Bus is turned on, and remaining bus is each considered as with the conducting state of destination apparatus and is not turned on.On the other hand, when default total The conducting state of line and destination apparatus switches one of remaining bus as survey when not turning on, then to enter step S350 Try bus.In step S360, boots calculator device.
In step S370, judge to test whether bus and the conducting state of destination apparatus are conducting.When test bus with When the conducting state of destination apparatus is turns on, then S380 is entered step, test bus is considered as conducting bus, and will be remaining total Line is each considered as with the conducting state of destination apparatus not to be turned on.When test bus and the conducting state of destination apparatus are not turn on When, then step S350 is returned to, switches one of remaining bus again as test bus.
It refer to shown in " the 4th figure ", another flow chart of device method for detecting when it is the start of the present invention.In step In S410, destination apparatus is connected to the slot of calculator device, this slot is electrically connected with bus.In the step s 420, open Dynamic calculator device, to produce starting-up signal.Wherein, foregoing startup calculator device still further comprises operational calculator device Start self detection(Power-On Self Test,POST).
In step S430, starting-up signal is received.In step S440, according to starting-up signal, calculator device is detected The respective conducting state with destination apparatus of multiple buses.In step S450, according to conducting state, the conducting for obtaining bus is total Line.In step S460, the electric connection of conducting bus and destination apparatus is maintained.In step S470, record conducting bus. In the present embodiment, the conducting state of bus and the destination apparatus of foregoing detecting calculator device for example in a manner of poll into OK.In addition, the detailed process of the step S430 of the present embodiment also refers to the explanation of the embodiment of " the 3rd figure ", therefore herein no longer Repeat.
Device method for detecting and its calculator device during start proposed by the invention, by control unit in calculator In the start process of device, detection bus each conducting state with destination apparatus, and be maintained the conducting bus of conducting state With the electric connection of destination apparatus.In addition, control unit can also record conducting bus in storage element so that calculator device in During secondary time start, what control unit was not required to repeat detect.Consequently, it is possible to the convenience used can be increased.

Claims (15)

1. device method for detecting during a kind of start, it is characterised in that this method includes:
One slot is electrically connected at multiple buses;
Receive a starting-up signal;
According to the starting-up signal, those buses of a calculator device each conducting state with a destination apparatus is detected;
According to those conducting states, obtain those buses one turns on bus;
Maintain the electric connection of the conducting bus and the destination apparatus.
2. device method for detecting during start according to claim 1, it is characterised in that this method further includes:
The destination apparatus is connected to the slot of the calculator device;
Start the calculator device, to produce the starting-up signal.
3. device method for detecting during start according to claim 2, it is characterised in that starting the calculator device Step includes:
The start for running the calculator device detects self.
4. device method for detecting during start according to claim 1, it is characterised in that detect being somebody's turn to do for the calculator device The a little conducting states of bus each with the destination apparatus include:
A default value is read, the wherein default value corresponds to a default bus of those buses;
The boots calculator device;
According to the default value, first judge whether the default bus and the conducting state of the destination apparatus are conducting;
When this presets bus and the conducting state of the destination apparatus is conducting, this is preset into bus and is considered as the conducting bus, And those remaining buses are each considered as with the conducting state of the destination apparatus and are not turned on.
5. device method for detecting during start according to claim 4, it is characterised in that judge the default bus and the mesh The step of whether conducting state of device for mark is conducting includes:
When this presets the conducting state of bus and the destination apparatus not turn on, switch one of those remaining buses As a test bus;
The boots calculator device;
Judge whether the test bus and the conducting state of the destination apparatus are conducting;
When the test bus and the conducting state of the destination apparatus is turn on, which is considered as the conducting bus, And those remaining buses are each considered as with the conducting state of the destination apparatus and are not turned on;And
When the test bus and the conducting state of the destination apparatus is do not turn on, those remaining buses of switching are returned to wherein One of as the test bus the step of.
6. device method for detecting during start according to claim 1, it is characterised in that this method further includes:
Record the conducting bus.
7. device method for detecting during start according to claim 1, it is characterised in that detect being somebody's turn to do for the calculator device A little buses and the conducting state of the destination apparatus are carried out in a manner of poll.
8. a kind of calculator device, it is characterised in that the device includes:
One slot, is electrically connected at multiple buses, to connect a destination apparatus;
One switch unit, is connected between those buses and the destination apparatus, to foundation multiple control signal, to switch those Bus is attached with the destination apparatus;
One control unit, is connected to those buses and the switch unit, which receives a starting-up signal, and produces those Control signal, to detect a conducting state of those buses each with the destination apparatus, and according to the conducting state, obtains those One conducting bus of bus, and the control unit controls the switch unit, to maintain the electricity of the conducting bus and the destination apparatus Property connection.
9. calculator device according to claim 8, it is characterised in that the slot is electrically connected at the switch unit with being somebody's turn to do Between destination apparatus.
10. calculator device according to claim 8, it is characterised in that those buses include serial type high-tech and configure, is micro- Small serial high-tech configuration, universal serial bus or quick peripheral assembly interconnecting.
11. calculator device according to claim 8, it is characterised in that the control unit also reads a default value, wherein The default value corresponds to a default bus of those buses, and the control unit boots calculator device, then according to the acquiescence Value, judges whether the default bus and the conducting state of the destination apparatus are conducting, when this presets bus and the destination apparatus The conducting state for conducting when, which presets bus by this and is considered as the conducting bus, and by those remaining buses Each it is considered as with the conducting state of the destination apparatus and does not turn on.
12. calculator device according to claim 11, it is characterised in that when this preset bus and the destination apparatus should Conducting state is when not turning on, which switches one of those remaining buses and tests bus, and the control as one Unit boots calculator device processed, then judge whether the test bus and the conducting state of the destination apparatus are conducting, When the test bus and the conducting state of the destination apparatus is turn on, which is considered as the conducting by the test bus Bus, and those remaining buses are each considered as with the conducting state of the destination apparatus and are not turned on, when the test bus with The conducting state of the destination apparatus is when not turning on, which switches one of those remaining buses work again For the test bus, and the boots calculator device, and judge that the test bus and the conducting state of the destination apparatus are No is conducting, untill the test bus and the conducting state of the destination apparatus are conducting.
13. calculator device according to claim 8, it is characterised in that the device further includes a storage element, is connected to The control unit, to record the conducting bus.
14. calculator device according to claim 8, it is characterised in that the control unit detects the calculator device Those buses and the conducting state of the destination apparatus are carried out in a manner of poll.
15. calculator device according to claim 8, it is characterised in that the control unit is via universal input output pin Position or inter-integrated circuit are connected to the switch unit.
CN201310472749.1A 2013-10-11 2013-10-11 Device method for detecting and its calculator device during start Active CN104572361B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310472749.1A CN104572361B (en) 2013-10-11 2013-10-11 Device method for detecting and its calculator device during start

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310472749.1A CN104572361B (en) 2013-10-11 2013-10-11 Device method for detecting and its calculator device during start

Publications (2)

Publication Number Publication Date
CN104572361A CN104572361A (en) 2015-04-29
CN104572361B true CN104572361B (en) 2018-04-17

Family

ID=53088496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310472749.1A Active CN104572361B (en) 2013-10-11 2013-10-11 Device method for detecting and its calculator device during start

Country Status (1)

Country Link
CN (1) CN104572361B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1381783A (en) * 2001-04-18 2002-11-27 技嘉科技股份有限公司 Method for detecting and displaying errors of electronic package
CN101114249A (en) * 2006-07-28 2008-01-30 佛山市顺德区顺达电脑厂有限公司 I2C bus testing apparatus of mainboard and method thereof
CN102135930A (en) * 2010-12-17 2011-07-27 威盛电子股份有限公司 Error detecting device and method for computer system
CN102479148A (en) * 2010-11-30 2012-05-30 英业达股份有限公司 System and method for monitoring input/output port state of peripheral element

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033359A1 (en) * 2007-07-31 2009-02-05 Broadcom Corporation Programmable logic device with millimeter wave interface and method for use therewith

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1381783A (en) * 2001-04-18 2002-11-27 技嘉科技股份有限公司 Method for detecting and displaying errors of electronic package
CN101114249A (en) * 2006-07-28 2008-01-30 佛山市顺德区顺达电脑厂有限公司 I2C bus testing apparatus of mainboard and method thereof
CN102479148A (en) * 2010-11-30 2012-05-30 英业达股份有限公司 System and method for monitoring input/output port state of peripheral element
CN102135930A (en) * 2010-12-17 2011-07-27 威盛电子股份有限公司 Error detecting device and method for computer system

Also Published As

Publication number Publication date
CN104572361A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
US9128691B2 (en) Method and terminal for selecting internal circuit according to USB interface status
US20130173833A1 (en) Switch apparatus switching between basic input output system chip and diagnostic card
US9727111B2 (en) Control device for current switching and electronic device
US20160004287A1 (en) Portable electronic device and power management method thereof
US20120311215A1 (en) Peripheral component interconnect express expansion system and method
CN103364659A (en) Android system-based electronic equipment test system and method
CN103593281B (en) Test macro and method of testing
CN111239617A (en) Control method and device for charge and discharge test, storage medium and system
CN103076920A (en) Touch panel equipment and mobile terminal
CN110824337A (en) Method and device for high-temperature test of SOC chip
CN105005526A (en) Information reminding method and mobile terminal
CN107863087B (en) Display system and display method thereof
US8060733B2 (en) Apparatus for displaying BIOS POST code and method thereof
CN102854417B (en) Master test board and testing method thereof
US8897705B2 (en) Data transmitting system and data transmitting method
CN104572361B (en) Device method for detecting and its calculator device during start
US9563593B2 (en) Peripheral component interconnect adapter and computer using same
CN104423616B (en) Input device and control unit
CN102841877B (en) Detecting method and automatic detecting circuit of working mode
CN105068952A (en) SD interface multiplexing apparatus and method and electronic device
CN204142916U (en) Chip
CN104636287B (en) Data acquisition facility and mobile terminal
CN106713902A (en) Camera module fault detection method and apparatus, and terminal
CN109144446B (en) Image display method, image display device, electronic equipment and computer readable storage medium
CN105739765B (en) A kind of touch control method and terminal device

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