CN106506228A - Method for sharing mobile network in multiple systems and terminal system - Google Patents

Method for sharing mobile network in multiple systems and terminal system Download PDF

Info

Publication number
CN106506228A
CN106506228A CN201611075538.4A CN201611075538A CN106506228A CN 106506228 A CN106506228 A CN 106506228A CN 201611075538 A CN201611075538 A CN 201611075538A CN 106506228 A CN106506228 A CN 106506228A
Authority
CN
China
Prior art keywords
subsystem
mobile network
network
state
master control
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.)
Pending
Application number
CN201611075538.4A
Other languages
Chinese (zh)
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.)
Yuanxin Technology
Original Assignee
Yuanxin Technology
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 Yuanxin Technology filed Critical Yuanxin Technology
Priority to CN201611075538.4A priority Critical patent/CN106506228A/en
Publication of CN106506228A publication Critical patent/CN106506228A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network

Landscapes

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

Abstract

The invention provides a method for sharing a mobile network in multiple systems and a terminal system, wherein the method comprises the following steps: when the first subsystem monitors that the mobile network state of the first subsystem changes, the first subsystem sends the mobile network state information of the first subsystem to the second subsystem; the second subsystem updates the state of the mobile network according to the received mobile network state information of the first subsystem; and displaying the updated state update of the mobile network in a network state bar of an interactive interface of the second subsystem. By the method and the device, the situation of disordered mobile network setting caused by simultaneously setting the mobile network for the first subsystem and the second subsystem is avoided, and the problem of network control conflict when the second subsystem and the first subsystem share the mobile network is solved; the user can timely sense the change of the mobile network state of the second subsystem, the user can timely transmit data through the mobile network state of the second subsystem, and the use experience of the user is improved.

Description

Mobile network's method and terminal system is shared in multisystem
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to sharing mobile network in a kind of multisystem Method, and in a kind of multisystem share mobile network terminal system.
Background technology
With the development of information technology, mobile terminal is become increasingly popular in the daily life of user, and mobile terminal needs logical Cross mobile network's connection data transfer is realized with the external world.In the mobile terminal of single system, in the exclusive mobile terminal of single system Internet resources, are connected with mobile network by the network hardware, to realize data transfer.
With the rise of multisystem terminal device, at present, a network is provided with existing multisystem mobile terminal hard Part, each system in mobile terminal are required to carry out network connection using the network hardware, when a system passes through the network When hardware carries out network connection, the other systems in mobile terminal cannot carry out network connection by the network hardware, i.e., same At the moment, a system is only allowed to carry out network connection by the network hardware in mobile terminal, so as to cause in mobile terminal Multiple systems cannot carry out network connection simultaneously, meanwhile, same kernel data module is shared in multisystem terminal device, if each System arranges mobile network by the kernel data module simultaneously, it will causes the setting of mobile network chaotic, causes terminal to set Standby cannot connect mobile network.
Therefore, how to carry out data transmission becoming one newly by mobile network appliance simultaneously to each system in multisystem The technical issues that need to address.
Content of the invention
For overcoming above-mentioned technical problem or solving above-mentioned technical problem at least in part, special proposition technical scheme below:
Embodiments of the invention propose a kind of method for sharing mobile network in multisystem, including:
When the first subsystem monitors that its mobile network's state changes, the first subsystem is by its mobile network's state Information is sent to the second subsystem;
Second subsystem updates the shape of its mobile network according to mobile network's status information of the first subsystem for receiving State;
The state of the mobile network after by renewal updates and shows in the network state hurdle of the interactive interface of the second subsystem.
Preferably, when the first subsystem monitors that its mobile network's state changes, the first subsystem is moved Network state information is sent to the second subsystem, including:
Its mobile network's state is monitored by the network management services of the first subsystem;
When the network management services of the first subsystem monitor that its mobile network's state changes, the first subsystem will Its mobile network's status information is sent to master control system by predetermined message transmission channel;
Mobile network's status information of the first subsystem is sent to the second subsystem by master control system.
Preferably, its mobile network's status information is sent to master control by the first subsystem by predetermined message transmission channel Before the step of system, also include:
First subsystem is sent for the message transmission channel between the first subsystem and the second subsystem to master control system Establishment channel request message;
Master control system creates two socket according to channel request message is created for the first subsystem and the second subsystem Filec descriptor;
First subsystem socket filec descriptors corresponding with the acquisition of the second subsystem, and according to corresponding socket texts Part descriptor, carries out message transmission.
Preferably, the second subsystem according to the step of mobile network's status information of the first subsystem for receiving it Before, including:
Predetermined message transmission channel is monitored by the network management services of the second subsystem;
Wherein, update its mobile network state the step of after, including:
Second subsystem is carried out data transmission by the mobile network of the first subsystem.
Alternatively, the method also includes:
Bridge being created in master control system, and creating corresponding virtual network port for subsystems, wherein, each is empty The one end for intending network interface is arranged in respective subsystem, and the other end of each virtual network port is connected with bridge;
Wherein, the step of the second subsystem is carried out data transmission by the mobile network of the first subsystem, including:
Second subsystem is built by its corresponding virtual network port and bridge virtual network port corresponding with the first subsystem Vertical data path;
Second subsystem the mobile network based on its data path with the first subsystem carry out data transmission.
Another embodiment of the present invention proposes a kind of terminal system of shared mobile network, including:
First subsystem, for when monitoring that its mobile network's state changes, by its mobile network's status information Send to the second subsystem;
Second subsystem, for the mobile network's status information according to the first subsystem for receiving, updates its mobile network The state of network;
Second subsystem, the state of the mobile network after being additionally operable to renewal update and show on the interactive boundary of the second subsystem In the network state hurdle in face.
Preferably, the first subsystem includes the first monitoring unit and the first transmitting element:
First monitoring unit, for monitoring its mobile network's state by the network management services of the first subsystem;
For the network management services when the first subsystem, first transmitting element, monitors that its mobile network's state becomes During change, mobile network's status information of the first subsystem is sent to master control system by predetermined message transmission channel;
Alternatively, terminal system also includes:
Master control system, sends to the second subsystem for the mobile network's status information by the first subsystem.
Preferably, the first subsystem also includes the second transmitting element:
Second transmitting element, passes for the message between the first subsystem and the second subsystem for sending to master control system The establishment channel request message of defeated passage;
Preferably, master control system also includes creating unit:
Creating unit, for according to channel request message is created, creating two for the first subsystem and the second subsystem Socket filec descriptors;
First subsystem and the second subsystem are additionally operable to obtain corresponding socket filec descriptors respectively, and according to corresponding Socket filec descriptors, carry out message transmission.
Preferably, the second subsystem also includes the second monitoring unit and transmission unit:
Second monitoring unit, for monitoring predetermined message transmission channel by the network management services of the second subsystem;
Transmission unit, for being carried out data transmission by the mobile network of the first subsystem.
Preferably, master control system also includes creating unit:
Creating unit, for creating bridge in master control system, and creates corresponding virtual net for subsystems Mouthful, wherein, one end of each virtual network port is arranged in respective subsystem, the other end of each virtual network port and bridge phase Even;
Wherein, transmission unit is used for by its corresponding virtual network port and bridge virtuality corresponding with the first subsystem Network interface sets up data path;Based on its data path, the mobile network with the first subsystem carries out data transmission.
In embodiments of the invention, it is proposed that share the scheme of mobile network in a kind of multisystem, when the first subsystem is supervised When measuring its mobile network's state and changing, the first subsystem sends its mobile network's status information to the second subsystem, Enable the second subsystem to obtain mobile network's state of the first subsystem in time, be that follow-up second subsystem updates its mobile network Network state provides necessary premise guarantee;Second subsystem according to the mobile network's status information for receiving the first subsystem, Update the state of its mobile network, it is achieved that the mobile network of shared first subsystem of the second subsystem, held by the first subsystem The setting of row mobile network, it is to avoid the shifting that simultaneously the first subsystem and the second subsystem moved by network settings and is caused The chaotic situation of dynamic network settings, solves the second subsystem and the first subsystem has network control punching when sharing system mobile network Prominent problem;The state of the mobile network after by renewal updates the network state hurdle for showing the interactive interface in the second subsystem In, show mobile network's state of the second subsystem by human-computer interaction interface in time so that user perceives the second subsystem in time The change of system mobile network's state, user timely can be carried out data transmission by mobile network's state of the second subsystem, Improve the experience of user.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments Substantially and easy to understand, wherein:
Fig. 1 be one embodiment in the present invention multisystem terminal device in relation schematic diagram between each system;
Fig. 2 is the flow chart of the method for sharing mobile network in the present invention in the multisystem of another embodiment;
Fig. 3 is the structural representation of the terminal system for sharing mobile network in the present invention in the multisystem of still another embodiment Figure.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one Individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding Other features one or more, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.Used herein arrange Diction "and/or" includes one or more associated whole or any cells for listing item and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also It is understood by, those terms defined in such as general dictionary, it should be understood that in the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
The technical scheme of the embodiment of the present invention is specifically introduced below in conjunction with the accompanying drawings.
The block schematic illustration of the internal structure of the terminal device of the embodiment of the present invention as shown in figure 1, including:System kernel, Master control system, subsystem OS1With subsystem OS2, wherein, the shared same system kernel of each system.
Wherein, system kernel is Linux kernel, and system kernel is responsible directly to be entered with the network hardware in terminal device Row communication.
Master control system is the system that is safe, controllable, can matching somebody with somebody started by kernel, and master control system is responsible for subsystem System OS1With subsystem OS2, while subsystem OS1With subsystem OS2Communicated with system kernel by master control system.
Subsystem OS1With subsystem OS2For in multisystem terminal device run each android system, in respective system System includes Framework (system framework layer), is communicated with master control system by respective Framework.
Wherein, the subsystems in the embodiment of the present invention, can be provided in empty with Linux container (container) Operating system in the container that planization technology is created.Operating system can be traditional (SuSE) Linux OS or Unix Operating system, or the android system being derived based on (SuSE) Linux OS, Ubuntu systems or FireFox systems System etc., can also be windows systems based on windows platform etc..In fact, the subsystem in the present invention is not limited In the aforementioned operating system for enumerating, all operating systems that can be run in a reservoir can be covered.
Preferably, master control system can be above-mentioned traditional operating system, or traditional kernel is changed Enter and/or outside kernel after (such as ccf layer and application layer) increase functional module, the operating system for obtaining.
Master control system is mainly used in carrying out AM/BAM management to each subsystem, interacts with each subsystem.
Preferably, master control system can be communicated with each containment system by predefined passage.In the same manner, each container Can be communicated by container path between system.
Fig. 2 is the flow chart of the method for sharing mobile network in the present invention in the multisystem of another embodiment.
In embodiments of the invention, the Description of content performed by each step is as follows:Step S210:When the first subsystem is monitored When changing to its mobile network's state, the first subsystem sends its mobile network's status information to the second subsystem;Step Rapid S220:Second subsystem updates the shape of its mobile network according to mobile network's status information of the first subsystem for receiving State;Step S230:The state of the mobile network after by renewal updates the network state for showing the interactive interface in the second subsystem In hurdle.
In embodiments of the invention, it is proposed that a kind of method for sharing mobile network in multisystem, when the first subsystem is supervised When measuring its mobile network's state and changing, the first subsystem sends its mobile network's status information to the second subsystem, Enable the second subsystem to obtain mobile network's state of the first subsystem in time, be that follow-up second subsystem updates its mobile network Network state provides necessary premise guarantee;Second subsystem according to the mobile network's status information for receiving the first subsystem, Update the state of its mobile network, it is achieved that the mobile network of shared first subsystem of the second subsystem, held by the first subsystem The setting of row mobile network, it is to avoid the shifting that simultaneously the first subsystem and the second subsystem moved by network settings and is caused The chaotic situation of dynamic network settings, solves the second subsystem and the first subsystem has network control punching when sharing system mobile network Prominent problem;The state of the mobile network after by renewal updates the network state hurdle for showing the interactive interface in the second subsystem In, show mobile network's state of the second subsystem by human-computer interaction interface in time so that user perceives the second subsystem in time The change of system mobile network's state, user timely can be carried out data transmission by mobile network's state of the second subsystem, Improve the experience of user.It is described further below for implementing for each step:
Step S210:When the first subsystem monitors that its mobile network's state changes, the first subsystem is moved Dynamic network state information is sent to the second subsystem.
Preferably, step S210 further includes step S211, step S212 and step S213;Step S211:By The network management services of one subsystem monitor its mobile network's state;Step S212:Network management services when the first subsystem When monitoring that its mobile network's state changes, its mobile network's status information is passed by the first subsystem by predetermined message Defeated passage is sent to master control system;Step S213:Mobile network's status information of the first subsystem is sent by master control system To the second subsystem.
For example, in terminal device A, including subsystem OS1, subsystem OS2And master control system, wherein, subsystem OS1With Subsystem OS2Including the respective network management services for monitoring its respective mobile network's state, subsystem OS1And subsystem OS2For Android operation system;In subsystem OS1In, by subsystem OS1Network management services monitor its mobile network's shape State, wherein, subsystem OS1Network management services run on subsystem OS1Framework in;Subsystem OS1Network Management service monitors subsystem OS1Mobile network's state when changing, subsystem OS1Network management services moved Dynamic network state information is sent to predetermined message transmission channel, by the predetermined message transmission channel by subsystem OS1's Mobile network's status information is sent to master control system, subsequently, by master control system by subsystem OS1Mobile network's status information Send to running on subsystem OS2Framework in subsystem OS2Network management services.
Preferably, in step S212 the first subsystem by its mobile network's status information by predetermined message transmission channel Send to before the step of master control system, also include step S214, step S215 and step S216;Step S214:First subsystem The establishment channel request sent for the message transmission channel between the first subsystem and the second subsystem to master control system of uniting disappears Breath;Step S215:Master control system creates two according to channel request message is created for the first subsystem and the second subsystem Socket filec descriptors;Step S216:First subsystem socket filec descriptors corresponding with the acquisition of the second subsystem, and According to corresponding socket filec descriptors, message transmission is carried out.
For example, in terminal device A, subsystem OS1In process need with subsystem OS2In process communicated, son System OS1In process to subsystem OS1In communication port service processes send create channel request message, subsequent subsystem OS1In communication port service processes will receive establishment channel request message, and the request message is sent to master control system Communication port service processes, wherein, in the establishment channel request message carry subsystem OS1Identification information and subsystem The identification information of OS2, the communication port service processes of master control system are according to subsystem OS1With subsystem OS2Identification information create For subsystem OS1With subsystem OS2Two socket filec descriptors;The communication port service processes of master control system are to master Virtual Domain Name NSS equipment in control system sends login request message, after succeeding in registration, the communication port clothes of master control system Containment system of the business process to transmission request, such as subsystem OS1, and the containment system for needing to carry out communication service, such as subsystem System OS2, send the title of its each self-corresponding socket filec descriptor, such as the communication port service processes of master control system respectively The socket filec descriptors of entitled " subsystem OS1- passages 1 " are sent to subsystem OS1, by entitled " subsystem OS2- The socket filec descriptors of passage 1 " are sent to subsystem OS2;Subsequently, subsystem OS1With subsystem OS2According to receiving which The title of respective socket filec descriptors, obtains corresponding socket filec descriptors, subsequent subsystem OS1And subsystem OS2Message transmission can be carried out according to its each self-corresponding socket filec descriptor.
Step S220:Mobile network status information of second subsystem according to the first subsystem for receiving, updates which and moves The state of dynamic network.
For example, in terminal device A, including subsystem OS1, subsystem OS2And master control system, wherein, subsystem OS1With Subsystem OS2Including the respective network management services for monitoring its respective mobile network's state, subsystem OS1And subsystem OS2For Android operation system;Subsystem OS1Network management services by predetermined message transmission channel, such as terminal device A In the socket communication ports set up to subsystem OS2Network management services send, such as subsystem OS1" connection mobile network Mobile network's status information of network ", subsystem OS2Network management services according to the subsystem OS for receiving1Mobile network's shape State information " connection mobile network ", updates subsystem OS2Mobile network state be connection status.
Preferably, mobile network status information of second subsystem according to the first subsystem for receiving in step S220 The step of before, including step S221;Step S221:Predetermined message is monitored by the network management services of the second subsystem to pass Defeated passage.
For example, in terminal device A, by subsystem OS2Network management services monitor predetermined message transmission channel, Such as the socket communication ports that has been set up in terminal device A, when new information is received by the message transmission channel, pass through Subsystem OS2Network management services by subsystem OS1Mobile network's status information, such as " connection mobile network ", send to son System OS2Network management services.
Preferably, the method also includes step S240;Step S240:Bridge is created in master control system, and is each The corresponding virtual network port of individual sub- system creation, wherein, one end of each virtual network port is arranged in respective subsystem, and each is virtual The other end of network interface is connected with bridge.
For the embodiment of the present invention, as the network address includes:Medium access control (English full name:Media Access Control, english abbreviation:MAC) address and Internet protocol (English full name:Internet Protocol, english abbreviation: IP) address, refers in this step that by each virtual network port, bridge IP address respectively be in same LAN.
For example, multisystem mobile terminal includes subsystem OS1And subsystem OS2, wherein, only subsystem OS1With Physical Network Network equipment is attached, and the bridge that master control system is created is br0, and master control system is subsystem OS1The virtuality of establishment Network interface is veth-pair1, is subsystem OS2The virtual network port of establishment is veth-pair2, subsystem OS1Interior veth-pair1 It is connected with the br0 in master control system, subsystem OS2Interior veth-pair2 is connected with the br0 in master control system.
It should be noted that bridge is created in master control system, and create corresponding virtuality for each containment system Network interface, also includes afterwards:Each virtual network port, bridge are distinguished the IP address in the corresponding network address and are matched somebody with somebody by master control system It is set in same LAN;For example, master control system is by subsystem OS in mobile terminal A1Virtual network port corresponding IP ground Location is configured to 172.29.52.60/24, and in master control system, the corresponding IP address of bridge is configured to 172.29.52.50/24, Subsystem OS2The corresponding IP address of virtual network port be configured to 172.29.52.70/24, therefore, subsystem OS1Virtual network port The corresponding IP address of corresponding IP address, bridge and subsystem OS2The corresponding network address of virtual network port be respectively positioned on Same virtual network subnet network segment 172.29.52.0/24.
For the embodiment of the present invention, master control system passes through for each virtual network port, bridge to distinguish corresponding network ground Location is configured in same LAN, so that each virtual network port, bridge mutually directly can be addressed, is determined Next-hop virtual network port or the corresponding network address of bridge, carry out data transmission, such that it is able to reduce the complexity for addressing Degree, and then the feasibility of multisystem network connection can be improved.
Preferably, update in step S220 its mobile network state the step of after, including step S222;Step S222:Second subsystem is carried out data transmission by the mobile network of the first subsystem.
For example, in terminal device A, by subsystem OS2Network management services monitor predetermined message transmission channel, When new information being received by the message transmission channel, such as monitor subsystem OS1Mobile network's status information by " not When connection mobile network " change turns to " connection mobile network ", according to subsystem OS1The corresponding IP address of virtual network port be 172.29.52.60/24, in master control system, the corresponding IP address of bridge is 172.29.52.50/24, subsystem OS2Void It is 172.29.52.70/24, subsequent subsystem OS to intend the corresponding IP address of network interface2By the side with bridge bridge joint in master control system Formula, the bridge using configured IP address 172.29.52.70/24 with IP address for 172.29.52.50/24 enter line number According to transmission, then by the bridge and the subsystem OS that IP address is 172.29.52.60/241Virtual network port and subsystem OS1Mobile network carry out data transmission, so as to realize subsystem OS2By subsystem OS1Mobile network carry out data biography Defeated.
It should be noted that it will be understood by those skilled in the art that in embodiments of the invention, to each virtual network port, The configuration of bridge, not only includes configuring each virtual network port, the corresponding IP address of bridge, also includes satisfying the need Configured by the related configuration information of the network connections such as information, DNS (Domain Name System, domain name system), here Do not limit.
It is highly preferred that the step that the second subsystem is carried out data transmission by the mobile network of the first subsystem in step S222 Suddenly, including step S2221 and step S2222;Step S2221:Second subsystem is by its corresponding virtual network port and bridge section Point virtual network port corresponding with the first subsystem sets up data path;Step S2222:Second subsystem based on its data path with The mobile network of the first subsystem carries out data transmission.
For example, example is connected, in terminal device A, subsystem OS2By its corresponding virtual network port veth-pair2 and net Bridge node br0 and subsystem OS1Corresponding virtual network port veth-pair1 sets up data path, such as " data path A ", subsystem OS2The network hardware based on the data path by system kernel with terminal device A carries out data transmission, the net of terminal device A Network hardware is carried out data transmission with master control system by system kernel, then by master control system and subsystem OS1Mobile network Carry out data transmission, it is achieved thereby that subsystem OS2Based on " data path A " and subsystem OS1Mobile network carry out data biography Defeated.
Step S230:The state of the mobile network after by renewal updates the network for showing the interactive interface in the second subsystem In status bar.
For example, in the subsystem OS of terminal device A2In, according to subsystem OS2Mobile network's state by " not connected movement Network " is updated to " connection mobile network ", by subsystem OS2Framework by subsystem OS2Interactive interface network In status bar, currently displaying not connected mobile network's icon updates the icon for being shown as connecting mobile network.
Again for example, in the subsystem OS of terminal device A2In, according to subsystem OS2Mobile network's state by " connection movement Network " is updated to " not connected mobile network ", by subsystem OS2Framework by subsystem OS2Interactive interface net Currently displaying connection mobile network icon in network status bar updates the icon for being shown as not connected mobile network, simultaneously closes off son System OS2In the data path set up, such as " data path A ".
Fig. 3 is the structural representation of the terminal system for sharing mobile network in the present invention in the multisystem of still another embodiment Figure.
In embodiments of the invention, the Description of content performed by each system is as follows:First subsystem 310 is when the first subsystem When monitoring that its mobile network's state changes, the first subsystem sends its mobile network's status information to the second subsystem System;Second subsystem 320 updates the shape of its mobile network according to mobile network's status information of the first subsystem for receiving State;Second subsystem 320 also by renewal after mobile network state update show the second subsystem interactive interface net In network status bar.
In embodiments of the invention, it is proposed that share the terminal system of mobile network in a kind of multisystem, when the first subsystem When system monitors that its mobile network's state changes, the first subsystem sends its mobile network's status information to the second subsystem System, enables the second subsystem to obtain mobile network's state of the first subsystem in time, is that follow-up second subsystem updates its shifting Dynamic network state provides necessary premise guarantee;Second subsystem is believed according to the mobile network's state for receiving the first subsystem Breath, updates the state of its mobile network, it is achieved that the mobile network of shared first subsystem of the second subsystem, by the first subsystem Execute the setting of mobile network, it is to avoid network settings are moved to the first subsystem and the second subsystem and cause simultaneously Mobile network arranges chaotic situation, solves the second subsystem and the first subsystem has network control when sharing system mobile network The problem of conflict;The state of the mobile network after by renewal updates the network state hurdle for showing the interactive interface in the second subsystem In, show mobile network's state of the second subsystem by human-computer interaction interface in time so that user perceives the second subsystem in time The change of system mobile network's state, user timely can be carried out data transmission by mobile network's state of the second subsystem, Improve the experience of user.It is described further below for implementing for each system:
First subsystem 310 is used for when the first subsystem monitors that its mobile network's state changes, the first subsystem System sends its mobile network's status information to the second subsystem.
Preferably, the first subsystem 310 includes the first monitoring unit, the first transmitting element and master control system;First monitoring Unit is used for monitoring its mobile network's state by the network management services of the first subsystem;First transmitting element is used for when first When the network management services of subsystem monitor that its mobile network's state changes, the first subsystem is by its mobile network's state Information is sent to master control system by predetermined message transmission channel;Master control system is used for passing through master control system by the first subsystem Mobile network's status information send to the second subsystem.
Preferably, the first subsystem 310, also includes the second transmitting element and creating unit;Second transmitting element is used for the One subsystem sends the establishment passage for the message transmission channel between the first subsystem and the second subsystem to master control system Request message;Creating unit is used for master control system according to channel request message is created, for the first subsystem and the second subsystem Create two socket filec descriptors;First subsystem and the second subsystem are additionally operable to obtain corresponding socket files respectively Descriptor, and according to corresponding socket filec descriptors, carry out message transmission.
Second subsystem is used for mobile network status information of second subsystem according to the first subsystem for receiving, and updates The state of its mobile network.
Preferably, the second subsystem includes the second monitoring unit and transmission unit;Second monitoring unit is used for passing through second The network management services of subsystem monitor predetermined message transmission channel;Transmission unit is used for the second subsystem and passes through the first subsystem The mobile network of system carries out data transmission.
Preferably, master control system also includes creating unit;Creating unit is used for creating bridge in master control system, and Corresponding virtual network port is created for subsystems, wherein, one end of each virtual network port is arranged in respective subsystem, each The other end of virtual network port is connected with bridge.
It is highly preferred that transmission unit is used for passing through its corresponding virtual network port and bridge is corresponding with the first subsystem Virtual network port sets up data path;Based on its data path, the mobile network with the first subsystem carries out data transmission.
Second subsystem 320 be additionally operable to renewal after mobile network state update show the second subsystem interaction In the network state hurdle at interface.
The terminal system for sharing mobile network in multisystem provided in an embodiment of the present invention can realize the side of above-mentioned offer Method embodiment, concrete function are realized referring to the explanation in embodiment of the method, will not be described here.
Those skilled in the art of the present technique are appreciated that the present invention includes relating to execute in operation described herein One or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include general Known device in computer.These equipment have the computer program being stored in which, and these computer programs are optionally Activation is reconstructed.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in It is suitable to store and e-command is coupled in any kind of medium of bus respectively, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Piece.It is, computer-readable recording medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any Jie Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of each frame and these structure charts and/or block diagram and/or the frame in flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method realizing, so as to pass through the process of computer or other programmable data processing methods Device is executing the scheme that specifies in the frame or multiple frames of structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that the various operations discussed in the present invention, method, in flow process Step, measure, scheme can be replaced, changed, combined or deleted.Further, each with discussed in the present invention Kind of operation, method, other steps in flow process, measure, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, of the prior art with the various operations disclosed in the present invention, method, flow process in step, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method for sharing mobile network in multisystem, it is characterised in that include:
When the first subsystem monitors that its mobile network's state changes, the first subsystem is by its mobile network's status information Send to the second subsystem;
Second subsystem updates the shape of its mobile network according to mobile network's status information of first subsystem for receiving State;
The state of the mobile network after by renewal updates and shows in the network state hurdle of the interactive interface of second subsystem.
2. method according to claim 1, it is characterised in that described monitor its mobile network's state when the first subsystem When changing, the first subsystem sends its mobile network's status information to the second subsystem, including:
Its mobile network's state is monitored by the network management services of the first subsystem;
When the network management services of the first subsystem monitor that its mobile network's state changes, the first subsystem is moved Dynamic network state information is sent to master control system by predetermined message transmission channel;
Mobile network's status information of the first subsystem is sent to the second subsystem by master control system.
3. method according to claim 2, it is characterised in that its mobile network's status information is led to by first subsystem Cross predetermined message transmission channel to send to before the step of master control system, also include:
First subsystem is sent for the message transmission channel between the first subsystem and the second subsystem to master control system Establishment channel request message;
The master control system creates two according to the establishment channel request message for the first subsystem and the second subsystem Socket filec descriptors;
First subsystem socket filec descriptors corresponding with the second subsystem acquisition, and according to described corresponding Socket filec descriptors, carry out message transmission.
4. method according to claim 2, it is characterised in that in second subsystem according to described first for receiving Before the step of mobile network's status information of subsystem, including:
The predetermined message transmission channel is monitored by the network management services of the second subsystem;
Wherein, after the step of the state of its mobile network of renewal, including:
Second subsystem is carried out data transmission by the mobile network of first subsystem.
5. method according to claim 4, it is characterised in that also include:
Bridge is created in master control system, and creates corresponding virtual network port, wherein, each virtual net for subsystems One end of mouth is arranged in respective subsystem, and the other end of each virtual network port is connected with the bridge;
Wherein, the step of second subsystem is carried out data transmission by the mobile network of first subsystem, including:
Second subsystem is by its corresponding virtual network port and bridge void corresponding with first subsystem Intend network interface and set up data path;
Second subsystem mobile network based on its data path with first subsystem carry out data transmission.
6. a kind of terminal system of shared mobile network, it is characterised in that include:
First subsystem, for when monitoring that its mobile network's state changes, its mobile network's status information being sent To the second subsystem;
Second subsystem, for the mobile network's status information according to first subsystem for receiving, updates its mobile network The state of network;
Second subsystem, the state of the mobile network after being additionally operable to renewal update and show on the interactive boundary of second subsystem In the network state hurdle in face.
7. terminal system according to claim 6, it is characterised in that first subsystem include the first monitoring unit and First transmitting element:
First monitoring unit, for monitoring its mobile network's state by the network management services of the first subsystem;
For the network management services when the first subsystem, first transmitting element, monitors that its mobile network's state becomes During change, mobile network's status information of the first subsystem is sent to master control system by predetermined message transmission channel;
Wherein, the terminal system also includes:
Master control system, sends to the second subsystem for the mobile network's status information by the first subsystem.
8. terminal system according to claim 7, it is characterised in that first subsystem also includes the second transmission list Unit:
Second transmitting element, for sending for disappearing between the first subsystem and the second subsystem to the master control system The establishment channel request message of breath transmission channel;
Wherein, the master control system also includes creating unit:
The creating unit, for according to the establishment channel request message, creating for the first subsystem and the second subsystem Two socket filec descriptors;
First subsystem and second subsystem are additionally operable to obtain corresponding socket filec descriptors respectively, and according to The corresponding socket filec descriptors, carry out message transmission.
9. terminal system according to claim 7, it is characterised in that second subsystem also includes the second monitoring unit And transmission unit:
Second monitoring unit is logical for monitoring the predetermined message transmission by the network management services of the second subsystem Road;
The transmission unit, for being carried out data transmission by the mobile network of first subsystem.
10. terminal system according to claim 9, it is characterised in that the master control system also includes creating unit:
The creating unit, for creating bridge in master control system, and creates corresponding virtual net for subsystems Mouthful, wherein, one end of each virtual network port is arranged in respective subsystem, the other end of each virtual network port and the net Bridge node is connected;
Wherein, the transmission unit is used for by its corresponding virtual network port and the bridge and first subsystem pair The virtual network port that answers sets up data path;Based on its data path, the mobile network with first subsystem carries out data biography Defeated.
CN201611075538.4A 2016-11-29 2016-11-29 Method for sharing mobile network in multiple systems and terminal system Pending CN106506228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611075538.4A CN106506228A (en) 2016-11-29 2016-11-29 Method for sharing mobile network in multiple systems and terminal system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611075538.4A CN106506228A (en) 2016-11-29 2016-11-29 Method for sharing mobile network in multiple systems and terminal system

Publications (1)

Publication Number Publication Date
CN106506228A true CN106506228A (en) 2017-03-15

Family

ID=58327860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611075538.4A Pending CN106506228A (en) 2016-11-29 2016-11-29 Method for sharing mobile network in multiple systems and terminal system

Country Status (1)

Country Link
CN (1) CN106506228A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066874A (en) * 2017-04-18 2017-08-18 北京元心科技有限公司 Method and device for interactively verifying information between container systems
CN111405367A (en) * 2020-03-11 2020-07-10 海信视像科技股份有限公司 Method for network sharing of system component based on multi-network switching scene and display equipment
CN112073762A (en) * 2019-06-10 2020-12-11 聚好看科技股份有限公司 Information acquisition method based on multi-system display equipment and multi-system display equipment
CN114338408A (en) * 2021-12-27 2022-04-12 北京字节跳动网络技术有限公司 Method and device for realizing virtualization of network equipment in multiple systems, electronic equipment and storage medium
CN114666395A (en) * 2022-03-29 2022-06-24 青岛海信移动通信技术股份有限公司 Method and device for network sharing of dual systems

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377093A (en) * 2012-04-24 2013-10-30 联想(北京)有限公司 Multimedia synchronizing method for multiple-system device and electronic device
CN203909657U (en) * 2013-12-31 2014-10-29 鸿合科技有限公司 Touch AIO (All-In-One) machine capable of sharing WiFi (Wireless Fidelity) module by dual systems
CN104601722A (en) * 2015-02-02 2015-05-06 西安酷派软件科技有限公司 Method and device for synchronizing communication parameters
CN104703172A (en) * 2015-03-11 2015-06-10 西安酷派软件科技有限公司 Multi-system-based card detection method and device and terminal
CN105162633A (en) * 2015-09-21 2015-12-16 北京元心科技有限公司 Method and device for managing networks in multiple operation systems based on containers
CN105404558A (en) * 2015-12-11 2016-03-16 北京元心科技有限公司 Method and device for processing events in multiple systems
CN105530376A (en) * 2015-12-11 2016-04-27 北京元心科技有限公司 Method and device for carrying out call during multi-system switching
CN105550044A (en) * 2015-12-11 2016-05-04 北京元心科技有限公司 Method and device for prompting to-be-processed event information in multiple systems
CN105657112A (en) * 2015-12-31 2016-06-08 北京元心科技有限公司 Method and apparatus for processing brightness in multi-system mobile terminal
CN105929426A (en) * 2016-04-21 2016-09-07 北京元心科技有限公司 Method and device for GPS positioning in multiple systems
CN106095702A (en) * 2016-06-02 2016-11-09 北京元心科技有限公司 Mobile terminal, and method and device for sharing data among multiple systems

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103377093A (en) * 2012-04-24 2013-10-30 联想(北京)有限公司 Multimedia synchronizing method for multiple-system device and electronic device
CN203909657U (en) * 2013-12-31 2014-10-29 鸿合科技有限公司 Touch AIO (All-In-One) machine capable of sharing WiFi (Wireless Fidelity) module by dual systems
CN104601722A (en) * 2015-02-02 2015-05-06 西安酷派软件科技有限公司 Method and device for synchronizing communication parameters
CN104703172A (en) * 2015-03-11 2015-06-10 西安酷派软件科技有限公司 Multi-system-based card detection method and device and terminal
CN105162633A (en) * 2015-09-21 2015-12-16 北京元心科技有限公司 Method and device for managing networks in multiple operation systems based on containers
CN105404558A (en) * 2015-12-11 2016-03-16 北京元心科技有限公司 Method and device for processing events in multiple systems
CN105530376A (en) * 2015-12-11 2016-04-27 北京元心科技有限公司 Method and device for carrying out call during multi-system switching
CN105550044A (en) * 2015-12-11 2016-05-04 北京元心科技有限公司 Method and device for prompting to-be-processed event information in multiple systems
CN105657112A (en) * 2015-12-31 2016-06-08 北京元心科技有限公司 Method and apparatus for processing brightness in multi-system mobile terminal
CN105929426A (en) * 2016-04-21 2016-09-07 北京元心科技有限公司 Method and device for GPS positioning in multiple systems
CN106095702A (en) * 2016-06-02 2016-11-09 北京元心科技有限公司 Mobile terminal, and method and device for sharing data among multiple systems

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066874A (en) * 2017-04-18 2017-08-18 北京元心科技有限公司 Method and device for interactively verifying information between container systems
CN112073762A (en) * 2019-06-10 2020-12-11 聚好看科技股份有限公司 Information acquisition method based on multi-system display equipment and multi-system display equipment
CN112073762B (en) * 2019-06-10 2022-05-06 聚好看科技股份有限公司 Information acquisition method based on multi-system display equipment and multi-system display equipment
CN111405367A (en) * 2020-03-11 2020-07-10 海信视像科技股份有限公司 Method for network sharing of system component based on multi-network switching scene and display equipment
CN111405367B (en) * 2020-03-11 2022-04-05 海信视像科技股份有限公司 Method for network sharing of system component based on multi-network switching scene and display equipment
CN114338408A (en) * 2021-12-27 2022-04-12 北京字节跳动网络技术有限公司 Method and device for realizing virtualization of network equipment in multiple systems, electronic equipment and storage medium
CN114666395A (en) * 2022-03-29 2022-06-24 青岛海信移动通信技术股份有限公司 Method and device for network sharing of dual systems
CN114666395B (en) * 2022-03-29 2024-03-08 青岛海信移动通信技术有限公司 Dual-system network sharing method and device

Similar Documents

Publication Publication Date Title
CN106506228A (en) Method for sharing mobile network in multiple systems and terminal system
CN102255903B (en) Safety isolation method for virtual network and physical network of cloud computing
CN104301142B (en) A kind of backup method and equipment of configuration file
US10827415B2 (en) Network awareness of device location
CN103475577B (en) Method, device and network equipment for obtaining characteristic information
CN111381844A (en) Method and device for updating vehicle ECU firmware
CN106533883A (en) Network private line establishment method, apparatus and system
CN103916625A (en) Video monitoring system and method based on cloud computing
CN109474912A (en) The monitoring method and device of a kind of car borne gateway system and onboard subsystem
CN107205258A (en) Wireless network configuration method, device and system
CN112019366B (en) Leasing method and device of physical host, cloud platform and readable storage medium
CN105847053B (en) The method and system that more network interface card multisegments are arbitrarily bound are set automatically under LINUX system
CN115185647B (en) virtio equipment direct connection method and related device
KR101491296B1 (en) System and method for telematics service of vehicle
CN108829402A (en) The more extractions of root and system of application program, storage medium and processor
CN107172219A (en) A kind of method and system of long-range changing machine vehicle radio data transmission device software
JP2019525566A (en) Multi-network convergence method and apparatus
CN106549913B (en) Intelligent touch screen onboard system based on car networking
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
KR20140061043A (en) Lin communication system for vehicle and method for driving slave module in the system
CN105635312A (en) Method for realizing communication of multiple local area networks based on WinCE system and single network card
CN110430290A (en) Resource address update method, computer installation and storage medium
CN113489618B (en) Configuration method and device for three-layer routing of switch in railway system
CN115002803A (en) Terminal management method and device and electronic equipment
CN109144520A (en) Information interaction method, device, equipment and storage medium among different objects in Android

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315

RJ01 Rejection of invention patent application after publication