Summary of the invention
Embodiments of the invention provide a kind of signal output control method and device of peripheral component interconnection expansion interface, can control this interface respectively and attend forbidding of disparate modules in institute's connection device or reset.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A kind of signal output control method of peripheral component interconnection expansion interface of mobile computer comprises:
When the equipment of said peripheral component interconnection expansion interface connection comprises at least two functional modules, confirm the functional module of current control according to predefined pattern;
Reset signal or inhibit signal are outputed to the corresponding control pin of said interface, to control the functional module of said current control.
A kind of signal output control method of peripheral component interconnection expansion interface of mobile computer comprises:
When the equipment of said peripheral component interconnection expansion interface connection comprises at least two functional modules, confirm the functional module of current control according to predefined pattern;
Export the corresponding control signal of functional module of said current control through the signal transmission pin that defines in the reserved pin;
Control the functional module that signal on the acquiescence reset signal transmission pin of said interface outputs to said current control according to this control signal, and/or control the functional module that signal on the acquiescence inhibit signal transmission pin of said interface outputs to said current control according to this control signal.
A kind of signal output-controlling device of peripheral component interconnection expansion interface of mobile computer comprises:
First confirms the unit, is used for when the equipment that said peripheral component interconnection expansion interface connects comprises at least two functional modules, confirming the functional module of current control according to predefined pattern;
First output unit is used for reset signal or inhibit signal are outputed to the corresponding control pin of said interface, to control the functional module of said current control.
A kind of signal output-controlling device of peripheral component interconnection expansion interface of mobile computer; This peripheral component interconnection expansion interface comprises the reset signal transmission pin of acquiescence, the inhibit signal transmission pin and the reserved pin of acquiescence, and this control device comprises:
Second confirms the unit, is used for when the equipment that said peripheral component interconnection expansion interface connects comprises at least two functional modules, confirming the functional module of current control according to predefined pattern;
Second output unit, the signal transmission pin that is used for defining through reserved pin is exported the corresponding control signal of functional module of said current control,
Control module; Be used for controlling the functional module that signal on the acquiescence reset signal transmission pin of said interface outputs to said current control, and/or control the functional module that signal on the acquiescence inhibit signal transmission pin of said interface outputs to said current control according to this control signal according to this control signal.
The signal output control method and the device of the peripheral component interconnection expansion interface that the embodiment of the invention provides; After determining the functional module of current control (like WIFI AM access module or 3G AM access module); Reset signal or inhibit signal are outputed to the functional module of said current control; Be used for accomplishing and control this interface respectively and attend forbidding of disparate modules in institute's connection device or reset, realize that the difference in functionality module is under an embargo respectively or resets.
Embodiment
When on a PCI Express Mini Card interface, having connected the equipment that comprises two and plural functional module; Can forbid respectively or reset above-mentioned two functional modules in order to guarantee this PCI Express Mini Card interface; The embodiment of the invention provides a kind of signal output control method and device of peripheral component interconnection expansion interface; In the system that uses this interface, generally need preestablish a use pattern; With one in two functional modules confirm using current connection, so, need confirm the functional module of current control in the embodiment of the invention according to predefined pattern; Then reset signal or inhibit signal are outputed to the corresponding control pin of said interface, to control the functional module of said current control; Perhaps, after the functional module of confirming current control, export the corresponding control signal of functional module of said current control, so that control reset signal or inhibit signal output to the functional module of said current control.By the way, the embodiment of the invention has realized resetting respectively of a plurality of functional modules of PCI Express Mini Card interface and has forbidden.
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment 1:
The embodiment of the invention provides a kind of signal output control method of peripheral component interconnection expansion interface.To reset or forbid in order to control respectively, the embodiment of the invention generally need preestablish a use pattern in the system that uses this interface, so need confirm the functional module of current control according to predefined pattern.
If the functional module of current control is to link to each other with the reset signal transmission pin of acquiescence and the inhibit signal transmission pin of acquiescence; This control method is according to the corresponding relation of the control pin of the functional module of preset said current control and said interface so; The reset signal that reset signal is outputed to said interface acquiescence is transmitted pin, with the functional module of the said current control that resets; Or the inhibit signal that inhibit signal is outputed to said interface acquiescence is transmitted pin, to forbid the functional module of said current control.
If the functional module of current control be with reserved pin in the inhibit signal transmission pin that defines in the reset signal transmission pin that defines and the reserved pin link to each other; This control method is according to the corresponding relation of the control pin of the functional module of preset said current control and said interface so; Reset signal is outputed to the reset signal transmission pin that defines in the said interface reserved pin, with the functional module of the said current control that resets; Or, inhibit signal is outputed to the inhibit signal transmission pin that defines in the said interface reserved pin, to forbid the functional module of said current control.
Corresponding to said method; Present embodiment also provides a kind of signal output-controlling device of peripheral component interconnection expansion interface; As shown in Figure 1, this peripheral component interconnection expansion interface comprises the reset signal transmission pin 22 (PERST#) of acquiescence, the inhibit signal transmission pin 20 (W_DISABLE#) and the reserved pin of acquiescence; The function pin that in said reserved pin, defines comprises: new reset signal transmission pin 45 (PERST#_WWAN) and new inhibit signal transmission pin 47 (W_DISABLE#WLAN).
This control device comprises: first confirms the unit 11 and first output unit 12.Wherein, first confirms that unit 11 is used for confirming according to predefined pattern the functional module of current control; First output unit 12 is used for reset signal or inhibit signal are outputed to the corresponding control pin of said interface, to control the functional module of said current control.
Introduce wherein a kind of application scenarios of this control device below: if WIFI AM access module and 3G AM access module are integrated in the equipment; This equipment is connected to the PCIExpress Mini Card interface that adopts after aforesaid way is optimized; Reset signal transmission pin 45 and inhibit signal transmission pin 47 through redetermination; Cooperate original reset signal transmission pin 22 and inhibit signal transmission pin 20 again, can control resetting and forbidding of WIFI AM access module and 3G AM access module respectively.For example: the reset signal of redetermination transmission pin 45 and inhibit signal transmission pin 47 are used for resetting of WIFI AM access module and forbid, original reset signal transmission pin 22 and inhibit signal transmission pin 20 are used for resetting of 3G AM access module and forbid.
When first confirms that unit 11 confirms that the functional module of current control is WIFI AM access module; Then said first output unit 12 is through the reset signal transmission pin 45 output reset signals of redetermination; With the WIFI AM access module that resets; Perhaps first output unit 12 is through the inhibit signal transmission pin 47 output inhibit signals of redetermination, to forbid WIFI AM access module.When first confirms that unit 11 confirms that the functional module of current control is 3G AM access module; Then said first output unit 12 is through the reset signal transmission pin 22 output reset signals of acquiescence; With the 3G AM access module that resets; Perhaps first output unit 12 is through the inhibit signal transmission pin 20 output inhibit signals of acquiescence, to forbid 3G AM access module.
For present embodiment; If integrated plural functional module in the equipment; Then can be from reserved pin the reset signal transmission pin that makes new advances of definition and new inhibit signal transmission pin again, guarantee resetting and forbidding and can control respectively of each functional module.
Sometimes; Needing to be integrated in a difference in functionality module in the equipment resets simultaneously; To reduce the operation that equipment is resetted, as shown in Figure 1, can the new reset signal transmission pin that define in the present embodiment be transmitted pin through the reset signal that resistance or diode be connected to acquiescence; Wherein resistance is seen the dotted portion among Fig. 1; So only need reset signal transmission pin output reset signal therein, also can have reset signal on other reset signal transmission pins, so that the functional module in this equipment is resetted simultaneously.
Sometimes; Needing to be integrated in a difference in functionality module in the equipment forbids simultaneously; To reduce the operation that equipment is forbidden, as shown in Figure 1, can the new inhibit signal transmission pin that define in the present embodiment be transmitted pin through the inhibit signal that resistance or diode be connected to acquiescence; Wherein resistance is seen the dotted portion among Fig. 1; Export inhibit signal on an inhibit signal transmission pin therein, also can have inhibit signal on other the inhibit signal transmission pin, make that the functional module in this equipment is under an embargo simultaneously.
Embodiment 2:
The embodiment of the invention provides a kind of signal output control method of peripheral component interconnection expansion interface; To reset or forbid in order to control respectively; The embodiment of the invention generally need preestablish a use pattern in the system that uses this interface, so need confirm the functional module of current control according to predefined pattern.
If the functional module of current control is to link to each other with the reset signal transmission pin of acquiescence and the inhibit signal transmission pin of acquiescence; This control method is according to the corresponding relation of the control pin of the functional module of preset said current control and said interface so; Reset signal is outputed to the reset signal transmission pin of said interface acquiescence; Functional module with the said current control that resets; Or the inhibit signal that inhibit signal is outputed to said interface acquiescence is transmitted pin, to forbid the functional module of said current control; Perhaps
If the functional module of current control is not link to each other with the reset signal transmission pin of acquiescence; Do not link to each other with the inhibit signal transmission pin of acquiescence yet; In order reset signal or inhibit signal to be outputed to the functional module of current control; The corresponding relation of the functional module of the said current control that this control method basis is preset and the control pin of said interface outputs to the reset signal transmission pin that defines in the said interface reserved pin with reset signal, with the functional module of the said current control that resets; The signal that inhibit signal is outputed to said interface PCIE/USB form transmits pin, to forbid the functional module of said current control.
Corresponding to said method; Present embodiment also provides a kind of signal output-controlling device of peripheral component interconnection expansion interface; As shown in Figure 2, this peripheral component interconnection expansion interface comprises the reset signal transmission pin 22 (PERST#) of acquiescence, the inhibit signal transmission pin 20 (W_DISABLE#) and the reserved pin of acquiescence; The function pin that in said reserved pin, defines comprises: new reset signal transmission pin 45 (PERST#_WWAN).
This control device comprises: first confirms the unit 201 and first output unit 202.Wherein, first confirms that unit 201 is used for confirming according to predefined pattern the functional module of current control; First output unit 202 is used for reset signal or inhibit signal are outputed to the corresponding control pin of said interface, to control the functional module of said current control.
Introduce wherein a kind of application scenarios of this control device below: if WIFI AM access module and 3G AM access module are integrated in the equipment; This equipment is connected to the PCIExpress Mini Card interface that adopts after aforesaid way is optimized; Then the reset signal transmission pin 22 with acquiescence is connected respectively to two functional modules (WIFI AM access module and 3G AM access module shown in figure) with new reset signal transmission pin 45, and the inhibit signal transmission pin 20 of acquiescence is connected to WIFI AM access module and 3G AM access module simultaneously.For example: the reset signal transmission pin 22 of acquiescence is connected to WIFI AM access module, and new reset signal transmission pin 45 is connected to 3G AM access module.
After adopting above-mentioned connected mode, owing to be connected respectively to two functional modules through two reset signal transmission pins, thus can guarantee that two integrated on same equipment functional modules reset respectively.
Forbid respectively in order to realize two integrated on same equipment functional modules; Peripheral component interconnection expansion interface in the present embodiment also comprises the signal transmission pin of PCIE form, and wherein the signal of PCIE form transmission pin output inhibit signal is to one of them functional module (like WIFI AM access module).Adopt above-mentioned connected mode; WIFI AM access module can realize that software forbids through the signal on the signal transmission pin that receives the PCIE form; And 3G AM access module can realize that hardware forbids through the reset signal on the inhibit signal transmission pin 20 that receives acquiescence, and then has guaranteed that two integrated on same equipment functional modules forbid respectively.
When first confirms that unit 201 confirms that the functional module of current control is WIFI AM access module; Then said first output unit 202 is through the reset signal transmission pin 22 output reset signals of acquiescence; With the WIFI AM access module that resets; Perhaps first output unit 202 is through the signal transmission pin output inhibit signal of PCIE form, to forbid WIFI AM access module.When first confirms that unit 201 confirms that the functional module of current control is 3G AM access module; Then said first output unit 202 is through new reset signal transmission pin 45 output reset signals; With the 3G AM access module that resets; Perhaps first output unit 202 is through the inhibit signal transmission pin 20 output inhibit signals of acquiescence, to forbid 3G AM access module.
In like manner, the peripheral component interconnection expansion interface in the present embodiment also comprises the signal transmission pin of USB form, and wherein the signal of USB form transmission pin output inhibit signal is to another functional module (like 3G AM access module).Adopt this connected mode; 3G AM access module can realize that software forbids through the signal on the signal transmission pin that receives the USB form; And WIFI AM access module can realize that hardware forbids through the reset signal on the inhibit signal transmission pin 20 that receives acquiescence, and then has guaranteed that two integrated on same equipment functional modules forbid respectively.The reset signal way of output in this case is identical to WIFI AM access module with top signal transmission pin output inhibit signal through the PCIE form; The inhibit signal way of output is then following: when first confirms that unit 201 confirms that the functional module of current control is WIFI AM access module; Then said first output unit 202 is through the inhibit signal transmission pin 20 output inhibit signals of acquiescence, to forbid WIFI AM access module; When first confirmed that unit 201 confirms that the functional module of current control is 3G AM access module, then said first output unit 202 was through the signal transmission pin output inhibit signal of USB form, to forbid 3G AM access module.
Present embodiment can also adopt other alternatives; For example: the reset signal transmission pin 22 and the new reset signal transmission pin 45 of acquiescence are connected respectively to two functional modules (WIFI AM access module and 3G AM access module shown in figure), and the inhibit signal transmission pin 20 of acquiescence is connected to WIFI AM access module.Forbid respectively in order to realize two integrated on same equipment functional modules; Peripheral component interconnection expansion interface in the present embodiment also comprises the signal transmission pin of USB form, and wherein the signal of USB form transmission pin output inhibit signal is to 3G AM access module.This connected mode can be through acquiescence inhibit signal transmission pin 22 output inhibit signals to WIFI AM access module, and the signal transmission pin output inhibit signal through the USB form is to 3G AM access module, realizes that two functional modules forbid respectively.
The alternatives of present embodiment can also comprise: the reset signal transmission pin 22 and the new reset signal transmission pin 45 of acquiescence are connected respectively to two functional modules (WIFI AM access module and 3G AM access module shown in figure), and the inhibit signal transmission pin 20 of acquiescence is connected to 3G AM access module.Forbid respectively in order to realize two integrated on same equipment functional modules; Peripheral component interconnection expansion interface in the present embodiment also comprises the signal transmission pin of PCIE form, and wherein the signal of PCIE form transmission pin output inhibit signal is to WIFI AM access module.
Above-mentioned software is forbidden being meant: through the pin output software signaling of the USB/PCIE form that has in the interface; After corresponding 3G or the WIFI AM access module pin through correspondence receives above-mentioned software signaling; This signaling is carried out software analysis; And forbid 3G or WIFI AM access module after this signaling is inhibit signal analyzing, so that realize the software prohibiting function.Hardware is forbidden then referring to: directly export inhibit signal (high level or low level) through the pin of interface, and the hardware of 3G or WIFI AM access module is when being the level of inhibit signal on corresponding pin, this 3G or WIFI AM access module will be in illegal state automatically.
Embodiment 3:
The embodiment of the invention provides a kind of signal output control method of peripheral component interconnection expansion interface, and this control method is the same with above-mentioned two embodiment, need confirm the functional module of current control according to predefined pattern.After the functional module of confirming current control, the embodiment of the invention is exported the corresponding control signal of functional module of said current control through the signal transmission pin that defines in the reserved pin; Control the functional module that signal on the acquiescence reset signal transmission pin of said interface outputs to said current control according to this control signal then, and/or control the functional module that signal on the acquiescence inhibit signal transmission pin of said interface outputs to said current control according to this control signal.
The embodiment of the invention also provides a kind of signal output-controlling device of peripheral component interconnection expansion interface; As shown in Figure 3, this peripheral component interconnection expansion interface comprises the reset signal transmission pin 22 (PERST#) of acquiescence, the inhibit signal transmission pin 20 (W_DISABLE#) and the reserved pin of acquiescence; The function pin that in said reserved pin, defines is a control signal transmission pin 45 (Signal_Control), through these transmission pin 45 output control signals.
This control device comprises: second confirms unit 301, second output unit 302, control module 303.Wherein second confirms that unit 301 is used for confirming according to predefined pattern the functional module of current control; The signal transmission pin 45 that second output unit 302 is used for defining through reserved pin is exported the corresponding control signal of functional module of said current control; Control module 303 be used for according to the control signal of transmission pin 45 output control the reset signal transmission pin 22 of said acquiescence, the inhibit signal transmission pin 20 of acquiescence outputs to one of them functional module, perhaps controls the reset signal transmission pin 22 of said acquiescence, the inhibit signal transmission pin 20 of acquiescence outputs to another functional module.
In the present embodiment, control signal through control circuit control the reset signal transmission pin 22 of said acquiescence, the inhibit signal transmission pin 20 of acquiescence outputs to WIFI AM access module or 3G AM access module.
Above-mentioned control circuit can adopt following implementation: when said control signal was high level, the inhibit signal that this control circuit is controlled on the inhibit signal transmission pin 20 of reset signal on the reset signal transmission pin 22 of said acquiescence, acquiescence outputed to wherein a kind of functional module (like the WIFI AM access module among Fig. 3); When said control signal was low level, the inhibit signal that this control circuit is controlled on the inhibit signal transmission pin of reset signal on the reset signal transmission pin of said acquiescence, acquiescence outputed to wherein another functional module (like the 3G AM access module among Fig. 3).
As shown in Figure 3, when control signal transmission pin 45 was high level, inhibit signal transmission pin 20 linked to each other with A so that inhibit signal is outputed to WIFI AM access module, and reset signal transmission pin 22 links to each other with C so that reset signal is outputed to WIFI AM access module; When control signal transmission pin 45 was low level, inhibit signal transmission pin 20 linked to each other with B so that inhibit signal is outputed to 3G AM access module, and reset signal transmission pin 22 links to each other with D so that reset signal is outputed to 3G AM access module.
Between above-mentioned A contact, B contact and transmission pin 20, can adopt an electronic switch to connect, and control signal transmission pin 45 is connected to the control end of this electronic switch; Also can adopt another electronic switch to connect between above-mentioned C contact, the D contact one joint transmission pin 22, and control signal transmission pin 45 is connected to the control end of this another electronic switch.
Above 3 embodiment are defined as new reset signal transmission pin, or new inhibit signal transmission pin or control signal transmission pin with reserved pin among the present invention.If the equipment that is connected on this interface has two even more function module (like WIFI AM access module and 3G AM access module); Can let these functional modules adopt different reset signal transmission pins, or different inhibit signal transmission pin like this, make this interface attend that disparate modules can be under an embargo respectively or reset in institute's connection device; Perhaps under different situations, output to different functional respectively, equally can this interface attend that disparate modules can be under an embargo respectively or reset in institute's connection device through control signal control reset signal or inhibit signal.
After adopting the PCI Express Mini Card interface in the foregoing description, can a plurality of functional modules be integrated in the equipment, and be connected in the PCI Express Mini Card interface that the foregoing description provides.The mode of integrated a plurality of functional modules can be practiced thrift cost in this equipment.
The embodiment of the invention mainly is used in the PCIE interface, and be specially adapted to needs and save the PCI Express Mini Card interface in the equipment in space, as: the PCI Express Mini Card interface in the mobile computer.
Through the description of above embodiment, the those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential common hardware, can certainly pass through hardware, but the former is better embodiment under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product, and this computer software product is stored in the storage medium that can read, like the floppy disk of computing machine; Hard disk or CD etc.; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above; Be merely embodiment of the present invention, but protection scope of the present invention is not limited thereto, any technician who is familiar with the present technique field is in the technical scope that the present invention discloses; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by said protection domain with claim.