CN103176413A - Control method for bus structured data acquisition unit supporting hot swapping - Google Patents

Control method for bus structured data acquisition unit supporting hot swapping Download PDF

Info

Publication number
CN103176413A
CN103176413A CN2011104319991A CN201110431999A CN103176413A CN 103176413 A CN103176413 A CN 103176413A CN 2011104319991 A CN2011104319991 A CN 2011104319991A CN 201110431999 A CN201110431999 A CN 201110431999A CN 103176413 A CN103176413 A CN 103176413A
Authority
CN
China
Prior art keywords
module card
hot plug
response mode
slot
card
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
CN2011104319991A
Other languages
Chinese (zh)
Other versions
CN103176413B (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.)
Rigol Technologies Inc
Original Assignee
Rigol Technologies Inc
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 Rigol Technologies Inc filed Critical Rigol Technologies Inc
Priority to CN201110431999.1A priority Critical patent/CN103176413B/en
Publication of CN103176413A publication Critical patent/CN103176413A/en
Application granted granted Critical
Publication of CN103176413B publication Critical patent/CN103176413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a control method for a bus structured data acquisition unit supporting hot swapping and is applied to the data acquisition unit. The data acquisition unit comprises a main control unit and a back plate unit, wherein the back plate unit is provided with a slot for inserting of a module card. The control method includes: A1, configuring response modes during a hot swapping operation of the module card; and A2, executing corresponding response operations according to the response modes when the hot swapping operation is performed on the module card. By means of the control method, corresponding response operations can be executed according to the response modes when the hot swapping operation is performed on the module card, hot swapping follow-up processing operations can be controlled reasonably according to needs of users, short circuit with to-be-tested circuits connected outside the data acquisition unit caused by direct and automatic reboot of systems can be avoided, potential risks are eliminated, and the timely recovery capability of the data acquisition unit in work breakdowns is improved.

Description

A kind of control method of supporting the bus structure data collector of hot plug
Technical field
The present invention relates to measurement, technical field of measurement and test, particularly relate to a kind of control method of supporting the bus structure data collector of hot plug.
Background technology
Data collector refers to from sensor and other measured target a kind of device of Information Monitoring automatically.It can realize the collection of multi-signal, by data collector is connected or directly is connected with measured signal with sensor, the sensitive element of outside, can gather and measure various measured signals such as d. c. voltage signal, ac voltage signal, dc current signal, ac current signal, frequency signal, temperature signal, pressure signal, pressure signal.
As shown in Figure 1, be the structural representation of a kind of data collector and module card, described data collector 100 comprises: main control unit 101 and backboard unit 102, the slot that described backboard unit 102 has for insert module card 200.Data collector 100 shown in Figure 1 does not comprise module card 200, and described module card 200 is independent of data collector 100 and exists.Be understandable that, in some cases, data collector 100 can be also the device that is accompanied with module card 200, and module card 200 can be used as the part of data collector 100.
Module card 200 is referred to as module, it generally includes 202 two kinds, channel card 201 and multimeter card, in addition, the module card that also comprises other type, as analog and digital signal transition card, oscillograph card, multifunction card etc., they can be controlled separately, do not need or can not unite use with multimeter card 202.Described channel card 201 can be the card of other types such as MUX card (also claiming switch card), matrix card.The inside of each channel card 201 comprises by relay switch and is configured a plurality of passages, measured signal accesses in each passage in channel card 201 by external cabling, main control unit 101 is by sending control command to channel card 201, the closure state of gauge tap, thus the measured signal that accesses on respective channel is introduced in multimeter card 202.Multimeter card 202 claims again measurement card, perhaps data collecting card, be used for measuring by various types of channel card 201 and connect the measured signal of coming in, main control unit 101 is by sending control command to multimeter card 202, control the measured signal that multimeter card 202 receives from different passages, carry out data acquisition.When the incoming end of channel card 201 connected upper sensor, described device just can be realized the measurement of multiple physical quantity, for example, connected thermopair equitemperature sensor and can realize temperature survey, and the Bonding pressure sensor can be realized pressure survey etc.
Main control unit 101 is unit of controlling whole system work, and it is connected with module card 200 by backboard unit 102.Main control unit 101 is completed switching and the data acquisition operation of input signal (being measured signal) by coordinating a plurality of module card 200.
Backboard unit 102 possesses a plurality of slots is arranged, be used for inserting different module card 200, it works " bridge " effect that connects main control unit 101 and module card 200, and the emulation bus by on backboard unit 102 can input to the measured signal in each passage in multimeter card 202; By the communication bus on backboard unit 102, main control unit 101 can send control commands and receive the measured signal that multimeter card 202 is measured to channel card 201 and multimeter card 202.In addition, the power supply of main control unit 101 and modules card 200 is also to provide by the power circuit on backboard unit 102.Need to prove, the feed circuit of main control unit 101 can be also on the mainboard at its place.
When carrying out data acquisition, main control unit 101 sends control command to channel card 201 at first by communication bus; Channel card 201 is connected a corresponding passage according to control command, by this passage, measured signal is input on emulation bus; Then main control unit 101 by communication bus, sends control command to multimeter card 202, and multimeter card 202 gathers the measured signal on emulation bus according to this control command; After collection is completed, multimeter card 202 returns to main control unit 101 by communication bus with data, at this moment, has completed the data acquisition of measured signal on described passage.
Because module card 200 is to be inserted in the slot of backboard unit 102, therefore, in data collector 100 courses of work, module card 200 may produce the plug operation.Take Agilent 34970A as example, it is exactly a kind of typical data collector.In the user manual of Agilent34970A, for the plug of module card, following description is arranged: " if the user installs (insertions) module card when operation scanning, this device will be closed and opening power again, recover to scan.If the user is in when scanning operation deletion (extracting) module card, this device will be closed and opening power again, and can not recover scanning after completing restarting.If the user just is being recorded in usb driver, this device can not be recorded in the removing module card and restart all scannings of carrying out during device." wherein; described scanning refers to each passage of data harvester is scanned; specifically; have the data collector of a plurality of passages for Agilent34970A etc.; after the user is configured each passage, can generate have the passage scanning sequency, the scan table of the information such as channel measurement function, subsequently; the built-in system of data collector can be connected the passage that each has configured one by one according to described scan table, gather the measured signal on respective channel.
By top description, to be not difficult to find, the treatment scheme of Agilent34970A after hot plug operations occurs comprises the steps: as shown in Figure 2
Step a1 has detected the insertion of module card or has extracted operation;
Step a2 judges whether to carry out passage scanning; If not, execution in step a3; If, execution in step a4;
Step a3 judges whether it is the insert module card; If not, execution in step a5; If, execution in step a6;
Step a4 judges whether it is the insert module card; If not, execution in step a7; If, execution in step a8;
Step a5 judges whether the user has configured scan table; If, execution in step a6; If not, do not carry out any operation;
Step a6 is restarted system;
Step a7 is restarted system, and stops scanning;
Step a8 is restarted system, and continues scanning;
As seen from Figure 2, hot plug operations after occuring in other data collector such as Agilent34970A, usually just automatically entered system's rebooting status when not controlled by the user, such as the user has encountered module card because of carelessness, cause module card to become flexible, the built-in system of device is thought has the action of hot plug to occur, so just directly restart system.In this case, if data collector external a lot of circuit under test, because of autoboot, external circuit under test is burnt possibly, bring loss to the user, even can bring the injury of life security aspect to the user in serious situation.This is because due to system's autoboot, and external circuit under test can't be known corresponding situation, and is still in running order.When system restarts, the state of a lot of relay switches is indefinite, the on-state of each passage is uncontrolled, probably cause each external measured signal to produce the situation of short circuit by emulation bus, in case be short-circuited, it is certain that circuit under test is burnt, if cause thus the destruction of test environment, as cause and just might cause the harm of security of the lives and property aspect by fire etc.
In a word, need the urgent technical matters that solves of those skilled in the art to be exactly: how can be when module card produces the plug operation, reasonably control the follow-up processing operation of data collector, avoid direct autoboot system and cause external circuit under test short circuit.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of control method of supporting the bus structure data collector of hot plug, how can be when module card produces the plug operation, the reasonably follow-up processing operation of control device, avoid direct autoboot system and cause external circuit under test short circuit, eliminate safe hidden trouble.
In order to address the above problem, the invention discloses a kind of control method of supporting the bus structure data collector of hot plug, be used for data collector, described data collector comprises main control unit and backboard unit, and described backboard unit has the slot for the insert module card; Described method comprises step:
A1, the response mode when configuring described module card generation hot plug operations;
A2 when described module card generation hot plug operations, carries out corresponding operation response according to described response mode.
The invention solves in prior art, the safety problem that the hot plug processing mode that data collector automatically performs by force (as restarting system) may cause, by the configuration response mode, can be when module card produces hot plug operations, carry out corresponding operation response according to described response mode, reasonably the post-treatment operations of control device, avoid direct autoboot system and cause external circuit under test short circuit, eliminated potential safety hazard.And, by the present invention, improved the timely recovery capability of data collector in job failure.
Preferably, described steps A 1 can comprise: restart system from comprising, proceed passage scanning and eject the response mode of choice menus and select wherein a kind of response mode.
The invention provides multiple hot plug response mode for user's selection, satisfy to greatest extent user's user demand and user's use safety, and response mode has extensibility and dirigibility.For example, restart the response mode of system, relatively be fit to use under the unmanned working method that participates in; Proceed passage scanning response mode, relatively be suitable for requiring higher occasion to use to efficient, as industrial production line etc.; Eject the response mode of choice menus, use in the situation that relatively is adapted at debugging.
Preferably, described steps A 2 can comprise:
A21 when described module card generation hot plug operations and described device are carrying out passage scanning, switches to guard mode with described device;
A22 carries out corresponding operation response according to described response mode.
Preferably, described steps A 22 can comprise:
A221 when hot plug operations is update, carries out corresponding operation response according to described response mode.
Preferably, described steps A 22 can comprise:
A222 when hot plug operations is in idle state for extracting operation and described module card, carries out corresponding operation response according to described response mode.
Preferably, described steps A 22 can also comprise:
A223 when hot plug operations is in non-idle state for extracting operation and described module card, stops passage scanning.
Preferably, described steps A 2 can also comprise:
After steps A 22, execution in step A23;
A23 starts the detection in place of module card, obtains the module card information of current insertion slot and the slot Information at described module card place; Show the described module card information and the corresponding slot Information thereof that detect.
Preferably, described steps A 2 can also comprise:
When described module card generation hot plug operations and described device do not carry out passage scanning, direct execution in step A23.
Preferably, described steps A 221 comprises:
The Eject step of choice menus; The selection step of choice menus;
Wherein, the option type of described choice menus comprises whether restarting system, whether proceeds a kind of in passage scanning.
Preferably, described steps A 222 comprises:
The Eject step of choice menus; The selection step of choice menus;
Wherein, the option type of described choice menus comprises whether restarting system, whether proceeds a kind of in passage scanning.
Description of drawings
Fig. 1 is the structural representation of a kind of data collector and module card;
Fig. 2 is the processing flow chart after a kind of data collector generation hot plug operations in prior art;
Fig. 3 is the process flow diagram of the control method embodiment of a kind of bus structure data collector of supporting hot plug of the present invention;
Fig. 4 is the configuration interface schematic diagram of a kind of response mode of the present invention;
Fig. 5 is the concrete processing flow chart of the inventive method embodiment;
Fig. 6 is the structural representation of the another kind of data collector embodiment of the present invention;
Fig. 7 is the principle schematic that a kind of data collector of the present invention detects hot plug operations.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
with reference to Fig. 3, show the process flow diagram of the control method embodiment of a kind of bus structure data collector of supporting hot plug of the present invention, in conjunction with Fig. 1, the control method that the present embodiment proposes is used for data collector 100, described data collector 100 comprises main control unit 101 and backboard unit 102, described backboard unit 102 has slot, described slot is used for insert module card 200, main control unit 101 and module card 200 realize information interaction by backboard unit 102, common, data collector with above-mentioned annexation is referred to as the bus structure data collector.Below, the described control method of the embodiment of the present invention is elaborated, described method comprises step 300, it specifically comprises the steps:
Step 301, the response mode when configuring described module card generation hot plug operations;
Described hot plug (Hot-plugging or Hot Swap) refers to warm swap, and warm connection function allows the user not closing built-in system, takes out and change the parts such as hard disk, power supply or integrated circuit board in the situation of not cutting off the electricity supply.The described hot plug of the embodiment of the present invention is directed to module card 200 specially, the processing mode when described response mode has been stipulated module card 200 generation hot plug operations.
In the specific implementation, data collector 100 can provide a personal-machine interactive interface, allow user's input configuration information, in when, by the own decision module card 200 of user, hot plug occuring, how the built-in system of data collector 100 should be processed, rather than as described in the prior art, force automatically to process (restarting system) by system.For example, data collector 100 generally can have display panel and input block, main control unit 101 can provide one can supply the configuration interface of user's input by the control display panel, then the user by input block (for example, input key) response mode with hot plug configures to main control unit 101, and by display panel, user's configuration result is presented to the user, complete the layoutprocedure of whole hot plug response mode.
If data collector 100 will be realized data acquisition, will carry out passage scanning (namely, configuration according to scan table scans each passage of doing to configure), described response mode generally configured before passage scanning in advance, and is common, can only configure response mode one time, be also, this response mode is for all module card 200, and hot plug operations has occured any module card 200, all carries out corresponding corresponding operating according to described response mode.In addition, can also response mode corresponding according to the type configuration of module card 200, for example during multimeter card generation hot plug operations, the response mode of configuration is mode A; During switch card generation hot plug, the response mode of configuration is mode B.......In addition, can also be according to the corresponding response mode of slot position configuration at module card 200 places, for example, for the module card 200 on first slot, the response mode that configures its hot plug is mode C; For the module card 200 on second slot, the response mode that configures its hot plug is mode D.......In addition, can also configure separately its distinctive response mode for each concrete module card respectively.
Illustrate as one, the described step 301 of the present embodiment can be: restart system from comprising, proceed passage scanning and eject the response mode of choice menus and select wherein a kind of response mode.As shown in Figure 4, be the schematic diagram of the configuration interface of a kind of response mode of the present invention.Fig. 4 has provided the multiple response mode that can select, comprises restarting the S1 of system, proceed passage scanning S2, eject the choice menus S3 of whether restarting, ejecting the choice menus S4...... that whether proceeds passage scanning; Wherein, described choice menus is a kind of information, for the user, next step operation is selected.As shown in Figure 4, the response mode that the user selects is: proceed passage scanning S2, after configuring response mode, can click " determining " menu option S5.Be understandable that, except configuration interface shown in Figure 4, the configuration of response mode can also have other implementation, for example, selects from a plurality of response modes with the form of drop-down list.Perhaps, can also represent two text boxes on configuration interface, have from one as the user when choosing one response mode the text box of a plurality of options, response mode in the response mode automated movement that this is chosen or copy in another text box, described another text box is the response mode that configures.The collocation method of response mode has multiple, and the present invention does not repeat them here.
Step 302 when described module card generation hot plug operations, is carried out corresponding operation response according to described response mode.
When some module card 200 generation hot plug operations being detected, not that monistic pressure is restarted, but carry out corresponding operation response according to the response mode of step 301 configuration.Illustrate as one, the described step 302 of the present embodiment can comprise the steps:
Step 3021 when described module card generation hot plug operations and described device are carrying out passage scanning, switches to guard mode with described device;
Step 3022 is carried out corresponding operation response according to described response mode.
That is to say, in Fig. 1, when hot plug operations occurs described module card 200, if data collector 100 is carrying out passage scanning, first described device is switched to guard mode.Described guard mode refers to: suspend current ongoing passage scan task, and, for protective device itself and outside circuit under test are not damaged, passage in backboard unit 102, modules card 200 etc. is switched to safe condition, it specifically can comprise: when the measured signal that accesses in a certain passage of module card 200 was voltage signal, 102 emulation bus disconnected from the backboard unit with this passage; When the measured signal that accesses in a certain passage of module card 200 is current signal, make this passage by relay short circuit on backboard unit 102 (can guarantee external circuits or unimpeded after short circuit, so can therefore not cause circuit burnout) etc.Switch to guard mode to after, can carry out corresponding operation response according to described response mode.
In originally illustrating, as a kind of distortion, described step 3022 can comprise: step 30221, when hot plug operations is update, carry out corresponding operation response according to described response mode.That is to say, because the prerequisite of step 3022 is module card 200 when hot plug occurs, carrying out passage scanning, so, in this kind situation, if when update occurs module card 200, the response mode that directly configures according to step 301 is carried out corresponding operation response.
In originally illustrating, as the another kind distortion, described step 3022 can comprise again: step 30222, when hot plug operations is in idle state for extracting operation and described module card, carry out corresponding operation response according to described response mode.Described idle state refers to: the passage that produces the module card 200 of hot plug operations is not configured in the scan table of carrying out scan task.Need to prove, data collector need to be configured the scan attribute of each passage before carrying out passage scanning, afterwards, can generate have the passage scanning sequency, the scan table of the attribute information such as channel measurement function.If the user has configured the scan attribute of a certain passage, this passage just is configured in scan table; If the user does not configure the scan attribute of a certain passage, this passage just is not configured in scan table.In some cases, the user can configure a plurality of scan tables and store, during data collector 100 work, can only move a scan table, namely, only have a scan table carrying out scan task, data collector 100 is according to the scan table of carrying out scan task, each passage to be scanned, because the passage of the module card of extracting is not configured in described scan table, therefore, carry out corresponding operation response according to described response mode, can't exert an influence to passage scanning process and described module card.
In originally illustrating, as another distortion, described steps A 3022 can also comprise: step 30223 when hot plug operations is in non-idle state for extracting operation and described module card, stops passage scanning.Described non-idle state refers to: the passage that produces the module card 200 of hot plug operations is configured in the scan table of carrying out scan task.Because passage scanning is to connect one by one each passage according to the configuration in the scan table of carrying out scan task, due to the passage that can't connect in the module card 200 of extracting, therefore, also just can not each passage on this module card 200 be scanned, the extracting operation and will inevitably exert an influence to passage scanning of module card 200, this kind situation is a kind of special circumstances, therefore, in the case, the present invention stops passage scanning.Need to prove, when stopping scanning, can also eject warning information, the prompting user is current can not carry out passage scanning.
Be understandable that, if the words that module card 200 updates occur, can be related with current scan table scarcely, because scan table just configured before there is no the insert module card and completes, if there is no corresponding module card 200 in slot, have no idea this module card is configured in scan table and go.If module card 200 is extracted the words that operation occurs, at first described device can obtain the slot Information of extracting module card 200, and then carry out the search of groove position information from current scan table, seeing if there is the passage of extracting module card 200 is configured in current scan table, after searching, if be not configured in scan table, respond this according to user configured response mode and extract operation; If be configured in scan table, stop passage scanning.
In addition, illustrate as another, the described step 302 of the present embodiment can also comprise: after step 3022, and execution in step 3023.
Step 3023 starts the detection in place of module card, obtains the module card information of current insertion slot and the slot Information at described module card place; Show the described module card information and the corresponding slot Information thereof that detect.
Described detection in place is generally to detect successively each slot, if inserted module card 200 in slot, just can know immediately the slot Information (namely specifically which slot) at module card 200 places, then, more further acquisition module card information on this slot.Described module card information is the type of module card 200 normally, shows switch card, multimeter card or matrix card etc.; In addition, described module card information can also comprise other information of switching times etc. of module card 200 repeat circuit switches.The described module card information that detects by demonstration and corresponding slot Information thereof, can be after hot plug operations occurs, the relevant information of the module card 200 of in time notifying the insertion state of module card 200 in current each slot of user and inserting feeds back to user's latest development.Need to prove, in display module card information and slot Information, can also eject the warning message of hot plug operations, notice line module card has the action of inserting or extracting to occur.
From top description, can find out, carry out corresponding operation response according to described response mode, precondition must be that when hot plug operations occurs, described device is carrying out passage scanning.Be directed to another kind of situation, illustrate as another, the described step 302 of the embodiment of the present invention also comprises: when described module card generation hot plug operations and described device do not carry out passage scanning, and direct execution in step 3023.That is to say, because device does not carry out passage scanning, therefore, hot plug operations does not produce any impact to the work of device, therefore, and in this kind situation, need not to carry out operation response according to the response mode of configuration, but directly feed back to the current slot Information of user and module card information gets final product.
Description above comprehensive illustrates as one, provides a kind of concrete processing flow chart of the inventive method embodiment, and as shown in Figure 5, it comprises step:
B1, the response mode when configuring described module card generation hot plug operations;
B2 when described module card generation hot plug operations, judges whether described device is carrying out passage scanning; If, execution in step b3; If not, direct execution in step b8;
B3 switches to guard mode with described device;
B4 judges that described module card update has occured still extracted operation; If update, execution in step b5; If extract operation, execution in step b6;
B5 carries out corresponding operation response, execution in step b8 afterwards according to described response mode;
B6 judges whether described module card is in idle state; If, execution in step b5; If not, execution in step b7;
B7 stops passage scanning, afterwards execution in step b8;
B8 starts the detection in place of module card, obtains the module card information of current insertion slot and the slot Information at described module card place;
B9 shows the described module card information and the corresponding slot Information thereof that detect.
Below, take data collector shown in Figure 1 100 and module card 200 as example, and in conjunction with Fig. 4 and Fig. 5, to originally illustrating described response mode and corresponding operation response is described further.Can see from the configuration interface of Fig. 4, have the configuration item of multiple hot plug-pull response mode to select for the user, the response mode that can configure has multiple, owing to can not all enumerating, only enumerate severally herein, the below describes the response mode of having enumerated respectively.
1), restart system
As can see from Figure 5, before carrying out operation response, system has suspended and has scanned and switched to guard mode; so; if the user has selected to restart the response mode of system's (being system restart), so, the built-in system of described device can restart once according to this configuration.This response mode relatively is fit to use under the unmanned working method that participates in.
2), proceed passage scanning
Selected this, after module card 200 produces hot plug operations, if update certainly not at scan table, so described device can be proceeded passage scanning, does not affect current task due to this module card; If extract operation, and the module card 200 of finding to extract by detection still can proceed current passage scanning not in scan table, do not affect current task.Be understandable that, if described module card 200 is in the current scan table, even the user has configured the response mode of proceeding passage scanning, be not to carry out according to this response mode yet, at this kind in particular cases, stop passage scanning, referring to the step b7 in Fig. 5.This kind response mode relatively is suitable for requiring higher occasion to use to efficient, as industrial production line etc.
3), eject choice menus
The ejection choice menus is: the display panel (interface) at data collector upward shows a choice menus for the user.After selecting this, insert or extract module card 200 no matter be, choice menus (information) prompting user is ejected in the capital, and provides interface that a user can input next step action to the user, allows the user decide next step should carry out what action.Use in the situation that this kind response mode relatively is adapted at debugging, can guarantee that all operation responses all carry out in the fixed situation of user.
When the response mode of configuration was the ejection choice menus, in originally illustrating, as the another kind distortion, the step b5 in Fig. 5 can comprise: the Eject step of choice menus; And the selection step of choice menus; Wherein, the option type of described choice menus comprises whether restarting system, whether proceeds a kind of in passage scanning.Be understandable that, the option type of choice menus can also comprise other various ways, and the user can be configured according to the actual requirements.
In this distortion, as a kind of example, described step b5 can comprise: eject the choice menus of whether restarting system; The user is restarted system after selecting to restart system.In this distortion, as another kind of example, described step b5 can also comprise: eject the choice menus of whether proceeding passage scanning; After the user selects to proceed passage scanning, proceed passage scanning.
By top explanation, can find out, the embodiment of the present invention has not only solved in prior art, the safety problem that the hot plug processing mode that data collector automatically performs by force (as restarting system) may cause, and provide a cover to satisfy to greatest extent user's user demand and user's safety for the hot plug response mode that the user selects.By the embodiment of the present invention, improved the timely recovery capability of data collector in job failure, response mode has extendability and dirigibility.
For distinct the specific embodiment of the present invention, below, the bus structure data collector of the described support hot plug of the embodiment of the present invention is described further.
The data collector of the embodiment of the present invention can possess a hardware detection unit, for detection of the hot plug action (operation) of module card.Illustrate as one, the described hardware detection unit of the present embodiment can be integrated in the inside of main control unit 101, as the part of main control unit 101, this moment described data collector structure can be referring to Fig. 1.
Illustrate as another, the described hardware detection unit of the present embodiment can be arranged on the outside of main control unit, as shown in Figure 6, structural representation for the another kind of data collector embodiment of the present invention, described data collector 600 comprises: main control unit 601, backboard unit 602 and hardware detection unit 603, described backboard unit 602 has a plurality of slots 6021, and described hardware detection unit 603 is independent of main control unit 601, is arranged between main control unit 601 and backboard unit 602.Below, take data collector shown in Figure 6 600 as example, the hot plug of module card is detected be described further.
In originally illustrating, the end that described hot plug detecting unit 603 is connected with the backboard unit has the detection pin, detect pin corresponding one by one with slot, the hot plug operations of the module card that occurs on described hardware detection unit 603 each slot for detection of backboard unit 602, after hot plug operations being detected, hardware detection unit 603 can produce a look-at-me and send to main control unit 601, then, main control unit 601 is carried out corresponding operation response according to user configured hot plug response mode.
Backboard shown in Figure 6 unit 602 has N slot, can see in conjunction with Fig. 6, when having module card to insert or extract in slot 1~N, will produce a signal saltus step on the hardware detection unit 603 detection pin corresponding with slot.For example, during the insert module card, the corresponding detection produces a rising edge signal on pin, after hardware detection unit 603 detects described rising edge signal, just generate first look-at-me to main control unit 601, the update of a module card has occured in notice main control unit 601; When extracting a module card, the corresponding detection on pin can produce a negative edge signal, after hardware detection unit 603 detects described negative edge signal, just generate second look-at-me to main control unit 601, the operation of extracting of a module card has occured in notice main control unit 601.
In originally illustrating, as a kind of distortion, the principle schematic of data collector detection hot plug operations can be as shown in Figure 7, and Fig. 7 is than the more detailed schematic diagram of Fig. 6.One side of backboard unit 602 is main control unit 601 and hardware detection unit 603, the opposite side of backboard unit 602 is used for insert module card 700, be understandable that, main control unit 601, hardware detection unit 603 and module card 700 can also be arranged on the same side of backboard unit 602.The end that described module card is inserted slot has short-circuiting device, two end points short circuits of short-circuiting device; When in slot during insert module card 700, two end points of short-circuiting device contact with pair of contact on the bus of backboard unit respectively, for the every a pair of contact on the backboard unit, one of them contact access burning voltage V CC, and be connected with a detection pin of hot plug detecting unit, another contact ground connection.
When there is no insert module card 700, due to a burning voltage V being arranged CCExisting, is a high level so detect on pin; After module card 700 was inserted into slot on the backboard unit, the short-circuiting device on module card 700 can contact with the contact on the backboard unit, and the level that detects like this on pin can directly be moved to ground, forms a negative edge signal; In like manner, when extracting module card 700, the level that detects on pin can be drawn high again, forms a rising edge signal.After hardware detection unit 603 detects described rising edge or negative edge signal, will produce a look-at-me to control system.Afterwards, main control unit 601 will respond this insertion or extract operation according to the processing mode that the user configures.Concrete response mode and operation response are omitted herein, can be referring to Fig. 5.
in originally illustrating, be out of shape as another kind, when module card generation hot plug operations, can be regardless of being insertion or extracting, all produce a rising edge signal on the detection pin of hardware detection unit 603, afterwards, hardware detection unit 603 sends look-at-me to main control unit 601, after main control unit 601 receives look-at-me, carry out once detection operation in place, confirm the information up-to-date in place of module card in each slot, then the information in place before described information in place and hot plug operations generation is compared, by recently further judgement is insertion or extracts operation.After confirming hot plug operations, then complete the response of hot plug according to user's configuration.
In this distortion, as an example, a register can be set in main control unit 601, the information in place that is used for preserving each slot upper module card, in place is 1, not in place is 0.If on slot 1,3,4, module card is arranged when data collector 600 powers on, there is no module card on slot 2 and 5.The information in place of storing in so described register is exactly 10110.At this moment, if the module card on slot 3 is extracted, after hardware detection unit 603 sends look-at-me to main control unit 601 so, main control unit 601 can be initiated once detection in place, the result that detects is that slot 1 and 4 has module card, there is no module card on other slot, the information in place that obtains this moment has so just become 10010.According to two information in place before and after hot plug operations, compare 10110 and 10010, can find out, the numeral on the 3rd groove position becomes 0 by 1, can judge that operation has occured to extract the module card on slot 3.It is similar to the above that the detection mode of updates occurs in module card 700, and difference is, when update occured, the numeral on the corresponding groove position was to become 1 by 0, and concrete detection mode repeats no more herein.
In originally illustrating, as another distortion, when hot plug operations occurs in module card 700, hardware detection unit 603 can be by sending different numeric data codes (making an appointment in inside) to main control unit 601, main control unit 601 reads this numeric data code according to the mode of appointing, thus the hot pluggable condition of acquisition module card 700.In this distortion, as an example, numeric data code " 101 " expression the first slot has update to occur; Numeric data code " 110 " expression the first slot is extracted operation and is occured.The detection ultimate principle of hot plug operations can be referring to Fig. 7.Hardware detection unit 603 has been obtained a rising edge or negative edge signal on some pins, afterwards, just can navigate to the slot of module card 700, suppose to navigate to the first slot, if actual what detect is the rising edge signal, hardware detection unit 603 just sends numeric data code " 101 " by the communication interface that is connected with main control unit so; If actual what detect is the negative edge signal, hardware detection unit 603 just sends numeric data code " 110 " by the communication interface that is connected with main control unit so.Because the coded system of numeric data code is appointed, so main control unit 601 just can know that after receiving numeric data code hot plug operations has occured which slot, and can know further that update has occured still extracts operation.
Illustrate as one, the described data collector of the present embodiment can also not possess special hardware detection unit, referring to Fig. 1, be initiatively regularly to initiate detection in place by main control unit 101 to review and validate module card 200 on associated socket and whether produce and insert or extract operation.If corresponding hot plug operations detected, respond according to user configured mode.In the specific implementation, can be at timer of main control unit 101 inner setting, just initiating once detection in place at interval of the regular hour (as 1s) moves, then main control unit 101 information in place that will at every turn detect is (as 11001,1 expression is in place, and 0 expression is not in place) compare (as 10101) with last information in place.For example, in this is given an example, by comparing 11001 and 10101, can find, the numeral on second slot becomes 0, the three numeral on slot by 1 and becomes 1 by 0, can draw, the second slot has been extracted a module card, and the 3rd slot has inserted a module card.Need to prove, described detection is initiated by main control unit 101, and its testing result also is kept in main control unit 101, and therefore, main control unit 101 just can obtain this information as long as access corresponding memory location.This process is not need special hardware to realize, has improved the frequency of utilizing software detection in place.
Above to a kind of control method of supporting the bus structure data collector of hot plug provided by the present invention, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. control method of supporting the bus structure data collector of hot plug is used for data collector, and described data collector comprises main control unit and backboard unit, and described backboard unit has the slot for the insert module card; It is characterized in that, described method comprises step:
A1, the response mode when configuring described module card generation hot plug operations;
A2 when described module card generation hot plug operations, carries out corresponding operation response according to described response mode.
2. the method for claim 1, is characterized in that, described steps A 1 comprises:
Restart system from comprising, proceed passage scanning and eject the response mode of choice menus and select wherein a kind of response mode.
3. method as claimed in claim 2, is characterized in that, described steps A 2 comprises:
A21 when described module card generation hot plug operations and described device are carrying out passage scanning, switches to guard mode with described device;
A22 carries out corresponding operation response according to described response mode.
4. method as claimed in claim 3, is characterized in that, described steps A 22 comprises:
A221 when hot plug operations is update, carries out corresponding operation response according to described response mode.
5. method as claimed in claim 3, is characterized in that, described steps A 22 comprises:
A222 when hot plug operations is in idle state for extracting operation and described module card, carries out corresponding operation response according to described response mode.
6. method as claimed in claim 5, is characterized in that, described steps A 22 also comprises:
A223 when hot plug operations is in non-idle state for extracting operation and described module card, stops passage scanning.
7. method as claimed in claim 3, is characterized in that, described steps A 2 also comprises:
After steps A 22, execution in step A23;
A23 starts the detection in place of module card, obtains the module card information of current insertion slot and the slot Information at described module card place; Show the described module card information and the corresponding slot Information thereof that detect.
8. method as claimed in claim 7, is characterized in that, described steps A 2 also comprises:
When described module card generation hot plug operations and described device do not carry out passage scanning, direct execution in step A23.
9. method as claimed in claim 4, is characterized in that,
Described steps A 221 comprises:
The Eject step of choice menus;
The selection step of choice menus;
Wherein, the option type of described choice menus comprises whether restarting system, whether proceeds a kind of in passage scanning.
10. method as claimed in claim 5, is characterized in that,
Described steps A 222 comprises:
The Eject step of choice menus;
The selection step of choice menus;
Wherein, the option type of described choice menus comprises whether restarting system, whether proceeds a kind of in passage scanning.
CN201110431999.1A 2011-12-21 2011-12-21 A kind of control method of the bus structures data acquisition unit supporting hot plug Active CN103176413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110431999.1A CN103176413B (en) 2011-12-21 2011-12-21 A kind of control method of the bus structures data acquisition unit supporting hot plug

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110431999.1A CN103176413B (en) 2011-12-21 2011-12-21 A kind of control method of the bus structures data acquisition unit supporting hot plug

Publications (2)

Publication Number Publication Date
CN103176413A true CN103176413A (en) 2013-06-26
CN103176413B CN103176413B (en) 2016-12-07

Family

ID=48636368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110431999.1A Active CN103176413B (en) 2011-12-21 2011-12-21 A kind of control method of the bus structures data acquisition unit supporting hot plug

Country Status (1)

Country Link
CN (1) CN103176413B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844457A (en) * 2016-04-11 2016-08-10 深圳创迹呈祥科技有限公司 Intelligent consumption data acquisition box
CN107491406A (en) * 2017-08-24 2017-12-19 郑州云海信息技术有限公司 The hot-plug method and device of a kind of interface
CN111147401A (en) * 2019-12-20 2020-05-12 苏州浪潮智能科技有限公司 PHY card hot plug method and device
CN111858437A (en) * 2020-07-31 2020-10-30 上海海得控制系统股份有限公司 Hot plug processing method and device based on double buses, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060010473A1 (en) * 2004-06-25 2006-01-12 Funai Electric Co., Ltd. Digital television broadcast signal receiver
CN101408765A (en) * 2007-10-08 2009-04-15 泓格科技股份有限公司 Distributed automatic system and I/O extending unit
US7801497B1 (en) * 2007-06-06 2010-09-21 RadioShack, Corporation Frequency scanning radio modulator and method
CN102109539A (en) * 2009-12-25 2011-06-29 北京普源精电科技有限公司 Data processing method of multichannel data acquisition device
CN102202171A (en) * 2011-04-21 2011-09-28 北京理工大学 Embedded high-speed multi-channel image acquisition and storage system
CN202003227U (en) * 2011-01-13 2011-10-05 北京泛华恒兴科技有限公司 Electrical measurement and control system with signal switching function
CN202003226U (en) * 2011-01-13 2011-10-05 北京泛华恒兴科技有限公司 Electrical measurement and control system with signal conditioning function

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060010473A1 (en) * 2004-06-25 2006-01-12 Funai Electric Co., Ltd. Digital television broadcast signal receiver
US7801497B1 (en) * 2007-06-06 2010-09-21 RadioShack, Corporation Frequency scanning radio modulator and method
CN101408765A (en) * 2007-10-08 2009-04-15 泓格科技股份有限公司 Distributed automatic system and I/O extending unit
CN102109539A (en) * 2009-12-25 2011-06-29 北京普源精电科技有限公司 Data processing method of multichannel data acquisition device
CN202003227U (en) * 2011-01-13 2011-10-05 北京泛华恒兴科技有限公司 Electrical measurement and control system with signal switching function
CN202003226U (en) * 2011-01-13 2011-10-05 北京泛华恒兴科技有限公司 Electrical measurement and control system with signal conditioning function
CN102202171A (en) * 2011-04-21 2011-09-28 北京理工大学 Embedded high-speed multi-channel image acquisition and storage system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844457A (en) * 2016-04-11 2016-08-10 深圳创迹呈祥科技有限公司 Intelligent consumption data acquisition box
CN107491406A (en) * 2017-08-24 2017-12-19 郑州云海信息技术有限公司 The hot-plug method and device of a kind of interface
CN111147401A (en) * 2019-12-20 2020-05-12 苏州浪潮智能科技有限公司 PHY card hot plug method and device
CN111858437A (en) * 2020-07-31 2020-10-30 上海海得控制系统股份有限公司 Hot plug processing method and device based on double buses, storage medium and electronic equipment
CN111858437B (en) * 2020-07-31 2022-06-28 上海海得控制系统股份有限公司 Hot plug processing method and device based on double buses, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN103176413B (en) 2016-12-07

Similar Documents

Publication Publication Date Title
US20160178707A1 (en) Systems and methods for identifying faulty battery in an electronic device
CN101930411B (en) Information processing apparatus, and method for controlling the same
CN103176413A (en) Control method for bus structured data acquisition unit supporting hot swapping
CN100395720C (en) Automated computer on-off operation testing device and method
CN103428333B (en) Mobile terminal, server and errors repair method
CN102945652A (en) Method and system for solving abnormal display of display screen
US20070021848A1 (en) Testing system and related method for testing an electronic device by determining a power on/off signal
CN102339242A (en) Computer system data recovery device
CN104281479A (en) Firmware upgrading method and device
CN112463689A (en) OCP card hot plug device, method and computer readable storage medium
US20230168967A1 (en) Reset device and display device
CN101645056A (en) Apparatus and method for docking of mobile device supporting docking station
CN102123205B (en) Power on/off control method for card socket and terminal
CN106093647A (en) The line degradation detecting method of touch screen and detecting system
CN109344104A (en) Electronic equipment and method for transmitting signals
CN111163203A (en) Liquid inlet monitoring device, mobile terminal and liquid inlet monitoring method of mobile terminal
CN104010077A (en) Information processing method and electronic equipment
CN102314403A (en) Device and method for identifying I2C (Inter-Integrated Circuit) bus signal by taking MCU (Micro Control Unit) as slave device
CN107592525B (en) Set top box WIFI function detection and number burning method and device
CN103034511B (en) Changing method between a kind of Basic Input or Output System (BIOS) and device
CN101788930A (en) Engine display system recovery method and engine display system recovery device
CN218568024U (en) USB port detection device
CN105100344A (en) Hot plug processing method for user recognition module card, and mobile terminal
CN102955724A (en) BIOS (basic input output system) test fixture and method using same for BIOS test
CN104794812A (en) Card swiping system and managing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant