Unlock instant, AI-driven research and patent intelligence for your innovation.

Mobile terminal, container phone communication function realizing method and cross-container communication method

A mobile terminal and container technology, which is applied in the field of mobile terminal and cross-container communication, can solve the problems of low container management efficiency of mobile terminals, and achieve the effects of ensuring normal telephone communication functions, simplifying structure, and improving container management efficiency

Active Publication Date: 2017-05-31
BEIJING YUANXIN SCI & TECH
View PDF11 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in the case of complete container isolation, existing mobile terminals often need to manage the rild in each container in order to effectively guarantee the telephone communication function of each container; and adopting this decentralized management method leads to The container management efficiency of the mobile terminal is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Mobile terminal, container phone communication function realizing method and cross-container communication method
  • Mobile terminal, container phone communication function realizing method and cross-container communication method
  • Mobile terminal, container phone communication function realizing method and cross-container communication method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0068] Embodiment 1 of the present invention provides a method for realizing the communication function of the container phone, such as Figure 1b As shown, the specific process includes the following steps:

[0069] S101: Create a pair of socket interfaces connected to each other, and acquire a first file descriptor and a second file descriptor respectively pointing to the two socket interfaces.

[0070] In the embodiment of the present invention, the mobile terminal can use the socketpair function of Linux to create a pair of unnamed, interconnected socket interfaces: the first socket interface and the second socket interface; Two fd (file descriptor, file descriptor) of a socket interface: the first file descriptor fd1 and the second file descriptor fd2.

[0071] Wherein, fd1 is a file descriptor returned by the kernel (kernel) when creating the first socket interface; fd2 is a file descriptor returned by the kernel when creating the second socket interface. The first soc...

Embodiment 2

[0086] Such as figure 2 As shown, the socket interface pointed to by the file descriptor can be shared with the container in the mobile terminal through the following steps:

[0087] S201: Obtain the file structure of the socket interface pointed to by the file descriptor.

[0088] In the solution of the present invention, the sharing of the socket interface is actually a kind of file sharing. In the case of relatively complete container isolation, a device driver can be set in the mobile terminal, and the device node can be used to share files between systems through the sharing of file descriptors.

[0089]It is considered that in practical applications, when a file is created, the kernel is provided with a file (file) structure describing the file; and file sharing can be realized by sharing the file (file) structure. Therefore, in the embodiment of the present invention, the file descriptor of the file to be shared can be passed to the driver, and the driver uses the fg...

Embodiment 3

[0111] Based on the method for realizing the communication function of the container phone in the mobile terminal provided in the first embodiment, the third embodiment of the present invention provides a mobile terminal, such as image 3 As shown, the mobile terminal may include: an interface creation unit 301 , a channel construction unit 302 , and a channel sharing unit 303 .

[0112] Wherein, the interface creation unit 301 is configured to create a pair of socket interfaces connected to each other, and obtain two file descriptors respectively pointing to the two socket interfaces.

[0113] The channel construction unit 302 is used to use one of the two file descriptors acquired by the interface creation unit 301 as the socket access interface of the rild process.

[0114] The channel sharing unit 303 is used to share the socket interface pointed to by another file descriptor obtained by the interface creation unit 301 with each container in the mobile terminal, so that th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a mobile terminal, container phone communication function realizing method and a cross-container communication method. The container phone communication function realizing method includes: creating a pair of mutually-connected socket interfaces, and acquiring two file descriptors respectively pointing to the two socket interfaces; using the socket interface to which one file descriptor points as a socket access interface of rild process independent from each container in the mobile terminal; sharing the socket interface to which the other file descriptor points to each container in the mobile terminal according to the other file descriptor to enable process of the containers to be in socket communication with the rild process through the socket interface connected with the access interface, and operating a serial port through the rild process to realize a phone communication function. By the container phone communication function realizing method, normal phone communication function of each container in the mobile terminal is guaranteed, uniform management of the container phone communication function is realized, and container management efficiency of an intelligent terminal is improved.

Description

technical field [0001] The present invention relates to the field of terminal technology, and in particular, the present invention relates to a mobile terminal, a method for implementing a container phone communication function, and a cross-container communication method. Background technique [0002] With the development of the times, various emerging operating systems continue to emerge, bringing users a novel and more convenient terminal experience. The Linux Container container is a kernel virtualization technology that can provide lightweight virtualization to isolate processes and resources without providing an instruction interpretation mechanism and other complexities of full virtualization. [0003] Using the namespace feature of the Linux kernel, multiple containers can be formed; through containers, the resources originally managed by a single operating system can be effectively divided into isolated groups to better balance between isolated groups With conflicti...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/54
CPCG06F9/545
Inventor 李翔王子宜
Owner BEIJING YUANXIN SCI & TECH