The utility model content
In order to work as computing machine background application is not installed, is realized the autoconnect function in the data card is controlled, during autoconnect function in closing data card, improve user experience, the utility model embodiment provides a kind of data card.Described technical scheme is as follows:
A kind of data card, described data card comprises:
Network connecting module, contactor and control module;
Described contactor is used for when the user opens described contactor, self level state is become open, and when the user closes described contactor, self level state is become close;
Described control module, be used for detecting in real time the variation of the level state of described contactor, open, judge whether the autoconnect function in the described network connecting module is opened when the level state that detects described contactor becomes, if do not open, then open described autoconnect function; Close when the level state that detects described contactor becomes, judge whether the autoconnect function in the described network connecting module is opened,, then close described autoconnect function if open;
Described network connecting module is used to realize autoconnect function, and opens under the instruction of described control module or close.
In the utility model embodiment, on network connecting module, increase control module and contactor, the user can be by the autoconnect function in contactor and the control module control data card.Because the user by the autoconnect function in the contactor control data card, makes when computing machine is not installed background application, can control autoconnect function; When closing autoconnect function, can close autoconnect function by contactor, thereby not need data card is inserted computing machine, made things convenient for the user, improve user experience.
Embodiment
For making the purpose of this utility model, technical scheme and advantage clearer, the utility model embodiment is described in further detail below in conjunction with accompanying drawing.
Embodiment 1
As shown in Figure 1, the utility model provides a kind of data card, comprising: network connecting module 101, contactor 102 and control module 103;
Wherein, network connecting module 101 links to each other with control module 103, and control module 103 links to each other with contactor 102 again.
Network connecting module 101 is used to realize the autoconnect function of NDIS mode and opening and closing under the instruction of control module 103.Wherein, when the autoconnect function of network connecting module 101 was opened, the network that network connecting module 101 can be automatically with computing machine is set up the NDIS mode was connected.
Contactor 102 is used for when the user opens contactor 102, self level state is become open, and when user's shut-off circuit switch 102, self level state is become close.Wherein, the user is by opening or closing the autoconnect function in the contactor 102 Control Network link blocks 101.When the user opened or closed contactor 102, contactor 102 was transferred to control module 103 with the level state of self.
Control module 103 links to each other with network connecting module 101 with contactor 102 respectively; Control module 103 is used for the variation of the level state of real-time detection circuit switch 102, becomes when opening when detecting level state, judges whether the autoconnect functions in the network connecting module 101 are opened, if open, then opens autoconnect function; Become when closing when detecting level state, judge whether the autoconnect functions in the network connecting module 101 are opened,, then close autoconnect function if open.
Wherein, after autoconnect function is opened, the network that data card also needs to set up the NDIS mode with computing machine is connected, be specially: when the user by opening after contactor 102 opens autoconnect function in the network connecting module 101, data card is inserted computing machine, data card at first carries out port mapping with computing machine, (this is prior art in the equipment manager of computing machine with self being mapped in, do not limited at present embodiment), network connecting module 101 is connected with the network that computing machine is set up the NDIS mode automatically then.When the user by opening before contactor 102 opens autoconnect function in the network connecting module 101, data card is inserted computing machine, because data card is in the insertion computing machine, self and computing machine carry out port mapping, to self be mapped in the equipment manager of computing machine, then open network connecting module 101 behind the autoconnect function and directly be connected with the network that computing machine is set up the NDIS mode.
Further, in the present embodiment, network connecting module 101 and control module 103 can be integrated in two respectively independently in the chip, contactor 102 is independent hardware switch.Contactor 102 links to each other with any one unappropriated pin of the chip of integrated control module 103, and the chip of integrated control module 103 is electrically connected with the chip of integrated network link block 101 again.
Further, in the present embodiment, network connecting module 101 and control module 103 can be integrated in the chip piece platform, contactor 102 is independent hardware switch.Contactor 102 links to each other with any one unappropriated pin of this chip.For example, as shown in Figure 2, network connecting module 101 and control module 103 are integrated on the U700-QSC6085 chip platform, contactor 102 is connected on arbitrary unappropriated pin, as contactor 102 being connected GPIO_8 (General PurposeInput/Output, general input and output pin).Wherein, the data card of forming present embodiment by U700-QSC6085 chip and contactor 102.
In the utility model embodiment, on network connecting module, increased control module and contactor, the user can be by the autoconnect function in contactor and the control module control data card.Because the user by the autoconnect function in contactor and the control module control data card, makes when computing machine is not installed background application, can control autoconnect function; When closing autoconnect function, can close autoconnect function by contactor, thereby not need data card is inserted computing machine, made things convenient for the user, improve user experience.
Embodiment 2
As shown in Figure 3, the utility model provides a kind of data card, comprising: network connecting module 101, contactor 102, control module 103 and hang up module 204;
Wherein, network connecting module 101 respectively with control module 103 with hang up module 204 and link to each other, control module 103 also respectively with contactor 102 with hang up module 204 and link to each other.
Wherein, network connecting module 101, contactor 102 and control module 103 be identical with control module 103 with network connecting module 101, contactor 102 among the embodiment 1, do not repeat them here.
Control module 103 with hang up module 204 and link to each other; Control module 103, also be used for the autoconnect function in closing network connecting module 101 after, notice is hung up module 204 and is hung up the network of the NDIS mode between network connecting module 101 and the computing machine and be connected.
Hanging up module 204 links to each other with control module 103 with network connecting module 101 respectively, hanging up module 204 receives control module 103 and closes the notice that sends behind the autoconnect function, judge that whether network connecting module 101 is connected with the network that computing machine is set up the NDIS mode, if set up, the network of then hanging up this NDIS mode connects.
Wherein, after autoconnect function is opened, the network that data card also needs to set up the NDIS mode with computing machine is connected, be specially: when the user by opening after contactor 102 opens autoconnect function in the network connecting module 101, data card is inserted computing machine, data card at first carries out port mapping with computing machine, (this is prior art in the equipment manager of computing machine with self being mapped in, do not limited at present embodiment), network connecting module 101 is connected with the network that computing machine is set up the NDIS mode automatically then.When the user by opening before contactor 102 opens autoconnect function in the network connecting module 101, data card is inserted computing machine, because data card is in the insertion computing machine, self and computing machine carry out port mapping, to self be mapped in the equipment manager of computing machine, then open from the back network connecting module 101 that is dynamically connected and directly be connected with the network that computing machine is set up the NDIS mode.
Further, user's shut-off circuit switch 101, the level state that control module 103 detects contactor 102 becomes closes, judge whether the autoconnect function in the network connecting module 101 is opened, if open, then close autoconnect function, and notice is hung up module 204 after closing autoconnect function; After hanging up module 204 and receiving these notices, judge that whether network connecting module 101 is connected with the network that computing machine is set up the NDIS mode, if set up, then hangs up the network connection of this NDIS mode.
Further, in the present embodiment, can and hang up module 204 with network connecting module 101, control module 103 and be integrated in three respectively independently in the chip, contactor 102 is independent hardware switch.Contactor 102 links to each other with any one unappropriated pin of the chip of integrated control module 103, the chip of integrated control module 103 is electrically connected with the chip of hanging up module 204 with the chip of integrated network link block 101 respectively again, and the integrated chip of hanging up module 204 also is electrically connected with the chip of integrated network link block 101.
Further, in the present embodiment, can and hang up module 204 with network connecting module 101, control module 103 and be integrated in the chip piece platform, contactor 102 is independent hardware switch.Contactor 202 links to each other with any one unappropriated pin of this chip.This chip can be the U700-QSC6085 chip.
In the utility model embodiment, on network connecting module, increase control module, hang up module and contactor, the user can and be hung up autoconnect function in the module controls data card by contactor, control module, and data card is connected with network between the computing machine.Because the user can make when computing machine is not installed background application by the autoconnect function in the contactor control data card, can control autoconnect function; When closing autoconnect function, can close autoconnect function by contactor, thereby not need data card is inserted computing machine, made things convenient for the user, improve user experience.
The above only is preferred embodiment of the present utility model, and is in order to restriction the utility model, not all within spirit of the present utility model and principle, any modification of being done, is equal to replacement, improvement etc., all should be included within the protection domain of the present utility model.