CN106533800A - Method for network adaptation of terminal, and RNDIS equipment - Google Patents

Method for network adaptation of terminal, and RNDIS equipment Download PDF

Info

Publication number
CN106533800A
CN106533800A CN201611169845.9A CN201611169845A CN106533800A CN 106533800 A CN106533800 A CN 106533800A CN 201611169845 A CN201611169845 A CN 201611169845A CN 106533800 A CN106533800 A CN 106533800A
Authority
CN
China
Prior art keywords
network
network interface
terminal
configuration information
information
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
CN201611169845.9A
Other languages
Chinese (zh)
Other versions
CN106533800B (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.)
Shenzhen Neoway Technology Co Ltd
Original Assignee
Shenzhen Neoway Technology Co Ltd
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 Shenzhen Neoway Technology Co Ltd filed Critical Shenzhen Neoway Technology Co Ltd
Priority to CN201611169845.9A priority Critical patent/CN106533800B/en
Publication of CN106533800A publication Critical patent/CN106533800A/en
Application granted granted Critical
Publication of CN106533800B publication Critical patent/CN106533800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Abstract

The invention discloses a method for network adaptation of a terminal, and RNDIS equipment. The method comprises the following steps: receiving business information from the terminal through a static network interface; transmitting the business information to a dynamic network interface, and carrying out processing of the business information through the dynamic network interface, so that the business information carries characteristic information of network configuration information of the dynamic network interface, wherein the network configuration information of the dynamic network interface is allocated by a current accessed mobile network and can correspondingly change with a network type of the current accessed mobile network; and sending the business information carrying the characteristic information to the current accessed mobile network through a communication mode. The method and the RNDIS equipment provided by the embodiment of the invention have the advantages that when the network type of the mobile network of an operator changes, the terminal can normally pass through the RNDIS equipment for data communication without network information re-configuration.

Description

A kind of method and RNDIS equipment for realizing terminal network adaptation
Technical field
The present invention relates to network communication technology field, more particularly to a kind of method and RNDIS for realizing terminal network adaptation Equipment.
Background technology
With the development of USB (Universal Serial Bus, USB (universal serial bus)) serial technology, set up total in USB The network equipment on line instead of traditional ISA (Industry Standard Architecture, work in some applications Industry standard architecture) equipment or PCI (Peripheral Component Interconnect, Peripheral Component Interconnect mark It is accurate) equipment, particularly in portable domain and Internet of Things field, carried out similar to the logical of Ethernet based on USB interface and main frame Letter will occupy leading position.To carry out meeting the communication of Ethernet protocol based on usb bus, first or de facto standards be Remote network driver interface specification (RNDIS, the Remote Network Driver Interface that Microsoft supports Specification).RNDIS specifications are a kind of network equipment specifications, and it requires that RNDIS equipment can be processed from system Object indications (OID, Object Identifier Descriptor), so that the driver that system is provided can lead to Cross compatibility mode to be used by different RNDIS equipment, without designing single driver for specific RNDIS equipment, And system then can send different OID to complete specific function to RNDIS equipment.
For example, in Internet of Things overall situation, in order that terminal unit (such as intelligent appliance, intelligent transportation instrument etc.) is linked into In communication network, terminal unit can be linked into the RNDIS equipment with communication function by the network interface of RNDIS interfaces In, the mobile network of RNDIS equipment connection operator (such as movement/UNICOM/telecommunications) is connect by the network of RNDIS interfaces then Mouth provides network service for terminal unit.
However, the present inventor is had found in research and practice, connect by the network of RNDIS interfaces in terminal unit After mouth is linked into the RNDIS equipment with communication function, terminal unit sets up communication connection.As the mobile network of operator When network formats change, when being such as changed into UNICOM GSM (2G) from the WCDMA (3G) of UNICOM, the network of the RNDIS interfaces connects Mouthful IP change, cause the terminal unit cannot proper communication.
The content of the invention
In order to the change for solving the network formats of operator under RNDIS specifications in prior art causes terminal unit cannot The problem of proper communication, the embodiment of the present invention provide a kind of method and RNDIS equipment for realizing terminal network adaptation, the company of realizing The IP for connecing the network interface of terminal unit does not change with the change of the network formats of operator so that terminal unit can be not Normal network service is kept in same network formats.
In a first aspect, the invention provides a kind of method for realizing terminal network adaptation, is applied in RNDIS equipment, institute Static network interface of the RNDIS equipment at least including communication module, dynamic network interface and RNDIS specifications is stated, the RNDIS sets Standby to be communicatively coupled with terminal by the static network interface, the RNDIS equipment passes through dynamic network interface and movement Network is communicatively coupled, and methods described includes:
The business information that the RNDIS equipment is sent by the static network interface terminal, wherein, the static state The network configuration information of the network configuration information and terminal of network interface matches, the network configuration letter of the static network interface Breath keeps constant;
The business information is transmitted by the RNDIS equipment to dynamic network interface, and by dynamic network interface to institute State business information to be processed, make the business information carry the characteristic information of the network configuration information of dynamic network interface, its In, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, the dynamic network The network configuration information of interface can accordingly change with the change of the network formats of the mobile network being currently accessed;
Configuration parameter of the RNDIS equipment by the business information for carrying characteristic information based on network formats passes through institute State communication module to send to the mobile network being currently accessed, wherein, the communication module is configured with multiple network standard Configuration parameter.
Second aspect, embodiments provides a kind of method for realizing terminal network adaptation, is applied to RNDIS equipment In, static network interface of the RNDIS equipment at least including communication module, dynamic network interface and RNDIS specifications is described RNDIS equipment is communicatively coupled with terminal by the static network interface, and the RNDIS equipment passes through dynamic network interface It is communicatively coupled with mobile network, methods described includes:
Configuration parameter of the RNDIS equipment based on network formats receives the movement being currently accessed by the communication module Business information in network, wherein, the communication module is configured with the configuration parameter of multiple network standard, and the business information is taken The characteristic information of the network configuration information with dynamic network interface, the network configuration information of the dynamic network interface is by current What the mobile network of access was distributed, the network configuration information of the dynamic network interface can be with the mobile network's being currently accessed The change of network formats and accordingly change;
The RNDIS equipment is transmitted the business information to static network interface by dynamic network interface, and is passed through Static network interface is processed to the business information, so that the business information carries the network configuration information of the terminal Characteristic information, wherein, the network configuration information of static network interface and the network configuration information of terminal match, described The network configuration information of static network interface keeps constant.
The RNDIS equipment sends the business that carry characteristic information to the terminal by the static network interface Information.
The third aspect, embodiments provides a kind of RNDIS equipment, including for performing described by first aspect The functional module of method, the functional module of the RNDIS equipment at least include receiver module, processing module and sending module.Its In:
Receiver module, for the business information sent by static network interface terminal, wherein, the static network The network configuration information of the network configuration information and terminal of interface matches, and the network configuration information of the static network interface is protected Hold constant;
Processing module, for the business information is transmitted to dynamic network interface, and by dynamic network interface to institute State business information to be processed, make the business information carry the characteristic information of the network configuration information of dynamic network interface, its In, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, the dynamic network The network configuration information of interface can accordingly change with the change of the network formats of the mobile network being currently accessed;
Sending module, works as the business information for carrying characteristic information is sent to described by the communication module The mobile network of front access.
Optionally, the RNDIS equipment also includes setup module, and the setup module is used for, and is used to lead in receiver module Before crossing the business information that the static network interface terminal sends, the static network interface is set to into the terminal Gateway;
The business information that receiver module is used to send by the static network interface terminal is specially:
Receiver module is used to receive the business information that the terminal sends by the gateway.
Wherein, the network configuration information of static network interface and the network configuration information of terminal match, described quiet The network configuration information of state network interface keeps constant, specially:
Setup module can be used to fixed gateway IP is set to the static network by way of automatic or manual to connect The network configuration information of mouth, so that the network configuration information of the static network interface keeps constant, and makes the static network The network configuration information of the network configuration information and terminal of interface matches.
Wherein, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, tool Body is:
The network configuration information of the dynamic network interface is that the setup module is used to obtain to be worked as after PPP dials The network configuration information distributed by the mobile network of front access, and the network configuration information is configured to into dynamic network interface Network configuration information.
Optionally, the network formats of the mobile network are at least including the one kind in GSM, WCDMA, CDMA, TD-SCDMA Or it is various.
Fourth aspect, embodiments provides another RNDIS equipment, including for performing described by second aspect Method functional module, the functional module at least include receiver module, processing module and sending module.Wherein:
Receiver module, for the business information in the mobile network being currently accessed is received by the communication module, wherein, The business information carries the characteristic information of the network configuration information of dynamic network interface, and the network of the dynamic network interface is matched somebody with somebody Confidence breath is distributed by the mobile network being currently accessed, and the network configuration information of the dynamic network interface can be with currently connecing The change of the network formats of the mobile network for entering and accordingly change;
Processing module, for the business information being transmitted to static network interface by dynamic network interface, and is passed through Static network interface is processed to the business information, so that the business information carries the network configuration information of the terminal Characteristic information, wherein, the network configuration information of static network interface and the network configuration information of terminal match, described The network configuration information of static network interface keeps constant.
Sending module, for sending the business that carry characteristic information to the terminal by the static network interface Information.
Optionally, the RNDIS equipment also includes setup module, and the setup module is used for, and passes through institute in sending module Static network interface is stated to before the terminal transmission business information for carrying characteristic information, by the static network interface It is set to the gateway of the terminal;
The sending module is used to send the carrying characteristic information to the terminal by the static network interface Business information is specially:
The sending module is used to send the business information that carry characteristic information to the terminal by the gateway.
Wherein, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, tool Body is:
The network configuration information of the dynamic network interface is that, after PPP dials, the setup module is used for basis and works as The distributed network configuration information is configured to dynamic network by the network configuration information distributed by the mobile network of front access The network configuration information of interface.
Wherein, the network configuration information of static network interface and the network configuration information of terminal match, described quiet The network configuration information of state network interface keeps constant, specially:
The setup module can be used to fixed gateway I P are set to the static network by way of automatic or manual The network configuration information of network interface, so that the network configuration information of the static network interface keeps constant, and makes the static state The network configuration information of the network configuration information and terminal of network interface matches.
Wherein, the network formats of the mobile network at least including the one kind in GSM, WCDMA, CDMA, TD-SCDMA or It is various.
By implementing the embodiment of the present invention, in RNDIS equipment, at least provided with two kinds of network interfaces:Dynamic network interface And the static network interface of RNDIS specifications, the wherein network configuration information of the network configuration information and terminal of static network interface Match, and the network configuration information of the static network interface keeps constant, so static network interface can be entered with terminal Row data communication, and the network configuration information of dynamic network interface can be with the change of the network formats of the mobile network being currently accessed And accordingly change, so RNDIS equipment can pass through communication module and operator based on the network configuration information of dynamic network interface Mobile network enter row data communication, so, above two network interface is just as, in above two data communication process, playing the part of " bridge " is acted on, and communication data can be accordingly changed in " bridge ", to adapt to above two data communication respectively.Also It is to say, even if the network formats of the mobile network of operator change, terminal also can be normal without reconfiguring the network information Ground enters row data communication by RNDIS equipment, it is achieved thereby that the purpose of terminal network adaptation.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the communication system schematic diagram that terminal is interacted with mobile network by RNDIS equipment in prior art;
Fig. 2 is the communication that a kind of terminal provided in an embodiment of the present invention is interacted with mobile network by RNDIS equipment System schematic;
Fig. 3 is that a kind of terminal provided in an embodiment of the present invention sends business information to mobile network by RNDIS equipment Schematic flow sheet;
Fig. 4 is that a kind of terminal provided in an embodiment of the present invention receives the business information in mobile network by RNDIS equipment Schematic flow sheet;
Fig. 5 is a kind of schematic flow sheet of method for realizing terminal network adaptation provided in an embodiment of the present invention;
Fig. 6 is a kind of RNDIS device structure schematic diagrams provided in an embodiment of the present invention;
Fig. 7 is another RNDIS device structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
It should be noted that the term for using in embodiments of the present invention is the mesh only merely for description specific embodiment , and it is not intended to be limiting the present invention." one of singulative used in the embodiment of the present invention and appended claims Kind ", " described " and " being somebody's turn to do " are also intended to include most forms, unless context clearly shows that other implications.It is also understood that this Term "and/or" used herein is referred to and associated any or all possible group that lists project comprising one or more Close.
In the prior art, terminal is interacted with mobile network by RNDIS equipment, and the communication system can be found in Fig. 1, In the communication system, there is in RNDIS equipment network interface and communication module, wherein, terminal can be led to network interface Letter connection, communication module can be communicatively coupled with mobile network, and the business data packet of terminal can be sent (TX) by network interface To communication module, corresponding, network interface can also receive the business data packet that (RX) communication module is issued.In RNDIS equipment After being linked into mobile network, mobile network is to configuration informations such as RNDIS equipment distribution IP, DNS, server gateways (Gateway) And be filled into the network interface of RNDIS interfaces, terminal again based on RNDIS interfaces configuration information configurating terminal configuration information, So, terminal just can be communicated with mobile network by RNDIS equipment.However, under different network formats, mobile network To the distribution of RNDIS equipment configuration information and differ, in the middle of this, it may appear that three kinds of situations below:
Terminal RNDIS equipment Network formats Can communicate
Situation one IP_1’ IP_1 2G
Situation two IP_1’ IP_2 3G ×
Situation three IP_2’ IP_2 3G
Situation one:In 2G mobile networks, the IP configured by RNDIS equipment is IP_1, and terminal matched somebody with somebody based on RNDIS equipment Confidence breath configuration of IP is IP_1 ', and now terminal is in the same network segment with RNDIS equipment, so terminal can pass through RNDIS equipment Communicated with mobile network.
Situation two:In 3G mobile networks, the IP configured by RNDIS equipment is IP_2, and terminal not yet updates configuration information, Configuration of IP is still IP_1 ', and now terminal and RNDIS equipment are in different segment, thus terminal cannot by RNDIS equipment with Mobile network is communicated.
Situation three:In 3G mobile networks, the IP configured by RNDIS equipment is IP_2, and terminal matched somebody with somebody based on RNDIS equipment Confidence breath is reconfigured, and IP is changed into IP_1 ', and now terminal is in the same network segment with RNDIS equipment, so terminal can pass through again RNDIS equipment is communicated with mobile network.
As can be seen from the above analysis, during terminal is communicated with mobile network by RNDIS equipment, plus The network formats for entering mobile network change, then, the configuration information of RNDIS equipment also accordingly can change, and terminal is come not And configuration information is updated, cause the proper communication of terminal to be interrupted.Terminal is only matched somebody with somebody again based on the configuration information of RNDIS equipment Put, can just re-start communication.
However, in some network formats Jing often application scenarios of change, in order to carry out Continued communication, terminal is accomplished by not Repeat Configuration network information-communication connection-network formats change-communication disruption-Configuration network information-communication connection ... disconnectedly Process, this can bring strong influence to the development of the business of terminal.
In order to solve above-mentioned technical problem, the Continued communication of the terminal under different network formats is realized, the present invention is implemented The solution that proposed of example is:Information need not be reconfigured to terminal, it is only necessary to which the communication construction of RNDIS equipment is carried out Redesign, can be achieved with the terminal under different network formats carries out Continued communication with mobile network by RNDIS equipment.
It is comprehensive to refer to Fig. 2-4, in the embodiment of the present invention, RNDIS specifications it is existing on the basis of, the RNDIS of redesign The communication construction of equipment is:Static network of the RNDIS equipment at least including communication module, dynamic network interface and RNDIS specifications Interface, the RNDIS equipment are communicatively coupled with terminal by the static network interface, and the RNDIS equipment is by dynamic State network interface is communicatively coupled with mobile network, as shown in Fig. 2 Fig. 2 is a kind of terminal provided in an embodiment of the present invention leading to The communication system schematic diagram that RNDIS equipment is interacted with mobile network is crossed, wherein, the RNDIS equipment is specifically included:
(1) communication module, in embodiments of the present invention, during the communication module is RNDIS equipment, is responsible for communication function Module, the hardware and software needed under communication module set different network formats, and cover the complete of Virtual network operator Portion's frequency range, is communicated in order to support that RNDIS equipment is adapted to different network formats in different application scenarios, that is, Say, the communication module can be supported to enter under the different network formats such as LTE, GSM (GPRS), WCDMA, CDMA, TD-SCDMA Row communication.When user opens some of the different network formats such as LTE, GSM, WCDMA, CDMA, TD-SCDMA network formats Service after, the communication module can select the high net of priority according to the priority of network formats in different application scene Network standard sets up wireless communication connection.
In the specific communication process of the embodiment of the present invention, the communication module passes through PPP (Point to Point Protocol, point-to-point protocol) dialing sets up wireless communication connection with mobile network, and lead to after wireless network connection is set up Cross ppp protocol and safeguard the communication connection.Below by taking the GPRS standards of China Mobile as an example, its detailed process is illustrated:
I () communication module sends the WAP gateway that AT instructs Bo Shang China Mobile GPRS.
(ii) WAP gateway of communication module and GPRS is held consultation and sets up connecting link, and communication module just may have access to GPRS Main frame in net, completes the connection certification of radio communication.
(iii) webserver of GPRS can be to RNDIS equipment distribution dynamic IP addressing, DNS and network clothes The network configuration information is filled into dynamic network interface by the gateway of business device, communication module, and a complete communication link is just Set up, communication module can send to the webserver of GPRS or receive business information (IP packets).
(iv) communication module safeguards the communication between RNDIS equipment and the mobile network of GPRS by ppp protocol.
As can be seen that when there is mobile network in the environment residing for RNDIS equipment, then communication module just can be in dialing After be connected in the mobile network.When there is the mobile network of multiple network standard in residing environment, communication module will Select with the high mobile network of the priority to set up communication connection, the priority can pass through in the multiple network standard User arranges and determines.For example, in specific application scenarios, user has opened GSM (2G), the TD-SCDMA of China Mobile (3G), after TD-LTE (4G) services, set priority as 4G > 3G > 2G, RNDIS equipment just according to 4G under actual scene, The network formats that 3G, 2G network signal selects priority high are communicated.When communication module knows that when net is searched 4G, 3G, 2G are equal When accessible, prioritizing selection 4G is accessed, and when 4G network signals are deteriorated to be led to not access, prioritizing selection 3G is connect Enter, by that analogy.
After communication module is linked into the mobile network of certain network formats, communication module will be through dynamic network interface The business information of process physical layer modulation into the network formats corresponding frequency band signal, then by the signal to the mobile network Network sends (TX);Or, communication module passes through the business information in the corresponding UHF band reception mobile network of the network formats, then Business information transmission (RX) is processed to dynamic network interface.
(2) dynamic network interface, in embodiments of the present invention, dynamic network interface act as bridge static network interface With communication module (or mobile network), two aspects are mainly reflected in:In a first aspect, the docked mobile network of adaptation;The In terms of two, connecting static network interface carries out the process of business information.Separately below these two aspects is launched to describe:
In a first aspect, the docked mobile network of adaptation.Dynamic network interface is mainly by the net of dynamic network interface Network configuration information realizes the docked mobile network of adaptation.Wherein, the network configuration information of the dynamic network interface be by work as Front access it is the distributed to RNDIS equipment of mobile network, and by RNDIS device configurations to dynamic network interface, the dynamic The network configuration information of network interface includes the IP address of dynamic network interface, DNS, server gateway IP of Virtual network operator etc. Deng the network configuration information of the dynamic network interface can be corresponding with the change of the network formats of the mobile network being currently accessed Change
Specifically, the network configuration information of the dynamic network interface is by PPP dialing and from the mobile network Get, i.e., after PPP dialing, the network configuration information that the server of Virtual network operator distributes to RNDIS equipment, The network configuration information is filled into dynamic network interface by RNDIS equipment, so as to the network for defining dynamic network interface is matched somebody with somebody Confidence ceases.
The configuration process of the network configuration information of the dynamic network interface is specially:When RNDIS equipment needs to carry out net When network communicates, the RNDIS equipment carries out searching net by communication module, and carries out PPP dialing, dial-up success according to net result is searched Afterwards, the server of Virtual network operator distributes network configuration information to RNDIS equipment, and the network configuration is believed by the RNDIS equipment Breath is configured to the network configuration information of dynamic network interface, the network configuration information of the dynamic network interface include IP, DNS, The information such as server gateway.It should be understood that as the mobile network provided by Virtual network operator has multiple network standard, for example The network formats such as LTE, GSM, WCDMA, CDMA, TD-SCDMA, under different network formats, the server of Virtual network operator to RNDIS equipment distribution network configuration information is also different, so, in mistake of the RNDIS equipment by PPP dial-up accesses to mobile network Cheng Zhong, the network configuration information of the dynamic network interface can with the change of the network formats of the mobile network being currently accessed phase Should change.
For example in specific application scenarios, terminal is intelligent transportation instrument (such as intelligent bicycle), the intelligent transportation work Tool is packaged with RNDIS equipment, and the intelligent transportation instrument needs to carry out network service (such as transmission operation by RNDIS equipment Information etc.), then, intelligent transportation instrument, is led to according to net result is searched when certain specific cell carries out searching net by RNDIS equipment Cross ppp protocol to be connected in WCDMA (UNICOM 3G) network of CHINAUNICOM, now, the RNDIS equipment of intelligent transportation instrument is obtained To the network configuration information configured by the WCDMA networks of CHINAUNICOM, and the network configuration information is configured to into RNDIS equipment Dynamic network interface network configuration information.When intelligent transportation instrument move to it is remote where when, as the place does not have The WCDMA network signals of UNICOM are covered, therefore intelligent transportation instrument searches net again by RNDIS equipment, passes through according to net result is searched Ppp protocol is connected in GSM (2G) network of UNICOM, now, and the RNDIS equipment of intelligent transportation instrument gets the GSM of UNICOM The network configuration information configured by network, and the network configuration information is configured to the dynamic network interface of RNDIS equipment Network configuration information.
As can be seen that the network configuration information of the dynamic network interface of RNDIS equipment can be with the mobile network being currently accessed The change of the network formats of network and accordingly change, it is achieved thereby that the adaptation of the mobile network to being currently accessed, complete described After adaptation, dynamic network interface can just be realized sending (TX) to mobile network or receive (RX) business information.
Second aspect, connecting static network interface carries out the process of business information.Wherein, dynamic network interface is believed to business Breath has the process in the case of two kinds respectively:
Situation one:The business information that process is transmitted from static network interface;
Situation two:The business information that process is sended over from mobile network;
For situation one, as shown in figure 3, in the embodiment of the present invention, terminal has communication requirement, send to RNDIS equipment (TX), during business information (IP packets), business information carries the information of terminal, that is to say, that in the business information, IP address of the source IP address for terminal.And the technical scheme of the embodiment of the present invention is, no matter whether network formats change, terminal IP can all keep constant in communication process, that is to say, that the IP address of terminal is fixed IP address.But for movement For network, only legal (can pass through authentication) business information can be just transferred in mobile network, described legal Business information is exactly the information that can be matched with the network configuration information of dynamic network interface.Above-mentioned first aspect is mentioned, The network configuration information of the dynamic network interface of RNDIS equipment can be with the change of the network formats of the mobile network being currently accessed And accordingly change, i.e. the IP of the dynamic network interface of RNDIS equipment can be with the network formats of the mobile network being currently accessed Change and accordingly change, this just occurs a problem:The IP address of terminal may be in the IP address of dynamic network interface The different network segments (mismatching), this can cause dynamic network interface normally to forward the business information without normal direction mobile network.
So, in order to solve this problem, business information normally can be smoothly forwarded to shifting in order to dynamic network interface In dynamic network, the RNDIS equipment needs to process the business information by dynamic network interface, makes the business letter Breath carry dynamic network interface network configuration information characteristic information, that is, the business information of terminal is processed into it is legal Business information, wherein, the characteristic information (is recognized to be recognized by mobile network in the network configuration information of dynamic network interface Card identity) information.
Specifically, RNDIS equipment is entered to the business information transmitted from static network interface by dynamic network interface Row is processed, including:Business information (IP packets) is decapsulated, the characteristic information (IP as released terminal of terminal is released Information), and the characteristic information using the network configuration information of dynamic network interface is replaced, and is then Resealed, weight It is new encapsulate after business information carry dynamic network interface network configuration information characteristic information (IP of dynamic network interface, DNS, server gateway etc.), in the business information after such as Resealing, source IP is changed into the IP of dynamic network interface.Through upper After stating process, the dynamic network interface can just normally receive and forward the network configuration of above-mentioned carrying dynamic network interface to be believed The business information of the characteristic information of breath.
In conversion plan of the present invention to the IP address of business information, NAT technologies can also be adopted, by business information Source IP address is converted to the IP address of dynamic network interface, and the dynamic network interface can just be normally received and forward above-mentioned Jing The business information of IP address conversion is crossed, and the network configuration letter of dynamic network interface is carried through the business information of IP address conversion The characteristic information (the IP information of dynamic network interface, DNS, server gateway etc.) of breath.
For situation two, in the embodiment of the present invention, terminal has communication requirement, needs to obtain mobile network by RNDIS equipment Business information (IP packets) in network.Wherein, the business information for sending to RNDIS equipment from mobile network carries RNDIS The information of equipment, specifically, in the business information, IP address of the target ip address for dynamic network interface.In the same manner, by Can accordingly change with the change of the network formats of the mobile network being currently accessed in the IP of the dynamic network interface of RNDIS equipment Become, this just occurs a problem:The IP address of terminal may be in the different network segments, meeting from the IP address of dynamic network interface Cause dynamic network interface without normal direction terminal transmission (unicast) business information.
So, in order to solve this problem, the business information, the RNDIS equipment can be normally received in order to terminal The business information is transmitted to static network interface by dynamic network interface, and by static network interface to the business Information is processed, so that the business information carries the characteristic information of the network configuration information of the terminal, its detailed process Process will hereinafter be described.
(3) static network interface, in embodiments of the present invention, the effect of dynamic network interface is embodied in bridge terminal and moves State network interface, is mainly reflected in two aspects:In a first aspect, being communicatively coupled with terminal;Second aspect, connects Dynamic Networks Network interface carries out the process of business information.Separately below these two aspects is launched to describe:
In a first aspect, being communicatively coupled with terminal.In embodiments of the present invention, static network interface is RNDIS's Network interface under specification, specifically, RNDIS equipment can be connected with terminal by bus (USB, IEEE1394 etc.), to support Terminal plug and play, can enumerate the static network interface based on RNDIS specifications, the static state on the corresponding port of the bus Network interface is for being communicatively coupled with terminal.
In order to realize that the terminal in the present invention also can be normal when the network formats of the mobile network of operator change Ground enters the purpose of row data communication, in embodiments of the present invention, the network configuration information of static network interface by RNDIS equipment Match with the network configuration information of terminal, the network configuration information of the static network interface keeps constant.Work as static network When the network configuration information of the network configuration information and terminal of interface matches, if terminal needs to carry out network service, then, Business information can be sent by the terminal to the static network interface of RNDIS equipment, and accordingly, RNDIS equipment passes through static network Business information described in network interface.
Specifically, after RNDIS device power-ups, the IP of terminal can keep constant, and RNDIS equipment can pass through automatic or manual Mode fixed gateway IP is set to the network configuration information of the static network interface, that is to say, that in RNDIS equipment In, the static network interface can be in same subnet with the IP of the gateway as the gateway of terminal, the IP of terminal, that , when terminal needs transmission services information, gateway described in terminal recognition, and business information is sent to the gateway.
First, RNDIS equipment can configure the gateway based on the manual operation of user, for simple example, when by gateway IP is configured to 192.168.1.1, and it can be 192.168.1.X that terminal is located at the IP of same subnet, then, terminal can be based on the net The IP of pass is sent to the static network interface, and the RNDIS equipment receives the business that the terminal sends by the gateway Information.
Second, RNDIS equipment can also arrange gateway IP by automatic mode, for example, when RNDIS equipment is dialled During communication, the server of Virtual network operator distributes IP address section to RNDIS equipment, and RNDIS equipment can be based on the IP address section The gateway IP of the static network interface is set.
It should be noted that after RNDIS device power-ups, the network configuration information (gateway IP) of static network interface is After once configuring, will keep constant, the IP of terminal can also keep constant after carrying out first time configuration.If however, set Turn back on after standby shutdown, then the network configuration information of the network configuration information and terminal of the static network interface can be again Newly configured.
As can be seen from the above analysis, as the network configuration of the network configuration information and terminal of static network interface is believed Manner of breathing is matched, and under RNDIS specifications, realizing business information carries out communications between terminal and RNDIS equipment.Moving When the network formats of network change, the network configuration information of static network interface and the network configuration information of terminal according to Old to keep constant, realizing the business information under different network formats carries out stable transmission between terminal and RNDIS equipment.
Second aspect, connecting dynamic network interface carries out the process of business information.Wherein, static network interface is for business Information has the process in the case of two kinds respectively:
Situation one:During business information uploads mobile network, business information is transferred to into dynamic network interface.
Situation two:During business information is passed under mobile network, process from dynamic network interface transfers the business for coming and believe Breath.
Situation one is directed to, when terminal needs for business information to upload mobile network, business is believed by dynamic network interface Breath is transferred to dynamic network interface, the business information is processed in order to dynamic network interface, and this processing procedure exists It is existing detailed above, repeat no more here.
Situation two is directed to, when the business information in mobile network needs to be sent to terminal, the RNDIS equipment is by dynamic State network interface transmits the business information to static network interface, receives (RX) described business information in order to terminal, such as Shown in Fig. 4.Specifically, as mentioned above, the business information for sending to RNDIS equipment from mobile network carries RNDIS The information of equipment, in the business information, IP address of the target ip address for dynamic network interface, and dynamic network interface IP can accordingly change with the change of the network formats of the mobile network being currently accessed, and this just occurs a problem:Terminal IP address may from the IP address of dynamic network interface be in the different network segments, dynamic network interface can be caused without normal direction terminal Transmit the business information.So, in order to solve this problem, the business information can be normally received in order to terminal, it is described RNDIS equipment is transmitted the business information to static network interface by dynamic network interface, and passes through static network interface The business information is processed, so that the business information carries the characteristic information of the network configuration information of the terminal (such as the IP of terminal).
Specifically, RNDIS equipment is processed to the business information by static network interface, including:Business is believed Breath (IP packets) is decapsulated, and releases the characteristic information (target as released dynamic network interface of dynamic network interface IP), and the characteristic information of the network configuration information of using terminal is replaced, then Resealed, after Resealing The characteristic information (such as IP, DNS of terminal etc.) of the network configuration information of business information carried terminal.After above-mentioned process, institute State the business information that static network interface just can normally forward the characteristic information of above-mentioned carried terminal to terminal.
In conversion plan of the present invention to the IP address of business information, NAT technologies can also be adopted, by business information Target ip address is converted to the IP address of terminal, and the static network interface just can be normally above-mentioned through IP ground to terminal forwarding The business information of location conversion, carries the characteristic information of the network configuration information of terminal through the business information of IP address conversion (the IP information of dynamic network interface, DNS etc.).
Based on RNDIS equipment and related embodiment shown in earlier figures 2-4, it is described below provided in an embodiment of the present invention A kind of method for realizing terminal network adaptation.
Referring to Fig. 5, Fig. 5 is a kind of method for realizing terminal network adaptation provided in an embodiment of the present invention, of the invention real Apply in example, the communication between terminal and foreign mobile network can be divided into two kinds:One kind is that terminal is outside to RNDIS equipment is passed through Portion mobile network sends the communication of business information, and process steps are S101-S104, and another kind is that terminal is connect by RNDIS equipment The communication of the business information of foreign mobile network is received, process steps are S201-S204, separately below to above two communication process It is described in detail.
For terminal to by RNDIS equipment to foreign mobile network send business information communication process, including with Lower step:
S101, terminal send business information to RNDIS equipment, and accordingly, the RNDIS equipment passes through the static network The business information that interface terminal sends.
In embodiments of the present invention, the terminal is can be connected on RNDIS equipment, support RNDIS rule by bus The terminal unit of model, the terminal can be the need with network service such as internet device, internet of things equipment, body area network equipment The terminal unit asked.For example, in today of Internet of Things high speed development, the terminal can be intelligent bicycle, intelligent automobile, intelligent generation The intelligent transportation instruments such as step car, or intelligent electric lamp, intelligent television, intelligent cleaning equipment (such as Intelligent robot for sweeping floor), intelligence The Internet of Things such as sleeping device (such as intelligent sofa), intelligent monitoring device (intelligent sphygmomanometer, intelligent thermometer), intelligent mattress set Standby, the present invention is not limited to the concrete form and quantity or species of above-mentioned terminal.
In embodiments of the present invention, the RNDIS equipment is with RNDIS Standard Interfaces, and can access movement The equipment communicated by network, for example, the RNDIS equipment can be set for wireless router, radio modem, wireless network card It is standby to wait Wireless Telecom Equipment, can also be cell phone, smart mobile phone, wireless phone, tablet PC, personal digital assistant (PDA), portable equipment, smartbook, net book, etc. the terminal unit with radio communication function, the present invention to above-mentioned RNDIS The concrete form and quantity of equipment or species are not limited.
Wherein, static network of the RNDIS equipment at least including communication module, dynamic network interface and RNDIS specifications Interface.In embodiments of the present invention, under the specification of RNDIS, terminal can be inserted by the buses such as USB and RNDIS equipment, support Use, the RNDIS equipment is connected by Bus Wires such as port and the USB, can be enumerated on the port of the RNDIS equipment Based on the static network interface of RNDIS specifications, the static network interface for being communicatively coupled with terminal, the RNDIS Equipment is communicatively coupled with mobile network by dynamic network interface.
Understand with reference to earlier figures 2-4 embodiment, in order to realize net of the terminal in the present invention in the mobile network of operator Also the purpose of row data communication can be entered when network standard changes normally through RNDIS equipment, it is in embodiments of the present invention, quiet The network configuration information of the network configuration information and terminal of state network interface matches, the network configuration of the static network interface Information keeps constant, that is to say, that when the network configuration information of the network configuration information and terminal of static network interface matches When, if terminal needs to carry out network service, then, business information can be connect by the terminal to the static network of RNDIS equipment Mouth sends, wherein, the IP information of the business information carried terminal.Specifically, after RNDIS device power-ups, the IP of terminal can Keep constant, fixed gateway IP can be set to the static network interface by way of automatic or manual by RNDIS equipment Network configuration information, that is to say, that in RNDIS equipment, the static network interface can as the gateway of terminal, terminal IP can be in same subnet with the IP of the gateway, then, when terminal needs transmission services information, net described in terminal recognition Close, and business information is sent to the gateway.
The business information is transmitted by S102, the RNDIS equipment to dynamic network interface.
After step S101 is completed, the RNDIS equipment has got the business information of terminal, due in the present invention In, dynamic network interface can be communicatively coupled with mobile network, so in order to be able to described information is sent in network, it is described RNDIS equipment needs the business information is transmitted to dynamic network interface.
S103, the RNDIS equipment are processed to the business information by dynamic network interface, make the business letter Breath carries the characteristic information of the network configuration information of dynamic network interface;
Wherein, the dynamic network interface is configured with the network configuration information distributed by the server of Virtual network operator.It is dynamic The network configuration information of state network interface can accordingly change with the change of the network formats of the mobile network being currently accessed.
Understand with reference to earlier figures 2-4 embodiment, when terminal is to RNDIS equipment transmission business information (IP packets), business Information carries the information of terminal, that is to say, that in the business information, IP address of the source IP address for terminal.And this The technical scheme of bright embodiment is no matter whether network formats change, and the IP of terminal can keep constant in communication process, That is, the IP address of terminal is fixed IP address.But for mobile network, only legal (can pass through body Part certification) business information can be just transferred in mobile network, and the legal business information exactly can be connect with dynamic network The information that the network configuration information of mouth matches.Above-mentioned first aspect is mentioned, and the network of the dynamic network interface of RNDIS equipment is matched somebody with somebody Confidence breath can accordingly change with the change of the network formats of the mobile network being currently accessed, i.e. the Dynamic Networks of RNDIS equipment The IP of network interface can accordingly change with the change of the network formats of the mobile network being currently accessed, and this just occurs that one is asked Topic:The IP address of terminal may be from the IP address of dynamic network interface in the different network segments (mismatching), and this can cause to move State network interface normally forwards the business information without normal direction mobile network.
So, in order to solve this problem, business information normally can be smoothly forwarded to shifting in order to dynamic network interface In dynamic network, the RNDIS equipment needs to process the business information by dynamic network interface, makes the business letter Breath carry dynamic network interface network configuration information characteristic information, that is, the business information of terminal is processed into it is legal Business information, wherein, the characteristic information (is recognized to be recognized by mobile network in the network configuration information of dynamic network interface Card identity) information.
Specifically, RNDIS equipment is entered to the business information transmitted from static network interface by dynamic network interface Row is processed, including:Business information (IP packets) is decapsulated, the characteristic information (IP as released terminal of terminal is released Information), and the characteristic information using the network configuration information of dynamic network interface is replaced, and is then Resealed, weight It is new encapsulate after business information carry dynamic network interface network configuration information characteristic information (IP of dynamic network interface, DNS, server gateway etc.), in the business information after such as Resealing, source IP is changed into the IP of dynamic network interface.Through upper After stating process, the dynamic network interface can just normally receive and forward the network configuration of above-mentioned carrying dynamic network interface to be believed The business information of the characteristic information of breath.
In conversion plan of the present invention to the IP address of business information, NAT technologies can also be adopted, by business information Source IP address is converted to the IP address of dynamic network interface, and the dynamic network interface can just be normally received and forward above-mentioned Jing The business information of IP address conversion is crossed, and the network configuration letter of dynamic network interface is carried through the business information of IP address conversion The characteristic information (the IP information of dynamic network interface, DNS, server gateway etc.) of breath.
S104, the RNDIS equipment by it is described carry characteristic information business information by the communication module send to The mobile network being currently accessed.
After the process of S103, business information carries the characteristic information of the network configuration information of dynamic network interface (the IP information of dynamic network interface, DNS, server gateway etc.), and these characteristic informations are to the mobile network's that is currently accessed It is exactly legal business information for server, so, the business information for carrying characteristic information is based on net by RNDIS equipment The configuration parameter of network standard is sent to the mobile network being currently accessed by communication module.
Wherein, during the communication module is RNDIS equipment, it is responsible for the module of communication function, the communication module set Hardware and software needed under different network formats, and whole frequency ranges of Virtual network operator are covered, in order to support that RNDIS sets Communicated for different network formats are adapted in different application scenarios, that is to say, that the communication module can be supported Communicated under the different network formats such as GSM (GPRS), WCDMA, CDMA, TD-SCDMA.When user open LTE, GSM, After the service of some of the different network formats such as WCDMA, CDMA, TD-SCDMA network formats, the communication module can In different application scene, select the high network formats of priority to carry out PPP dialing according to the priority of network formats, and dialling The communication connection between the high mobile network of RNDIS equipment and the priority is safeguarded by ppp protocol after number success, also It is that, after communication connection is set up, the RNDIS equipment is by the business information for carrying characteristic information by the communication module Send to the mobile network being currently accessed.
It is for the process of the communication of the business information that terminal receives foreign mobile network by RNDIS equipment, including following Step:
S201, the RNDIS equipment receive the business information in the mobile network being currently accessed by the communication module.
When terminal has receives the demand of business information from mobile network, terminal first passes through the communication of the RNDIS equipment Module receives the business information in the mobile network being currently accessed.
Wherein, the business information carries the characteristic information of the network configuration information of dynamic network interface, the Dynamic Networks The network configuration information of network interface is distributed by the mobile network being currently accessed, the network configuration of the dynamic network interface Information can accordingly change with the change of the network formats of the mobile network being currently accessed.
Wherein, during the communication module is RNDIS equipment, it is responsible for the module of communication function, the communication module set Hardware and software needed under different network formats, and whole frequency ranges of Virtual network operator are covered, in order to support that RNDIS sets Communicated for different network formats are adapted in different application scenarios, that is to say, that the communication module can be supported Communicated under the different network formats such as LTE, GSM (GPRS), WCDMA, CDMA, TD-SCDMA.When user open LTE, After the service of some of the different network formats such as GSM, WCDMA, CDMA, TD-SCDMA network formats, the communication mould Block can select the high network formats of priority to set up radio communication company according to the priority of network formats in different application scene Connect, after communication connection is set up, communication module can receive the business information (IP packets) in the network formats.
S202, the RNDIS equipment are transmitted the business information to static network interface by dynamic network interface.
As, in the business information, target ip address is the IP address of dynamic network interface.In the same manner, due to RNDIS The IP of the dynamic network interface of equipment can accordingly change with the change of the network formats of the mobile network being currently accessed, and this is just A problem occurs:The IP address of terminal may be in the different network segments from the IP address of dynamic network interface, can cause to move State network interface is without normal direction terminal transmission (unicast) business information.
So, in order to solve this problem, the business information, the RNDIS equipment can be normally received in order to terminal The business information is transmitted to static network interface by dynamic network interface, and in order to static network interface to the industry Business information is processed.
S203, the RNDIS equipment are processed to the business information by static network interface.
After the business information that static network interface is transmitted to dynamic network interface, the business information is carried out Process, so that the business information carries the characteristic information of the network configuration information of the terminal.
With reference to earlier figures 2-4 embodiment, RNDIS equipment is processed to the business information by static network interface, Including:Business information (IP packets) is decapsulated, and the characteristic information of dynamic network interface is released (as released dynamic network The Target IP of interface), and the characteristic information of the network configuration information of using terminal is replaced, and is then Resealed, weight The characteristic information (such as IP, DNS of terminal etc.) of the network configuration information of the business information carried terminal after new encapsulation.
In conversion plan of the present invention to the IP address of business information, NAT technologies can also be adopted, by business information Target ip address is converted to the IP address of terminal, and the static network interface just can be normally above-mentioned through IP ground to terminal forwarding The business information of location conversion, carries the characteristic information of the network configuration information of terminal through the business information of IP address conversion (the IP information of dynamic network interface, DNS etc.).
S204, the RNDIS equipment send the carrying characteristic information to the terminal by the static network interface Business information.
After step S203 is completed, the static network interface just can normally forward the spy of above-mentioned carried terminal to terminal The business information of reference breath, corresponding, terminal receives the business letter of the carrying characteristic information sent by the RNDIS equipment Breath.
As can be seen that by implementing the embodiment of the present invention, in RNDIS equipment, at least provided with two kinds of network interfaces:Dynamic The network of the network configuration information and terminal of the static network interface of network interface and RNDIS specifications, wherein static network interface Configuration information matches, and the network configuration information of the static network interface keeps constant, so static network interface can be with Enter row data communication with terminal, and the network configuration information of dynamic network interface can be with the network system of the mobile network being currently accessed The change of formula and accordingly change, so RNDIS equipment can based on the network configuration information of dynamic network interface pass through communication module Enter row data communication with the mobile network of operator, so, above two network interface in above two data communication process, Play the part of " bridge " effect, communication data can be accordingly changed in " bridge ", to adapt to above two data communication respectively. That is, even if the network formats of the mobile network of operator change, terminal also can without reconfiguring the network information Enter row data communication normally through RNDIS equipment, it is achieved thereby that the purpose of terminal network adaptation.
Referring to Fig. 6, Fig. 6 is a kind of functional block diagram of RNDIS equipment provided in an embodiment of the present invention, the RNDIS The functional module of equipment 60 at least includes receiver module 601, processing module 602 and sending module 603.Wherein,
Receiver module 601, for the business information sent by static network interface terminal, wherein, the static state The network configuration information of the network configuration information and terminal of network interface matches, the network configuration letter of the static network interface Breath keeps constant;
Processing module 602, for the business information is transmitted to dynamic network interface, and passes through dynamic network interface pair The business information is processed, and makes the business information carry the characteristic information of the network configuration information of dynamic network interface, Wherein, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, the Dynamic Networks The network configuration information of network interface can accordingly change with the change of the network formats of the mobile network being currently accessed;
Sending module 603, for the business information for carrying characteristic information is sent to institute by the communication module State the mobile network being currently accessed.
Optionally, the RNDIS equipment 60 also includes setup module 604, and the setup module 604 is used for, and is receiving mould Before block is used for the business information sent by the static network interface terminal, the static network interface is set to The gateway of the terminal;
The business information that receiver module 601 is used to send by the static network interface terminal is specially:
Receiver module 601 is used to receive the business information that the terminal sends by the gateway.
Wherein, the network configuration information of static network interface and the network configuration information of terminal match, described quiet The network configuration information of state network interface keeps constant, specially:
Setup module 604 can be used to fixed gateway IP is set to the static network by way of automatic or manual The network configuration information of interface, so that the network configuration information of the static network interface keeps constant, and makes the static network The network configuration information of the network configuration information and terminal of network interface matches.
Wherein, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, tool Body is:
The network configuration information of the dynamic network interface is that the setup module 604 is obtained currently after PPP dials The network configuration information distributed by the mobile network of access, and the network configuration information is configured to the net of dynamic network interface Network configuration information.
Optionally, the network formats of the mobile network are at least including the one kind in GSM, WCDMA, CDMA, TD-SCDMA Or it is various.
With regard to the specific embodiment of each functional module of RNDIS equipment 60, refer to related in Fig. 2-4 embodiments Description, it is succinct for description, repeat no more here.
Referring to Fig. 7, Fig. 7 is the functional block diagram of another RNDIS equipment provided in an embodiment of the present invention, described The functional module of RNDIS equipment 70 at least includes receiver module 701, processing module 702 and sending module 703.Wherein,
Receiver module 701, for the business information in the mobile network being currently accessed is received by the communication module, its In, the business information carries the characteristic information of the network configuration information of dynamic network interface, the net of the dynamic network interface Network configuration information is distributed by the mobile network being currently accessed, and the network configuration information of the dynamic network interface can be with working as The change of the network formats of the mobile network of front access and accordingly change;
Processing module 702, for the business information being transmitted to static network interface by dynamic network interface, and is led to Cross static network interface to process the business information, so that the business information carries the network configuration letter of the terminal The characteristic information of breath, wherein, the network configuration information of static network interface and the network configuration information of terminal match, institute The network configuration information for stating static network interface keeps constant.
Sending module 703, for sending the carrying characteristic information to the terminal by the static network interface Business information.
Optionally, the RNDIS equipment 70 also includes setup module 704, and the setup module 704 is used for, and is sending mould Before block 703 sends the business information for carrying characteristic information to the terminal by the static network interface, will be described Static network interface is set to the gateway of the terminal;
The sending module 703 is used to send the carrying characteristic information to the terminal by the static network interface Business information be specially:
The sending module 703 is used to send the business letter that carry characteristic information to the terminal by the gateway Breath.
Wherein, the network configuration information of the dynamic network interface is distributed by the mobile network being currently accessed, tool Body is:
The network configuration information of the dynamic network interface is that the setup module 704 is obtained currently after PPP dials The network configuration information distributed by the mobile network of access, and the distributed network configuration information is configured to into dynamic network The network configuration information of interface.
Wherein, the network configuration information of static network interface and the network configuration information of terminal match, described quiet The network configuration information of state network interface keeps constant, specially:
The setup module 704 can be used to fixed gateway IP is set to the static state by way of automatic or manual The network configuration information of network interface, so that the network configuration information of the static network interface keeps constant, and makes described quiet The network configuration information of the network configuration information and terminal of state network interface matches.
Wherein, the network formats of the mobile network at least including the one kind in GSM, WCDMA, CDMA, TD-SCDMA or It is various.
With regard to the specific embodiment of each functional module of RNDIS equipment 70, refer to related in Fig. 2-4 embodiments Description, it is succinct for description, repeat no more here.
One of ordinary skill in the art will appreciate that all or part of flow process in realizing above-described embodiment method, can be Instruct related hardware to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only a kind of preferred embodiment of the invention, and the power of the present invention can not be limited certainly with this Sharp scope, one of ordinary skill in the art will appreciate that all or part of flow process of above-described embodiment is realized, and according to present invention power Profit requires made equivalent variations, still falls within the covered scope of invention.

Claims (12)

1. it is a kind of realize terminal network adaptation method, it is characterised in that be applied in RNDIS equipment, the RNDIS equipment is extremely Less including the static network interface of communication module, dynamic network interface and RNDIS specifications, the RNDIS equipment is by described quiet State network interface is communicatively coupled with terminal, and the RNDIS equipment is communicated with mobile network by dynamic network interface Connection, methods described include:
The business information that the RNDIS equipment is sent by the static network interface terminal, wherein, the static network The network configuration information of the network configuration information and terminal of interface matches, and the network configuration information of the static network interface is protected Hold constant;
The business information is transmitted by the RNDIS equipment to dynamic network interface, and by dynamic network interface to the industry Business information is processed, and makes the business information carry the characteristic information of the network configuration information of dynamic network interface, wherein, institute The network configuration information for stating dynamic network interface is distributed by the mobile network being currently accessed, the dynamic network interface Network configuration information can accordingly change with the change of the network formats of the mobile network being currently accessed;
The business information for carrying characteristic information is sent to described by the communication module and is currently connect by the RNDIS equipment The mobile network for entering.
2. method according to claim 1, it is characterised in that pass through the static network interface in the RNDIS equipment Before the business information that receiving terminal sends, including:The static network interface is set to the terminal by the RNDIS equipment Gateway;
The RNDIS equipment is specially by the business information that the static network interface terminal sends:
The RNDIS equipment receives the business information that the terminal sends by the gateway.
3. method according to claim 1, it is characterised in that the network configuration information and terminal of the static network interface Network configuration information match, the network configuration information of the static network interface keeps constant, specially:
Fixed gateway IP can be set to the static network interface by way of automatic or manual by the RNDIS equipment Network configuration information, so that the network configuration information of the static network interface keeps constant, and makes the static network interface Network configuration information and the network configuration information of terminal match.
4. method according to claim 1, it is characterised in that the network configuration information of the dynamic network interface is by working as What the mobile network of front access was distributed, specially:
The network configuration information of the dynamic network interface is that the RNDIS equipment obtains what is be currently accessed after PPP dials The network configuration information distributed by mobile network, and the network configuration information is configured to the network configuration of dynamic network interface Information.
5. the method according to any one of Claims 1-4, it is characterised in that
The network formats of the mobile network are at least including one or more in GSM, WCDMA, CDMA, TD-SCDMA.
6. it is a kind of realize terminal network adaptation method, it is characterised in that be applied in RNDIS equipment, the RNDIS equipment is extremely Less including the static network interface of communication module, dynamic network interface and RNDIS specifications, the RNDIS equipment is by described quiet State network interface is communicatively coupled with terminal, and the RNDIS equipment is communicated with mobile network by dynamic network interface Connection, methods described include:
The RNDIS equipment receives the business information in the mobile network being currently accessed by the communication module, wherein, it is described Business information carries the characteristic information of the network configuration information of dynamic network interface, the network configuration letter of the dynamic network interface Breath is distributed by the mobile network being currently accessed, and the network configuration information of the dynamic network interface can be with being currently accessed The change of the network formats of mobile network and accordingly change;
The RNDIS equipment is transmitted the business information to static network interface by dynamic network interface, and by static state Network interface is processed to the business information, so that the business information carries the spy of the network configuration information of the terminal Reference ceases, wherein, the network configuration information of static network interface and the network configuration information of terminal match, the static state The network configuration information of network interface keeps constant.
The RNDIS equipment sends the business letter that carry characteristic information to the terminal by the static network interface Breath.
7. method according to claim 6, it is characterised in that pass through the static network interface in the RNDIS equipment Before the business information for carrying characteristic information is sent to the terminal, including:The RNDIS equipment is by the static network Interface is set to the gateway of the terminal;
The RNDIS equipment sends the business information that carry characteristic information to the terminal by the static network interface Specially:
The RNDIS equipment sends the business information that carry characteristic information to the terminal by the gateway.
8. method according to claim 6, it is characterised in that the network configuration information of the dynamic network interface is by working as What the mobile network of front access was distributed, specially:
The network configuration information of the dynamic network interface is that the RNDIS equipment obtains what is be currently accessed after PPP dials The network configuration information distributed by mobile network, and the distributed network configuration information is configured to into dynamic network interface Network configuration information.
9. method according to claim 6, it is characterised in that the network configuration information and terminal of the static network interface Network configuration information match, the network configuration information of the static network interface keeps constant, specially:
Fixed gateway IP can be set to the static network interface by way of automatic or manual by the RNDIS equipment Network configuration information, so that the network configuration information of the static network interface keeps constant, and makes the static network interface Network configuration information and the network configuration information of terminal match.
10. the method according to any one of claim 6 to 9, it is characterised in that
The network formats of the mobile network are at least including one or more in GSM, WCDMA, CDMA, TD-SCDMA.
11. a kind of RNDIS equipment, it is characterised in that include requiring the mould of the method described in 1 to 5 any one for perform claim Block, static network interface of the module at least including communication module, dynamic network interface and RNDIS specifications, the static network Network interface is communicatively coupled with terminal, and the dynamic network interface is communicatively coupled with mobile network.
12. a kind of RNDIS equipment, it is characterised in that include requiring the mould of the method described in 6 to 10 any one for perform claim Block, static network interface of the module at least including communication module, dynamic network interface and RNDIS specifications, the static network Network interface is communicatively coupled with terminal, and the dynamic network interface is communicatively coupled with mobile network.
CN201611169845.9A 2016-12-16 2016-12-16 Method for realizing terminal network adaptation and RNDIS equipment Active CN106533800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611169845.9A CN106533800B (en) 2016-12-16 2016-12-16 Method for realizing terminal network adaptation and RNDIS equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611169845.9A CN106533800B (en) 2016-12-16 2016-12-16 Method for realizing terminal network adaptation and RNDIS equipment

Publications (2)

Publication Number Publication Date
CN106533800A true CN106533800A (en) 2017-03-22
CN106533800B CN106533800B (en) 2019-12-06

Family

ID=58340083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611169845.9A Active CN106533800B (en) 2016-12-16 2016-12-16 Method for realizing terminal network adaptation and RNDIS equipment

Country Status (1)

Country Link
CN (1) CN106533800B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021184291A1 (en) * 2020-03-19 2021-09-23 西安诺瓦星云科技股份有限公司 Data transmission method, apparatus and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1446425A (en) * 2000-04-24 2003-10-01 微软公司 Providing remote-range network driver interface service and radio-frequency medium
US20030200315A1 (en) * 2002-04-23 2003-10-23 Mellanox Technologies Ltd. Sharing a network interface card among multiple hosts
CN101494552A (en) * 2008-01-23 2009-07-29 华为技术有限公司 Method, system and apparatus for establishing business connection
CN103154897A (en) * 2010-10-14 2013-06-12 阿尔卡特朗讯公司 Core abstraction layer for telecommunication network applications
CN103608794A (en) * 2011-06-17 2014-02-26 阿尔卡特朗讯 Method and apparatus for remote delivery of managed usb services via a mobile computing device
CN105430648A (en) * 2015-12-24 2016-03-23 河南软金电子科技有限公司 All-mode intelligent management and control system for mobile communication terminals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1446425A (en) * 2000-04-24 2003-10-01 微软公司 Providing remote-range network driver interface service and radio-frequency medium
US20030200315A1 (en) * 2002-04-23 2003-10-23 Mellanox Technologies Ltd. Sharing a network interface card among multiple hosts
CN101494552A (en) * 2008-01-23 2009-07-29 华为技术有限公司 Method, system and apparatus for establishing business connection
CN103154897A (en) * 2010-10-14 2013-06-12 阿尔卡特朗讯公司 Core abstraction layer for telecommunication network applications
CN103608794A (en) * 2011-06-17 2014-02-26 阿尔卡特朗讯 Method and apparatus for remote delivery of managed usb services via a mobile computing device
CN105430648A (en) * 2015-12-24 2016-03-23 河南软金电子科技有限公司 All-mode intelligent management and control system for mobile communication terminals

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021184291A1 (en) * 2020-03-19 2021-09-23 西安诺瓦星云科技股份有限公司 Data transmission method, apparatus and system

Also Published As

Publication number Publication date
CN106533800B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
US20140086098A1 (en) Method, System and Controlling Bridge for Obtaining Port Extension Topology Information
CN104378752A (en) Network roaming system and method
CN103491653A (en) WiFi and 3G coexisting method based on Android intelligent terminal
CN103888337B (en) The networking method and multisystem all-in-one of multisystem all-in-one
US8856271B2 (en) Data accessing method used for customer premises equipment, and customer premises equipment
CN103415062B (en) A kind of network connection device, wireless router and method for connecting network
CN101741664A (en) Method and device for realizing Ethernet interface system
CN102946447A (en) Long-distance data transmission system and long-distance data transmission method of commercial plant
CN101600224A (en) Wireless data card is supported the implementation method and the wireless data card of a plurality of PDP Contexts
CN103927862B (en) G3 data forwarder and meter recording method for same
CN106056876A (en) Enterprise energy management information acquisition system and method
CN102724658B (en) Terminal is connected concurrent processing method with multichannel data
CN103973569A (en) Data message forwarding method, customer premises equipment and system
CN102118878A (en) Device and method for wireless routing
CN103368847A (en) Broadband convergence communication method and router
CN104539752B (en) Access method and system between multilevel field platform
CN106533800A (en) Method for network adaptation of terminal, and RNDIS equipment
CN100508653C (en) Method and system for radio terminal wire accessing interconnected network
CN111465038A (en) Method and system for realizing two-layer communication between CPE and enterprise router
CN203027289U (en) System for realizing serial communication among computer, host computer and slave computer
CN205681443U (en) Data integrated system based on multiple Virtual network operators
CN109873716A (en) Processing method, device and the storage medium of data
CN205883594U (en) A network system is stepped on to single modem double cassette of developments download number is provided
CN107734007A (en) A kind of communication module and its implementation that PPP Server functions are realized based on PPPD
CN202906960U (en) Multipurpose network switch with POE power supply function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20170322

Assignee: SHENZHEN CITY NETWILL TECHNOLOGY Co.,Ltd.

Assignor: SHENZHEN NEOWAY TECHNOLOGY Co.,Ltd.

Contract record no.: X2021980003906

Denomination of invention: A method of terminal network adaptation and rndis device

Granted publication date: 20191206

License type: Common License

Record date: 20210524

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 518000 room 4401, building 1, Huide building, Beizhan community, Minzhi street, Longhua District, Shenzhen, Guangdong

Patentee after: SHENZHEN NEOWAY TECHNOLOGY Co.,Ltd.

Address before: 518000 floor 4, building 2, LianJian science and Technology Industrial Park, Huarong Road, Dalang street, Longhua New District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN NEOWAY TECHNOLOGY Co.,Ltd.