A kind of data card and transmission method based on data card
Technical field
The present invention relates to the communications field, particularly relate to a kind of data card and transmission side based on data card
Method.
Background technology
Data cartoon crosses USB (universal serial bus) (USB, Universal Serial BUS) interface the most mostly
Carry out data transmission, such as data card by USB interface and personal computer (PC, personal
Computer) it is connected, realizes the operation to data card and control by the driver of PC end, as entered
Row online and data are transmitted.
But, due to the restriction of usb protocol, the data wire of USB interface typically cannot be oversize, at electricity
In the case of brain is fixing, the transmission range ratio using USB data line is relatively limited, so that use USB
The data card of interface cannot move on a large scale.Such as, when in the regional extent at computer place, signal of communication is not
Time very good, longer USB data line is used to be connected with computer by data card, so that data card can
Seek more preferable signal.But the transmission range ratio of USB data line is relatively limited, so can have a strong impact on
The stability of network data transmission and speed, even resulting in data card cannot normally work.Therefore, existing
Have in technology, use the data card of USB interface cannot support longer-distance network data transmission.
Summary of the invention
The present invention provides a kind of data card and transmission method based on data card, to solve in prior art
The problem that the data card of USB interface cannot support longer-distance network data transmission.
In order to solve the problems referred to above, the invention discloses a kind of data card, including: it is used for and external equipment
Connect Ethernet network interface, network interface controller and processor, wherein, described network interface controller with described with
Too net network interface connects, and controls described Ethernet network interface and described external device communication, described network interface controller
Also communicate to connect with described processor.
Alternatively, described network interface controller, it is used for controlling described Ethernet network interface and receives external equipment transmission
Operational order, and receive described operational order sending to described processor from described Ethernet network interface;
Receive the response command that described processor returns, and control described Ethernet network interface described response command is sent out
Deliver to described external equipment;
Described processor, for receiving the described operational order that described network interface controller sends, and according to institute
State operational order and perform corresponding operating;Generate response command according to operating result, described response command is sent out
Deliver to described network interface controller.
Alternatively, wave point is also included;Described wave point and described processor connect;
Described wave point, for receiving the network packet that network side sends, and by described network data
Bag sends to described processor;
Described processor, for receiving the network packet that described wave point sends, resolves described network
Packet obtains the IP address of the external equipment that described network packet comprises, and by described network data
Bag and described IP address are sent to described network interface controller;
Described network interface controller, for receiving described network packet and the described IP that described processor sends
Address, and it is corresponding to described IP address by the transmission of described network packet to control described Ethernet network interface
External equipment.
Alternatively, described operational order include following any one:
Dial up on the telephone order, pressure suspension order, status inquiry command, flow querying command and signal matter
Amount querying command.
The invention also discloses a kind of transmission method based on data card, including:
Network interface controller in described data card controls Ethernet network interface and receives the operation that external equipment sends
Order, and receive described operational order the processor sent to data card from described Ethernet network interface;
Described processor receives the described operational order that described network interface controller sends, and according to described operation
Order performs corresponding operating;Generate response command according to operating result, described response command is sent to institute
State network interface controller;
Described network interface controller receives the response command that described processor returns, and is led to by described response command
Cross described Ethernet network interface to send to described external equipment.
Alternatively, also include:
The wave point of described data card receives the network packet that network side sends, and by described network number
Send to described processor according to bag;
Described processor receives the network packet that described wave point sends, and resolves described network packet
Obtain the IP address of the external equipment that described network packet comprises, and by described network packet and institute
State IP address to send to described network interface controller;
Described network interface controller receives network packet and the described IP address that described processor sends, and
Control described Ethernet network interface and described network packet is sent the external equipment corresponding to described IP address.
Alternatively, described data card uses the arbitrary described data card of as above claim 1-4;Described side
Method includes:
Described data card receives the state of the inquiry data card state that the first PC is sent by router and looks into
Ask order, and return status poll response command by described router to described first PC;Wherein,
Described data card is connected with described router, described router and described first PC and the second PC
Connecting, described second PC is connected with network side by data card;
When described status poll response command be described data card surf the Net time, described data card receive institute
State the pressure suspension order that the first PC is sent by described router;
Described data card performs to force suspension operation according to described pressure suspension order, and recovers ready shape
State, wherein, described pressure suspension operation includes the connection cutting off described second PC with network side;
When described data card is ready state, described data card receives described first PC by described
The order of dialling up on the telephone that router sends, and perform dial-up operation, dialing according to described order of dialling up on the telephone
After success, return dial-up success response command to described first PC.
Alternatively, described data card receives the inquiry data card state that the first PC is sent by router
Status inquiry command, and by described router to described first PC return status poll response life
Order, including:
Network interface controller control Ethernet network interface in described data card receives the first PC and passes through router
The status inquiry command of the inquiry data card state sent, and receive described state from described Ethernet network interface
Querying command the processor sent to data card;
Described processor receives the described status inquiry command that described network interface controller sends, and according to described
Status inquiry command performs data card status poll operation;Generate status poll according to status poll result to ring
Should order, described status poll response command is sent to described network interface controller;
Described network interface controller receives the status poll response command that described processor returns, and by described shape
State inquiry response order is sent to described router by described Ethernet network interface, and described router is to described
First PC returns described status poll response command.
Alternatively, the pressure that described first PC of described data card reception is sent by described router is broken
Net order, and perform to force suspension operation according to described pressure suspension order, including:
Network interface controller in described data card controls Ethernet network interface described first PC of reception and passes through institute
State the pressure suspension order that router is sent, and receive described pressure suspension order from described Ethernet network interface
And the processor sent to data card;
Described processor receives the described pressure suspension order that described network interface controller sends, and according to described
Suspension order is forced to perform to force suspension operation;
Described method also includes:
Processor in described data card is according to forcing suspension result generation pressure suspension response command, by institute
State pressure suspension response command to send to described network interface controller;Described network interface controller receives described process
The pressure suspension response command that device returns, and by described pressure suspension response command by described Ethernet net
Mouth sends to described router, and described router returns described pressure suspension response to described first PC
Order.
Alternatively, described data card receives in the dialing that described first PC is sent by described router
Net order, and perform dial-up operation, after dial-up success, to described first according to described order of dialling up on the telephone
PC returns dial-up success response command, including:
Network interface controller in described data card controls Ethernet network interface described first PC of reception and passes through institute
State the order of dialling up on the telephone that router sends, and from order of dialling up on the telephone described in the reception of described Ethernet network interface
And the processor sent to data card;
Described processor receives order of dialling up on the telephone described in the transmission of described network interface controller, and according to described
Order of dialling up on the telephone performs dial-up operation;Dial-up success response command is generated according to dial-up success result, will
Described dial-up success response command sends to described network interface controller;
Described network interface controller receives the dial-up success response command that described processor returns, and by described group
Number success response order is sent to described router by described Ethernet network interface, and described router is to described
First PC returns described dial-up success response command.
Compared with prior art, the present invention includes advantages below:
First, the data card of the embodiment of the present invention realizes data transmission by Ethernet network interface, due to relatively
In USB data line, Ethernet netting twine can support that the data of longer distance are transmitted, therefore with existing skill
Using USB interface to compare as data transmission interface in art, the data card of the embodiment of the present invention overcomes
USB interface carries out data transmission being limited by usb protocol and cannot be carried out the problem of long-distance transmissions,
The data card using Ethernet network interface of the embodiment of the present invention can support longer-distance network data
Transmission.
Secondly, the data card of the embodiment of the present invention realizes data by Ethernet network interface and transmits, and can will connect
The packet of the network side received is directly forwarded to external equipment, it is not necessary to carry out the conversion of packet, with
Time overcome prior art and use USB interface must will receive when being transferred to external device data
The problem that network packet is converted to the conversion process of usb data bag.
Again, the data card of the embodiment of the present invention can be connected with router, router again with multiple PC
Machine is connected, it is achieved that the control to same data card of multiple PCs, breaches and only has one in prior art
Platform PC controls and the restriction of operation data card.
Finally, the data card of the embodiment of the present invention can realize the switching of function of surfing the Net.Specifically, if working as
Front second PC is surfed the Net by data card, and the first PC needs online then can pass through to data
Card sends forces suspension order, and data card cuts off the network of the second PC and connects so that the first PC
Online can be realized to the online order of data card Sending dialled number.
Accompanying drawing explanation
Fig. 1 is the structure chart of a kind of data card of the embodiment of the present invention;
Fig. 2 is the structure chart of a kind of data card of another embodiment of the present invention;
Fig. 3 is the flow chart of a kind of transmission method based on data card of the embodiment of the present invention;
Fig. 4 is the flow chart of a kind of data transmission method based on data card of the embodiment of the present invention;
Fig. 5 is the flow chart of a kind of transmission method based on data card of another embodiment of the present invention;
Fig. 6 is embodiment of the present invention router and data card, the first PC, the connection of the second PC
Schematic diagram.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from
The present invention is further detailed explanation with detailed description of the invention.
Embodiment one:
With reference to Fig. 1, it is shown that the structure chart of a kind of data card of the embodiment of the present invention, the present embodiment provides one
Kind of data card, including: for the Ethernet network interface 11 being connected with external equipment, network interface controller 12 and
Processor 13, wherein, network interface controller 12 is connected with Ethernet network interface 11, controls Ethernet network interface
11 and external device communication, network interface controller 12 also communicates to connect with processor 13.
The data card of the present embodiment can be understood as by Ethernet network interface 11 and external equipment number
Transmission according to/order, it is achieved normal data-/ command business.Such as, network interface controller in the present embodiment
12 can control Ethernet network interface 11 receives data/operational order that external equipment sends, and by described number
According to/operational order transmission extremely described processor 13, then processor 13 carries out corresponding operating;Network interface controls
Can be in communication with each other between device 12 and processor 13, belong to communication connection.In the present embodiment, network interface controls
Device 12 can also control Ethernet network interface 11 to outside equipment sending data/operational order.
The data card of the present embodiment realizes data by Ethernet network interface and transmits, due to relative to USB number
According to line, Ethernet netting twine can support that the data of longer distance are transmitted, and therefore uses with prior art
USB interface is compared as data transmission interface, and the data card of the present embodiment overcomes USB interface to be carried out
Data transmission is limited by usb protocol and be cannot be carried out the problem of long-distance transmissions, adopting of the present embodiment
Data card with Ethernet network interface can support the transmission of longer-distance network data.
Embodiment two:
With reference to Fig. 2, it is shown that the structure chart of a kind of data card of another embodiment of the present invention, the present embodiment carries
Supply a kind of data card, including:
For the Ethernet network interface 21 being connected with external equipment, network interface controller 22, processor 23 and nothing
Line interface 24, wherein, network interface controller 22 is connected with Ethernet network interface 21, controls Ethernet network interface
21 and external device communication, network interface controller 22 also communicates to connect with processor 23.
Such as, the data card of the present embodiment can be understood as by Ethernet network interface 21 and external equipment
Carry out data transmission, it is achieved normal data service;The data card of the present embodiment passes through wave point 24
Communicate with network side, obtain network packet.The present embodiment peripheral equipment specifically can include
PC or router.
In the data card of the present embodiment, network interface controller 22 communicates to connect with processor 23, specifically,
Network interface controller 22 may be used for controlling Ethernet network interface 21 and receives the operational order that external equipment sends,
And receive described operational order sending to processor 23 from described Ethernet network interface;Network interface controller 22
Receive the response command that processor 23 returns, and control Ethernet network interface 21 by response command transmission to outward
Portion's equipment;
In the data card of the present embodiment, processor 23, may be used for receiving what network interface controller 22 sent
Operational order, and perform corresponding operating according to operational order;Response command is generated according to operating result, will
Response command sends to network interface controller 22.
In the present embodiment, external equipment send operational order include following any one:
Dial up on the telephone order, pressure suspension order, status inquiry command, flow querying command and signal matter
Amount querying command.
Data card receives the status inquiry command of the first external equipment transmission and carries out status poll, when state is looked into
When the result ask is for surfing the Net, data card can receive the pressure suspension life that described first equipment is sent
Order, and perform to force suspension operation according to described pressure suspension order, and recover ready state;Work as data
When card is for ready state, the order of dialling up on the telephone that the first external equipment sends can be received, and according to described
Order of dialling up on the telephone performs dial-up operation, after dial-up success, returns to described first external equipment and dials into
Merit response command.
Illustrate as a example by outside device A sends status inquiry command below:
Step one, external equipment A sends status inquiry command to data card.
Step 2, the network interface controller 22 in data card, control Ethernet network interface 21 and receive external equipment
The status inquiry command that A sends, and status inquiry command is sent to processor 23.
Step 3, processor 23 receives the status inquiry command that network interface controller 22 sends, and according to shape
State querying command performs status poll operation;Result according to status poll operation generates response command, will
Response command sends to network interface controller 22;
In the present embodiment, status poll result is specifically as follows ready state or upper net state, ready shape
State explanation is surfed the Net currently without this data card of other peripheral equipment controls, and external equipment A can be to number
Surf the Net according to the online order of card Sending dialled number;Upper net state then illustrates currently there are other peripheral equipment controls
This data card is surfed the Net, if external equipment needs online, then needs to send and forces suspension order to be gone forward side by side
Row Authority Verification, when the recovering state of data card is to ready state, can Sending dialled number online order into
Row online.
Step 4, network interface controller 22 receives the response command that processor 23 returns, and controls Ethernet
Response command is sent to external equipment A by network interface 21.
When external equipment sends other operational orders, the processing procedure of data card is similar with above-mentioned steps, this
Embodiment does not repeats at this.
In the data card of the present embodiment, wave point 24 and described processor 23 connect, and may be used for connecing
Receive the network packet that network side sends, and network packet is sent to processor 23.
Correspondingly, processor 23, may be used for receiving the network packet that wave point 24 sends, solve
Analysis network packet obtains the IP address of the external equipment that network packet comprises, and by network packet
It is sent to network interface controller 22 with IP address;
Correspondingly, network interface controller 22, may be used for receive processor 23 send network packet and
IP address, and control Ethernet network interface 21 by external equipment corresponding to IP address for network packet transmission.
It should be noted that the present embodiment by network interface controller 22 control Ethernet network interface 21 realize right
The unified transmitting-receiving of network.In the process receiving data, often receive a network packet, processor 23
First according to computer network with standard network protocol, the packet header of network packet is resolved, obtain described network packet
The IP address of the external equipment comprised, then according to the port numbers of regulation, concrete in network packet
Data content be distributed to different concrete threads.Such as mailing to the data of port 9000, it is sent to
At thread specifically processes, and mails to the data of port 9001 and issues trace thread and process.Specifically
Port numbers corresponding relation, be adjusted according to actual needs.External equipment keeps consistent with data card end
?.
The data card of the present embodiment realizes data by Ethernet network interface 21 and transmits, and in the present embodiment
The external equipment being connected with Ethernet network interface 21 can be PC, it is also possible to for router.When this enforcement
The data card of example is connected with router, when multiple external equipments are connected with this router, it is possible to realization is many
The control to same data card of the individual external equipment, overcomes prior art USB interface and passes as data
Defeated interface, PC can only realize the control to data card by the way of direct-connected, and can only have one
PC controls the problem of this data card, can break through only one PC and control and the limit of operation data card
System.
Specifically, the Ethernet network interface 21 in the data card of the present embodiment and a LAN of router
(LAN, Local area network) interface is connected, multiple PCs and other LAN of this router
Interface is connected, and the when that the most PCs being connected in same LAN, data card passes through Ethernet net
Mouth 21 is connected on router, is again connected in same LAN, connects now by standard network,
Data card all can be connected and control by multiple pc.In the present embodiment, PC can realize including
Start the dial feature of card of surfing Internet, inquire about the industry such as current network condition, inquiry network traffic data information
Business, these orders all can be transmitted by different PCs, and data card is carried out according to different orders
Different responses.The when that in the present embodiment, router connecting multiple PC, one of them PC can
Individually to be surfed the Net by data card.The data card of the present embodiment does not affect original network structure, as
Really the Wide Area Network interface of router connects modem, and other PCs can also be through original tune
Modulator-demodulator is surfed the Net.
It should be noted that when multiple PCs are connected in same LAN when, data card passes through
Netting twine is connected on router the most also be connected in same LAN, connects now by standard network,
Card of surfing Internet all can be attached and control by multiple stage PC.Including the dial feature of startup card of surfing Internet,
Inquiring about current network condition, inquire about network traffic data information, these orders all can be by different
PC is transmitted, and data card can be according to the IP address of PC and MAC Address, to different
Order carries out correct response.And, in the case of two PCs are distant, in the present embodiment
Data card can conveniently realize the switching of online machine, such as before user logical in the position of PC-A
Crossing data card online, present user, in the position of PC-B, can directly send corresponding by PC-B
Order and cut off the connection before PC-A to data card, the most again dial up on the telephone, it is achieved pass through PC-B
Control data card to surf the Net.In the present embodiment, data card connects on the router, is different from existing road
By shared model.Existing LAN multiple stage machine online, be by route distribution realize.Existing
Having under this pattern in technology, the network bandwidth is shared.In the present embodiment, online exclusively enjoys,
After PC-A online, the wide area network of data card connects just for PC-A, and the other machines of LAN cannot be visited
Ask that the network connection speed that wide area network, the present embodiment can ensure that PC-A is interference-free.
The data card of the present embodiment realizes data by Ethernet network interface and transmits, and can will receive network side
Packet be directly forwarded to external equipment, it is not necessary to carry out the conversion of packet, overcome existing simultaneously
Technology uses USB interface must carry out when being transferred to external device data receiving network packet
The problem being converted to the conversion process of usb data bag.
Embodiment three:
With reference to Fig. 3, it is shown that the flow chart of a kind of transmission method based on data card of the embodiment of the present invention,
The present embodiment specifically may comprise steps of:
Step 100, the network interface controller in data card controls Ethernet network interface and receives what external equipment sent
Operational order, and receive described operational order the processor sent to data card from Ethernet network interface;
In the present embodiment external equipment send operational order can include following any one:
Dial up on the telephone order, pressure suspension order, status inquiry command, flow querying command and signal matter
Amount querying command.
Step 102, processor receives, the described operational order that network interface controller sends, and according to described behaviour
Make order and perform corresponding operating;Generate response command according to operating result, described response command is sent extremely
Network interface controller;
Step 104, network interface controller receives the response command that described processor returns, and by described response
Order and sent to described external equipment by described Ethernet network interface.
In the present embodiment, response command is with operational order one to one, and such as, external equipment sends
Be order of dialling up on the telephone, then the response command that processor generates according to the operating result of chip is for dialling up on the telephone
Response command;If what external equipment sent is status inquiry command, then processor is tied according to the operation of chip
The response command that fruit generates is status poll response command.
In the present embodiment, the concrete structure of data card is referred to the data card shown in Fig. 1,
Including: for the Ethernet network interface 11, network interface controller 12 and the processor that are connected with external equipment
13, wherein, network interface controller 12 is connected with Ethernet network interface 11, controls Ethernet network interface 11 with outer
Portion's equipment communication, network interface controller 12 also communicates to connect with processor 13.
In the present embodiment, the biography of data and operational order can be carried out between data card and external equipment
Defeated.Specifically, data card can receive, by Ethernet network interface, the operational order that external equipment sends, so
Operate accordingly according to operational order afterwards and generate response command, returning again by Ethernet network interface
To external equipment;Data card can also the most also may be used by Ethernet network interface to outside equipment sending data
To receive the data that external equipment sends.
The data card of the present embodiment realizes data by Ethernet network interface and transmits, due to relative to USB number
According to line, Ethernet netting twine can support that the data of longer distance are transmitted, and therefore uses with prior art
USB interface is compared as data transmission interface, and the data card of the present embodiment overcomes USB interface to be carried out
Data transmission is limited by usb protocol and be cannot be carried out the problem of long-distance transmissions, adopting of the present embodiment
Data card with Ethernet network interface can support the transmission of longer-distance network data.
With reference to Fig. 4, it is shown that transmission side data based on data card in a preferred embodiment of the present invention
The flow chart of method, in the present embodiment, the structure of data card is referred to the data card shown in Fig. 2, including:
For the Ethernet network interface 21 being connected with external equipment, network interface controller 22, processor 23 and nothing
Line interface 24, wherein, network interface controller 22 is connected with Ethernet network interface 21, controls Ethernet network interface
21 and external device communication, network interface controller 22 also communicates to connect with processor 23.
The present embodiment specifically may comprise steps of:
Step 200, the wave point of data card receives the network packet that network side sends, and by described
Network packet sends to described processor;
Step 202, processor receives the network packet that described wave point sends, resolves described network
Packet obtains the IP address of the external equipment that described network packet comprises, and by described network data
Bag and described IP address send to described network interface controller;
Network packet comprises the IP address of external equipment, and processor can be by resolving network packet
Obtain the IP address of external equipment, then the IP address of network packet and external equipment being sent to net
Mouth controller.
Step 204, network interface controller receives network packet and the described IP address that described processor sends,
And control described Ethernet network interface and described network packet is sent set to outside corresponding to described IP address
Standby.
Network packet can be sent to this IP address pair according to the IP address received by network interface controller
The external equipment answered.Realize data card and send the mistake of the network packet received from network side to external equipment
Journey.
The data card of the present embodiment realizes data by Ethernet network interface and transmits, and can will receive network side
Packet be directly forwarded to external equipment, it is not necessary to carry out the conversion of packet, overcome existing simultaneously
Technology uses USB interface must carry out when being transferred to external device data receiving network packet
The problem being converted to the conversion process of usb data bag.
Embodiment four:
With reference to Fig. 5, it is shown that transmission side based on data card in a kind of preferred embodiment of the embodiment of the present invention
The flow chart of method, in the present embodiment, the structure of data card is referred to the data card shown in Fig. 2, including:
For the Ethernet network interface 21 being connected with external equipment, network interface controller 22, processor 23 with wireless connect
Mouthfuls 24, wherein, network interface controller 22 is connected with Ethernet network interface 21, control Ethernet network interface 21 and
External device communication, network interface controller 22 also communicates to connect with processor 23.
In the present embodiment, external equipment includes router or PC, specifically, counts as shown in Figure 6
It is connected with described router 32 according to card 31, described router 32 and described first PC 33 and described
Second PC 34 connects.
The present embodiment specifically may comprise steps of:
Step 300, data card receives the inquiry data card state that the first PC is sent by router
Status inquiry command, and return status poll response command by described router to described first PC;
Wherein, described data card is connected with described router, described router and described first PC and
Second PC connects, and described second PC is connected with network side by data card;
In the present embodiment, the first PC sends status inquiry command by router to data card;Number
Control Ethernet network interface according to the network interface controller of card and receive the status inquiry command that the first PC sends, and
Status inquiry command is sent the processor to data card;Processor receives the state that network interface controller sends
Querying command, and carry out status poll operation according to status inquiry command control chip;Then, processor
The result of the status poll operation according to chip generates status poll response command, by status poll response life
Order sends to network interface controller;Network interface controller receives the status poll response command that processor sends, and
Status poll response command is sent to the first PC by router.
In the present embodiment, status poll result can be ready state or upper net state, and ready state is said
Bright surfing the Net currently without this data card of other peripheral equipment controls, the first PC can be to data card
Sending dialled number online order is surfed the Net;Online current second PC of state description controls these data and sticks into
Row online, if the first PC needs online, then needs to send and forces suspension order and carry out authority to test
Card, after being verified, data card carries out suspension operation, and the network cutting off the 2nd PC connects.Now count
According to the recovering state of card to ready state, the first PC can be by router to data card Sending dialled number
Online order is surfed the Net.
In the present embodiment, above-mentioned steps 300 specifically can include following sub-step:
Sub-step 1, the network interface controller in described data card controls Ethernet network interface and receives the first PC
By the status inquiry command of the inquiry data card state that router sends, and connect from described Ethernet network interface
Receive described status inquiry command the processor sent to data card;
Sub-step 2, described processor receives the described status inquiry command that described network interface controller sends,
And perform data card status poll operation according to described status inquiry command;Generate according to status poll result
Status poll response command, sends described status poll response command to described network interface controller;
Sub-step 3, described network interface controller receives the status poll response command that described processor returns,
And described status poll response command is sent to described router, described road by described Ethernet network interface
Described status poll response command is returned to described first PC by device.
Step 302, when described status poll response command be described data card surf the Net time, described number
The pressure suspension order that described first PC is sent is received by described router according to card;
Owing to being different from existing route shared model in the present embodiment, existing route in the art shares mould
Under formula, the network bandwidth is shared.In the present embodiment, online exclusively enjoys, say, that if the
When two PCs are surfed the Net, the wide area network of data card connects just for the second PC, in LAN
Other external equipment first PCs cannot access wide area network, say, that when status poll result is second
When PC is surfed the Net, the first PC can not directly realize to the online order of data card Sending dialled number
Net, and need the first PC to first pass through router and send pressure suspension order cut-out second to data card
The network in wide area network of PC connects.
In the present embodiment, above-mentioned steps 302 specifically can be accomplished by:
First, the control of the network interface controller in data card Ethernet network interface described first PC of reception passes through
The pressure suspension order that described router is sent, and receive described pressure suspension life from described Ethernet network interface
The processor made and send to data card;
Secondly, processor receives the described pressure suspension order that described network interface controller sends, and according to institute
State pressure suspension order to perform to force suspension operation;
It should be noted that in one preferred embodiment of the invention, above-mentioned transmission based on data card
Method also includes:
Processor in described data card is according to forcing suspension result generation pressure suspension response command, by institute
State pressure suspension response command to send to described network interface controller;Described network interface controller receives described process
The pressure suspension response command that device returns, and by described pressure suspension response command by described Ethernet net
Mouth sends to described router, and described router returns described pressure suspension response to described first PC
Order.
Step 304, data card performs to force suspension operation according to described pressure suspension order, and just recovers
Not-ready status, wherein, described pressure suspension operation includes the connection cutting off described second PC with network side;
Data card receives, by described router, the pressure suspension order that the first PC sends, and according to by force
Suspension order processed carries out forcing suspension operation, forces suspension operation to include cutting off the network of the second PC even
Connecing, data card recovers ready state;
Data card receives, by router, the pressure suspension order that the first PC sends in the present embodiment
After, first-selection carries out Authority Verification, is verified preprocessor according to forcing suspension order control chip to enter
Row forces suspension operation, cuts off the second PC and is connected with the network of wide area network, and now data card just recovers
Not-ready status.Data card has returned to ready state, and the first PC just can be dialled by sending to data card
Number online order realize online.
Step 306, when described data card is ready state, described data card receives a described PC
The order of dialling up on the telephone that machine is sent by described router, and perform dialing according to described order of dialling up on the telephone
Operation, after dial-up success, returns dial-up success response command to described first PC.
First-selection, the network interface controller in described data card controls Ethernet network interface and receives described first PC
The order of dialling up on the telephone sent by described router, and receive described dialing from described Ethernet network interface
Net order the processor sent to data card;
Secondly, processor receives order of dialling up on the telephone described in the transmission of described network interface controller, and according to institute
State order of dialling up on the telephone and perform dial-up operation;Dial-up success response command is generated according to dial-up success result,
Described dial-up success response command is sent to described network interface controller;
Finally, network interface controller receives the dial-up success response command that described processor returns, and by described
Dial-up success response command is sent to described router by described Ethernet network interface, and described router is to institute
State the first PC and return described dial-up success response command.
When status poll result is ready state, the first PC is to the online order of router Sending dialled number
Realize online.
When status poll result is ready state, the first PC is dialled to data card transmission by router
Number online order;The network interface controller of data card controls Ethernet network interface and receives dialling of the first PC transmission
Number online order, and order of dialling up on the telephone is sent to the processor of data card;Processor receives network interface control
The order of dialling up on the telephone that device processed sends, and carry out, according to the order control chip that dials up on the telephone, the behaviour that dials up on the telephone
Make;Then, processor generates, according to the result of the operation of dialling up on the telephone of chip, the response command that dials up on the telephone,
The response command that will dial up on the telephone sends to network interface controller;Network interface controller receives the dialing that processor sends
Online response command, and the response command that will dial up on the telephone is by Ethernet network interface transmission router, router
The response command that will dial up on the telephone again returns to the first PC, and the first PC realizes online.
The data card of the present embodiment is connected with router, the first PC and the second PC all with this route
When device is connected, it is achieved that the control to same data card of multiple external equipments, only breach in prior art
A PC is had to control and the restriction of operation data card.Specifically, in the data card of the present embodiment with
Too net network interface is connected with a LAN (LAN, the Local area network) interface of router, the
One PC and the second PC are connected with other LAN interface of this router respectively, such PC
The when that machine and the second PC being connected in same LAN, data card is connected to by Ethernet network interface
On router, it is again connected in same LAN, connects now by standard network, the first PC
All data card can be connected and control with the second PC.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses
Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually
?.
Above to a kind of data card provided by the present invention and transmission method based on data card, carry out in detail
Thin introducing, principle and the embodiment of the present invention are set forth by specific case used herein, with
The explanation of upper embodiment is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for
One of ordinary skill in the art, according to the thought of the present invention, in specific embodiments and applications
All will change, in sum, this specification content should not be construed as limitation of the present invention.