Dual-path communication method and apparatus, terminal device, and storage medium

By modifying the framework configuration of the Android system, dual-channel communication between the external module and the built-in module was achieved, solving the problem of simultaneous internet access on the Android platform and improving the performance and user experience of the communication device.

CN117221436BActive Publication Date: 2025-11-28XI AN FIBOCOM WIRELESS INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311287659.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-07
Publication Date
2025-11-28
Estimated Expiration
2043-10-07

AI Technical Summary

Technical Problem

In existing technologies, it is difficult for the Android platform to enable both external modules and built-in modules to access the internet simultaneously.

Method used

By modifying the system framework configuration on the Android platform, including kernel source files, driver loading files, boot scripts, SIM user interface, and wireless interface layer code, data communication between the built-in communication module and the external communication module can be achieved.

Benefits of technology

It enables both external and internal communication modules to access the internet simultaneously, supports dual signal tower display and dual-channel communication, and improves the performance and user experience of communication equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117221436B_ABST
    Figure CN117221436B_ABST
Patent Text Reader

Abstract

The application discloses a kind of two-way communication method, device, terminal equipment and storage medium, the two-way communication method is applied to communication terminal, the communication terminal includes built-in communication module and with the communication terminal communication connection external communication module, by responding to the common communication request of identifying built-in communication module and external communication module, preset extension framework configuration content is called, wherein the extension framework configuration content is used to make the communication terminal simultaneously support the communication function of two communication modules;Based on the extension framework configuration content, the data communication of the built-in communication module and the external communication module is executed respectively, the function of external communication module and built-in communication module is realized by extension framework configuration content.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of mobile communication, in particular to a dual-path communication method and device, a terminal equipment and a storage medium. BACKGROUND

[0002] Currently, some mobile phone platforms are equipped with 4G modules, and data connection can be achieved by dialing after inserting a card, and corresponding data services can be performed. For the video security industry, there is usually a demand for simultaneous online of an Android device externally connected module and a built-in module.

[0003] In the prior art, an Android platform is usually equipped with only a single module to achieve data connection, and it is difficult to simultaneously achieve the online demand of an Android device externally connected module, that is, a mobile phone based on an Android platform has not yet achieved the function of simultaneous online of an externally connected module and a built-in module of the mobile phone.

[0004] Therefore, it is necessary to propose a solution for achieving simultaneous online of an externally connected module and a built-in module of a mobile phone.

[0005] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY

[0006] The main purpose of the present application is to provide a dual-path communication method and device, a terminal equipment and a storage medium, aiming to achieve simultaneous online of an externally connected module and a built-in module of a mobile phone.

[0007] To achieve the above purpose, the present application provides a dual-path communication method, which is applied to a communication terminal, the communication terminal comprising a built-in communication module and an externally connected communication module in communication connection with the communication terminal, and the dual-path communication method comprising:

[0008] In response to identifying a common communication request of the built-in communication module and the externally connected communication module, a preset extended framework configuration content is called, wherein the extended framework configuration content is used to enable the communication terminal to simultaneously support the communication function of two communication modules;

[0009] Based on the extended framework configuration content, data communication of the built-in communication module and the externally connected communication module is respectively performed.

[0010] Optionally, the step of calling the preset extended framework configuration content further comprises:

[0011] Obtaining the native framework configuration content of the communication terminal and the parameter information of the externally connected communication module;

[0012] According to the parameter information, the native framework configuration content is modified to obtain the extended framework configuration content.

[0013] Optionally, the step of modifying the native framework configuration content comprises at least one of the following:

[0014] modifying the kernel source file corresponding to the port configuration in the native framework configuration content to obtain a port configuration supporting USB-to-serial conversion;

[0015] compiling the configuration file in the native framework configuration content to generate a driver loading file;

[0016] modifying the single-card attribute code in the boot script in the native framework configuration content to double-card attribute code;

[0017] adding a target library file in the native framework configuration content for processing data communication of the built-in communication module and the external communication module;

[0018] modifying the code logic corresponding to the SIM user interface;

[0019] modifying the double-data dialing logic of the wireless interface layer code.

[0020] Optionally, the step of modifying the kernel source file corresponding to the port configuration in the native framework configuration content to obtain a port configuration supporting USB-to-serial conversion comprises:

[0021] performing menu configuration based on the native framework configuration content and sequentially opening the support components in the menu configuration;

[0022] selecting a target component in the support components and saving;

[0023] compiling the corresponding kernel source file based on the target component, adding ID information of the external communication module in a target array in the kernel source file to obtain a compiled kernel source file;

[0024] burning an image file corresponding to the compiled kernel source file to obtain the port configuration supporting USB-to-serial conversion.

[0025] Optionally, the step of compiling the configuration file in the native framework configuration content to generate a driver loading file comprises:

[0026] performing menu configuration and component selection on the native framework configuration content to determine a configuration file;

[0027] adding a driver code file corresponding to the external communication module to the configuration file to generate the driver loading file for starting the network card of the external communication module to communicate.

[0028] Optionally, the step of modifying the single-card attribute code in the boot script in the native framework configuration content into a dual-card attribute code comprises:

[0029] selecting a boot script in the native framework configuration content;

[0030] identifying whether the attribute code in the boot script is a single-card attribute code;

[0031] if the attribute code in the boot script is a single-card attribute code, modifying the single-card attribute code into a dual-card attribute code.

[0032] Optionally, the step of adding the target library file in the native framework configuration content comprises:

[0033] compiling a reference wireless interface layer in the native framework configuration content to generate a target library file;

[0034] modifying a packaging file in the native framework configuration content file according to the target library file, and modifying a wireless interface layer daemon process to adapt to the target library file.

[0035] In addition, to achieve the above object, the application further provides a dual-path communication device, which is applied to a communication terminal, the communication terminal comprising a built-in communication module and an external communication module connected with the communication terminal in communication, the dual-path communication device comprising:

[0036] a response module, configured to respond to a common communication request of the built-in communication module and the external communication module, and invoke a preset extended framework configuration content, wherein the extended framework configuration content is used to enable the communication terminal to simultaneously support the communication function of two communication modules;

[0037] a communication module, configured to perform data communication of the built-in communication module and the external communication module respectively based on the extended framework configuration content.

[0038] In addition, to achieve the above object, the application further provides a terminal device, which comprises a memory, a processor, and a dual-path communication program stored in the memory and executable on the processor, and the dual-path communication program is used to implement the steps of the dual-path communication method.

[0039] In addition, to achieve the above object, the application further provides a computer readable storage medium, which stores a dual-path communication program, and the dual-path communication program is used to implement the steps of the dual-path communication method when executed by a processor.

[0040] The dual-channel communication method, device, terminal equipment and storage medium provided by the embodiment of the present application are applied to a communication terminal, the communication terminal comprises a built-in communication module and an external communication module connected with the communication terminal, the preset extension framework configuration content is called in response to the common communication request of the built-in communication module and the external communication module, wherein the extension framework configuration content is used to make the communication terminal support the communication function of two communication modules at the same time; the data communication of the built-in communication module and the external communication module is respectively executed based on the extension framework configuration content, and the function of the external communication module and the built-in communication module connecting to the Internet together is realized through the extension framework configuration content. BRIEF DESCRIPTION OF DRAWINGS

[0041] Figure 1 The figure is a functional module schematic diagram of the terminal equipment of the dual-channel communication device of the present application;

[0042] Figure 2 The figure is a flow schematic diagram of the dual-channel communication method of the present application;

[0043] Figure 3 The figure is a flow schematic diagram of another exemplary embodiment of the dual-channel communication method of the present application;

[0044] Figure 4 The figure is an Android native framework schematic diagram in the embodiment of the present application;

[0045] Figure 5 The figure is an external module extension framework schematic diagram in the embodiment of the present application;

[0046] Figure 6 The figure is a flow schematic diagram of the framework modification in the embodiment of the present application.

[0047] The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are merely intended to explain the present application and not to limit the present application.

[0049] The main solution of the embodiment of the present application is: applying a two-way communication method to a communication terminal, the communication terminal comprising a built-in communication module and an external communication module connected with the communication terminal, and calling preset extended framework configuration content in response to identifying a common communication request of the built-in communication module and the external communication module, wherein the extended framework configuration content is used to make the communication terminal support the communication function of two communication modules simultaneously; based on the extended framework configuration content, data communication of the built-in communication module and the external communication module is respectively executed, and through the extended framework configuration content, the function of the external communication module and the built-in communication module connecting to the Internet together is realized.

[0050] Technical terms related to the embodiment of the present application:

[0051] USB: Universal Serial Bus, Universal Serial Bus;

[0052] Modem: Modem, Modem;

[0053] Android: Android, a Linux kernel-based free and open source operating system;

[0054] RIL: Radio Interface Layer, Radio Interface Layer;

[0055] RILJ: RIL.java, Framework layer code based on java language;

[0056] SIM: Subscriber Identity Module, SIM card;

[0057] API: Application Programming Interface, Application Programming Interface;

[0058] RILD: Radio Interface Layer Daemon, Radio Interface Layer Daemon;

[0059] CP: Central Processor, Central Processor in wireless communication device;

[0060] AP: Application Processor, Application Processor in mobile phone;

[0061] UI: User Interface, User Interface.

[0062] Specifically, refer to Figure 1 , Figure 1Fig. 1 is a schematic diagram of a function module of a terminal device to which a dual-channel communication device belongs. The dual-channel communication device can be a device independent of the terminal device and capable of dual-channel communication, which can be carried on the terminal device in the form of hardware or software. The terminal device can be a smart mobile terminal such as a mobile phone or a tablet computer having a data processing function, or a fixed terminal device or a server having a data processing function.

[0063] In the embodiment, the terminal device to which the dual-channel communication device belongs at least includes an output module 110, a processor 120, a memory 130, and a communication module 140.

[0064] The memory 130 stores an operating system and a dual-channel communication program, and the dual-channel communication device can store information such as an extension framework configuration content corresponding to an external communication module in the memory 130. The output module 110 can be a display screen or the like. The communication module 140 can include a WIFI module, a mobile communication module, and a Bluetooth module, and the like, and communicates with an external device or a server through the communication module 140.

[0065] When the dual-channel communication program in the memory 130 is executed by the processor, the following steps are implemented:

[0066] In response to identifying the common communication request of the built-in communication module and the external communication module, a preset extension framework configuration content is called, wherein the extension framework configuration content is used to enable the communication terminal to simultaneously support the communication functions of the two communication modules;

[0067] Based on the extension framework configuration content, data communication of the built-in communication module and the external communication module is respectively performed.

[0068] Further, when the dual-channel communication program in the memory 130 is executed by the processor, the following steps are also implemented:

[0069] The original framework configuration content of the communication terminal and the parameter information of the external communication module are obtained;

[0070] The original framework configuration content is modified according to the parameter information to obtain the extension framework configuration content.

[0071] Further, when the dual-channel communication program in the memory 130 is executed by the processor, the following steps are also implemented:

[0072] The kernel source code file corresponding to the port configuration in the original framework configuration content is modified to obtain a port configuration supporting USB to serial port conversion;

[0073] The configuration file in the original framework configuration content is compiled to generate a driver loading file;

[0074] The single-card attribute code in the boot script in the native framework configuration content is modified as double-card attribute code;

[0075] A target library file is added in the native framework configuration content, which is used for processing data communication of the built-in communication module and the external communication module;

[0076] The code logic corresponding to the SIM user interface is modified;

[0077] The double-data dialing logic of the wireless interface layer code is modified.

[0078] Further, when the dual-channel communication program in the memory 130 is executed by the processor, the following steps are further implemented:

[0079] Menu configuration is performed based on the native framework configuration content, and the support components in the menu configuration are opened in sequence;

[0080] A target component in the support components is selected and saved;

[0081] A corresponding kernel source code file is compiled based on the target component, ID information of the external communication module is added in a target array in the kernel source code file, and a compiled kernel source code file is obtained;

[0082] An image file corresponding to the compiled kernel source code file is burned, and the port configuration supporting USB-to-serial port conversion is obtained.

[0083] Further, when the dual-channel communication program in the memory 130 is executed by the processor, the following steps are further implemented:

[0084] Menu configuration and component selection are performed on the native framework configuration content, and a configuration file is determined;

[0085] A drive code file corresponding to the external communication module is added to the configuration file, and the drive loading file is generated, which is used to start the network card of the external communication module to communicate.

[0086] Further, when the dual-channel communication program in the memory 130 is executed by the processor, the following steps are further implemented:

[0087] A boot script in the native framework configuration content is selected;

[0088] It is identified whether the attribute code in the boot script is a single-card attribute code;

[0089] If the attribute code in the boot script is a single-card attribute code, the single-card attribute code is modified as a double-card attribute code.

[0090] Further, the dual-channel communication program in the memory 130, when executed by the processor, further implements the following steps:

[0091] compiling the reference wireless interface layer in the native framework configuration content to generate a target library file;

[0092] modifying the packaging file in the native framework configuration content file according to the target library file, and modifying the wireless interface layer daemon to adapt to the target library file.

[0093] The embodiment implements the function of the external communication module and the internal communication module to access the network together through the above-mentioned scheme, specifically through the application of the dual-channel communication method to the communication terminal, the communication terminal including an internal communication module and an external communication module in communication connection with the communication terminal, and through the response to the common communication request of the internal communication module and the external communication module, the preset extended framework configuration content is called, wherein the extended framework configuration content is used to make the communication terminal support the communication function of two communication modules at the same time; and based on the extended framework configuration content, the data communication of the internal communication module and the external communication module is respectively executed.

[0094] The method embodiment of the present application is based on the terminal device architecture but is not limited to the above-mentioned architecture.

[0095] The execution subject of the method embodiment can be a dual-channel communication device or a terminal device, and the dual-channel communication device is taken as an example in the embodiment.

[0096] Referring to Figure 2 , Figure 2 FIG. 1 is a flowchart of an exemplary embodiment of the dual-channel communication method of the present application. The dual-channel communication method is applied to a communication terminal including an internal communication module and an external communication module in communication connection with the communication terminal, and the dual-channel communication method includes the following steps.

[0097] Step S10, in response to the common communication request of the internal communication module and the external communication module, the preset extended framework configuration content is called, wherein the extended framework configuration content is used to make the communication terminal support the communication function of two communication modules at the same time.

[0098] Specifically, the dual-channel communication method in the embodiment of the present application is mainly applied to the communication terminal of the Android system, and the Android native framework is modified, so that the system supports the dual-card scheme, realizes the double-signal tower display and the dual-channel communication, and the internal Modem and the external Modem data channel are optional.

[0099] Optionally, the built-in communication module and the external communication module are connected, which can be connected through an interface such as a USB (Universal Serial Bus), before connecting the external module, the module parameter information in the preset document is read, and the original framework configuration content is modified based on the read module parameter information, that is, the extended framework configuration content is obtained, and in the subsequent use process, the built-in communication module and the external communication module are connected, and the extended framework configuration content is directly called to realize the built-in communication module and the external communication module to access the Internet together.

[0100] Optionally, the original framework is modified, mainly including the steps of configuring the kernel, configuring the network card driver, setting the card mode, adding the RIL (Radio Interface Layer) library file, modifying the UI (User Interface), and modifying the RILJ (RIL.java) layer code logic, to realize the function of storing and switching the data of the dual-SIM (Subscriber Identity Module) card at will. It should be noted that the implementation steps of the above steps are a preferred embodiment, and in other embodiments, part of the configuration steps can be implemented according to the existing configuration content.

[0101] Step S20, based on the extended framework configuration content, the data communication of the built-in communication module and the external communication module is respectively executed.

[0102] Further, after recognizing that the built-in communication module and the external communication module are connected, the extended framework configuration content corresponding to the external communication module is called, and then the data communication of the built-in communication module and the external communication module is executed based on the extended framework configuration content, that is, the simultaneous communication of the built-in communication module and the external communication module is realized, and in this process, the data in the SIM card in the built-in communication module and the SIM card in the external communication module can be stored and switched at will, realizing the display of dual-signal towers and dual-way communication. This function can be used to provide a Modem product with hot plug function, and improve the performance and use experience of the communication equipment.

[0103] In the embodiment, by applying the dual-channel communication method to a communication terminal including a built-in communication module and an external communication module connected with the communication terminal, a preset extended framework configuration content is invoked in response to identifying a joint communication request of the built-in communication module and the external communication module, wherein the extended framework configuration content is used to enable the communication terminal to support the communication functions of the two communication modules simultaneously; and based on the extended framework configuration content, data communication of the built-in communication module and the external communication module is respectively performed, so that the function of joint online of the external communication module and the built-in communication module is realized through the extended framework configuration content.

[0104] Referring to Figure 3 , Figure 3 is a flowchart of another exemplary embodiment of the dual-channel communication method. Based on the above Figure 2 embodiment, in the embodiment, before the step of invoking the preset extended framework configuration content, the dual-channel communication method further includes:

[0105] In step S01, the native framework configuration content of the communication terminal and the parameter information of the external communication module are acquired.

[0106] Specifically, referring to Figure 4 , Figure 4 is an Android native framework diagram in the embodiment. As shown in Figure 4 , in the Android RIL native framework, the uppermost layer is an application program, including a call, a short message, and a SIM card management, etc., mainly responsible for sending the user's instructions to the RIL Framework (also known as RILJ); the RILJ provides a general API (Application Programming Interface) for the upper layer, and is also responsible for maintaining the communication with the RILD (Radio Interface Layer Daemon) and sending the request of the upper layer to the RILD; the RILD is started with the start of the initialization process, sends the request from the RILJ to the Modem on the CP (Central Processor) side, and sends the state change of the Modem on the CP side to the RILJ, and the configuration in the native framework is the native framework configuration content of the communication terminal.

[0107] Optionally, the RILJ is an important component in the Android operating system responsible for interacting with the mobile network communication layer. In the Android system, mobile communication (such as telephone call, short message, data connection, etc.) is communicated with the mobile network module through the RILJ. Specifically, the main functions of the RILJ in the Android system include:

[0108] Communication with baseband: The mobile communication functions of an Android device are handled by the baseband chip. The RILJ acts as a bridge between the upper-layer applications and the baseband chip. Through the RILJ, various commands, requests, and configurations can be sent to the baseband chip to implement functions such as phone calls, SMS, data connections, etc.

[0109] Handling mobile network events: The RILJ is responsible for handling events and information from the mobile network module, such as incoming calls, SMS reception, network status changes, etc.

[0110] Managing communication functions: The RILJ allows applications to initiate and control mobile communication functions, such as making phone calls, sending SMS, establishing data connections, etc.

[0111] Providing API interfaces: The RILJ provides a set of API interfaces for upper-layer applications, allowing developers to interact with the mobile network through Android applications.

[0112] It should be noted that although the RILJ has "Java" in its name, it is actually a mixture of Java code and native C / C++ code, as it needs to communicate with the underlying baseband firmware, which is usually written in C / C++. The RILJ is part of the Android system, so developers usually do not need to interact with it directly, but use high-level Android APIs to use mobile communication functions. Therefore, in some new versions of the Android system, the architecture of mobile communication may change, so there may be different communication layer components sometimes.

[0113] Optionally, the configuration content corresponding to different models of external communication modules may be different, and therefore the terminal device needs to distinguish according to the parameter information of the external communication module, wherein the parameter information of the external communication module includes model information, for example, the external module with model FM150-AE-00 is taken as an example for illustration in the embodiment of the present application.

[0114] Step S02, modifying the native framework configuration content according to the parameter information to obtain the extension framework configuration content.

[0115] Reference Figure 5 , Figure 5 The extension framework for the external module in the embodiment of the present application is shown in the schematic diagram as Figure 5 shown,

[0116] Optionally, the step of modifying the native framework configuration content according to the parameter information to obtain the extension framework configuration content can include:

[0117] S021, modifying the port configuration, network card driver, startup script, library file, user interface and dialing logic in the original framework configuration content according to the parameter information, to obtain the extended framework configuration content.

[0118] Optionally, the original framework is modified, mainly including the steps of configuring the kernel, configuring the network card driver, setting the card mode, adding the RIL library file, modifying the UI and modifying the RILJ layer code logic, so as to realize the function of double SIM card data coexistence and arbitrary switching, for example, referring to Figure 6 , Figure 6 The flowchart for modifying the framework in the embodiment of the application is shown in FIG. 1, and the implementation order of configuring the kernel, configuring the network card driver, setting the card mode, adding the RIL library file, modifying the UI and modifying the RILJ layer code logic in sequence is taken as an example for description. Figure 6

[0119] Optionally, the step of modifying the port configuration, network card driver, startup script, library file, user interface and dialing logic in the original framework configuration content comprises:

[0120] modifying the kernel source code file corresponding to the port configuration in the original framework configuration content, to obtain a port configuration supporting USB-to-serial port conversion;

[0121] compiling the configuration file in the original framework configuration content to generate a driver loading file;

[0122] modifying the single-card attribute code in the startup script in the original framework configuration content into double-card attribute code;

[0123] adding a target library file in the original framework configuration content, for processing data communication of the built-in communication module and the external communication module;

[0124] modifying the code logic corresponding to the SIM user interface;

[0125] modifying the double-data dialing logic of the wireless interface layer code.

[0126] Optionally, the step of modifying the kernel source code file corresponding to the port configuration in the original framework configuration content, to obtain a port configuration supporting USB-to-serial port conversion, comprises:

[0127] performing menu configuration based on the original framework configuration content, and opening the support components in the menu configuration in sequence;

[0128] selecting a target component in the support components and saving;

[0129] ​Compiling a corresponding kernel source file based on the target component, adding ID information of the external communication module in a target array in the kernel source file to obtain a compiled kernel source file;

[0130] Burning an image file corresponding to the compiled kernel source file to obtain the port configuration supporting USB-to-serial port conversion.

[0131] Specifically, the USB port description of the external communication module FM150-AE used in the embodiment of the application is shown in Table 1:

[0132] Table 1, USB port description example table of the external communication module

[0133]

[0134] Since the external module communicates through AT communication, that is, uses AT commands to communicate, the AT command is a command set used for communication and control with modems, mobile devices, wireless modules, etc., and is used for controlling analog modems, so the kernel needs to support the USB-to-serial port conversion function, and the specific steps include:

[0135] (1) executing make menuconfig;

[0136] (2) sequentially opening components: device drivers->usb support->usb serial converter support;

[0137] (3) selecting the USB driver for GSM and CDMA modems component and saving.

[0138] Optionally, the AT command is usually a short text string starting with "AT" followed by specific commands and parameters. For example, "ATD1234567890;" can be used to dial a phone number of 1234567890.

[0139] It should be noted that different devices and device manufacturers may support different AT command sets, so reference should be made to the documents and specifications of the relevant devices when used. The AT command is usually sent and received through a serial port (such as RS-232, UART) or other communication interfaces.

[0140] Optionally, open the kernel source file kernel / drivers / usb / serial / option.c, add the VID (0x2CB7) and PID (0x0104) of the FM150 in option_ids, and other models can be set with corresponding VID and PID according to the scheme.

[0141] Optionally, recompile the kernel and burn the image file to obtain the port configuration supporting the USB-to-serial port, and the device nodes of ttyUSB0-ttyUSB4 will exist in the / dev / directory.

[0142] Optionally, the step of compiling the configuration file in the native framework configuration content to generate the driver loading file comprises:

[0143] Performing menu configuration and component selection on the native framework configuration content to determine the configuration file;

[0144] Adding the corresponding driver code file of the external communication module to the configuration file to generate the driver loading file for starting the network card of the external communication module to communicate.

[0145] Optionally, the main steps of configuring the network card driver comprise:

[0146] (1) Execute make menuconfig and select the following components:

[0147] device drivers->Network device support->usb Network Adapters->Multi-purpose USB Networking Framework

[0148] (2) Copy the driver code file to the kernel / drivers / net / usb directory, and add the following content in Makefile:

[0149] gobinet-objs+=GobiUSBNet.o QMI.o QMIDevice.o

[0150] obj-m+=gobinet.o

[0151] Optionally, after the compiling, a driver loading file, / drivers / net / usb / gobinet.ko, is generated. The current driver loading file needs to manually start or close the network card. If the driver is compiled into the kernel, the network card can be automatically started. The specific implementation manner is that the obj-m is modified to obj-y based on the above operation, and the usb0 configuration is generated by using ifconfig-a.

[0152] Optionally, the step of modifying the single-card attribute code in the boot script in the native framework configuration content into the dual-card attribute code comprises:

[0153] selecting a boot script in the native framework configuration content;

[0154] identifying whether the attribute code in the boot script is a single-card attribute code;

[0155] if the attribute code in the boot script is a single-card attribute code, modifying the single-card attribute code into a dual-card attribute code.

[0156] Specifically, in the embodiment of the application, the persist.radio.multisim.config attribute is set to ssss (single card) or dsda (dual card) according to whether a Modem is externally connected, and the card mode of the built-in module of an Android mobile phone is always set to ssss, because the built-in module of the Android mobile phone is always in a single-card mode. In addition, the current reference-ril cannot normally work in the AP (Application Processor, application processor in a mobile phone) Framework, so it is necessary to temporarily modify the UI default rild_oem1 to return a correct value, so as to ensure its normal work. By modifying the framework side of the Android, it can support the data of two cards to be stored simultaneously.

[0157] Optionally, the modifying the boot script comprises: sequentially selecting a component device / qcom / common / rootdir / etc / init.class_main.sh, setting the persist.radio.multisim.config attribute to ssss (single card) or dsda (dual card) according to whether an external communication module is connected, and always setting the card mode of the built-in module of an Android mobile phone to ssss.

[0158] Optionally, the step of adding the target library file in the native framework configuration content comprises:

[0159] compiling a reference radio interface layer in the native framework configuration content to generate a target library file;

[0160] According to the target library file, the packaged file in the native framework configuration content file is modified, and the wireless interface layer daemon is adapted to the target library file.

[0161] Optionally, the reference-ril (Reference Radio Interface Layer) refers to a basic component in the Android operating system, which is part of the Android Telephony framework and is used for communication with the mobile phone baseband chip (also known as a modem or baseband processor). Adding the reference-ril library file mainly includes:

[0162] (1) Compiling the reference-ril in the native framework configuration content to generate a reference-ril.so target library file. By generating a dynamic library file, the file can be used in the module for internal use, so that the module can support dual systems;

[0163] (2) Modify the packaged file in the native framework configuration content file, that is, msm8953_64.mk: PRODUCT_PACKAGES+=libreference-ril.so. By adding the "PRODUCT_PACKAGES+=libreference-ril.so" command line in the msm8953_64.mk file, the libreference-ril service can be added;

[0164] (3) Modify the RILD wireless interface layer daemon to adapt to the reference-ril, that is, modify the RILD framework to adapt to the dual-system reference-ril. The RILD is a daemon in the Android system, which is responsible for managing communication with the mobile phone baseband chip (modem), managing data connections (including mobile data and wireless network connections), monitoring the state of the mobile network, and providing information about network availability and quality when needed. This helps to select the best network connection for built-in and external communication modules.

[0165] Optionally, it also includes modifying the code logic corresponding to the SIM user interface (UI). Since the current reference-ril has been modified to dual systems, it cannot work normally in the AP Framework, and some code logic of the UI interface needs to be modified. The default rild_oem1 returns the correct value to adapt to the standard of dual-system dual-card, and ensure its normal work.

[0166] Optionally, RILJ is also modified to support double data dialing. The native strategy of Android is to activate one data and close the data of another card. In the embodiment of the application, the strategy of Android is modified so that the framework side can support the data of two cards simultaneously.

[0167] The embodiment modifies the native framework configuration content of the communication device according to the parameter information to adapt to the external communication module, thereby realizing the data coexistence of the external communication module and the built-in communication module and the arbitrary switching and / or common data communication.

[0168] In addition, the embodiment of the application further provides a double-path communication device, which is applied to a communication terminal, the communication terminal comprising a built-in communication module and an external communication module connected with the communication terminal, and the double-path communication device comprising:

[0169] a response module, configured to call preset extended framework configuration content in response to identifying the common communication request of the built-in communication module and the external communication module, wherein the extended framework configuration content is used to enable the communication terminal to simultaneously support the communication functions of two communication modules;

[0170] a communication module, configured to perform the data communication of the built-in communication module and the external communication module based on the extended framework configuration content.

[0171] Specifically, the Android RIL native framework comprises: the uppermost layer of Android is an application program, which comprises calling, short message and SIM card management, etc., and is mainly responsible for sending the instructions of a user to RIL Framework (i.e. RILJ); RILJ provides a general API for the upper layer, and is also responsible for maintaining the communication with RILD and sending the request of the upper layer to RILD; RILD is started along with the start of an initialization process, and sends the request from RILJ to Modem on the CP side, and sends the state change of Modem on the CP side to RILJ.

[0172] The extended framework in the embodiment of the application comprises: an FM150 series Modem externally connected with a mobile phone based on an Android system, so that the system supports a double-card scheme, realizes double-signal-tower display and double-path communication, and the internal and external (internal Modem and external Modem) data channels are optional.

[0173] Optionally, the original framework can be modified by sequentially configuring a kernel, configuring a network card driver, setting a card mode, adding a RIL library file, modifying a UI, and modifying RILJ layer code logic, so as to finally realize the function of coexisting and arbitrarily switching of data of the two SIM cards.

[0174] Optionally, through the modification of the original framework, the Android platform supporting the embedded Modem can support the function of externally connecting other Modems through USB, which can lay a technical foundation for the Modem products with the hot plug function in the future.

[0175] The principle and implementation process of the dual-channel communication are realized in the embodiments, and details are not described herein again.

[0176] In addition, the embodiments of the present application also provide a terminal device, which comprises a memory, a processor, and a dual-channel communication program stored in the memory and executable on the processor, and the dual-channel communication program realizes the steps of the dual-channel communication method when executed by the processor.

[0177] Since the dual-channel communication program is executed by the processor, all the technical solutions of the foregoing embodiments are adopted, and at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments are achieved, and details are not described herein again.

[0178] In addition, the embodiments of the present application also provide a computer readable storage medium, which stores a dual-channel communication program, and the dual-channel communication program realizes the steps of the dual-channel communication method when executed by the processor.

[0179] Since the dual-channel communication program is executed by the processor, all the technical solutions of the foregoing embodiments are adopted, and at least all the beneficial effects brought by all the technical solutions of the foregoing embodiments are achieved, and details are not described herein again.

[0180] Compared with the prior art, the dual-channel communication method, device, terminal device, and storage medium provided by the embodiments of the present application have the following advantages. The dual-channel communication method is applied to a communication terminal, the communication terminal comprises a built-in communication module and an external communication module connected with the communication terminal, and the communication terminal simultaneously supports the communication functions of the two communication modules through the preset extension framework configuration content in response to the common communication request of the built-in communication module and the external communication module, and the data communication of the built-in communication module and the external communication module is respectively executed based on the extension framework configuration content.

[0181] It should be noted that, in this document, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.

[0182] The above-mentioned sequence numbers of the embodiments of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0183] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and necessary general hardware platforms, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.

[0184] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, which is made by using the content of the specification and drawings of the present application, is also included in the patent protection scope of the present application.

Claims

1. A two-way communication method, characterized by, The dual-path communication method is applied to a communication terminal, the communication terminal comprising a built-in communication module and an external communication module connected with the communication terminal, and the dual-path communication method comprises the following steps: In response to identifying the common communication request of the built-in communication module and the external communication module, a preset extended framework configuration content is called; wherein the extended framework configuration content is used to enable the communication terminal to simultaneously support the communication functions of the two communication modules; Based on the extended framework configuration content, data communication of the built-in communication module and the external communication module is respectively performed.

2. The two-way communication method of claim 1, wherein, The step of calling the preset extended framework configuration content further comprises the following steps: Obtaining the native framework configuration content of the communication terminal and the parameter information of the external communication module; According to the parameter information, the native framework configuration content is modified to obtain the extended framework configuration content.

3. The two-way communication method of claim 2, wherein, The step of modifying the native framework configuration content comprises at least one of the following: Modifying the port configuration in the native framework configuration content to obtain a port configuration supporting USB-to-serial port conversion; Compiling the configuration file in the native framework configuration content to generate a driver loading file; Modifying the single-card attribute code in the boot script in the native framework configuration content to double-card attribute code; Adding a target library file in the native framework configuration content for processing data communication of the built-in communication module and the external communication module; Modifying the code logic corresponding to the SIM user interface; Modifying the double-data dialing logic of the wireless interface layer code.

4. The two-way communication method of claim 3, wherein, The step of modifying the port configuration in the native framework configuration content to obtain a port configuration supporting USB-to-serial port conversion comprises: Based on the native framework configuration content, a menu configuration is performed, and the support components in the menu configuration are opened in sequence; A target component in the support components is selected and saved; Based on the target component, ID information of the external communication module is added to a target array in a corresponding kernel source code file to obtain a compiled kernel source code file; An image file corresponding to the compiled kernel source code file is burned to obtain the port configuration supporting USB-to-serial port conversion.

5. The two-way communication method of claim 3, wherein, The step of compiling the configuration file in the native framework configuration content to generate a driver loading file comprises: A menu configuration and component selection are performed on the native framework configuration content to determine a configuration file; A driver code file corresponding to the external communication module is added to the configuration file to generate the driver loading file, which is used to start the network card of the external communication module for communication.

6. The two-way communication method of claim 3, wherein, The step of modifying the single-card attribute code in the boot script in the native framework configuration content to double-card attribute code comprises: A boot script in the native framework configuration content is selected; It is identified whether the attribute code in the boot script is a single-card attribute code; If the attribute code in the boot script is a single-card attribute code, the single-card attribute code is modified to a double-card attribute code.

7. The two-way communication method of claim 3, wherein, The step of adding a target library file in the native framework configuration content comprises: A reference wireless interface layer in the native framework configuration content is compiled to generate a target library file; The packaged file in the native framework configuration content file is modified according to the target library file, and a wireless interface layer daemon is adapted to the target library file.

8. A two-way communication device, characterized by The dual-path communication device is applied to a communication terminal, the communication terminal comprising a built-in communication module and an external communication module connected with the communication terminal in communication, and the dual-path communication device comprising: A response module is configured to, in response to identifying a common communication request of the built-in communication module and the external communication module, invoke a preset extended framework configuration content, wherein the extended framework configuration content is used to enable the communication terminal to simultaneously support the communication functions of the two communication modules. A communication module is configured to perform data communication of the built-in communication module and the external communication module respectively based on the extended framework configuration content.

9. A terminal device, comprising: The terminal device comprises a memory, a processor, and a dual-path communication program stored in the memory and executable on the processor, and the dual-path communication program, when executed by the processor, implements the steps of the dual-path communication method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a dual-path communication program, and the dual-path communication program, when executed by the processor, implements the steps of the dual-path communication method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Multimode communication method and system based on intelligent terminal

    CN106856631A

  • Method for sharing wireless communication capability by dual systems and terminal equipment

    CN114679752A