CN106506405A - Method for connecting network and device - Google Patents

Method for connecting network and device Download PDF

Info

Publication number
CN106506405A
CN106506405A CN201610922135.2A CN201610922135A CN106506405A CN 106506405 A CN106506405 A CN 106506405A CN 201610922135 A CN201610922135 A CN 201610922135A CN 106506405 A CN106506405 A CN 106506405A
Authority
CN
China
Prior art keywords
network
private nni
connecting request
nni
conditioned
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
CN201610922135.2A
Other languages
Chinese (zh)
Other versions
CN106506405B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610922135.2A priority Critical patent/CN106506405B/en
Publication of CN106506405A publication Critical patent/CN106506405A/en
Application granted granted Critical
Publication of CN106506405B publication Critical patent/CN106506405B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/803Application aware

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Present disclose provides a kind of method for connecting network and device, to solve the destination application of mobile terminal in access network services, other application programs may be escaped the technical problem of flow.The method includes:Obtain the network connecting request that application program is initiated;Meet pre-conditioned in the network connecting request, and current cellular networks are when being closed, and call private NNI;According to the private NNI access network services.

Description

Method for connecting network and device
Technical field
It relates to the communications field, more particularly to a kind of method for connecting network and device.
Background technology
With the continuous development of smart mobile phone industry, smart mobile phone becomes increasingly popular.It is full of in current software application market Various fee suction softwares, causes smartphone data flow phenomenon of escaping serious.All kinds of fee suction softwares are stealthily transported on mobile phone backstage OK, uncontrollable flow is produced, seriously compromises the interests of cellphone subscriber.For example, partly to the free soft of cellphone subscriber's offer Part can all be built-in with advertisement, when cellphone subscriber downloads and installs these freewares, can give tacit consent in the initial setting of application Message push function is opened, so as to generate substantial amounts of flow.
In order to stimulate the user of the mobile terminals such as mobile phone, panel computer using the enthusiasm of network service, correlation technique is adopted With to charging mode, by provider and the Virtual network operator cooperation of Web content, can providing for mobile phone users after flow Exempt from the network service of flow.That is, in the case where mobile terminal opens mobile network, user uses some specific nets Traffic fee is exempted from network service, and for example, the application for promoting class is downloaded.Simultaneously, other network services that user uses It is that charge on traffic is carried out to user.
Content of the invention
The purpose of the disclosure is to provide a kind of method for connecting network and device, to solve the destination application of mobile terminal In access network services, other application programs may be escaped the technical problem of flow.
For achieving the above object, the disclosure is adopted the following technical scheme that:
A kind of first aspect, there is provided method for connecting network, including:
Obtain the network connecting request that application program is initiated;
Meet described pre-conditioned in the network connecting request, and current cellular networks are when being closed, and call Private NNI, the private NNI are disclosed network interfaces in system level;
According to the private NNI access network services.
Using above-mentioned method for connecting network, in the case that the cellular network of mobile terminal is closed, specific net Network connection request still can be with access network services by private NNI.And other network connecting requests are directed to, when which When being unsatisfactory for pre-conditioned, as the cellular network of mobile terminal is also turned off, therefore cannot connected network, it is to avoid mobile end In end during specific application program access network services, other application programs are escaped flow.
In conjunction with a first aspect, in the first possible implementation of first aspect, described pre-conditioned, including:Institute The application identities that stating network connecting request includes are consistent with default application identities.That is, identifying with application-specific, example As user identity proves that the application program of (User Identification, Uid) can be closed in the cellular network of mobile terminal In the case of access network services.Wherein, the default application identities can be preset according to the actual requirements.
In conjunction with the first possible implementation of first aspect or first aspect, second in first aspect may Implementation in, the private NNI be connectivity management ConnectivityManager class realize one privately owned Interface, described calls private NNI to include:Network function begun to use according to the ConnectivityManager classes Private NNI described in StartUsingNetworkFeature method calls, wherein, described The incoming parameter of StartUsingNetworkFeature methods includes specifying network interconnection Protocol IP address.The explanation of value It is that ConnectivityManager is a class of Android system bottom, is mainly used in managing the behaviour related with network connection Make.Above-mentioned possible implementation newly defines a privately owned interface in system bottom, it is allowed to specifically apply in mobile terminal Program in the case of cellular network is buttoned-up, by the privately owned interfacing between network.
In conjunction with second possible implementation of first aspect, in the third possible implementation of first aspect In, described according to the private NNI access network services, including:Accessed in the finger according to the private NNI Determine the specific network service of IP address deployment.In above-mentioned possible implementation, the provider of network service can be with net Network operators in co-operation, IP or IP that specific Web Service Deployment is specified by the provider of network service in Virtual network operator Section so that mobile terminal cellular network closing in the case of can also access network services provider provide specific Service.The specific network service can exempt from flow prepaid mobile phone recharging, and application program is downloaded etc..
In some possible implementations, methods described also includes:It is closed in current cellular networks, and institute When stating network connecting request and being unsatisfactory for described pre-conditioned, network connection failure message is returned to the application program.Above-mentioned In possible implementation, in the case of the cellular network of the mobile terminal is buttoned-up, for meeting pre-conditioned network Connection request, the mobile terminal can be by private NNI access network services, for being unsatisfactory for pre-conditioned net Network connection request, the mobile terminal return network connection failure message, forbid that application program networks, it is to avoid flow of escaping.
A kind of second aspect, there is provided network connection device, including:
Acquisition module, is configured to obtain the network connecting request that application program is initiated;
Interface interchange module, the network connecting request for being configured to get in the acquisition module meet pre-conditioned, And current cellular network is when being closed, private NNI is called, the private NNI is in system level Upper disclosed network interface;
Network access module, is configured to access net according to the private NNI that the interface interchange module is called Network is serviced.
In conjunction with second aspect, in the first possible implementation of second aspect, described pre-conditioned, including:Institute The application identities that stating network connecting request includes are consistent with default application identities.
In conjunction with the first possible implementation of second aspect or second aspect, second in second aspect may Implementation in, the private NNI be connectivity management ConnectivityManager class realize one privately owned Interface, the interface interchange module are configured to:The network connecting request got in the acquisition module meet pre-conditioned, And current cellular networks are when being closed, network function begun to use according to the ConnectivityManager classes Private NNI described in StartUsingNetworkFeature method calls, wherein, described The incoming parameter of StartUsingNetworkFeature methods includes specifying IP address.
In conjunction with the third possible implementation of second aspect, in the third possible implementation of second aspect In, the network access module is configured to:Spy in the specified IP address deployment is accessed according to the private NNI Fixed network service.
A kind of third aspect, there is provided network connection device, including:
Processor;
For storing the memorizer of the executable instruction of the processor;
Wherein, the processor is configured to:
Obtain the network connecting request that application program is initiated;
Meet pre-conditioned in the network connecting request, and current cellular networks are when being closed, and call special Network interface, the private NNI are disclosed network interfaces in system level;
According to the private NNI access network services.
In some possible implementations of the third aspect, the processor is additionally operable to execute appointing for above-mentioned first aspect A kind of method described in possible implementation.
A kind of fourth aspect, there is provided computer-readable medium, for storing computer program, the computer program includes using Instruction in the method executed in the arbitrary possible implementation of first aspect or first aspect.
The disclosure on the basis of the implementation that above-mentioned each side are provided can also be further combined to provide more Many implementations.Other feature and advantage of the disclosure will be described in detail in subsequent specific embodiment part.
Description of the drawings
Accompanying drawing is for providing further understanding of the disclosure, and constitutes the part of description, with following tool Body embodiment is used for explaining the disclosure together, but does not constitute restriction of this disclosure.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of implementation environment of the disclosure according to an exemplary embodiment.
Fig. 2 is a kind of schematic flow sheet of method for connecting network of the disclosure according to an exemplary embodiment.
Fig. 3 is a kind of schematic flow sheet of method for connecting network that the disclosure is implemented to exemplify according to another exemplary.
Fig. 4 is a kind of schematic flow sheet of method for connecting network of the disclosure according to further example embodiment.
Fig. 5 is a kind of schematic flow sheet of method for connecting network of the disclosure according to another exemplary embodiment.
Fig. 6 is a kind of schematic flow sheet of method for connecting network of the disclosure according to another exemplary embodiment.
Fig. 7 is a kind of block diagram of network connection device of the disclosure according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of network connection device of the disclosure according to further example embodiment.
Specific embodiment
Here in detail exemplary embodiment will be illustrated, its example is illustrated in the accompanying drawings.Explained below is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.Conversely, they be only with as appended by The example of consistent apparatus and method in terms of some that described in detail in claims, the disclosure.
Fig. 1 is a kind of schematic diagram of the implementation environment according to an exemplary embodiment.As shown in figure 1, the enforcement ring Border includes mobile terminal 1 00.The mobile terminal 1 00 can be the user equipment by mobile communications network access network services, The such as user equipment such as smart mobile phone, panel computer, notebook computer.Fig. 1 is smart mobile phone illustrating with mobile terminal 1 00.
Specifically, terminal unit 100 can be provided with multiple application programs, and application program is sent out in access network services Network connecting request is played, based on the network connecting request, the mobile terminal can connect mobile communications network, access network clothes Business.Wherein, Fig. 1 shows the service for carrying out prepaid mobile phone recharging on network.
Fig. 2 is a kind of flow chart of the method for connecting network according to an exemplary embodiment, to solve correlation technique Middle destination application in access network services, may escape the technical problem of flow by other application programs.The present embodiment shows The method for connecting network for going out can apply to mobile terminal as shown in Figure 1, as shown in Fig. 2 the method includes:
In step 201, the network connecting request that application program is initiated is obtained.
In step 202., meet pre-conditioned in the network connecting request, and current cellular networks are closed When, call private NNI.
Wherein, the private NNI is disclosed network interface in system level.
In Android platform, the connectivity management ConnectivityManager class of system bottom is mainly responsible for inquiry net Network connection status and give notice when connection status is changed.Its main function responsibility is as follows:Monitoring is network-like State, send when network state changes broadcast notify, when can attempt connecting after network connection failure other networks, for application Program provides API (Application Programming Interface, application programming interface), for obtaining network Status information etc..
Illustratively, after the network connecting request of application program transmission is received, by ConnectivityManager classes For the API that application program is provided, whether the cellular network that can inquire about the mobile terminal closes.If cellular network is opened, should Mobile terminal can be according to existing flow process according to the network connecting request connection network.If the cellular network is closed, and described Network connecting request meets pre-conditioned, and for example, the application identities in the network connecting request are consistent with default application identities, Private NNI is then called.
What deserves to be explained is, as the private NNI is disclosed network interface in system level, therefore basis The private NNI, application program can also access networks in the case where the cellular network of application is closed.
In step 203, according to the private NNI access network services.
Using above-mentioned method for connecting network, in the case that the cellular network of mobile terminal is closed, specific net Network connection request still can be with access network services by private NNI.And other network connecting requests are directed to, when which When being unsatisfactory for pre-conditioned, as the cellular network of mobile terminal is also turned off, therefore cannot connected network, it is to avoid mobile end In end during specific application program access network services, other application programs are escaped flow.
Fig. 3 is a kind of flow chart of the method for connecting network that implements to exemplify according to another exemplary.The present embodiment is illustrated The method for connecting network can apply to mobile terminal as shown in Figure 1, as shown in figure 3, the method includes:
In step 301, the network connecting request that application program is initiated is obtained.
In step 302, the application identities for including in the network connecting request are consistent with default application identities, and are worked as When front cellular network is closed, private NNI is called.
In step 305, according to the private NNI access network services.
That is, identifying with application-specific, the application program of such as Uid can be closed in the cellular network of mobile terminal Access network services in the case of closing.Wherein, the default application identities can be preset according to the actual requirements.
Above-mentioned be merely illustrative, the disclosure can also preset in the specific implementation other conditions with control apply journey Authority of the sequence by private NNI access network services, for example, it is also possible to determine the URL in the network connecting request Whether (Uniform Resource Locator, URL) is consistent with default URL.The present invention is not limited to this Fixed.
Using said method, in the case where the cellular network of mobile terminal is closed, specific network connection Request still can be with access network services by private NNI.And other network connecting requests are directed to, when which is unsatisfactory for When pre-conditioned, as the cellular network of mobile terminal is also turned off, therefore cannot connected network, it is to avoid special in mobile terminal During fixed application program access network services, other application programs are escaped flow.
Fig. 4 is a kind of flow chart of the method for connecting network that implements to exemplify according to another exemplary.The present embodiment is illustrated The method for connecting network can apply to mobile terminal as shown in Figure 1, as shown in figure 4, the method includes:
In step 401, the network connecting request that application program is initiated is obtained.
In step 402, determine that current cellular network is closed.
In step 403, determine whether the network connecting request meets pre-conditioned.
Further, when the network connecting request meets described pre-conditioned, execution step 404 and step 405;? When the network connecting request is unsatisfactory for described pre-conditioned, execution step 406.
In step 404, when the network connecting request meets described pre-conditioned, private NNI is called.
In step 405, according to the private NNI access network services.
In a step 406, when the network connecting request is unsatisfactory for described pre-conditioned, return to the application program Network connection failure message.
So, in the case of the cellular network of the mobile terminal is buttoned-up, for meeting pre-conditioned network connection Request, the mobile terminal can be connected for pre-conditioned network is unsatisfactory for by private NNI access network services Request is connect, the mobile terminal returns network connection failure message, forbid that application program networks, it is to avoid flow of escaping.
Fig. 5 is a kind of flow chart of the method for connecting network that implements to exemplify according to another exemplary.The present embodiment is illustrated The method for connecting network can apply to mobile terminal as shown in Figure 1, as shown in figure 5, the method includes:
In step 501, the network connecting request that application program is initiated is obtained.
In step 502, meet pre-conditioned in the network connecting request, and current cellular networks are closed When, according to the StartUsingNetworkFeature method call private NNIs of ConnectivityManager classes.
Wherein, the private NNI is the privately owned interface that ConnectivityManager classes are realized, described The incoming parameter of StartUsingNetworkFeature methods includes specifying IP address.
Wherein, the specified IP address can mobile terminal parse the URL carried in the network connecting request and obtain IP address, indicates position of the network service of network connecting request access on network.
In step 503, according to the private NNI access network services.
The explanation of value, ConnectivityManager are classes of Android system bottom, be mainly used in management and The related operation of network connection.Above-mentioned possible implementation newly defines a privately owned interface in system bottom, it is allowed to mobile In terminal, specific application program is in the case of cellular network is buttoned-up, by the privately owned interfacing between network.
So, in the case where the cellular network of mobile terminal is closed, specific network connecting request passes through Private NNI still can be with access network services.And be directed to other network connecting requests, when its be unsatisfactory for pre-conditioned When, as the cellular network of mobile terminal is also turned off, therefore cannot connected network, it is to avoid specifically apply in mobile terminal During routine access network service, other application programs are escaped flow.
Fig. 6 is a kind of flow chart of the method for connecting network that implements to exemplify according to another exemplary.The present embodiment is illustrated The method for connecting network can apply to mobile terminal as shown in Figure 1, as shown in fig. 6, the method includes:
In step 601, the network connecting request that the application program of mobile terminal is initiated is obtained.
In step 602, meet pre-conditioned in the network connecting request, and current cellular networks are closed When, dedicated network according to the StartUsingNetworkFeature method calls of ConnectivityManager classes connects Mouthful.
Wherein, the private NNI is the privately owned interface that ConnectivityManager classes are realized, described The incoming parameter of StartUsingNetworkFeature methods includes specifying network interconnection Protocol IP address.
In step 603, accessed in the specific network service for specifying IP address deployment according to the private NNI.
Wherein, the provider of network service can be with Virtual network operator cooperation, and the provider of network service is by specific net IP the or IP sections that network service arrangement is specified in Virtual network operator, so that mobile terminal is in the case of cellular network closing Can also access network services provider provide specific service.The specific network service can exempt from flow mobile phone Supplement with money, application program is downloaded etc..
Illustratively, the specific network service can be free charging mobile phone flow.Wherein, the provider of mobile phone flow with And Virtual network operator can be consulted in advance, it is stipulated that smart phone user fills the campus network of flow generation by offer by network Business undertakes.So, when smart mobile phone fills flow by mobile communications network on the net, can disappear in the request for setting up network connection The mark of provider is carried in breath, after Virtual network operator detects the mark of provider, can carry out charging to provider.
Under a kind of possible application scenarios, the flow package of smart mobile phone has been used up, and surrounding is without WLAN (Wireless Local Area Networks, WLAN), now, if smart mobile phone will be undertaken with flow again Costly campus network.At this time user would generally buy flow summation bag, be continuing with the flow of material benefit.However, now The purchasing behavior of almost all of flow bag is required for buying by the Internet, and so, in correlation technique, smart mobile phone is being opened Flow is bought in the case of cellular network, other software networking can be caused to expend a large amount of high price flows.
In the disclosed embodiments, smart mobile phone can be in the case where cellular network be closed, it is allowed to buy the net of flow Network connection request is networked by private NNI.As cellular network is turned off, therefore other network connecting requests cannot connect Open network, it is to avoid smart mobile phone when flow is bought, escape flow by other application programs.
Above-mentioned be merely illustrative, the specific network service can also be other network services, and for example, information is pushed away Extensively.Illustratively, after cell phone manufacturer issues Mobile phone, in order to attract the official website of user's entry firm, cell phone manufacturer can and net Network operator consults in advance, it is stipulated that user accesses the traffic fee of official website generation and undertaken by cell phone manufacturer.So, smart mobile phone Browser in the case where cellular network is closed, can initiate asking for the official website of the access cell phone manufacturer by private NNI Seek message, it is achieved that exempt from traffic fee connection network and avoid when specific network service is accessed, other of smart mobile phone should Escaped flow with program.
Following device embodiments for the disclosure, can be used for executing disclosed method embodiment.For the disclosure is filled The details not disclosed in embodiment is put, disclosed method embodiment is refer to.
Fig. 7 is a kind of block diagram of the disclosure according to an exemplary embodiment.The device can pass through software, hardware Or both be implemented in combination with become some or all of of mobile terminal.Wherein, the network connection device 700 can also be configured In mobile terminal as shown in Figure 1.As shown in fig. 7, the device 700 can include:
Acquisition module 710, is configured to obtain the network connecting request that application program is initiated;
Interface interchange module 720, the network connecting request satisfaction for being configured to get in the acquisition module 710 are preset Condition, and during current cellular networks closing, call private NNI;
Network access module 730, is configured to the private NNI called according to the interface interchange module 720 Access network services.
Using said apparatus, in the case where the cellular network of mobile terminal is closed, specific network connection Request still can be with access network services by private NNI.And other network connecting requests are directed to, when which is unsatisfactory for When pre-conditioned, as the cellular network of mobile terminal is also turned off, therefore cannot connected network, it is to avoid special in mobile terminal During fixed application program access network services, other application programs are escaped flow.
Alternatively, described pre-conditioned including, application identities that the network connecting request includes and default application mark Sensible symbol.That is, identifying with application-specific, the application program of such as Uid can be closed in the cellular network of mobile terminal Access network services in the case of closing.Wherein, the default application identities can be preset according to the actual requirements.Above-mentioned simply act Example explanation, the disclosure can also preset other conditions to control application program by private NNI in the specific implementation The authority of access network services, for example, it is also possible to determine whether the URL in the network connecting request is consistent with default URL.This Invention is not limited to this.
Alternatively, the private NNI is the privately owned interface that ConnectivityManager classes are realized, described Interface interchange module 720 is configured to:The network connecting request got in the acquisition module 710 meet pre-conditioned, and When current cellular networks are closed, according to the ConnectivityManager classes Private NNI described in StartUsingNetworkFeature method calls, wherein, described The incoming parameter of StartUsingNetworkFeature methods includes specifying IP address.
The explanation of value, ConnectivityManager are classes of Android system bottom, be mainly used in management and The related operation of network connection.Above-mentioned possible implementation newly defines a privately owned interface in system bottom, it is allowed to mobile In terminal, specific application program is in the case of cellular network is buttoned-up, by the privately owned interfacing between network.
Alternatively, the network access module 730 is configured to:Accessed according to the private NNI and specified described The specific network service of IP address deployment.
That is, the provider of network service can be with Virtual network operator cooperation, the provider of network service will be specific IP the or IP sections specified in Virtual network operator of Web Service Deployment so that the feelings that mobile terminal is closed in cellular network Under condition can also access network services provider provide specific service.The specific network service can exempt from flow Prepaid mobile phone recharging, application program download etc..
What deserves to be explained is, the above Module Division to network connection device is a kind of division of logic function, actual realization When can have other dividing mode.Also, the physics realization of above-mentioned each functional module has been likely to multiple implementations.
Also, the device in regard to above-described embodiment, wherein modules execute the concrete mode of operation relevant It has been described in detail in the embodiment of the method, explanation will be not set forth in detail herein.
Fig. 8 is the block diagram of another kind of network connection device 800 according to an exemplary embodiment.For example, device 800 Can be mobile phone, computer, tablet device etc..
With reference to Fig. 8, device 800 can include following one or more assemblies:Process assembly 802, memorizer 804, electric power Component 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and Communication component 816.
The integrated operation of 802 usual control device 800 of process assembly, such as with display, call, data communication, phase The associated operation of machine operation and record operation.Process assembly 802 can refer to execute including one or more processors 820 Order, to complete all or part of step of above-mentioned method for connecting network.Additionally, process assembly 802 can include one or more Module, the interaction being easy between process assembly 802 and other assemblies.For example, process assembly 802 can include multi-media module, To facilitate the interaction between multimedia groupware 808 and process assembly 802.
Memorizer 804 is configured to store various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application program for operating on device 800 or method, and contact data, telephone book data disappear Breath, picture, video etc..Memorizer 804 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) erasable are compiled Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of device 800.Electric power assembly 806 can include power management system System, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for device 800.
Multimedia groupware 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and the touch or slide related persistent period and pressure.In certain embodiments, many matchmakers Body component 808 includes a front-facing camera and/or post-positioned pick-up head.When device 800 be in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and Post-positioned pick-up head can be a fixed optical lens system or there is focusing and optical zoom capabilities.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 includes a Mike Wind (MIC), when device 800 is in operator scheme, such as call model, logging mode and speech recognition mode, mike is matched somebody with somebody It is set to reception external audio signal.The audio signal for being received can be further stored in memorizer 804 or via communication set Part 816 sends.In certain embodiments, audio-frequency assembly 810 also includes a speaker, for exports audio signal.
I/O interfaces 812 are to provide interface between process assembly 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 814 includes one or more sensors, comments for providing the state of various aspects for device 800 Estimate.For example, sensor cluster 814 can detect the opening/closed mode of device 800, and the relative localization of component is for example described Display and keypad of the component for device 800, sensor cluster 814 can be with 800 1 components of detection means 800 or device Position change, user is presence or absence of with what device 800 was contacted, 800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor cluster 814 can include proximity transducer, be configured to detect when without any physical contact The presence of object nearby.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for into Used in as application.In certain embodiments, the sensor cluster 814 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary enforcement In example, communication component 816 receives the broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 also includes near-field communication (NFC) module, to promote junction service.Example Such as, NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned method for connecting network.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include that the memorizer 804 for instructing, above-mentioned instruction can be executed to complete above-mentioned network connection side by the processor 820 of device 800 Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to other embodiment party of the disclosure after considering description and putting into practice the disclosure Case.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or adaptability Change follows the general principle of the disclosure and including the undocumented common knowledge or usual skill in the art of the disclosure Art means.Description and embodiments be considered only as exemplary, the true scope of the disclosure and spirit by claim below Point out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (9)

1. a kind of method for connecting network, it is characterised in that include:
Obtain the network connecting request that application program is initiated;
Meet pre-conditioned in the network connecting request, and current cellular networks are when being closed, and call dedicated network Interface, the private NNI are disclosed network interfaces in system level;
According to the private NNI access network services.
2. method according to claim 1, it is characterised in that described pre-conditioned, including:
The application identities that the network connecting request includes are consistent with default application identities.
3. method according to claim 1 and 2, it is characterised in that the private NNI is connectivity management The privately owned interface that ConnectivityManager classes are realized, described calls private NNI to include:
Network function StartUsingNetworkFeature side begun to use according to the ConnectivityManager classes Method calls the private NNI, and wherein, the incoming parameter of the StartUsingNetworkFeature methods includes referring to Determine network interconnection Protocol IP address.
4. method according to claim 3, it is characterised in that described network clothes are accessed according to the private NNI Business, including:
Specific network service in the specified IP address deployment is accessed according to the private NNI.
5. a kind of network connection device, it is characterised in that include:
Acquisition module, is configured to obtain the network connecting request that application program is initiated;
Interface interchange module, the network connecting request for being configured to get in the acquisition module meets pre-conditioned, and works as When front cellular network is closed, private NNI is called, the private NNI is open in system level Network interface;
Network access module, is configured to access network clothes according to the private NNI that the interface interchange module is called Business.
6. device according to claim 5, it is characterised in that described pre-conditioned, including
The application identities that the network connecting request includes are consistent with default application identities.
7. the device according to claim 5 or 6, it is characterised in that the private NNI is connectivity management The privately owned interface that ConnectivityManager classes are realized, the interface interchange module are configured to:
The network connecting request got in the acquisition module meets pre-conditioned, and current cellular networks are closed When, network function StartUsingNetworkFeature side begun to use according to the ConnectivityManager classes Method calls the private NNI, and wherein, the incoming parameter of the StartUsingNetworkFeature methods includes referring to Determine IP address.
8. device according to claim 7, it is characterised in that the network access module is configured to:
Specific network service in the specified IP address deployment is accessed according to the private NNI.
9. a kind of network connection device, it is characterised in that include:
Processor;
For storing the memorizer of the executable instruction of the processor;
Wherein, the processor is configured to:
Obtain the network connecting request that application program is initiated;
Meet pre-conditioned in the network connecting request, and current cellular networks are when being closed, and call dedicated network Interface, the private NNI are disclosed network interfaces in system level;Net is accessed according to the private NNI Network is serviced.
CN201610922135.2A 2016-10-21 2016-10-21 Method for connecting network and device Active CN106506405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610922135.2A CN106506405B (en) 2016-10-21 2016-10-21 Method for connecting network and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610922135.2A CN106506405B (en) 2016-10-21 2016-10-21 Method for connecting network and device

Publications (2)

Publication Number Publication Date
CN106506405A true CN106506405A (en) 2017-03-15
CN106506405B CN106506405B (en) 2019-09-10

Family

ID=58319383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610922135.2A Active CN106506405B (en) 2016-10-21 2016-10-21 Method for connecting network and device

Country Status (1)

Country Link
CN (1) CN106506405B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2742616A2 (en) * 2011-08-10 2014-06-18 Samsung Electronics Co., Ltd. System and method for applying extended accessing barring in wireless communication system
CN104902454A (en) * 2015-06-30 2015-09-09 北京奇虎科技有限公司 Method, gateway and network access system for controlling data acquired by mobile terminal
CN105050070A (en) * 2015-07-07 2015-11-11 山东贝丰信息科技有限公司 Free flux usage method and system
CN105848117A (en) * 2015-07-31 2016-08-10 维沃移动通信有限公司 Recharging method and recharging device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2742616A2 (en) * 2011-08-10 2014-06-18 Samsung Electronics Co., Ltd. System and method for applying extended accessing barring in wireless communication system
CN104902454A (en) * 2015-06-30 2015-09-09 北京奇虎科技有限公司 Method, gateway and network access system for controlling data acquired by mobile terminal
CN105050070A (en) * 2015-07-07 2015-11-11 山东贝丰信息科技有限公司 Free flux usage method and system
CN105848117A (en) * 2015-07-31 2016-08-10 维沃移动通信有限公司 Recharging method and recharging device

Also Published As

Publication number Publication date
CN106506405B (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN104159255B (en) Terminal room shares the method and device of network
CN104159226B (en) Method for connecting network and device
KR101634473B1 (en) Apparatus and methods for provisioning subscriber identity data in a wireless network
CN105392213B (en) Connect the method and device of controlled smart machine
CN106792640A (en) The communication means of virtual SIM card, mobile terminal and server
CN106376043A (en) Automatic switching method and device for SIM (Subscriber Identification Module) card
CN105516508A (en) Method and device for activating virtual SIM card
CN105212821B (en) Toilet seat method for heating and controlling and device
CN103888290A (en) Configuration information recovery method and device
CN107820300A (en) Network search method and device
CN106201610A (en) Web application accesses the method and device of the primary function of terminal
CN104320774A (en) Updating method, device and facility
CN105049219B (en) Flow booking method and system, mobile terminal and server
CN104537526B (en) Method, terminal and the device of numerical value transfer
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN106101177B (en) Network Access Method and device
CN105763601A (en) File sharing method and device
CN105657805A (en) Method and device for accessing intelligent equipment into wireless network
CN107943370A (en) Advertisement display method, device and storage medium
CN105307288B (en) The method and apparatus disconnected
CN106452914B (en) Method for configuring routers and device
CN105376399B (en) For controlling the method and device of smart machine
CN107436782A (en) Application program silence installation method and device
CN104158851B (en) A kind of dissemination system of Network, method and apparatus
CN106850556A (en) service access method, device and equipment

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