CN111600827B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN111600827B
CN111600827B CN201910125297.7A CN201910125297A CN111600827B CN 111600827 B CN111600827 B CN 111600827B CN 201910125297 A CN201910125297 A CN 201910125297A CN 111600827 B CN111600827 B CN 111600827B
Authority
CN
China
Prior art keywords
target network
application
communication interface
modem
data communication
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
Application number
CN201910125297.7A
Other languages
Chinese (zh)
Other versions
CN111600827A (en
Inventor
程时彬
蒋兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN201910125297.7A priority Critical patent/CN111600827B/en
Publication of CN111600827A publication Critical patent/CN111600827A/en
Application granted granted Critical
Publication of CN111600827B publication Critical patent/CN111600827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0853Network architectures or network communication protocols for network security for authentication of entities using an additional device, e.g. smartcard, SIM or a different communication terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M11/00Telephonic communication systems specially adapted for combination with other electrical systems
    • H04M11/06Simultaneous speech and data transmission, e.g. telegraphic transmission over the same conductors

Abstract

The invention provides a communication method and a device, comprising the following steps: the method comprises the steps that a first application in a first system of the multi-system terminal is operated, the first application comprises an identifier of a first target network, and the first system is a system operated in a foreground in the multi-system terminal; and sending the data packet generated by the first application to a first target network through a first data communication interface which is pre-established in a first name space corresponding to the first system, wherein the first data communication interface is used for connecting the first name space and a modem of the multi-system terminal. The communication method provided by the invention realizes the function that the multi-system terminal respectively communicates with a plurality of target networks.

Description

Communication method and device
Technical Field
The present invention relates to the field of network communications, and in particular, to a communication method and apparatus.
Background
A multi-system terminal, that is, a terminal may include a plurality of systems, and specifically, may be divided into a work system and a living system. The multi-system inherits and enhances the traditional single-system terminal, and under various scenes, data of users among different systems can be isolated and do not influence each other, so that the multi-system terminal has higher safety and reliability.
The existing communication method of the multi-system terminal can send data packets generated on different systems to a modem through a data communication interface in a root name space, and finally the data packets are sent to a target network through the modem.
However, in the communication method of the multi-system terminal, each system needs to send the generated data packet to the namespace first, and then send the data packet to the target network through the data communication interface with the namespace. Because the data communication interface in the root namespace can only correspond to one target network, in the existing communication method of the multi-system terminal, each system can only communicate with the same target network, and the function that the multi-system terminal respectively communicates with a plurality of target networks cannot be realized.
Disclosure of Invention
The invention provides a communication method and a communication device, which are used for realizing the function that a multi-system terminal respectively communicates with a plurality of target networks.
A first aspect of the present invention provides a method of multiple communications, comprising:
the method comprises the steps that a first application in a first system of the multi-system terminal is operated, the first application comprises an identifier of a first target network, and the first system is a system operated in a foreground in the multi-system terminal;
and sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first name space corresponding to the first system, wherein the first data communication interface is used for connecting the first name space and a modem of the multi-system terminal.
Optionally, the sending, to the first target network, the data packet generated by the first application through a first data communication interface pre-established in a first namespace of the first system includes:
transmitting the data packet to the modem through the first data communication interface;
sending the data packet to the first target network via a first identity card connected to the modem.
Optionally, before the running the first application in the first system of the multi-system terminal, the method further includes:
determining a second data communication interface in a root namespace of the multi-system terminal, wherein the second data communication interface is used for connecting the root namespace and the modem;
establishing the first data communication interface in the first namespace according to the second data communication interface.
Optionally, before sending the data packet generated by the first application to the first target network through the first data communication interface pre-established in the first namespace of the first system, the method further includes:
connecting the first application into a communication process of a first target network;
and establishing a signaling channel between the first application and the modem through a communication process of the first target network, wherein the signaling channel is used for establishing or releasing communication connection between the first target network and the multi-system terminal.
Optionally, after the sending the data packet generated by the first application to the first target network through the first data communication interface pre-established in the first namespace of the first system, the method further includes:
and if the system running in the foreground in the multi-system terminal is switched from the first system to a second system, disconnecting the first identity identification card from the modem and establishing the connection between a second user identity identification card and the modem, wherein the second user identity identification card is used for sending a data packet generated by a second application of the second system to a second target network.
A second aspect of the present invention provides a multi-communication apparatus, comprising:
the system comprises an operation module, a first network module and a second network module, wherein the operation module is used for operating a first application in a first system of the multi-system terminal, the first application comprises an identifier of a first target network, and the first system is a system which is operated in a foreground in the multi-system terminal;
and the sending module is used for sending the data packet generated by the first application to the first target network through a first data communication interface which is pre-established in a first name space corresponding to the first system, and the first data communication interface is used for connecting the first name space and a modem of the multi-system terminal.
Optionally, the sending module includes:
a first transmission unit, configured to send the data packet to the modem through the first data communication interface;
a second transmission unit, configured to send the data packet to the first target network through a first identity card connected to the modem.
Optionally, the method further includes:
a determining module, configured to determine a second data communication interface in a root namespace of the multi-system terminal, where the second data communication interface is used to connect the root namespace to the modem;
a generating module, configured to establish the first data communication interface in the first namespace according to the second data communication interface.
Optionally, the method further includes:
a process connection module for connecting the first application to a communication process of a first target network;
a channel establishing module, configured to establish a signaling channel between the first application and the modem through a communication process of the first target network, where the signaling channel is used to establish or release a communication connection between the first target network and the multi-system terminal.
Optionally, the method further includes:
and the reestablishing module is used for disconnecting the connection between the first identity identification card and the modem and establishing the connection between a second user identity identification card and the modem if the system running in the foreground in the multi-system terminal is switched from the first system to a second system, wherein the second user identity identification card is used for sending a data packet generated by a second application of the second system to a second target network. A third aspect of the present invention provides an electronic apparatus comprising: a memory and a processor;
the memory for storing executable instructions of the processor;
the processor is configured to perform the method referred to in the first aspect and alternatives thereof via execution of the executable instructions.
In a fourth aspect of the present invention, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the method of the first aspect and its alternatives.
According to the communication method and device provided by the invention, the data packet generated by the first application in the first system of the multi-system terminal is sent to the first target network through the first data communication interface which is pre-established in the first name space corresponding to the first system, so that the data packet generated by any system in the multi-system terminal can be directly sent to the corresponding target network, the system in the multi-system terminal can correspond to different target networks, and the function that the multi-system terminal respectively communicates with the plurality of target networks is realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a communication method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating another communication method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a step S35 according to the embodiment of the present invention;
fig. 5 is a flowchart illustrating another communication method and apparatus according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating another communication method and apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another communication device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first call module according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another communication device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another communication device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description of the invention and the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the internal logic of the processes, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
It should be understood that in the present application, "comprising" and "having" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present invention, "B corresponding to a", "a corresponds to B", or "B corresponds to a" means that B is associated with a, from which B can be determined. Determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a schematic view of an application scenario of a communication method according to an embodiment of the present invention.
Referring to fig. 1, in a scenario in which the embodiment of the present invention is applicable, the multi-system terminal 11 includes a plurality of independent operating systems, and a first application in a first system of the multi-system terminal 11 generates a data packet, and the data packet is sent to a first server 12 in a first target network through a pre-established first data communication interface. Further, the data packet generated by the second application in the second system of the multi-system terminal 11 may be sent to the second server 13 in the second target network.
The multi-system terminal 11 may be an electronic device including a plurality of operating systems, which is arbitrarily configured with a processor and a memory, and may include, for example: tablet computers, and the like.
The server 12 may be any electronic device or collection of electronic devices configured with a processor and memory.
The main body for implementing the method according to the present invention may be the multi-system terminal 11 referred to above.
Fig. 2 is a flowchart illustrating a communication method according to an embodiment of the present invention.
Referring to fig. 2, the communication method includes steps S21-S22, which are as follows:
s21: and operating a first application in a first system of the multi-system terminal, wherein the first application comprises an identifier of a first target network, and the first system is a system operated in the foreground in the multi-system terminal.
The multi-system terminal may be a terminal including at least two or more operating systems at the same time, for example: meanwhile, the terminal comprises an android operating system, an IOS operating system and an operating system which is independently developed.
The first system can be any operating system on a multi-system terminal, data packets generated by applications in the system need to be sent to the first target network, and the system has high data confidentiality and can be used as a working area system to run working applications.
The first application may be any application in the first system, and specifically, the first application includes an identifier of the first target network, and the identifier of the first application is used to direct the data packet generated by the first application to the first target network.
The first target network may be a professional network of a certain company, or may also be a local area network of a certain school, and the first target network may also be isolated from a public network, so as to ensure the security of data.
S22: and sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first name space corresponding to the first system.
Wherein the first data communication interface is used for connecting the first namespace and a modem of the multi-system terminal.
A namespace, can be a code organization used to organize and reuse code. In the prior art, processes in each namespace can be isolated from each other through the namespaces, and meanwhile, network ports are arranged in a bottom layer system for sharing.
The first namespace, i.e., the organization of code that runs only processes in the first system.
The data communication interface can be an interface used for driving data transmission. In the prior art, the namespaces of each operating system do not have a data communication interface, and each namespace needs to communicate with a target network through a root namespace.
In practical application, after a user generates a data packet by running a first application in a first system, the data packet can be directly sent to a first target network through a pre-established first data communication interface, so that the data packet generated in the first system does not need to be collected into a root namespace together with data packets generated by other systems.
In the communication method provided by this embodiment, the data packet generated by the first application in the first system of the multi-system terminal is sent to the first target network through the first data communication interface pre-established in the first namespace corresponding to the first system, so that the data packet generated by the first system can be directly sent to the corresponding target network without passing through the namespace, and further, communication between different target networks and the corresponding systems is realized.
Fig. 3 is a flowchart illustrating another communication method according to an embodiment of the present invention.
Referring to fig. 3, the communication method includes steps S31-S34, which are as follows:
s31: and determining a second data communication interface in a root namespace of the multi-system terminal, wherein the second data communication interface is used for connecting the root namespace and the modem.
S32: establishing the first data communication interface in the first namespace according to the second data communication interface.
For data communication of the first target network, it needs to rely on a data communication interface for support. The data communication interface is by default generated by the kernel in the root namespace and not directly accessible in the first namespace of the first system. Therefore, in practical application, the second data communication interface in the root namespace may be determined first, the second data communication interface is copied, and then the first data communication interface similar to the second data communication interface is generated in the first namespace of the first system, so as to implement the data communication of the first target network.
S33: and operating a first application in a first system of the multi-system terminal, wherein the first application comprises an identifier of a first target network, and the first system is a system operated in the foreground in the multi-system terminal.
S34: and sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first name space corresponding to the first system.
Wherein the first data communication interface is used for connecting the first namespace and a modem of the multi-system terminal.
The technical terms, technical effects, technical features and optional embodiments of steps S33 to S34 can be understood by referring to steps S21 to S22 shown in fig. 2, and repeated contents will not be described herein.
Fig. 4 is a flowchart illustrating a step S34 according to an embodiment of the present invention.
Referring to fig. 4, step S34 includes:
s41: transmitting the data packet to the modem through the first data communication interface.
S42: sending the data packet to the first target network via a first identity card connected to the modem.
In practical applications, the data packet sent via the first data interface is first sent to the modem connected to the first identity card, and then sent via the modem to the corresponding server in the first destination network.
In the communication method provided by this embodiment, the data packet generated by the first application in the first system of the multi-system terminal is sent to the first target network through the first data communication interface pre-established in the first namespace corresponding to the first system, so that the data packet generated by any system in the multi-system terminal can be directly sent to the corresponding target network, the systems in the multi-system terminal can correspond to different target networks, and the function of the multi-system terminal in communicating with multiple target networks respectively is achieved.
Fig. 5 is a flowchart illustrating another communication method according to an embodiment of the present invention.
Referring to fig. 5, the communication method includes steps S51-S54, which are as follows:
s51: and operating a first application in a first system of the multi-system terminal, wherein the first application comprises an identifier of a first target network, and the first system is a system operated in the foreground in the multi-system terminal.
S52: connecting the first application into a communication process of a first target network;
in practical application, the first application corresponding to the first target network may be configured with permission through an initialization process of the first system. Subsequently, when the first application is running, the first application may be connected to a communication process of the first target network through the socket. The communication process of the first target network may specifically be a ltelild process (a private network communication process).
S53: and establishing a signaling channel between the first application and the modem through a communication process of the first target network, wherein the signaling channel is used for establishing or releasing communication connection between the first target network and the multi-system terminal.
The signaling channel may be specifically used to control signaling interaction through AT commands (a modem command language).
S54: and sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first name space corresponding to the first system.
Wherein the first data communication interface is used for connecting the first namespace and a modem of the multi-system terminal.
The technical terms, technical effects, technical features, and alternative embodiments of steps S51 and S54 can be understood with reference to steps S21 and S22 shown in fig. 2, and repeated contents will not be described herein.
In the communication method provided in this embodiment, before sending the data packet to the target network, the signaling channel between the first application and the modem is established in the communication process of connecting the first application to the first target network, so that the communication connection between the first target network and the multiple system terminals can be established or released, so that the first system can send the data packet to the first target network, and communication between different target networks and corresponding systems is achieved.
Fig. 6 is a flowchart illustrating another communication method according to an embodiment of the present invention.
Referring to fig. 6, the communication method includes steps S61-S63, which are as follows:
s61: and operating a first application in a first system of the multi-system terminal, wherein the first application comprises an identifier of a first target network, and the first system is a system operated in the foreground in the multi-system terminal.
S62: and sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first name space corresponding to the first system.
Wherein the first data communication interface is used for connecting the first namespace and a modem of the multi-system terminal.
The technical terms, technical effects, technical features and optional embodiments of steps S61 to S62 can be understood by referring to steps S21 to S22 shown in fig. 2, and repeated contents will not be described herein.
S63: and if the system running in the foreground in the multi-system terminal is switched from the first system to the second system, disconnecting the first identity identification card from the modem and establishing the connection between the second user identity identification card and the modem.
The second subscriber identity module card is used for sending a data packet generated by a second application of the second system to a second target network.
The second system may be a living area system, and specifically, the second system may have a shopping application, a video playing application, a takeaway application, a game application, or the like installed therein, which is not related to the work. When the user needs to run the application which does not need to be kept secret, the second system can be switched to the foreground of the multi-system terminal.
The second target network may be a public network, and the data packet generated by the application runtime in the second system may be sent to the second target network to interact with the server of the application in the second system.
In practical applications, the data packet generated by the second application in the second system may be forwarded to the modem via the root namespace in a manner known in the art, and then sent to the second target network using the modem connected to the second id card.
In another possible implementation, a network selection button may be further provided in the first system, when the user selects the first target network, the first subscriber identity card is connected to the modem, and the data packet generated by the first application in the first system may be sent to the first target network according to the method described in fig. 1. When the user selects the second target network, the second user identification card is connected with the modem, and the data packet generated by the user running the third application containing the second network identifier can be forwarded to the modem through the root namespace in the mode in the prior art, and then sent to the second target network by using the modem connected with the second identification card.
In practical application, the multi-system terminal monitors the system switching operation of the user constantly, and when the situation that the user switches the second system to the foreground of the multi-system terminal is monitored, the multi-system terminal immediately cuts off the connection between the first identity card and the modem and simultaneously establishes the connection between the second identity card and the modem, so that a data packet generated by the application in the second system can be smoothly sent to the second target network.
According to the communication method provided by the embodiment, after the user switches the second application of the multi-system terminal to the foreground for operation, the connection between the first identity card and the modem is disconnected, and the connection between the second user identity card and the modem is established, so that a data packet generated by the application in the second system can be sent to the second target network, the multi-system terminal is enabled to realize the automatic switching of the target network, and the requirements of the user on various network connections are met.
Fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present invention.
Referring to fig. 7, the communication apparatus includes:
an operation module 71, configured to operate a first application in a first system of a multi-system terminal, where the first application includes an identifier of a first target network, and the first system is a system that is operated in a foreground in the multi-system terminal;
a sending module 72, configured to send a data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace corresponding to the first system, where the first data communication interface is used to connect the first namespace and a modem of the multi-system terminal.
In the communication device provided in this embodiment, the data packet generated by the first application in the first system of the multi-system terminal is sent to the first target network through the first data communication interface pre-established in the first namespace corresponding to the first system, so that the data packet generated by any system in the multi-system terminal can be directly sent to the corresponding target network, the systems in the multi-system terminal can correspond to different target networks, and the function of the multi-system terminal in communicating with the multiple target networks respectively is achieved.
Fig. 8 is a schematic structural diagram of another communication device according to an embodiment of the present invention.
Referring to fig. 8, the communication apparatus includes:
a determining module 81, configured to determine a second data communication interface in a root namespace of the multi-system terminal, where the second data communication interface is used to connect the root namespace to the modem;
a generating module 82, configured to establish the first data communication interface in the first namespace according to the second data communication interface.
The running module 83 runs a first application in a first system of the multi-system terminal, wherein the first application comprises an identifier of a first target network, and the first system is a system running in a foreground in the multi-system terminal;
a sending module 84, configured to send a data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace corresponding to the first system, where the first data communication interface is used to connect the first namespace and a modem of the multi-system terminal.
Fig. 9 is a schematic structural diagram of a sending module according to an embodiment of the present invention.
Referring to fig. 9, the sending module includes:
a first transmission unit 91, configured to send the data packet to the modem through the first data communication interface;
a second transmission unit 92, configured to send the data packet to the first target network through a first identity card connected to the modem.
In the communication device provided by this embodiment, the first data communication interface is established in the first namespace by copying the second data communication interface in the namespace in advance, so that the data packet generated by the first application of the first system can be directly sent to the modem through the first data communication interface, and sent to the first target network through the first identity card connected to the modem, so that the data packet generated by the first system can be directly sent to the corresponding target network without passing through the namespace, and further, communication between different target networks and the corresponding systems is realized.
Fig. 10 is a schematic structural diagram of another communication device according to an embodiment of the present invention.
Referring to fig. 10, the communication apparatus includes:
the method comprises the steps that an operation module 101 operates a first application in a first system of the multi-system terminal, wherein the first application comprises an identifier of a first target network, and the first system is a system which operates in a foreground in the multi-system terminal;
a process connection module 102, configured to connect the first application to a communication process of a first target network;
a channel establishing module 103, configured to establish a signaling channel between the first application and the modem through a communication process of the first target network, where the signaling channel is used to establish or release a communication connection between the first target network and the multi-system terminal.
A sending module 104, configured to send a data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace corresponding to the first system, where the first data communication interface is used to connect the first namespace and a modem of the multi-system terminal.
In the communication apparatus provided in this embodiment, before sending the data packet to the target network, the signaling channel between the first application and the modem is established in the communication process of connecting the first application to the first target network, so that the communication connection between the first target network and the multi-system terminal can be established or released, so that the first system can send the data packet to the first target network, and communication between different target networks and corresponding systems is achieved.
Fig. 11 is a schematic structural diagram of another communication device according to an embodiment of the present invention.
Referring to fig. 11, the communication apparatus includes:
the operation module 111 is configured to operate a first application in a first system of a multi-system terminal, where the first application includes an identifier of a first target network, and the first system is a system that is operated in a foreground in the multi-system terminal;
a sending module 112, configured to send a data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace corresponding to the first system, where the first data communication interface is used to connect the first namespace and a modem of the multi-system terminal.
A rebuilding module 113, configured to disconnect the connection between the first identity card and the modem and establish a connection between a second user identity card and the modem if the system running in the foreground in the multi-system terminal is switched from the first system to a second system, where the second user identity card is used to send a data packet generated by a second application of the second system to a second target network.
According to the communication device provided by the embodiment, after a user switches a second application of the multi-system terminal to a foreground for operation, the connection between the first identity identification card and the modem is disconnected, and the connection between the second user identity identification card and the modem is established, so that a data packet generated by the application in the second system can be sent to a second target network, the multi-system terminal is enabled to realize automatic switching of the target network, and the requirements of the user on various network connections are met.
The present invention also provides an electronic device, comprising: a memory and a processor;
a memory for storing executable instructions of the processor;
the processor is configured to perform the communication methods referred to in fig. 2-6 via execution of executable instructions.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media may be any media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Additionally, the ASIC may reside in user equipment. Of course, the processor and the readable storage medium may also reside as discrete components in a communication device.
The present invention also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the communication method of fig. 2-6.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method of communication, comprising:
the method comprises the steps that a first application in a first system of the multi-system terminal is operated, the first application comprises an identifier of a first target network, and the first system is a system operated in a foreground in the multi-system terminal;
sending a data packet generated by the first application to the first target network through a first data communication interface pre-established in a first name space corresponding to the first system, wherein the first data communication interface is used for connecting the first name space and a modem of the multi-system terminal;
before the first application in the first system of the multi-system terminal is run, the method further includes:
determining a second data communication interface in a root namespace of the multi-system terminal, wherein the second data communication interface is used for connecting the root namespace and the modem;
establishing the first data communication interface in the first namespace according to the second data communication interface.
2. The method of claim 1, wherein sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace of the first system comprises:
transmitting the data packet to the modem through the first data communication interface;
sending the data packet to the first target network via a first identity card connected to the modem.
3. The method of claim 1, further comprising, prior to sending the data packet generated by the first application to the first target network via a first data communication interface pre-established in a first namespace of the first system:
connecting the first application into a communication process of a first target network;
and establishing a signaling channel between the first application and the modem through a communication process of the first target network, wherein the signaling channel is used for establishing or releasing communication connection between the first target network and the multi-system terminal.
4. The method of claim 2, further comprising, after sending the data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace of the first system:
and if the system running in the foreground in the multi-system terminal is switched from the first system to a second system, disconnecting the first identity identification card from the modem and establishing the connection between a second user identity identification card and the modem, wherein the second user identity identification card is used for sending a data packet generated by a second application of the second system to a second target network.
5. A communications apparatus, comprising:
the system comprises an operation module, a first network module and a second network module, wherein the operation module is used for operating a first application in a first system of the multi-system terminal, the first application comprises an identifier of a first target network, and the first system is a system which is operated in a foreground in the multi-system terminal;
a sending module, configured to send a data packet generated by the first application to the first target network through a first data communication interface pre-established in a first namespace corresponding to the first system, where the first data communication interface is used to connect the first namespace and a modem of the multi-system terminal;
a determining module, configured to determine a second data communication interface in a root namespace of the multi-system terminal, where the second data communication interface is used to connect the root namespace to the modem;
a generating module, configured to establish the first data communication interface in the first namespace according to the second data communication interface.
6. The apparatus of claim 5, wherein the sending module comprises:
a first transmission unit, configured to send the data packet to the modem through the first data communication interface;
a second transmission unit, configured to send the data packet to the first target network through a first identity card connected to the modem.
7. The apparatus of claim 5, further comprising:
a process connection module for connecting the first application to a communication process of a first target network;
a channel establishing module, configured to establish a signaling channel between the first application and the modem through a communication process of the first target network, where the signaling channel is used to establish or release a communication connection between the first target network and the multi-system terminal.
8. The apparatus of claim 6, further comprising:
and the reestablishing module is used for disconnecting the connection between the first identity identification card and the modem and establishing the connection between a second user identity identification card and the modem if the system running in the foreground in the multi-system terminal is switched from the first system to a second system, wherein the second user identity identification card is used for sending a data packet generated by a second application of the second system to a second target network.
CN201910125297.7A 2019-02-20 2019-02-20 Communication method and device Active CN111600827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910125297.7A CN111600827B (en) 2019-02-20 2019-02-20 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910125297.7A CN111600827B (en) 2019-02-20 2019-02-20 Communication method and device

Publications (2)

Publication Number Publication Date
CN111600827A CN111600827A (en) 2020-08-28
CN111600827B true CN111600827B (en) 2022-04-15

Family

ID=72191992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910125297.7A Active CN111600827B (en) 2019-02-20 2019-02-20 Communication method and device

Country Status (1)

Country Link
CN (1) CN111600827B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375371A (en) * 2016-08-22 2017-02-01 四川安嵌科技有限公司 Method and system for cross-domain access service
CN107959614A (en) * 2017-10-30 2018-04-24 广东睿江云计算股份有限公司 A kind of self-defined network-building method of multi-tenant based on network namespace, system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7603359B2 (en) * 2006-01-17 2009-10-13 International Business Machines Corporation Method and apparatus for maintaining federated name context bindings in a name space
US8893261B2 (en) * 2011-11-22 2014-11-18 Vmware, Inc. Method and system for VPN isolation using network namespaces
CN106484587B (en) * 2015-08-26 2019-07-19 华为技术有限公司 A kind of NameSpace management method, device and computer system
CN105657866A (en) * 2016-01-28 2016-06-08 努比亚技术有限公司 Mobile terminal and communication method of mobile terminal
CN106657076B (en) * 2016-12-26 2020-04-07 北京神州绿盟信息安全科技股份有限公司 TCP service implementation method and device for network name space
CN107153688B (en) * 2017-04-27 2020-11-17 努比亚技术有限公司 Data query method, equipment and computer storage medium
CN108965306B (en) * 2018-07-25 2021-03-02 维沃移动通信有限公司 Call processing method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375371A (en) * 2016-08-22 2017-02-01 四川安嵌科技有限公司 Method and system for cross-domain access service
CN107959614A (en) * 2017-10-30 2018-04-24 广东睿江云计算股份有限公司 A kind of self-defined network-building method of multi-tenant based on network namespace, system

Also Published As

Publication number Publication date
CN111600827A (en) 2020-08-28

Similar Documents

Publication Publication Date Title
CN108123925B (en) Resource sharing method, device and system
CN105939365B (en) Master control borad User space obtains the method and device of data from business intralaminar nuclei state
US10417061B2 (en) Operating method of routing device, routing device, and terminal device
US20110029671A1 (en) Terminal and method for managing secure devices
CN102932954B (en) Mobile radio communication apparatus and manage the method for connection status of this equipment
CN110708694A (en) Method, system, storage medium and electronic device for realizing simultaneous online public and private networks
CN106302042A (en) The control method of smart machine, device and server
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
CN111432158B (en) Load balancing method and device for media nodes, storage medium and electronic device
CN104735176A (en) PXE booting method and device and server single board
US20100146123A1 (en) Resource allocation method of each terminal apparatus using resource management system and resource management server apparatus
CN105592019A (en) Method for bidirectional access to application between dual execution environments
CN104270317B (en) A kind of control method, system and the router of router operation application program
CA2951525A1 (en) Communication apparatus, communication system, communication management system, and communication control method
CN109361693B (en) Virtual device communication method and device
CN111797173A (en) Alliance chain sharing system, method and device, electronic equipment and storage medium
CN110750206B (en) Data processing method, device and system
CN106529942B (en) The access method and terminal of a kind of nfc card
CN111600827B (en) Communication method and device
CN104092661B (en) The communication means and device of virtual machine serial ports
CN110753093B (en) Method and device for managing equipment in cloud computing system
WO2009123395A1 (en) Terminal and method for selecting secure device
JP6549261B2 (en) Application implementation method and service controller
CN105451228A (en) Information processing method and device
CN114942853A (en) Data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant