CN105357373B - Multi net voting based on android system simultaneously uses method and system - Google Patents
Multi net voting based on android system simultaneously uses method and system Download PDFInfo
- Publication number
- CN105357373B CN105357373B CN201510648702.5A CN201510648702A CN105357373B CN 105357373 B CN105357373 B CN 105357373B CN 201510648702 A CN201510648702 A CN 201510648702A CN 105357373 B CN105357373 B CN 105357373B
- Authority
- CN
- China
- Prior art keywords
- value
- network
- android system
- flag
- mobile
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/725—Cordless telephones
- H04M1/72502—Cordless telephones with one base station connected to a single line
- H04M1/72505—Radio link set-up procedures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
Abstract
The present invention provides a kind of Multi net voting based on android system and uses method and system, and this method includes that primary the dialling positioned at RIL layer of mobile data network of advance shielding Android system drives;According to instruction, the switch of mobile data network connection is opened, Flag logo files are revised as initiation value;When the value for monitoring Flag logo files is initiation value, operation is pre-installed in Linux layers of mobile network's dial-up program to obtain the IP address of current network;IP address is added in routing table;Socket sockets are established to carry out mobile network's connection in application layer according to routing table.Since customized mobile network's dial-up program is embedded in the Linux layers of Android system, when receiving the first instruction, the switch of mobile data network connection is opened, directly operation is pre-installed in Linux layers of mobile network's dial-up program, without via ccf layer.Therefore, it is possible to avoid the priority judgment mechanism of ccf layer, it can realize that mobile network is used in combination with other internetwork connection modes.
Description
Technical field
The present invention relates to intelligent terminal fields, more particularly to a kind of Multi net voting based on android system and use method
And system.
Background technology
Android system smart mobile phone on the market or tablet computer, usually used wifi online or mobile data (including 3G,
4G, GPRS) connection mode, wifi and mobile data cube computation can only choose one of two, and the default priority of wifi connections is more
Height, i.e., in the case of opening mobile data services and wifi functions at the same time, Android system can judge identification and default priority makes
Surfed the Internet with wifi, and this two datas link can not be made to exist simultaneously and use simultaneously, in this way caused by the result is that cannot achieve
Certain Android layer applications (such as web browser) are surfed the Internet using wifi connections and certain other applications use mobile data stream simultaneously
Amount business is surfed the Internet.
Dial-up access based on point-to-point protocol (Point to Point Protoco, PPP) is current permission ISP
The network access mode that (Internet Service Provider, i.e. ISP) is provided, it is wide for ADSL
Band dialing, access service are mainly completed by PPPoE (PPP over Ethernet).PPPoE agreements are one and encapsulate PPP frames
Agreement in ethernet frame.Ppp protocol is communicated with one another the point formulated to connect computer and server by telephone wire
To the communication protocol of point.Internet Service Provider can provide PPP connections, and the server of such provider can respond user
Request, by user ask receive and be sent on network, then the response on network is sent back to.
It according to the layering of Android system, to realize mobile data flow business, need to dial up on the telephone by PPPoE, from answering
Started with the APP softwares of layer (Applications), ccf layer (Framework), Linux inner core need to be passed through downwards
(Kernel), hardware base band (Baseband), and PPPOE is in Linux layers, and the RIL by ccf layer between kernel is needed to use
Family abstract space carries out PPPOE calling according to some strategies.
The radio interface layer (RIL) of Android provides Android telephone services (android.telephony) and nothing
Level of abstraction between line electricity hardware.RIL is that communication is unrelated, provides the network support based on GSM.
The common flows that dial up on the telephone of Android are by RIL layers by Android telephone services to hardware communication module
Correlation Request requests are sent, RIL layers of RILD finger daemons is sent commands to by Socket from Java layers first and does phase
It should handle, process calls the driver (such as AT orders) of hardware communication module to carry out intercommunication with hardware still further below, and hardware is to life
It enables response, RIL obtain this Response responses, realizes data interaction, it is final that the PPPOE scripts that dial up on the telephone is called to realize ppp
Connection Service.
The open and close of Wifi first by the event of application triggers (such as user click open icon), then
Incoming ccf layer, ccf layer starts wpa_supplicant, while establishing socket connections and being led to wpa_supplicant
Letter, include to wpa_supplicant control with obtain the passback result of wpa_supplicant.However, due to wifi's
WLAN0 connections are also at Linux layers, and Android ccf layer has priority judgment mechanism, if wifi connection WLAN0 are once established,
Ccf layer can interrupt ppp0 connections and WLAN0 is kept to connect, and can not realize that WLAN0 and ppp0 links exist simultaneously simultaneously, in this way
The purpose done is that user is prevented to be also consumed by mobile network data traffic while surfing the Internet using wifi.
Linux layers of WLAN0 and ppp0 link is solved to exist simultaneously and Android application layer app softwares can freely distribute not
Same data flow is walked from which link, and common practice needs to change Android ccf layer ril interface codes, is recognized in ccf layer
Linux layers when set up WLAN0 and ppp0 simultaneously and link, not give tacit consent to and cut off ppp0, and call java external commands
Routing table is set.Since the design of Android ccf layer code structure is tight, modification difficulty is larger, and cannot keep ecosystem after changing
The stability of Android system layer belongs to customized type system, usually inconvenient modification.
Invention content
Based on this, it is necessary to offer it is a kind of simple and realize that the Multi net voting based on android system of Multi net voting is used in combination
Method and system.
Multi net voting based on android system and with method, including:
The primary mobile data network for being located at RIL layers of shielding Android system, which dials, in advance drives;
Netlisten scripts are run when Android system starts to monitor the value of the Flag logo files of user's space;
According to the first instruction, the switch of mobile data network connection is opened, and the Flag of the user's space is indicated into text
The value of part is revised as initiation value;
When the value that the Netlisten scripts monitor the Flag logo files is initiation value, installation in advance is run
In Linux layers of mobile network's dial-up program to obtain the IP address of current network;
The IP address of the current network is added in the routing table of PPPoE data connections;
Socket sockets are established to carry out mobile network's connection in application layer according to the routing table.
In wherein a kind of embodiment, the Netlisten scripts that run when Android system starts are to monitor user
The step of value of the Flag logo files in space includes:
Netlisten scripts are run when Android system starts to detect whether user's space there are Flag logo files;
If nothing, Flag logo files are created, the value of the Flag logo files is set off value and are monitored in real time
The value of Flag logo files;
If so, then monitoring the value of the Flag logo files of user's space in real time.
In wherein a kind of embodiment, mobile network's dial-up program that Linux is installed in the operation in advance is worked as with obtaining
The step of IP address of preceding network includes:
Mobile network's dial-up program that operation is pre-installed in Linux layers inquires hardware communication module to obtain the shape of hardware
State;
When the hardware state of acquisition is normal, dialing obtains the IP address of current network.
In wherein a kind of embodiment, further include:According to the second instruction, the switch of mobile data network connection is closed,
And the value of the Flag logo files of the user's space is revised as close value;
When the value that the Netlisten scripts monitor the Flag logo files is close value, the movement is terminated
Network dial process.
In wherein a kind of embodiment, the switch of mobile data network connection is opened according to the first instruction described, and
Before or after the step of value of the Flag logo files of the user's space is revised as initiation value, further include:
It is instructed according to third, opens the switch of WIFI network connection;And/or according to the 4th instruction, open Ethernet connection
Switch;
Start wireless network connection program in ccf layer and establishes Socket sockets to carry out WLAN0 network connections, and/
Or starts Ethernet linker in ccf layer and establish Socket sockets to carry out Ethernet connection.
Multi net voting based on android system and with system, including:
Shroud module, the mobile data network dialing driving that is located at RIL layer primary for shielding Android system in advance;
Netlisten scripts, for running the Flag logo files to monitor user's space when Android system starts
Value;
First starting module, for according to the first instruction, opening the switch of mobile data network connection, and by the user
The value of the Flag logo files in space is revised as initiation value;
Mobile network's dial-up program is pre-installed in Linux layers, described for being monitored in the Netlisten scripts
Operation is to obtain the IP address of current network when the value of Flag logo files is initiation value;
Routing table, for the IP address of the current network to be added in the routing table of PPPoE data connections;
First communication module, for establishing Socket sockets in application layer to carry out mobile network according to the routing table
Connection.
In wherein a kind of embodiment, the Netlisten scripts are specifically used for, and are run when Android system starts
Netlisten scripts are to detect whether user's space has Flag logo files;If nothing, Flag logo files are created, it will be described
The value of Flag logo files is set off value and monitors the value of Flag logo files in real time;If so, then monitoring user's sky in real time
Between Flag logo files value.
In wherein a kind of embodiment, mobile network's dial-up program specifically includes:
Query unit, for inquiring hardware communication module to obtain the state of hardware;
Dialing unit, when the hardware state of acquisition is normal, dialing obtains the IP address of current network.
In wherein a kind of embodiment, further include:
Closedown module, for according to the second instruction, closing the switch of mobile data network connection, and by the user's space
The values of Flag logo files be revised as close value;
Module is terminated, when the value for monitoring the Flag logo files when the Netlisten scripts is close value,
Terminate mobile network's dialing process.
In wherein a kind of embodiment, further include:
Second starting module opens the switch of WIFI network connection for being instructed according to third;And/or third starts mould
Block, for according to the 4th instruction, opening the switch of Ethernet connection;
Second communication module, for starting wireless network connection program in ccf layer and establishing Socket sockets to carry out
WLAN0 network connections and/or third communication module, for starting Ethernet linker in ccf layer and establishing Socket sets
Word is connect to carry out Ethernet connection.
Since customized mobile network's dial-up program is embedded in the Linux layers of Android system, first is being received
When instruction, the switch of mobile data network connection is opened, directly operation is pre-installed in Linux layers of mobile network's dialing journey
Sequence, without via ccf layer.Therefore, it is possible to avoid the priority judgment mechanism of ccf layer.When Android system is using mobile number
When according to network connection, when starting WIFI connection types or other connection internetwork connection modes, since mobile network's link avoids
The priority of ccf layer judges, therefore, it is possible to realize that mobile network is used in combination with other internetwork connection modes.This method it is not necessary to modify
Android ccf layer code structure, therefore, the method for the realization Multi net voting is simple and can guarantee the stabilization of Android system operation
Property.
Description of the drawings
Fig. 1 is a kind of Multi net voting based on android system of embodiment and the flow chart with method;
Fig. 2 is a kind of work flow diagram of the Netlisten scripts of embodiment;
Fig. 3 is a kind of work flow diagram of mobile network's dial-up program of embodiment;
Fig. 4 is the Multi net voting based on android system of another embodiment and the flow chart with method;
Fig. 5 be a kind of mobile network of embodiment with and net or WIFI flow diagram;
Fig. 6 is a kind of Multi net voting based on android system of embodiment and the module diagram with system.
Specific implementation mode
As shown in Figure 1, Multi net voting based on android system and with method, includes the following steps:
S101:The primary mobile data network for being located at RIL layers of shielding Android system, which dials, in advance drives.
The primary mobile data network dialing driving of Android system does not support Multi net voting to be used in combination, to realize the more of Android system
Network is used in combination, and the primary mobile network's dialing driving for being located at RIL layers of Android system need to be shielded, specifically, removing/system/
Lib/librefernce-ril.so files, driving journey of so library files for the application layer docking hardware module of Android system
The calling of sequence and PPPoE dial-up connections.
S102:Netlisten scripts are run when Android system starts to monitor the Flag logo files of user's space
Value.
Android system gives tacit consent to load Service on startup, and automatic running Netlisten scripts are to monitor user's space
The value of Flag logo files.In a particular embodiment, the value of Flag logo files includes ON and OFF.Work as mobile data network
When the switch of network connection is open state, the value of the Flag logo files of user's space is ON, as initiation value;Work as mobile data
When the switch of network connection is in off state, the value of the Flag logo files of user's space is OFF, as close value.
S105:According to the first instruction, the switch of mobile data network connection is opened, and the Flag of user's space is indicated into text
The value of part is revised as initiation value.
In a particular embodiment, the first instruction can be that " mobile data " unlatching of user's click Android system is pressed
Button, in other embodiments, or start a certain application program, the internetwork connection mode of application program acquiescence is
Mobile data network connects, for example, in automatic steering control of farm mechanism system, needs to connect background server by mobile 3G network
Base station data is obtained, the same of the application program is opened in the internetwork connection mode mobile data network connection of navigation system setting
When, open the switch of " mobile data ".According to first instruction, the switch of mobile data network connection is opened, meanwhile, by user
The value of the Flag logo files in space is revised as initiation value, initiation value ON.
S107:When the value that Netlisten scripts monitor Flag logo files is initiation value, operation is pre-installed in
Linux layers of mobile network's dial-up program is to obtain the IP address of current network.
The customized mobile network's dial-up program/etc/ppp/pppd can be used C language into edlin, and be embedded into peace
The Linux layers of tall and erect system complete dialing to obtain the IP address of current network by customized mobile dial program.Specific
Embodiment in, the shell scripts that need to use of dialling can be gprs-connect-chat, chap-secrets etc..
S109:The IP address of current network is added in the routing table of PPPoE data connections.
After mobile network's dial-up program successful connection, the IP address of the current network of acquisition is added to ppp0 data and is connected
In the routing table connect.
S111:Socket sockets are established to carry out mobile network's connection in application layer according to routing table.
According to routing table, Socket sockets are established to carry out mobile network's connection in application layer, pass through mobile data network
Network and the background server of application program establish TCP or UDP message connects row data communication of going forward side by side.
Since customized mobile network's dial-up program is embedded in the Linux layers of Android system, first is being received
When instruction, the switch of mobile data network connection is opened, directly operation is pre-installed in Linux layers of mobile network's dialing journey
Sequence, without via ccf layer.Therefore, it is possible to avoid the priority judgment mechanism of ccf layer.When Android system is using mobile number
When according to network connection, when starting WIFI connection types or other connection internetwork connection modes, since mobile network's link avoids
The priority of ccf layer judges, therefore, it is possible to realize that mobile network is used in combination with other internetwork connection modes.This method it is not necessary to modify
Android ccf layer code structure, therefore, the method for the realization Multi net voting is simple and can guarantee the stabilization of Android system operation
Property.
In another embodiment, step S103 is specifically included:
S1031:Netlisten scripts are run when Android system starts to detect whether user's space there are Flag mark texts
Part.
If nothing thens follow the steps S1032:Flag logo files are created, the value of Flag logo files is set off value
And monitor the value of Flag logo files in real time.
If so, thening follow the steps S1033:Monitor the value of the Flag logo files of user's space in real time.
When the value that Netlisten scripts monitor Flag logo files is initiation value, step S107 is specifically included:
S1071:Mobile network's dial-up program inquiry hardware communication module that operation is pre-installed in Linux layers is hard to obtain
The state of part.
S1073:When the hardware state of acquisition is normal, dialing obtains the IP address of current network.
In another embodiment, after step S111, further include:
S113:According to the second instruction, the switch of mobile data network connection is closed, and the Flag of user's space is indicated into text
The value of part is revised as close value.
In a particular embodiment, the second instruction can be that " mobile data " closing of user's click Android system is pressed
Button, in other embodiments, or close a certain application program, the internetwork connection mode of application program acquiescence is
Mobile data network connects, for example, in automatic steering control of farm mechanism system, needs to connect background server by mobile 3G network
Base station data is obtained, the same of the application program is closed in the internetwork connection mode mobile data network connection of navigation system setting
When, close the switch of " mobile data ".According to second instruction, the switch of mobile data network connection is closed, meanwhile, by user
The value of the Flag logo files in space is revised as close value, close value OFF.
When the value that Netlisten scripts monitor Flag logo files is close value, step S115 is executed:Kill movement
Network dial process.
In another embodiment, Multi net voting based on android system and with method, can realize mobile data network
Connection is connect with WIFI to be used in combination, or is realized that mobile data network connection is connect with Ethernet and be used in combination, or realizes mobile data network
Connection, WIFI connections and Ethernet are connected and are used in combination.
Specifically, before or after step S105, further include:
S1061:It is instructed according to third, opens the switch of WIFI network connection;And/or according to the 4th instruction, open ether
Net the switch of connection.
S1062:Start wireless network connection program in ccf layer and establishes Socket sockets to carry out WLAN0 networks company
It connects, and/or starts Ethernet linker in ccf layer and establish Socket sockets to carry out Ethernet connection.
Third instructs, and " WIFI " of specially user's click Android system releases the button, and is instructed according to third, opens Android
The WIFI of system releases the button and connects the wifi hotspot of needs, and linux bottoms can exist simultaneously WLAN0 and ppp0 two at this time
Communication link, the IP address that App applications selection at this time connect the ECU in same LAN with wifi establish socket connections,
It is defaulted as the data link using WLAN0.
" Ethernet " that Android system is clicked in 4th instruction, specially user is released the button, and according to the 4th instruction, opens peace
The Ethernet of tall and erect system release the button and by Ethernet carry out network connection, at this time linux bottoms can exist simultaneously ppp0 with
And two communication links of net, the IP address that App applications selection at this time connect the ECU in same LAN with Ethernet are established
Socket connections are defaulted as the data link using ether.
When " WIFI " of Android system release the button and " Ethernet " release the button all be in an open state when, linux bottoms
Ppp0, WLAN0 and and three communication links of net can be existed simultaneously.
The Multi net voting based on android system and with method, can realize that two or three networks are used in combination, the implementation method
Simply, it is not necessary to modify complicated Android ccf layer ril interface codes.
The present invention also provides a kind of Multi net voting based on android system and with system, including:
Shroud module 100:It is driven for shielding the primary mobile data network dialing for being located at RIL layers of Android system in advance
It is dynamic.
The primary mobile data network dialing driving of Android system does not support Multi net voting to be used in combination, to realize the more of Android system
Network is used in combination, and the primary mobile network's dialing driving for being located at RIL layers of Android system need to be shielded, specifically, removing/system/
Lib/librefernce-ril.so files, driving journey of so library files for the application layer docking hardware module of Android system
The calling of sequence and PPPoE dial-up connections.
Netlisten scripts 101, for being run when Android system starts to monitor the Flag logo files of user's space
Value.
Android system gives tacit consent to load Service on startup, and automatic running Netlisten scripts are to monitor user's space
The value of Flag logo files.In a particular embodiment, the value of Flag logo files includes ON and OFF.Work as mobile data network
When the switch of network connection is open state, the value of the Flag logo files of user's space is ON, as initiation value;Work as mobile data
When the switch of network connection is in off state, the value of the Flag logo files of user's space is OFF, as close value.
First starting module 102, for according to the first instruction, opening the switch of mobile data network connection, and by user
The value of the Flag logo files in space is revised as initiation value.
In a particular embodiment, the first instruction can be that " mobile data " unlatching of user's click Android system is pressed
Button, in other embodiments, or start a certain application program, the internetwork connection mode of application program acquiescence is
Mobile data network connects, for example, in automatic steering control of farm mechanism system, needs to connect background server by mobile 3G network
Base station data is obtained, the same of the application program is opened in the internetwork connection mode mobile data network connection of navigation system setting
When, open the switch of " mobile data ".According to first instruction, the switch of mobile data network connection is opened, meanwhile, by user
The value of the Flag logo files in space is revised as initiation value, initiation value ON.
Mobile network's dial-up program 103 is pre-installed in Linux layers, and Flag mark texts are monitored in Netlisten scripts
Operation is to obtain the IP address of current network when the value of part is initiation value.
The customized mobile network's dial-up program/etc/ppp/pppd can be used C language into edlin, and be embedded into peace
The Linux layers of tall and erect system complete dialing to obtain the IP address of current network by customized mobile dial program.Specific
Embodiment in, the shell scripts that need to use of dialling can be gprs-connect-chat, chap-secrets etc..
Routing table 104, for the IP address of current network to be added in the routing table of PPPoE data connections.
After mobile network's dial-up program successful connection, the IP address of the current network of acquisition is added to ppp0 data and is connected
In the routing table connect.
First communication module 105, for establishing Socket sockets in application layer to carry out mobile network according to routing table
Connection.
According to routing table, Socket sockets are established to carry out mobile network's connection in application layer, pass through mobile data network
Network and the background server of application program establish TCP or UDP message connects row data communication of going forward side by side.
Since customized mobile network's dial-up program is embedded in the Linux layers of Android system, first is being received
When instruction, the switch of mobile data network connection is opened, directly operation is pre-installed in Linux layers of mobile network's dialing journey
Sequence, without via ccf layer.Therefore, it is possible to avoid the priority judgment mechanism of ccf layer.When Android system is using mobile number
When according to network connection, when starting WIFI connection types or other connection internetwork connection modes, since mobile network's link avoids
The priority of ccf layer judges, therefore, it is possible to realize that mobile network is used in combination with other internetwork connection modes.The system it is not necessary to modify
Android ccf layer code structure, therefore, the simple system of the realization Multi net voting and the stabilization that can guarantee Android system operation
Property.
In another embodiment, Netlisten scripts 101 are specifically used for, and are run when Android system starts
Netlisten scripts are to detect whether user's space has Flag logo files;If nothing, Flag logo files are created, by Flag
The value of logo file is set off value and monitors the value of Flag logo files in real time;If so, then monitoring user's space in real time
The value of Flag logo files.
Mobile network's dial-up program 103 specifically includes:
Query unit, for inquiring hardware communication module to obtain the state of hardware;
Dialing unit, when the hardware state of acquisition is normal, dialing obtains the IP address of current network.
In another embodiment, the Multi net voting based on android system and with system further includes:
Closedown module, for according to the second instruction, closing the switch of mobile data network connection, and by user's space
The value of Flag logo files is revised as close value.
In a particular embodiment, the second instruction can be that " mobile data " closing of user's click Android system is pressed
Button, in other embodiments, or close a certain application program, the internetwork connection mode of application program acquiescence is
Mobile data network connects, for example, in automatic steering control of farm mechanism system, needs to connect background server by mobile 3G network
Base station data is obtained, the same of the application program is closed in the internetwork connection mode mobile data network connection of navigation system setting
When, close the switch of " mobile data ".According to second instruction, the switch of mobile data network connection is closed, meanwhile, by user
The value of the Flag logo files in space is revised as close value, close value OFF.
Module is terminated, when the value for monitoring Flag logo files when Netlisten scripts is close value, kills movement
Network dial process.
In another embodiment, Multi net voting based on android system and with system, can realize mobile data network
Connection is connect with WIFI to be used in combination, or is realized that mobile data network connection is connect with Ethernet and be used in combination, or realizes mobile data network
Connection, WIFI connections and Ethernet are connected and are used in combination.
Specifically, Multi net voting based on android system and with system, further includes:
Second starting module opens the switch of WIFI network connection for being instructed according to third;And/or third starts mould
Block, for according to the 4th instruction, opening the switch of Ethernet connection;
Second communication module, for starting wireless network connection program in ccf layer and establishing Socket sockets to carry out
WLAN0 network connections and/or third communication module, for starting Ethernet linker in ccf layer and establishing Socket sets
Word is connect to carry out Ethernet connection.
Third instructs, and " WIFI " of specially user's click Android system releases the button, and is instructed according to third, opens Android
The WIFI of system releases the button and connects the wifi hotspot of needs, and linux bottoms can exist simultaneously WLAN0 and ppp0 two at this time
Communication link, the IP address that App applications selection at this time connect the ECU in same LAN with wifi establish socket connections,
It is defaulted as the data link using WLAN0.
" Ethernet " that Android system is clicked in 4th instruction, specially user is released the button, and according to the 4th instruction, opens peace
The Ethernet of tall and erect system release the button and by Ethernet carry out network connection, at this time linux bottoms can exist simultaneously ppp0 with
And two communication links of net, the IP address that App applications selection at this time connect the ECU in same LAN with Ethernet are established
Socket connections are defaulted as the data link using ether.
When " WIFI " of Android system release the button and " Ethernet " release the button all be in an open state when, linux bottoms
Ppp0, WLAN0 and and three communication links of net can be existed simultaneously.
The Multi net voting based on android system and with system, can realize that two or three networks are used in combination, the simple system,
It is not necessary to modify complicated Android ccf layer ril interface codes.
Each technical characteristic of above example can be combined arbitrarily, to keep description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield is all considered to be the range of this specification record.
Only several embodiments of the present invention are expressed for above example, the description thereof is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art,
Under the premise of not departing from present inventive concept, various modifications and improvements can be made, these are all within the scope of protection of the present invention.
Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. Multi net voting based on android system and with method, including:
The primary mobile data network for being located at RIL layers of shielding Android system, which dials, in advance drives;
Netlisten scripts are run when Android system starts to monitor the value of the Flag logo files of user's space;
According to the first instruction, the switch of mobile data network connection is opened, and by the Flag logo files of the user's space
Value is revised as initiation value;
When the value that the Netlisten scripts monitor the Flag logo files is initiation value, operation is pre-installed in
Linux layers of mobile network's dial-up program is to obtain the IP address of current network;
The IP address of the current network is added in the routing table of PPPoE data connections;
Socket sockets are established to carry out mobile network's connection in application layer according to the routing table.
2. Multi net voting based on android system according to claim 1 and with method, which is characterized in that described in Android system
The step of operation value of the Netlisten scripts to monitor the Flag logo files of user's space, includes when system starts:
Netlisten scripts are run when Android system starts to detect whether user's space there are Flag logo files;
If nothing, Flag logo files are created, the value of the Flag logo files is set off value and monitor Flag in real time
The value of logo file;
If so, then monitoring the value of the Flag logo files of user's space in real time.
3. Multi net voting based on android system according to claim 2 and with method, which is characterized in that the operation is advance
The step of IP address of mobile network's dial-up program to obtain current network for installing Linux includes:
Mobile network's dial-up program that operation is pre-installed in Linux layers inquires hardware communication module to obtain the state of hardware;
When the hardware state of acquisition is normal, dialing obtains the IP address of current network.
4. Multi net voting based on android system according to claim 1 and with method, which is characterized in that further include:According to
Second instruction, closes the switch of mobile data network connection, and the value of the Flag logo files of the user's space is revised as
Close value;
When the value that the Netlisten scripts monitor the Flag logo files is close value, the mobile network is terminated
Dialing process.
5. Multi net voting based on android system according to claim 1 and with method, which is characterized in that described according to
One instruction, opens the switch of mobile data network connection, and the value of the Flag logo files of the user's space is revised as opening
Before or after the step of dynamic value, further include:
It is instructed according to third, opens the switch of WIFI network connection;And/or according to the 4th instruction, open opening for Ethernet connection
It closes;
Start wireless network connection program in ccf layer and establishes Socket sockets to carry out WLAN0 network connections, and/or
Ccf layer starts Ethernet linker and establishes Socket sockets to carry out Ethernet connection.
6. Multi net voting based on android system and with system, including:
Shroud module, the mobile data network dialing driving that is located at RIL layer primary for shielding Android system in advance;
Netlisten scripts, for being run when Android system starts to monitor the value of the Flag logo files of user's space;
First starting module, for according to the first instruction, opening the switch of mobile data network connection, and by the user's space
The values of Flag logo files be revised as initiation value;
Mobile network's dial-up program is pre-installed in Linux layers, for monitoring the Flag in the Netlisten scripts
Operation is to obtain the IP address of current network when the value of logo file is initiation value;
Routing table, for the IP address of the current network to be added in the routing table of PPPoE data connections;
First communication module, for establishing Socket sockets in application layer to carry out mobile network company according to the routing table
It connects.
7. Multi net voting based on android system according to claim 6 and with system, which is characterized in that described
Netlisten scripts are specifically used for, and Netlisten scripts are run when Android system starts to detect whether user's space has
Flag logo files;If nothing, Flag logo files are created, the value of the Flag logo files is set off value and real-time
Monitor the value of Flag logo files;If so, then monitoring the value of the Flag logo files of user's space in real time.
8. Multi net voting based on android system according to claim 7 and with system, which is characterized in that the mobile network
Dial-up program specifically includes:
Query unit, for inquiring hardware communication module to obtain the state of hardware;
Dialing unit, when the hardware state of acquisition is normal, dialing obtains the IP address of current network.
9. Multi net voting based on android system according to claim 6 and with system, which is characterized in that further include:
Closedown module, for according to the second instruction, closing the switch of mobile data network connection, and by the user's space
The value of Flag logo files is revised as close value;
Module is terminated, when the value for monitoring the Flag logo files when the Netlisten scripts is close value, is terminated
Mobile network's dialing process.
10. Multi net voting based on android system according to claim 6 and with system, which is characterized in that further include:
Second starting module opens the switch of WIFI network connection for being instructed according to third;And/or third starting module,
For according to the 4th instruction, opening the switch of Ethernet connection;
Second communication module, for starting wireless network connection program in ccf layer and establishing Socket sockets to carry out
WLAN0 network connections and/or third communication module, for starting Ethernet linker in ccf layer and establishing Socket sets
Word is connect to carry out Ethernet connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510648702.5A CN105357373B (en) | 2015-10-08 | 2015-10-08 | Multi net voting based on android system simultaneously uses method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510648702.5A CN105357373B (en) | 2015-10-08 | 2015-10-08 | Multi net voting based on android system simultaneously uses method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357373A CN105357373A (en) | 2016-02-24 |
CN105357373B true CN105357373B (en) | 2018-11-13 |
Family
ID=55333229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510648702.5A Active CN105357373B (en) | 2015-10-08 | 2015-10-08 | Multi net voting based on android system simultaneously uses method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357373B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108173909B (en) * | 2017-12-15 | 2021-11-16 | 臻迪科技股份有限公司 | Data synchronization method, mobile terminal and computer readable storage medium |
CN113329473B (en) * | 2020-02-28 | 2023-02-17 | 深圳市万普拉斯科技有限公司 | Method and device for accessing application program to Internet and user terminal |
CN114071628B (en) * | 2022-01-06 | 2022-04-26 | 深圳佑驾创新科技有限公司 | Terminal communication method and device based on android system and storage medium |
CN115243221A (en) * | 2022-06-13 | 2022-10-25 | 合肥移瑞通信技术有限公司 | Communication method, device and system of vehicle-mounted equipment, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103037358A (en) * | 2012-12-24 | 2013-04-10 | 杭州浦禾通信技术有限公司 | Network communication method and network communication system of mobile terminal based on android system |
CN104135744A (en) * | 2014-08-18 | 2014-11-05 | 中怡(苏州)科技有限公司 | Communication system and communication method related to communication system |
-
2015
- 2015-10-08 CN CN201510648702.5A patent/CN105357373B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103037358A (en) * | 2012-12-24 | 2013-04-10 | 杭州浦禾通信技术有限公司 | Network communication method and network communication system of mobile terminal based on android system |
CN104135744A (en) * | 2014-08-18 | 2014-11-05 | 中怡(苏州)科技有限公司 | Communication system and communication method related to communication system |
Also Published As
Publication number | Publication date |
---|---|
CN105357373A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105357373B (en) | Multi net voting based on android system simultaneously uses method and system | |
US20210120128A1 (en) | System and method for providing user notifications | |
KR101768743B1 (en) | System and method for providing user notifications | |
US10200541B2 (en) | Wireless end-user device with divided user space/kernel space traffic policy system | |
US9386165B2 (en) | System and method for providing user notifications | |
US7933262B2 (en) | Method and system for providing integration theme pack service | |
US8165567B2 (en) | Method and system for customizing user interface by editing multimedia content | |
US8473570B2 (en) | Methods and apparatus for simultaneously hosting multiple service providers on a network | |
CN103491649B (en) | WIFI synchronizes APN network multi-channel and concurrently surfs the Net and the method for the most preferably WIFI networking | |
EP2418825A1 (en) | Method and system for generating open telecommunication service based on internet | |
CN102148876A (en) | Access point switching method and device on iOS | |
CN104954855A (en) | Intelligent television control method based on Android system | |
CN113329454B (en) | Method, network element, system and equipment for releasing route | |
CN103051625B (en) | A kind of method and system using intelligent terminal Monitor-Networking application program | |
CN107122237A (en) | Data communications method and device | |
CN104702701A (en) | Method and device for sharing data | |
CN106789561A (en) | Terminals physical address binding method and system based on Intranet service platform | |
CN106452828A (en) | Provision protocol transmission-based terminal configuration method and system | |
CN113473395A (en) | Message processing method, device, medium and electronic equipment | |
CN102843388A (en) | Method, system and device for achieving synchronism of wireless data transmission and short message receiving and sending | |
CN102291692B (en) | A kind of method of mobile terminal and Dynamic Selection communication network thereof | |
CN102014433B (en) | Multi-standard mobile access integrated gateway device | |
US9949099B1 (en) | Method and apparatus of providing data service mobility | |
CN103428357A (en) | Method and apparatus for realizing local service sharing of mobile terminal operating system | |
WO2013167041A2 (en) | Method, system and host machine for implementing function of browsing web pages with wireless terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220425 Address after: 510000 Room 202, building 13, Tian'an headquarters center, No. 555, North Panyu Avenue, Donghuan street, Panyu District, Guangzhou City, Guangdong Province Patentee after: GUANGZHOU HI-TARGET SURVEYING INSTRUMENT Co.,Ltd. Address before: 510000 plant 301, No. 13, Tian'an headquarters center, No. 555, North Panyu Avenue, Donghuan street, Panyu District, Guangzhou, Guangdong Province Patentee before: HI-TARGET POSITIONING TECHNOLOGY CO.,LTD. |
|
TR01 | Transfer of patent right |