WO2023045511A1 - 移动数据网络建立方法、装置、电子设备及存储介质 - Google Patents

移动数据网络建立方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2023045511A1
WO2023045511A1 PCT/CN2022/105312 CN2022105312W WO2023045511A1 WO 2023045511 A1 WO2023045511 A1 WO 2023045511A1 CN 2022105312 W CN2022105312 W CN 2022105312W WO 2023045511 A1 WO2023045511 A1 WO 2023045511A1
Authority
WO
WIPO (PCT)
Prior art keywords
data network
modem
network
operating system
sending
Prior art date
Application number
PCT/CN2022/105312
Other languages
English (en)
French (fr)
Inventor
陈祥卿
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2023045511A1 publication Critical patent/WO2023045511A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • H04W60/04Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration using triggered events
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a mobile data network establishment method, device, electronic equipment, storage medium, computer program product and computer program.
  • the Linux operating system can access the Internet through multiple network interfaces, for example, a wired Ethernet interface, a wireless fidelity (Wireless Fidelity, Wi-Fi) interface, a modem module data network card, and the like.
  • the modem module data network card usually uses the point-to-point protocol (Point-to-Point Protocol, PPP) dial-up method to access the Internet, and the data transmission channel of the PPP dial-up network uses a low-speed serial port device, which affects the Internet access of the data network card.
  • PPP Point-to-Point Protocol
  • mobile devices can achieve very high Internet access rates through mobile data cellular networks such as 4G and 5G. Therefore, a solution based on Linux operating system to access the Internet through mobile data networks is needed.
  • the disclosure provides a mobile data network establishment method, device, electronic equipment, storage medium, computer program product and computer program.
  • the present disclosure provides a method for establishing a mobile data network, the method comprising:
  • the data network activation instruction is obtained through the network management service of the framework layer of the first operating system, and the data network activation instruction is sent to the modem through the second operating system;
  • the mobile data network is established according to the network configuration information through the network management service.
  • the present disclosure provides a device for establishing a mobile data network, the device comprising:
  • the first obtaining module is used to obtain the data network activation instruction through the network management service of the framework layer of the first operating system when the mobile data network registration is completed, and send the data network activation instruction to the modem through the second operating system;
  • a network activation module configured to perform a mobile data network activation operation through the modem according to a data network activation instruction
  • the second obtaining module is used to obtain network configuration information through the modem when the activation is completed, and send the network configuration information to the network management service;
  • the network establishment module is used for establishing a mobile data network according to network configuration information through the network management service.
  • an electronic device including:
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method in any embodiment of the present disclosure.
  • a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method in any embodiment of the present disclosure.
  • a computer program product including a computer program, and when the computer program is executed by a processor, the method in any embodiment of the present disclosure is implemented.
  • a computer program which implements the method in any embodiment of the present disclosure when the computer program is executed by a processor.
  • the mobile data network establishment method, device, electronic equipment, storage medium, computer program product, and computer program provided by the present disclosure obtain data network activation through the network management service of the framework layer of the first operating system when the mobile data network registration is completed.
  • instruction the data network activation instruction is sent to the modem through the second operating system;
  • the mobile data network activation operation is performed through the modem according to the data network activation instruction, and when the activation is completed, the network configuration information is obtained through the modem, and the network configuration information is sent to the network management service; through the network management service, a mobile data network is established according to the network configuration information.
  • the technical proposal of the present disclosure can realize the access to the Internet through the mobile data network based on the first operating system, and the Internet access speed is fast.
  • FIG. 1 is a schematic diagram of a method for establishing a mobile data network in an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of a method for establishing a mobile data network in an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a device for establishing a mobile data network in an embodiment of the present disclosure
  • Fig. 4 is a block diagram of an electronic device used to implement the method for establishing a mobile data network according to an embodiment of the present disclosure.
  • the applicant illustrates the technical problems to be solved by the embodiments of the present invention by taking the Linux operating system calling the Modem driver of the Android operating system as an example.
  • the cross-system driver call implemented by the containerized operating system implemented by sharing the operating system kernel is applicable to the method of the embodiment of the present invention.
  • the first operating system serving as the host and the second operating system deployed in the first operating system share a Linux kernel, which is realized by technologies such as LXC and containerization.
  • the first operating system may be various desktop Linux distributions, such as Ubuntu, Debian, RedHat, and the like. It should be noted that the first operating system is not limited to running on a physical machine, and may also be an operating system hosted on another operating system, such as WSL in a Windows system.
  • the second operating system may be an Android (Android) operating system, covering Android OS issued by Google, AOSP and various derivative systems based on AOSP, such as MIUI, EMUI, One UI, etc.
  • Android Android
  • various derivative systems based on AOSP such as MIUI, EMUI, One UI, etc.
  • the hardware abstraction layer HAL is an encapsulation of the operating system kernel driver, provides hardware access interfaces for various application layer requirements upwards, and shields low-level hardware driver implementation details downwards.
  • the executive subject of the present disclosure may be any electronic device, such as a terminal device, including but not limited to user equipment (UE, User Equipment), mobile device, cellular phone, cordless phone, personal digital processing (PDA, Personal Digital Assistant), Handheld devices, computing devices, in-vehicle devices, wearable devices, etc.
  • UE user equipment
  • PDA Personal Digital Assistant
  • Handheld devices computing devices, in-vehicle devices, wearable devices, etc.
  • the method may also be implemented in a manner in which the processor invokes computer-readable instructions stored in the memory.
  • the technical solution of the present disclosure can be applied to electronic equipment, and the electronic equipment includes a first operating system and a second operating system that shares a kernel with the first operating system and is deployed in the first operating system.
  • the first operating system is Linux operating system
  • the second operating system is the Android operating system.
  • the Linux operating system realizes the communication between the Linux operating system and the Android operating system by calling the Android Modem Hardware Abstract Layer (Android Modem HAL), and then realizes the communication between the Linux operating system and the modem.
  • Android Modem HAL Android Modem Hardware Abstract Layer
  • the specific process of calling the Modem HAL of the Android operating system by the Linux operating system includes: sending data from the Linux operating system to the Modem HAL of the Android operating system through the system interprocess communication mode Hwbinder service. Before using the Hwbinder service, pre-registration is required. Pre-register the transmission channel process of the Linux operating system as the client (client) of the Hwbinder service, and pre-register the Android Modem HAL as the server (server) of the Hwbinder service. After the registration is completed, the communication between the transmission channel process of the Linux operating system and the Android Modem HAL can be realized through the Hwbinder service.
  • pre-registering the transmission channel process of the Linux operating system as the client of the Hwbinder service includes: utilizing the first object creation function to create a first object of the client; utilizing the first object registration function to register the first object into the Hwbinder service;
  • the first object calling function is configured, and the first object calling function is used to call the first object to realize the transmission of encoded instruction data.
  • the first object creation function may be gbinder_client_new; the first object registration function may be gbinder_client_ipc; the first object calling function may be gbinder_client_transact.
  • the Android Modem HAL is pre-registered as the server of the Hwbinder service, including: using the second object creation function to create the second object of the server; using the second object registration function to register the second object in the Hwbinder service; configuring the second object
  • the calling function, the second object calling function is used to call the second object to realize the transmission of encoded instruction data.
  • the second object creation function may be gbinder_server_new; the second object registration function may be gbinder_server_ipc; the second object calling function may be gbinder_server_transact.
  • the Linux operating system can realize the establishment of a mobile data network link by adapting the Android Modem HAL.
  • the Linux operating system can use 4G, 5G and other cellular networks to access the Internet.
  • FIG. 1 is a schematic diagram of a method for establishing a mobile data network in an embodiment of the present disclosure. As shown in Figure 1, the method may include:
  • Step S101 when the mobile data network registration is completed, obtain the data network activation instruction through the network management service of the framework layer of the first operating system, and send the data network activation instruction to the modem through the second operating system;
  • the terminal device performs mobile data network registration through a modem (Modem). After the registration is completed, the registration completion message is sent to the Linux framework layer through the modem.
  • the network management service (NetworkManager) generates a data network activation command through the network management service or reads a pre-configured data network activation command, and sends the data network activation command to the modem through the Android operating system.
  • the data network activation instruction is used to activate the mobile data network, and the mobile data network includes but not limited to 2G, 3G, 4G, 5G and other cellular networks.
  • Step S102 performing a mobile data network activation operation through the modem according to the data network activation instruction
  • the terminal device completes the signaling for data network activation through the modem.
  • the signaling for activating data services in 3G networks and 4G/5G networks is different.
  • the modem sends the first activation request message to the core network: ACTIVATE PDP CONTEXT REQUEST message
  • the core network will reply the first activation response message after receiving this message: ACTIVATE PDP CONTEXT ACCEPT message, after the modem receives this message, it indicates that the data service activation is successful;
  • the core network replies with the second activation response message: ACTIVATE DEFAULT EPS BEARER CONTEXT ACCEPT message.
  • Network activation is complete.
  • Step S103 when the activation is completed, obtain the network configuration information through the modem, and send the network configuration information to the network management service;
  • the network configuration information includes but is not limited to: IP address, gateway address, and domain name server (Domain Name Server, DNS) address.
  • Step S104 establishing a mobile data network according to the network configuration information through the network management service.
  • the configuration of the network device is completed, the establishment of the mobile data network is completed.
  • the status information of the configured network device is as follows:
  • the name of the mobile network device is sipa_eth0, the IP address is 10.93.42.200, the network mask is 255.255.255.0, and the broadcast address is 10.93.42.255. You can configure the network device as the default device through the default field in the routing table information.
  • the network device is selected by default, and the priority of the network device can also be configured through the priority field in the routing table information.
  • the browser When the browser accesses the webpage, it will first detect the currently available network devices and find that sipa_eth0 is available, then the IP data packets that go online will be sent and received through sipa_eth0.
  • the data network activation instruction is obtained through the network management service of the framework layer of the first operating system, and the data network activation instruction is sent to Modem: activate the mobile data network through the modem according to the data network activation instruction, and obtain the network configuration information through the modem when the activation is completed, and send the network configuration information to the network management service; establish the network configuration information through the network management service mobile data network.
  • the technical proposal of the present disclosure can realize the access to the Internet through the mobile data network based on the first operating system, and the Internet access speed is fast.
  • sending the data network activation instruction to the modem through the second operating system includes:
  • the data network activation command is sent to the modem through the modem hardware abstraction layer.
  • the terminal device can send the data network activation command to the telephone service (telephony) of the Linux framework layer through the network management service, and send the data through the telephone service.
  • the network activation command is sent to the Android Modem HAL in the Android operating system, and then the data network activation command is sent to the modem through the Android Modem HAL, so that the modem performs a data network activation operation.
  • the data is sent to the modem through the Android Modem HAL, which avoids the problem that the Linux operating system is directly adapted to the Modem and needs to develop multiple interfaces that adapt to different Modem drivers in the Linux operating system. .
  • the data network activation instruction is sent to the telephony service of the framework layer of the first operating system through the network management service, including:
  • the data bus interface of the connection management module of the telephone service is called through the network management service, and the data network activation instruction is sent to the telephone service.
  • the data bus (such as D-Bus) interface of the connection management module (Connection Manager) of the telephone service can be invoked through the network management service, and the data network activation command is sent to the telephone service.
  • the data bus interface is used for data transmission, which can realize low delay, low overhead, and high availability.
  • the method before obtaining the data network activation instruction through the network management service of the framework layer of the first operating system, the method further includes:
  • Mobile data network registration is performed through the modem according to the data network registration command.
  • mobile data network registration can be performed through the modem before the mobile data network is activated.
  • the mobile data network registration success message is reported to the network management service through the modem, and the data network activation process is started through the network management service.
  • obtaining the data network registration instruction through the telephone service includes:
  • the data bus interface of the network registration module of the telephone service is invoked through the mobile data network application program, and the data network registration instruction is sent to the telephone service.
  • the terminal device can receive a mobile data network opening operation through the mobile data network setting interface of the mobile data network application program, and generate a data network registration instruction or call a pre-configured
  • the data network registration instruction calls the data bus interface of the network registration module (Network Registration) of the telephone service, and sends the data network registration instruction to the telephone service.
  • Network Registration Network Registration
  • the data bus interface is used for data transmission, which can realize low delay, low overhead, and high availability.
  • sending the data network registration instruction to the modem through the second operating system includes:
  • the data network registration command is sent to the modem through the modem hardware abstraction layer.
  • the data network registration command is sent to the Rild process of the radio frequency interface layer of the Android Modem HAL through the telephone service.
  • the Rild process can be used in the Android Modem
  • the application process that communicates between the HAL and the modem.
  • the network configuration information is sent to the network management service through a modem, including:
  • the Linux operating system cannot directly communicate with the modem, so the Android Modem HAL is used as a relay, and the modem reports the network configuration information to the network through the Android Modem HAL.
  • the management service configures the network equipment according to the network configuration information through the network management service, and completes the establishment of the mobile data network.
  • FIG. 2 is a schematic diagram of a method for establishing a mobile data network in an embodiment of the present disclosure, wherein the first operating system is a Linux operating system, and the second operating system is an Android operating system.
  • the method in this embodiment includes:
  • Step S201 in response to a mobile data network activation operation, obtain a data network registration instruction through a mobile data network application program.
  • Step S202 sending the data network registration instruction to the telephone service through the mobile data network application program.
  • Step S203 sending the data network registration instruction to the modem through the telephone service.
  • Step S204 perform mobile data network registration through the modem according to the data network registration instruction.
  • Step S205 when the registration is completed, obtain the data network activation instruction through the network management service of the Linux framework layer, and send the data network activation instruction to the modem.
  • step S206 the mobile data network activation operation is performed through the modem according to the data network activation instruction.
  • Step S207 when the activation is completed, obtain the network configuration information through the modem, and send the network configuration information to the network management service;
  • Step S208 establishing a mobile data network according to the network configuration information through the network management service.
  • the data network activation instruction is obtained through the network management service of the Linux framework layer, and the data network activation instruction is sent to the modem through the network management service; through the modem
  • the mobile data network activation operation is performed according to the data network activation instruction, and when the activation is completed, the network configuration information is obtained through the modem, and the network configuration information is sent to the network management service; the mobile data network is established through the network management service according to the network configuration information.
  • the disclosed technical scheme can realize the access to the Internet through the mobile data network based on the Linux operating system, and the Internet access speed is fast.
  • FIG. 3 is a schematic diagram of an apparatus for establishing a mobile data network in an embodiment of the present disclosure. As shown in Figure 3, the device may include:
  • the first obtaining module 301 is configured to obtain the data network activation instruction through the network management service of the framework layer of the first operating system when the mobile data network registration is completed, and send the data network activation instruction to the modem through the second operating system;
  • a network activation module 302 configured to perform a mobile data network activation operation through a modem according to a data network activation instruction
  • the second acquiring module 303 is configured to acquire the network configuration information through the modem when the activation is completed, and send the network configuration information to the network management service;
  • a network establishing module 304 configured to establish a mobile data network according to network configuration information through network management services.
  • the mobile data network establishment device obtains the data network activation instruction through the network management service of the framework layer of the first operating system when the mobile data network registration is completed, and sends the data network activation instruction through the second operating system to the modem; activate the mobile data network through the modem according to the data network activation instruction, and obtain the network configuration information through the modem when the activation is completed, and send the network configuration information to the network management service; through the network management service according to the network configuration information Set up a mobile data network.
  • the technical proposal of the present disclosure can realize the access to the Internet through the mobile data network based on the first operating system, and the Internet access speed is fast.
  • the first obtaining module 301 when the first obtaining module 301 sends the data network activation instruction to the modem through the second operating system, it is configured to:
  • the data network activation command is sent to the modem through the modem hardware abstraction layer.
  • the first obtaining module 301 sends the data network activation instruction to the telephony service of the framework layer of the first operating system through the network management service, it is configured to:
  • the data bus interface of the connection management module of the telephone service is called through the network management service, and the data network activation instruction is sent to the telephone service.
  • the device further includes a network registration module, configured to:
  • Mobile data network registration is performed through the modem according to the data network registration command.
  • the network registration module obtains the data network registration instruction through the telephone service, it is used to:
  • the data bus interface of the network registration module of the telephone service is invoked through the mobile data network application program, and the data network registration instruction is sent to the telephone service.
  • the network registration module when the network registration module sends the data network registration instruction to the modem through the second operating system, it is used to:
  • the data network registration command is sent to the modem through the modem hardware abstraction layer.
  • the second acquiring module 303 when the second acquiring module 303 sends the network configuration information to the network management service through a modem, it is configured to:
  • the present disclosure also provides an electronic device, a readable storage medium, a computer program product and a computer program.
  • FIG. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure.
  • Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
  • the electronic device 400 includes a computing unit 401, which can be loaded into a random access memory (RAM, Random Access) according to a computer program stored in a read-only memory (ROM, Read-Only Memory) 402 or from a storage unit 408.
  • RAM random access memory
  • ROM Read-Only Memory
  • Memory Memory
  • the computing unit 401, ROM 402, and RAM 403 are connected to each other through a bus 404.
  • An input/output (I/O, Input/Output) interface 405 is also connected to the bus 404 .
  • the I/O interface 405 includes: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a magnetic disk, an optical disk etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, and the like.
  • the communication unit 409 allows the electronic device 400 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.
  • the computing unit 401 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing unit 401 include but are not limited to central processing unit (CPU, Central Processing Unit), graphics processing unit (GPU, Graphic Processing Unit), various dedicated artificial intelligence (AI, Artificial Intelligence) computing chips, various operating Computational units of machine learning model algorithms, digital signal processors (DSP, Digital Signal Processing), and any appropriate processors, controllers, microcontrollers, etc.
  • the calculation unit 401 executes various methods and processes described above, such as a method for establishing a mobile data network.
  • the method for establishing a mobile data network may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 408 .
  • part or all of the computer program can be loaded and/or installed on the electronic device 400 via the ROM 402 and/or the communication unit 409.
  • the computing unit 401 may be configured in any other appropriate way (for example, by means of firmware) to execute the method for establishing a mobile data network.
  • programmable processor can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
  • Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented.
  • the program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM, Electrical Programmable ROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM, Compact disc ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the systems and techniques described herein can be implemented on a computer having a display device (e.g., a cathode ray tube (CRT, Cathode Ray Tube) or a liquid crystal display (LCD) for displaying information to the user. LCD, Liquid Crystal Display) monitor); and a keyboard and pointing device (such as a mouse or trackball) through which the user can provide input to the computer.
  • a display device e.g., a cathode ray tube (CRT, Cathode Ray Tube) or a liquid crystal display (LCD) monitor
  • LCD Liquid Crystal Display
  • keyboard and pointing device such as a mouse or trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input, or tactile input) to receive input from the user.
  • the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN, Local Area Network), Wide Area Network (WAN, Wide Area Network) and the Internet.
  • a computer system may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
  • steps may be reordered, added or deleted using the various forms of flow shown above.
  • each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.

Landscapes

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

Abstract

本公开提供了一种移动数据网络建立方法、装置、电子设备、存储介质、计算机程序产品及计算机程序,涉及通信技术领域。该方法包括:在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,通过第二操作系统将数据网络激活指令发送至调制解调器;通过调制解调器根据数据网络激活指令进行移动数据网络激活操作,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;通过网络管理服务根据网络配置信息建立移动数据网络。本公开技术方案,可以实现基于第一操作系统通过移动数据网络访问互联网,上网速率快。

Description

移动数据网络建立方法、装置、电子设备及存储介质
相关申请的交叉引用
本公开要求于2021年09月26日提交的申请号为2021111287397、名称为“移动数据网络建立方法、装置、电子设备及存储介质”的中国专利申请的优先权,此申请的内容通过引用并入本文。
技术领域
本公开涉及计算机技术领域,尤其涉及一种移动数据网络建立方法、装置、电子设备、存储介质、计算机程序产品及计算机程序。
背景技术
Linux操作系统可以通过多种网络接口访问互联网,例如,有线以太网接口,无线保真(Wireless Fidelity,Wi-Fi)接口,Modem模组数据网卡等。但是,Modem模组数据网卡通常使用点对点协议(Point-to-Point Protocol,PPP)拨号上网的方式访问互联网,而PPP拨号上网的数据传输通道采用的是低速率的串口设备,影响数据网卡的上网速率,而移动设备通过4G、5G等移动数据蜂窝网络可以实现非常高的上网速率,因此,需要一种基于Linux操作系统通过移动数据网络访问互联网的解决方案。
发明内容
本公开提供了一种移动数据网络建立方法、装置、电子设备、存储介质、计算机程序产品及计算机程序。
一方面,本公开提供了一种移动数据网络建立方法,该方法包括:
在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,并通过第二操作系统将数据网络激活指令发送至调制解调器;
通过调制解调器根据数据网络激活指令进行移动数据网络激活操作;
在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;
通过网络管理服务根据网络配置信息建立移动数据网络。
另一方面,本公开提供了一种移动数据网络建立装置,该装置包括:
第一获取模块,用于在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,并通过第二操作系统将数据网络激活指令发送至调制解调器;
网络激活模块,用于通过调制解调器根据数据网络激活指令进行移动数据网络激活操作;
第二获取模块,用于在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;
网络建立模块,用于通过网络管理服务根据网络配置信息建立移动数据网络。
根据本公开的另一方面,提供了一种电子设备,包括:
至少一个处理器;以及
与该至少一个处理器通信连接的存储器;其中,
该存储器存储有可被该至少一个处理器执行的指令,该指令被该至少一个处理器执行,以使该至少一个处理器能够执行本公开任一实施例中的方法。
根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,该计算机指令用于使计算机执行本公开任一实施例中的方法。
根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现本公开任一实施例中的方法。
根据本公开的另一方面,提供了一种计算机程序,该计算机程序被处理器执行时实现本公开任一实施例中的方法。
本公开提供的移动数据网络建立方法、装置、电子设备、存储介质、计算机程序产品及计算机程序,在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,通过第二操作系统将数据网络激活指令发送至调制解调器;通过调制解调器根据数据网络激活指令进行移动数据网络激活操作,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;通过网络管理服务根据网络配置信息建立移动数据网络。本公开技术方案,可以实现基于第一操作系统通过移动数据网络访问互联网,上网速率快。
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。
附图说明
附图用于更好地理解本方案,不构成对本公开的限定。其中:
图1为本公开一实施例中移动数据网络建立方法的示意图;
图2为本公开一实施例中移动数据网络建立方法的示意图;
图3为本公开一实施例中移动数据网络建立装置的示意图;
图4是用来实现本公开实施例的移动数据网络建立方法的电子设备的框图。
具体实施方式
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。
在下述实施例中,申请人以Linux操作系统调用Android操作系统的Modem驱动为例说明了本发明实施例要解决的技术问题。本领域技术人员能够理解,类似的应用场景,只要是以共享操作系统内核实现的容器化的操作系统实现的跨系统的驱动调用都适用于本发明实施例的方法。
例如,作为宿主的第一操作系统和部署在第一操作系统中的第二操作系统是共享Linux内核,通过LXC、容器化等技术实现。
例如,第一操作系统可以是各种桌面Linux发行版,如Ubuntu、Debian、RedHat等。需要说明的是,第一操作系统并不限定是运行在物理机上的,也可以是托管在其它操作系统上的操作系统,例如Windows系统中的WSL。
例如,第二操作系统可以是Android(安卓)操作系统,涵盖Google发行的Android OS以及AOSP和基于AOSP的各种衍生系统,如MIUI、EMUI、One UI等。
如本领域技术人员所知,还存在多种其它的基于Linux Kernel的用于手机等设备上原生支持调制解调器Modem的移动操作系统,如Tizen、鸿蒙、Meego等作为第二操作系统的示例,同样适用于本发明实施例的技术方案。
在下述实施例中,硬件抽象层HAL是对操作系统内核驱动程序的封装,向上对各种应用层需求提供硬件访问接口,向下屏蔽低层硬件的驱动实现细节。
本公开的执行主体可以是任一电子设备,例如,终端设备,包括但不限于用户设备(UE,User Equipment)、移动设备、蜂窝电话、无绳电话、个人数字处理(PDA,Personal Digital Assistant)、手持设备、计算设备、车载设备、可穿戴设备等。在一些可能的实现方式中,该方法还可以通过处理器调用存储器中存储的计算机可读指令的方式来实现。
本公开技术方案可以应用于电子设备,电子设备包括第一操作系统和与第一操作系统共享内核并部署在第一操作系统中的第二操作系统,本实施例中,第一操作系统为Linux操作系统,第二操作系统为Android操作系统。Linux操作系统通过调用安卓调制解调硬件抽象层(Android Modem Hardware Abstract Layer,Android Modem HAL)实现Linux操作系统和Android操作系统的通信,进而实现Linux操作系统和调制解调器的通信。
在一种可能的实现方式中,Linux操作系统调用Android操作系统的Modem HAL的具体过程包括:通过系统进程间通信方式Hwbinder服务将数据从Linux操作系统发送至Android操作系统的Modem HAL。在使用Hwbinder服务之前,需要预先进行注册。预先将Linux操作系统的传输通道进程注册为Hwbinder服务的客户端(client),预先将Android Modem HAL注册为Hwbinder服务的服务端(server)。注册完成之后,可以通过Hwbinder服务实现Linux操作系统的传输通道进程和Android Modem HAL的通信。
其中,预先将Linux操作系统的传输通道进程注册为Hwbinder服务的客户端,包括:利用第一对象创建函数创建客户端的第一对象;利用第一对象注册函数将第一对象注册到Hwbinder服务中;配置第一对象调用函数,第一对象调用函数用于调用第一对象以实现编码后的指令数据的传输。其中,第一对象创建函数可以是gbinder_client_new;第一对象注册函数可以是gbinder_client_ipc;第一对象调用函数可以是gbinder_client_transact。
其中,预先将Android Modem HAL注册为Hwbinder服务的服务端,包括:利用第二对象创建函数创建服务端的第二对象;利用第二对象注册函数将第二对象注册到Hwbinder服务中;配置第二对象调用函数,第二对象调用函数用于调用第二对象以实现编码后的指令数据的传输。其中,第二对象创建函数可以是gbinder_server_new;第二对象注册函数可以是gbinder_server_ipc;第二对象调用函数可以是gbinder_server_transact。
本公开技术方案中,Linux操作系统通过适配Android Modem HAL,可以实现移动数据网络链路的建立。通过Linux操作系统中的网络管理服务,实现了Linux操作系统使用4G、5G等蜂窝网络访问互联网。
以下将详细介绍本公开实施例中的移动数据网络建立方法。
图1为本公开一实施例中移动数据网络建立方法的示意图。如图1所示,该方法可以包括:
步骤S101,在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,并通过第二操作系统将数据网络激活指令发送至调制解调器;
以第一操作系统为Linux操作系统、第二操作系统为Android操作系统为例,终端设备通过 调制解调器(Modem)进行移动数据网络注册,注册完成后,通过调制解调器将注册完成消息发送至Linux框架层的网络管理服务(NetworkManager),通过网络管理服务生成数据网络激活指令或者读取出预先配置的数据网络激活指令,并通过Android操作系统将数据网络激活指令发送至调制解调器。其中,数据网络激活指令用于激活移动数据网络,移动数据网络包括但不限于2G、3G、4G、5G等蜂窝网络。
步骤S102,通过调制解调器根据数据网络激活指令进行移动数据网络激活操作;
终端设备通过调制解调器完成数据网络激活的信令,3G网络和4G/5G网络激活数据业务的信令不同,当在3G网络下激活数据业务,调制解调器向核心网发送第一激活请求消息:ACTIVATE PDP CONTEXT REQUEST消息,核心网收到该消息后回复第一激活响应消息:ACTIVATE PDP CONTEXT ACCEPT消息,调制解调器收到该消息后表示数据业务激活成功;当在4G或者5G网络下激活数据业务,调制解调器向核心网发送第二激活请求消息:ACTIVATE DEFAULT EPS BEARER CONTEXT REQUEST消息,核心网收到该消息后回复第二激活响应消息:ACTIVATE DEFAULT EPS BEARER CONTEXT ACCEPT消息,调制解调器收到该消息表示数据业务激活成功,移动数据网络激活完成。
步骤S103,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;
通过调制解调器从核心网获取网络配置信息发送至网络管理服务,网络配置信息包括但不限于:IP地址、网关地址、域名服务器(Domain Name Server,DNS)地址。
步骤S104,通过网络管理服务根据网络配置信息建立移动数据网络。
通过网络管理服务根据网络配置信息配置网络设备的IP地址、路由表信息等,网络设备配置完成时,移动数据网络建立完成。
在一个具体的实施例中,配置完成的网络设备的状态信息如下:
移动网络设备名称是sipa_eth0,IP地址是10.93.42.200,网络掩码是255.255.255.0,广播地址是10.93.42.255,可以通过路由表信息中的default字段配置该网络设备为默认设备,当上层应用程序访问网络时,默认选择该网络设备,还可以通过路由表信息中的优先级字段配置该网络设备的优先级。
当浏览器访问网页时会先检测当前可以使用的网络设备,发现sipa_eth0可用,则上网的IP数据包会通过sipa_eth0来收发。
本公开实施例提供的移动数据网络建立方法,在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,通过网络管理服务将数据网络激活指令发送至调制解调器;通过调制解调器根据数据网络激活指令进行移动数据网络激活操作,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;通过网络管理服务根据网络配置信息建立移动数据网络。本公开技术方案,可以实现基于第一操作系统通过移动数据网络访问互联网,上网速率快。
在一种可能的实现方式中,通过第二操作系统将数据网络激活指令发送至调制解调器,包括:
通过网络管理服务将数据网络激活指令发送至第一操作系统的框架层的电话服务;
通过电话服务将数据网络激活指令发送至第二操作系统的调制解调硬件抽象层;
通过调制解调硬件抽象层将数据网络激活指令发送至调制解调器。
以第一操作系统为Linux操作系统、第二操作系统为Android操作系统为例,终端设备可以通过网络管理服务将数据网络激活指令发送至Linux框架层的电话服务(telephony),通过电话服 务将数据网络激活指令发送至Android操作系统中的Android Modem HAL,再通过Android Modem HAL将数据网络激活指令发送至调制解调器,以使调制解调器进行数据网络激活操作。
本公开实施例中,通过Android Modem HAL将数据发送到调制解调器,避免了Linux操作系统直接与Modem适配,需要在Linux操作系统中开发多个适配不同Modem驱动的接口导致的工作量大的问题。
在一种可能的实现方式中,通过网络管理服务将数据网络激活指令发送至第一操作系统的框架层的电话服务,包括:
通过网络管理服务调用电话服务的连接管理模块的数据总线接口,将数据网络激活指令发送至电话服务。
以第一操作系统为Linux操作系统为例,可以通过网络管理服务调用电话服务的连接管理模块(Connection Manager)的数据总线(如D-Bus)接口,将数据网络激活指令发送至电话服务。
本公开实施例中,采用数据总线接口进行数据发送,可以实现低延迟、低开销、高可用性。
在一种可能的实现方式中,在通过第一操作系统的框架层的网络管理服务获取数据网络激活指令之前,该方法还包括:
通过电话服务获取数据网络注册指令,并通过第二操作系统将数据网络注册指令发送至调制解调器;
通过调制解调器根据数据网络注册指令进行移动数据网络注册。
在实际应用中,在移动数据网络激活之前,可以通过调制解调器进行移动数据网络注册。首先通过电话服务获取数据网络注册指令,并将数据网络注册指令发送至调制解调器;通过调制解调器根据数据网络注册指令完成数据网络注册的信令流程,具体的注册流程可以包括:调制解调器向核心网发送注册请求消息:ATTACH REQUEST消息,核心网回复注册响应消息:ATTACH ACCEPT消息,调制解调器再向核心网发送激活完成消息:ATTACH COMPLETE消息,至此调制解调器的状态由未注册状态变为已注册状态。注册完成后,通过调制解调器上报移动数据网络注册成功消息至网络管理服务,通过网络管理服务启动数据网络激活流程。
在一种可能的实现方式中,通过电话服务获取数据网络注册指令,包括:
响应于移动数据网络开启操作,通过移动数据网络应用程序获取数据网络注册指令;
通过移动数据网络应用程序调用电话服务的网络登记模块的数据总线接口,将数据网络注册指令发送至电话服务。
以第一操作系统为Linux操作系统为例,终端设备可以通过移动数据网络应用程序的移动数据网络设置界面接收移动数据网络开启操作,根据移动数据网络开启操作生成数据网络注册指令或者调用预先配置的数据网络注册指令,调用电话服务的网络登记模块(Network Registration)的数据总线接口,将数据网络注册指令发送至电话服务。
本公开实施例中,采用数据总线接口进行数据发送,可以实现低延迟、低开销、高可用性。
在一种可能的实现方式中,通过第二操作系统将数据网络注册指令发送至调制解调器,包括:
通过电话服务将数据网络注册指令发送至第二操作系统的调制解调硬件抽象层;
通过调制解调硬件抽象层将数据网络注册指令发送至调制解调器。
以第一操作系统为Linux操作系统、第二操作系统为Android操作系统为例,通过电话服务将数据网络注册指令发送至Android Modem HAL的射频接口层Rild进程中,Rild进程是可以用于Android Modem HAL和调制解调器进行通信的应用进程。
在一种可能的实现方式中,通过调制解调器将网络配置信息发送至网络管理服务,包括:
通过调制解调器将网络配置信息发送至调制解调硬件抽象层;
通过调制解调硬件抽象将网络配置信息发送至网络管理服务。
以第一操作系统为Linux操作系统、第二操作系统为Android操作系统为例,Linux操作系统不能直接和调制解调器通信,因此以Android Modem HAL为中转,调制解调器通过Android Modem HAL将网络配置信息上报到网络管理服务,通过网络管理服务根据网络配置信息配置网络设备,完成建立移动数据网络的建立。
下面通过一个具体的实施例来介绍本公开中的移动数据网络建立方法的实现过程。图2为本公开一实施例中移动数据网络建立方法的示意图,其中,第一操作系统为Linux操作系统、第二操作系统为Android操作系统。
如图2所示,本实施例中的方法包括:
步骤S201,响应于移动数据网络开启操作,通过移动数据网络应用程序获取数据网络注册指令。
步骤S202,通过移动数据网络应用程序将数据网络注册指令发送至电话服务。
步骤S203,通过电话服务将数据网络注册指令发送至调制解调器。
步骤S204,通过调制解调器根据数据网络注册指令进行移动数据网络注册。
步骤S205,在注册完成的情况下,通过Linux框架层的网络管理服务获取数据网络激活指令,并将数据网络激活指令发送至调制解调器。
步骤S206,通过调制解调器根据数据网络激活指令进行移动数据网络激活操作。
步骤S207,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;
步骤S208,通过网络管理服务根据网络配置信息建立移动数据网络。
本公开实施例提供的移动数据网络建立方法,在移动数据网络注册完成情况下,通过Linux框架层的网络管理服务获取数据网络激活指令,通过网络管理服务将数据网络激活指令发送至调制解调器;通过调制解调器根据数据网络激活指令进行移动数据网络激活操作,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;通过网络管理服务根据网络配置信息建立移动数据网络。本公开技术方案,可以实现基于Linux操作系统通过移动数据网络访问互联网,上网速率快。
图3为本公开一实施例中移动数据网络建立装置的示意图。如图3所示,该装置可以包括:
第一获取模块301,用于在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,并通过第二操作系统将数据网络激活指令发送至调制解调器;
网络激活模块302,用于通过调制解调器根据数据网络激活指令进行移动数据网络激活操作;
第二获取模块303,用于在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;
网络建立模块304,用于通过网络管理服务根据网络配置信息建立移动数据网络。
本公开实施例提供的移动数据网络建立装置,在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,通过第二操作系统将数据网络激活指令发送至调制解调器;通过调制解调器根据数据网络激活指令进行移动数据网络激活操作,在激活完成的情况下,通过调制解调器获取网络配置信息,并将网络配置信息发送至网络管理服务;通过网络管理服务根据网络配置信息建立移动数据网络。本公开技术方案,可以实现基于第一操作系统通过移动数据网络访问互联网,上网速率快。
在一种可能的实现方式中,第一获取模块301在通过第二操作系统将数据网络激活指令发送至调制解调器时,用于:
通过网络管理服务将数据网络激活指令发送至第一操作系统框架层的电话服务;
通过电话服务将数据网络激活指令发送至第二操作系统的调制解调硬件抽象层;
通过调制解调硬件抽象层将数据网络激活指令发送至调制解调器。
在一种可能的实现方式中,第一获取模块301在在通过网络管理服务将数据网络激活指令发送至第一操作系统的框架层的电话服务时,用于:
通过网络管理服务调用电话服务的连接管理模块的数据总线接口,将数据网络激活指令发送至电话服务。
在一种可能的实现方式中,该装置还包括网络注册模块,用于:
通过电话服务获取数据网络注册指令,并通过第二操作系统将数据网络注册指令发送至调制解调器;
通过调制解调器根据数据网络注册指令进行移动数据网络注册。
在一种可能的实现方式中,网络注册模块在通过电话服务获取数据网络注册指令时,用于:
响应于移动数据网络开启操作,通过移动数据网络应用程序获取数据网络注册指令;
通过移动数据网络应用程序调用电话服务的网络登记模块的数据总线接口,将数据网络注册指令发送至电话服务。
在一种可能的实现方式中,网络注册模块在通过第二操作系统将数据网络注册指令发送至调制解调器时,用于:
通过电话服务将数据网络注册指令发送至第二操作系统的调制解调硬件抽象层;
通过调制解调硬件抽象层将数据网络注册指令发送至调制解调器。
在一种可能的实现方式中,第二获取模块303在通过调制解调器将网络配置信息发送至网络管理服务时,用于:
通过调制解调器将网络配置信息发送至第二操作系统的调制解调硬件抽象层;
通过调制解调硬件抽象层将网络配置信息发送至网络管理服务。
本公开实施例各装置中的各单元、模块或子模块的功能可以参见上述方法实施例中的对应描述,在此不再赘述。
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质、一种计算机程序产品及计算机程序。
图4示出了可以用来实施本公开的实施例的示例电子设备400的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或要求的本公开的实现。
如图4所示,电子设备400包括计算单元401,其可以根据存储在只读存储器(ROM,Read-Only Memory)402中的计算机程序或者从存储单元408加载到随机访问存储器(RAM,Random Access Memory)403中的计算机程序来执行各种适当的动作和处理。在RAM 403中,还可存储电子设备400操作所需的各种程序和数据。计算单元401、ROM 402以及RAM 403通过总线404彼此相连。输入输出(I/O,Input/Output)接口405也连接至总线404。
电子设备400中的多个部件连接至I/O接口405,包括:输入单元406,例如键盘、鼠标等;输出单元407,例如各种类型的显示器、扬声器等;存储单元408,例如磁盘、光盘等;以及通信单元409,例如网卡、调制解调器、无线通信收发机等。通信单元409允许电子设备400通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。
计算单元401可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元401的一些示例包括但不限于中央处理单元(CPU,Central Processing Unit)、图形处理单元(GPU,Graphic Processing Unit)、各种专用的人工智能(AI,Artificial Intelligence)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP,Digital Signal Processing)、以及任何适当的处理器、控制器、微控制器等。计算单元401执行上文所描述的各个方法和处理,例如移动数据网络建立方法。例如,在一些实施例中,移动数据网络建立方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元408。在一些实施例中,计算机程序的部分或者全部可以经由ROM 402和/或通信单元409而被载入和/或安装到电子设备400上。当计算机程序加载到RAM 403并由计算单元401执行时,可以执行上文描述的移动数据网络建立方法的一个或多个步骤。备选地,在其他实施例中,计算单元401可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行移动数据网络建立方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA,Field Programmable Gate Array)、专用集成电路(ASIC,Application Specific Integrated Circuit)、专用标准产品(ASSP,Application Specific Standard Product)、芯片上系统的系统(SOC,System on a Chip)、复杂可编程逻辑设备(CPLD,Complex Programmable Logic Device)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM,Electrical Programmable ROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM,Compact disc ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,阴极射线管(CRT,Cathode Ray Tube)或者液晶显示器(LCD,Liquid Crystal Display)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过 该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入、或者触觉输入)来接收来自用户的输入。
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN,Local Area Network)、广域网(WAN,Wide Area Network)和互联网。
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。

Claims (18)

  1. 一种移动数据网络建立方法,应用于电子设备,电子设备包括第一操作系统和与第一操作系统共享内核并部署在第一操作系统中的第二操作系统,其特征在于,所述方法包括:
    在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,并通过第二操作系统将所述数据网络激活指令发送至调制解调器;
    通过所述调制解调器根据所述数据网络激活指令进行移动数据网络激活操作;
    在激活完成的情况下,通过所述调制解调器获取网络配置信息,并将所述网络配置信息发送至所述网络管理服务;
    通过所述网络管理服务根据所述网络配置信息建立移动数据网络。
  2. 根据权利要求1所述的方法,其特征在于,所述通过第二操作系统将所述数据网络激活指令发送至调制解调器,包括:
    通过所述网络管理服务将所述数据网络激活指令发送至第一操作系统的框架层的电话服务;
    通过所述电话服务将所述数据网络激活指令发送至第二操作系统的调制解调硬件抽象层;
    通过所述调制解调硬件抽象层将所述数据网络激活指令发送至所述调制解调器。
  3. 根据权利要求2所述的方法,其特征在于,所述通过所述网络管理服务将所述数据网络激活指令发送至第一操作系统的框架层的电话服务,包括:
    通过所述网络管理服务调用所述电话服务的连接管理模块的数据总线接口,将所述数据网络激活指令发送至所述电话服务。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,在通过第一操作系统的框架层的网络管理服务获取数据网络激活指令之前,所述方法还包括:
    通过电话服务获取数据网络注册指令,并通过所述第二操作系统将所述数据网络注册指令发送至调制解调器;
    通过所述调制解调器根据所述数据网络注册指令进行移动数据网络注册。
  5. 根据权利要求4所述的方法,其特征在于,所述通过所述电话服务获取数据网络注册指令,包括:
    响应于移动数据网络开启操作,通过移动数据网络应用程序获取数据网络注册指令;
    通过所述移动数据网络应用程序调用所述电话服务的网络登记模块的数据总线接口,将所述数据网络注册指令发送至所述电话服务。
  6. 根据权利要求4所述的方法,其特征在于,所述通过所述第二操作系统将所述数据网络注册指令发送至调制解调器,包括:
    通过所述电话服务将所述数据网络注册指令发送至所述第二操作系统的调制解调硬件抽象层;
    通过所述调制解调硬件抽象层将所述数据网络注册指令发送至调制解调器。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述通过所述调制解调器将所述网络配置信息发送至所述网络管理服务,包括:
    通过所述调制解调器将所述网络配置信息发送至调制解调硬件抽象层;
    通过所述调制解调硬件抽象层将所述网络配置信息发送至所述网络管理服务。
  8. 一种移动数据网络建立装置,应用于电子设备,电子设备包括第一操作系统和与第一操作系统共享内核并部署在第一操作系统中的第二操作系统,其特征在于,所述装置包括:
    第一获取模块,用于在移动数据网络注册完成情况下,通过第一操作系统的框架层的网络管理服务获取数据网络激活指令,并通过第二操作系统将所述数据网络激活指令发送至调制解调器;
    网络激活模块,用于通过所述调制解调器根据所述数据网络激活指令进行移动数据网络激活操作;
    第二获取模块,用于在激活完成的情况下,通过所述调制解调器获取网络配置信息,并将所述网络配置信息发送至所述网络管理服务;
    网络建立模块,用于通过所述网络管理服务根据所述网络配置信息建立移动数据网络。
  9. 根据权利要求8所述的装置,其特征在于,所述第一获取模块在通过第二操作系统将所述数据网络激活指令发送至调制解调器时,用于:
    通过所述网络管理服务将所述数据网络激活指令发送至第一操作系统的框架层的电话服务;
    通过所述电话服务将所述数据网络激活指令发送至第二操作系统的调制解调硬件抽象层;
    通过所述调制解调硬件抽象层将所述数据网络激活指令发送至所述调制解调器。
  10. 根据权利要求9所述的装置,其特征在于,所述第一获取模块在通过所述网络管理服务将所述数据网络激活指令发送至第一操作系统的框架层的电话服务时,用于:
    通过所述网络管理服务调用所述电话服务的连接管理模块的数据总线接口,将所述数据网络激活指令发送至所述电话服务。
  11. 根据权利要求8至10中任一项所述的装置,其特征在于,所述装置还包括网络注册模块,用于:
    通过电话服务获取数据网络注册指令,并通过所述第二操作系统将所述数据网络注册指令发送至调制解调器;
    通过所述调制解调器根据所述数据网络注册指令进行移动数据网络注册。
  12. 根据权利要求11所述的装置,其特征在于,所述网络注册模块在通过所述电话服务获取数据网络注册指令时,用于:
    响应于移动数据网络开启操作,通过移动数据网络应用程序获取数据网络注册指令;
    通过所述移动数据网络应用程序调用所述电话服务的网络登记模块的数据总线接口,将所述数据网络注册指令发送至所述电话服务。
  13. 根据权利要求11所述的装置,其特征在于,所述网络注册模块在通过所述第二操作系统将所述数据网络注册指令发送至调制解调器时,用于:
    通过所述电话服务将所述数据网络注册指令发送至所述第二操作系统的调制解调硬件抽象层;
    通过所述调制解调硬件抽象层将所述数据网络注册指令发送至调制解调器。
  14. 根据权利要求8至13中任一项所述的装置,其特征在于,所述第二获取模块在通过所述调制解调器将所述网络配置信息发送至所述网络管理服务时,用于:
    通过所述调制解调器将所述网络配置信息发送至调制解调硬件抽象层;
    通过所述调制解调硬件抽象层将所述网络配置信息发送至所述网络管理服务。
  15. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至7中任一项所述的方法。
  16. 一种存储有计算机指令的非瞬时计算机可读存储介质,其特征在于,所述计算机指令用于使计算机执行权利要求1至7中任一项所述的方法。
  17. 一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法。
  18. 一种计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法。
PCT/CN2022/105312 2021-09-26 2022-07-12 移动数据网络建立方法、装置、电子设备及存储介质 WO2023045511A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111128739.7A CN113840295B (zh) 2021-09-26 2021-09-26 移动数据网络建立方法、装置、电子设备及存储介质
CN202111128739.7 2021-09-26

Publications (1)

Publication Number Publication Date
WO2023045511A1 true WO2023045511A1 (zh) 2023-03-30

Family

ID=78970353

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/105312 WO2023045511A1 (zh) 2021-09-26 2022-07-12 移动数据网络建立方法、装置、电子设备及存储介质

Country Status (2)

Country Link
CN (1) CN113840295B (zh)
WO (1) WO2023045511A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840295B (zh) * 2021-09-26 2022-08-09 北京字节跳动网络技术有限公司 移动数据网络建立方法、装置、电子设备及存储介质
CN115150265B (zh) * 2022-06-28 2023-10-20 青岛海信移动通信技术有限公司 一种双系统数据的处理方法、设备及装置
CN116744403A (zh) * 2022-11-10 2023-09-12 荣耀终端有限公司 网络接入的方法及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051705A1 (zh) * 2013-10-10 2015-04-16 成都达信通通讯设备有限公司 兼容支持手持设备安卓应用程序的多apn并发方法及其系统
CN111198687A (zh) * 2018-11-19 2020-05-26 成都鼎桥通信技术有限公司 一种安卓系统应用程序的编译方法
WO2021057545A1 (zh) * 2019-09-26 2021-04-01 维沃移动通信有限公司 多网络接入方法及终端设备
CN113190294A (zh) * 2021-04-07 2021-07-30 北京鲸鲮信息系统技术有限公司 Linux系统调用Android HIDL接口的方法、装置及存储介质
CN113840295A (zh) * 2021-09-26 2021-12-24 北京鲸鲮信息系统技术有限公司 移动数据网络建立方法、装置、电子设备及存储介质

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130024778A1 (en) * 2011-07-13 2013-01-24 Z124 Dynamic cross-environment application configuration/orientation
CN102404253B (zh) * 2011-06-28 2014-08-06 西安交通大学 支持linux 的硬件抽象层的虚拟网卡设计方法
CN103095692B (zh) * 2013-01-05 2017-10-13 努比亚技术有限公司 一种通信终端、网络服务器和系统
CN103092654B (zh) * 2013-01-17 2016-08-03 努比亚技术有限公司 一种基于WebKit的WebOS实现方法和系统
CN111885589B (zh) * 2020-07-28 2023-08-15 北京小米移动软件有限公司 一种终端设备通信控制方法、终端设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015051705A1 (zh) * 2013-10-10 2015-04-16 成都达信通通讯设备有限公司 兼容支持手持设备安卓应用程序的多apn并发方法及其系统
CN111198687A (zh) * 2018-11-19 2020-05-26 成都鼎桥通信技术有限公司 一种安卓系统应用程序的编译方法
WO2021057545A1 (zh) * 2019-09-26 2021-04-01 维沃移动通信有限公司 多网络接入方法及终端设备
CN113190294A (zh) * 2021-04-07 2021-07-30 北京鲸鲮信息系统技术有限公司 Linux系统调用Android HIDL接口的方法、装置及存储介质
CN113840295A (zh) * 2021-09-26 2021-12-24 北京鲸鲮信息系统技术有限公司 移动数据网络建立方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN113840295A (zh) 2021-12-24
CN113840295B (zh) 2022-08-09

Similar Documents

Publication Publication Date Title
WO2023045511A1 (zh) 移动数据网络建立方法、装置、电子设备及存储介质
US10389787B2 (en) Method, apparatus and system for transmitting media stream
CN113821359A (zh) 音频驱动的系统兼容的方法、装置和设备
CN111240768A (zh) 一种配置参数的配置方法、装置和计算机存储介质
WO2019184658A1 (zh) 配置文件的切换方法、装置与移动终端
EP3876229A2 (en) Vehicle-based voice processing method, voice processor, and vehicle-mounted processor
US20200026586A1 (en) Discovery and Chaining of Virtual Functions
CN108476212A (zh) 动态wlan连接
US20160100015A1 (en) Systems and methods for resolving service initialization links in virtual desktop infrastructure environments
WO2023045510A1 (zh) 语音通道建立方法、装置、电子设备及存储介质
US11487910B2 (en) Terminal and communication method
US20200162419A1 (en) Address assignment method and related device
CN113612643B (zh) 云手机的网络配置方法、装置、设备以及存储介质
EP4149087A1 (en) Methods and apparatuses for shunting clustered gateways, storage medium, and electronic device
CN115174310A (zh) Pdn拨号及配置方法、系统、装置、设备及存储介质
WO2020253330A1 (zh) 客户端设备配置管理的方法和装置
CN114143144A (zh) 基于分布式网关的微服务调用方法、装置及相关设备
CN113726881A (zh) 通信连接建立方法、相关装置及计算机程序产品
WO2018219221A1 (zh) 报文转发方法、设备及系统
CN113726883A (zh) 云数据处理方法、相关装置及计算机程序产品
WO2024098933A1 (zh) 策略协调方法、装置、设备、介质及程序产品
WO2019127475A1 (zh) 虚拟sim卡的实现方法及装置、存储介质、电子设备
CN115002749B (zh) Ip地址分配方法、装置、存储介质以及电子设备
CN110166537B (zh) 一种pdu会话建立方法、网络设备和用户终端
CN118354312A (zh) 核心网接入方法、系统及电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22871570

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE