Modem control method and device and computer storage medium

By establishing an Ethernet control channel between the Android car and the on-board equipment and controlling the external modem, the maintenance and compatibility problems of the Android car integrating the 5G modem on the car chip are solved, and convenient networking and high compatibility are achieved.

CN119211324APending Publication Date: 2024-12-27FIBOCOM AUTO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411107139.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The existing solution of Android phones in the automotive industry integrating 5G modem on the automotive chip requires replacement of the entire machine for repair or upgrade, and the solution of integrating T-Box on the automotive system results in low compatibility and non-universal Android system.

Method used

Establish Socket connection with on-board devices through Ethernet, generate control channels, send modem control instructions to control modems, realize Android vehicle cross-computer control of external modems, directly connect to external modem, simplify hardware layout and improve compatibility.

Benefits of technology

It realizes the networking of Android cars without the need for a built-in modem, simplifies repair, replacement and upgrade, improves system compatibility and stability, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211324A_ABST
    Figure CN119211324A_ABST
Patent Text Reader

Abstract

The invention discloses a modem control method and device and a computer storage medium, and belongs to the technical field of communication. The method comprises the following steps: an Android vehicle machine establishes a Socket connection with a vehicle-mounted device through the Ethernet to generate a control channel, and the vehicle-mounted device is integrated with a modem; and sending a modem control instruction to the vehicle-mounted equipment through the control channel, and forwarding the modem control instruction to the modem by the vehicle-mounted equipment so as to control the modem to execute the modem control instruction. According to the invention, through the vehicle-mounted Ethernet, the external modem can be used across the Android vehicle machine, and the technical problems of incompatibility and inconvenient maintenance and upgrade existing in the scheme of integrating the modem or the T-Box on the vehicle machine system in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a control method and device for a modem and a computer storage medium. Background Art

[0002] Currently in the automotive industry, Android car Internet access solutions are mainly divided into two types: integrating a 5G modem on the car chip, and integrating a T-Box (Telematics Box, in-vehicle remote communication module) containing a 5G modem on the car system to enable the vehicle to connect to the 5G network.

[0003] Among them, the solution of integrating 5G modem on the car chip adopts a non-modular design. Maintenance, replacement or upgrade may require the replacement of the entire expensive car, which is very inconvenient. In addition, in the solution of integrating T-Box on the car system, its modem control functions such as dial-up Internet access, phone calls, and text messages are completely handled by the T-Box side, rather than directly controlled by the Android system. These states and functions need to be transferred through private protocols, and special applications need to be developed on the Android side for control. This method has low compatibility with the Android system, and devices from different manufacturers may be incompatible, resulting in non-universality.

[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention

[0005] The present application provides a modem control method, device and computer storage medium to solve the above-mentioned technical problems existing in the related art.

[0006] According to one embodiment of the present application, a method for controlling a modem applied to an Android car machine is provided, comprising: establishing a Socket connection with an on-board device via Ethernet to generate a control channel, wherein the on-board device is integrated with a modem; sending a modem control instruction to the on-board device via the control channel, and the on-board device forwarding the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0007] According to another embodiment of the present application, a control method for a modem applied to a vehicle-mounted device is provided, wherein the vehicle-mounted device is integrated with a modem, and the method comprises: creating a transmission control protocol socket tcpsocket, establishing a socket connection with an Android vehicle machine via Ethernet, and generating a control channel; receiving a modem control instruction sent by the Android vehicle machine based on the control channel; forwarding the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0008] According to another embodiment of the present application, a control device for a modem applied to an Android car machine is provided, including: a first creation module, used to establish a Socket connection with a vehicle-mounted device via Ethernet to generate a control channel, and the vehicle-mounted device is integrated with a modem; a control module, used to send a modem control instruction to the vehicle-mounted device via the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0009] Optionally, the control device of the modem also includes a second receiving module, which is used to receive response information sent by the vehicle-mounted device through the control channel, and the response information is the dial-up result of the modem executing the dial-up Internet access instruction; a creation module, which is used to create a virtual local area network (VLAN) interface if the response information is a successful dial-up; and a transmission module, which is used to transmit IP message data to the vehicle-mounted device through the VLAN interface, and the vehicle-mounted device forwards the IP message data to the modem, and the modem sends the IP message data to the network.

[0010] Optionally, the control module includes a sending unit, which is used to deploy a radio interface layer RIL client in the Android car machine, obtain a modem control instruction initiated by the Android car machine application layer through the RIL client; and send the modem control instruction to the RIL server of the vehicle-mounted device through the control channel.

[0011] Optionally, the control device of the modem also includes a third receiving module, which is used to receive the message actively reported by the modem sent by the vehicle-mounted device based on the control channel through the RIL client of the Android car machine.

[0012] According to another embodiment of the present application, a control device for a modem applied to a vehicle-mounted device is provided, including: a second creation module, used to create a transmission control protocol socket TCP socket, establish a Socket connection with an Android car machine via Ethernet, and generate a control channel; a first receiving module, used to receive a modem control instruction sent by the Android car machine based on the control channel; a forwarding module, used to forward the modem control instruction to the modem, so as to control the modem to execute the modem control instruction.

[0013] Optionally, the control device of the modem also includes a fourth receiving module, which is used to receive a response message returned by the modem, and the response information is the networking result of the modem executing dial-up Internet access based on the dial-up Internet access instruction; the forwarding module is also used to forward the response message to the Android car machine through the control channel.

[0014] Optionally, the control device of the modem also includes a fifth receiving module for receiving messages actively reported by the modem; the forwarding module is also used to forward the actively reported messages to the first RILD of the Android car machine through the control channel.

[0015] According to another embodiment of the present application, a computer storage medium is provided, in which a computer program is stored, wherein the computer program executes the steps of any of the above-mentioned device embodiments when executed.

[0016] According to another embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; the processor is used to execute the steps in the above method by running the program stored in the memory.

[0017] The electronic device provided in the embodiment of the present application may specifically be a module capable of realizing a communication function or a terminal device including the module, etc. The terminal device may be a mobile terminal or a smart terminal. The mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a laptop computer, etc.; the smart terminal may specifically be a terminal including a wireless communication module such as a smart car, a smart watch, a shared bicycle, a smart cabinet, etc.; the module may specifically be a wireless communication module, such as any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and a NB-IOT communication module.

[0018] According to yet another embodiment of the present application, a computer program product comprising instructions is also provided, which enables the computer to execute the steps in the above method when the computer program product is executed on the computer.

[0019] The embodiment of the present application establishes a control channel between the Android car machine and the vehicle-mounted device through the vehicle Ethernet, which is used to transmit modem control instructions, so that the Android car machine can control the external modem across the machine. Even if the Android car machine chip itself does not have an integrated modem, the car machine networking can be realized. Since an external modem is actually used, it is convenient for maintenance, replacement, and upgrading, and the Android native system directly connected to the external modem has good compatibility and stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0021] Figure 1 This is a hardware structure block diagram of a vehicle computer according to an embodiment of the present application;

[0022] Figure 2 is a flow chart of a control method for a modem applied to an Android car machine according to an embodiment of the present application;

[0023] Figure 3 is a flow chart of a control method for a modem applied to an in-vehicle device according to an embodiment of the present application;

[0024] Figure 4 It is a system schematic diagram of an Android car machine using an external modem across machines via Ethernet in an embodiment of the present application;

[0025] Figure 5 It is a flow chart of the Android car machine using an external modem across machines via Ethernet in an embodiment of the present application;

[0026] Figure 6 It is a structural block diagram of a control device for a modem applied to an Android car machine according to an embodiment of the present application;

[0027] Figure 7 It is a structural block diagram of a control device for a modem applied to an in-vehicle device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Example 1

[0031] The method embodiment provided in Embodiment 1 of the present application can be executed in a vehicle computer, a computer or a similar computing device. Taking running on a vehicle computer as an example, Figure 1 1 is a hardware structure block diagram of a vehicle computer according to an embodiment of the present application. Figure 1 As shown, the vehicle machine may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above vehicle computer may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the vehicle computer. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0032] The memory 104 can be used to store vehicle programs, for example, software programs and modules of application software, such as a vehicle program corresponding to a modem control method in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the vehicle program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the vehicle via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0033] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by the communication provider of the vehicle computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0034] In this embodiment, a control method for a modem applied to an Android car machine is provided. Figure 2 is a flow chart of a modem control method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0035] Step S10, establishing a Socket connection with an on-board device via Ethernet to generate a control channel, wherein the on-board device is integrated with a modem;

[0036] Step S20, sending a modem control instruction to the vehicle-mounted device through the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0037] In this embodiment, the vehicle-mounted device is a device integrated with a modem. This embodiment is described by taking an example in which the vehicle-mounted device uses a vehicle-mounted T-Box (Telematics Box, vehicle-mounted remote communication module) device integrated with a 5G modem.

[0038] In this embodiment, refer to Figure 4, through Ethernet ETH (Ethernet), a Socket connection is established between the Android car machine and the vehicle-mounted T-Box device to generate a control channel (such as Figure 4 The Android car machine can send the modem control command to the vehicle-mounted device through the control channel, and then the vehicle-mounted device forwards it to the modem, thereby realizing the Android car machine cross-machine control of the external modem to execute the corresponding command.

[0039] In this embodiment, the modem control instructions include dial-up Internet access instructions, voice call instructions, SMS sending instructions, or network status query instructions, etc., which are instructions used by Android to control the 5G modem to perform related functions.

[0040] The above steps establish a control channel between the Android car machine and the vehicle-mounted device through the vehicle Ethernet for transmitting modem control instructions. The Android car machine controls the external modem across the machine, allowing the Android system to directly control the modem without the need for transfer through a private protocol. In the vehicle scenario, no additional hardware interface is required. Even if the Android car machine chip itself does not have an integrated modem, the car machine can directly control the modem to perform modem functions such as voice calls, sending text messages or dialing up the Internet.

[0041] In one implementation of this embodiment, sending a modem control instruction to the vehicle-mounted device through the control channel includes:

[0042] Step A1, deploying a radio interface layer RIL client in the Android car machine, and obtaining a modem control instruction initiated by the Android car machine application layer through the RIL client;

[0043] Step A2: sending the modem control command to the RIL server of the vehicle-mounted device through the control channel.

[0044] The RIL (Radio Interface Layer) module in the Android system is one of the key components used to handle communications with mobile networks. It is responsible for establishing a communication connection between the Android device and the modem to achieve interaction with the mobile network. The RIL module usually consists of two parts: one is the Java part (RILJ), which is responsible for communicating with the application layer; the other is the Native part, which is responsible for communicating with the baseband processor. Among them, the Java part usually consists of the Telephony Manager class and the Phone State Listener class, while the Native part consists of the RIL Daemon (RILD) and the RIL library (libfibo-ril.so). RILD is an independent process that is mainly responsible for communicating with the baseband processor and communicating with the Java layer through Socket. The RIL library is a library file of the Native layer, which contains related functions for communicating with the baseband processor.

[0045] In this embodiment, modem control requests and responses are sent and received between the Android car machine and the vehicle-mounted device through the control channel. A customized RIL library (libfibo-ril.so) is deployed on the Android car machine. Libfibo-ril.so is adapted to the RILD of the Android car machine, and serves as the client RILC of RILD (i.e., the C version of RILJ). The RIL library contains relevant programs for loading by the Android system, and the relevant functions provided by the RIL library are used to realize effective communication and control of the external modem. The RIL library complies with the Android framework specification, can be provided by a third party, and has dynamic replaceability, ensuring the flexibility and scalability of the system.

[0046] The RIL client establishes a control channel with the RILD (i.e., the RIL server) on the T-Box side through Ethernet, and sends, receives, and processes RIL control messages. Specifically, the RIL client obtains the modem control command initiated by the Android vehicle application layer; the modem control command is sent to the RIL server of the vehicle-mounted device through the control channel. In one example, the voice call APP initiates a voice call command to the Android framework, and the Android framework calls the relevant functions of the RIL client, and sends the voice call command to the RIL server of the T-Box through the control channel, which is forwarded by the T-Box to the 5G modem to control the 5G modem to make a call.

[0047] In this implementation, the RIL library of the Android car machine uses the on-board Ethernet as a communication channel to interact with an external modem without the need for additional hardware interfaces, making full use of the vehicle's existing Ethernet infrastructure. This not only simplifies the hardware layout and reduces costs, but also, when the chip does not have a built-in modem, it can still control the external modem through the on-board Ethernet channel to implement modem-related functions, thereby achieving a high degree of integration capability and resource utilization efficiency.

[0048] Reference Figure 5 , the RIL library (libfibo-ril.so) provides the on Request interface to the Android RILD. When the Android application layer initiates a modem control command, the on Request() function of the RIL library is called to send the modem control command to the RILD (Qcril server) of the vehicle-mounted device through the established control channel; the Qcril server parses the modem control command into a message that the modem can recognize (such as a QMI message) according to the request id, and forwards the QMI message to the modem; the modem will process the modem control command and return a response message to the Qcril server; the Qcrilserver converts the response message and forwards it to the RIL library; the RIL library calls the request callback function On RequestComplete() and sends the response message to the Android RILD.

[0049] In this embodiment, the modem control instruction includes a dial-up Internet access instruction. After sending the modem control instruction to the vehicle-mounted device through the control channel, the method further includes:

[0050] Step A4, receiving response information sent by the vehicle-mounted device through the control channel, wherein the response information is a dial-up result of the modem dialing up to the Internet based on the dial-up Internet access instruction;

[0051] Step A5: if the response information indicates that the dial-up is successful, a virtual local area network VLAN interface is created;

[0052] Step A6, transmitting IP message data to the vehicle-mounted device through the VLAN interface, the vehicle-mounted device forwarding the IP message data to the modem, and the modem sending the IP message data to the network.

[0053] This implementation method is a business scenario in which the Android car machine directly controls the modem to dial up the Internet. The Android car machine sends a dial-up Internet access command to the vehicle-mounted device through the control channel and waits for its response. The vehicle-mounted device forwards the dial-up Internet access command to the modem, and the modem sets the APN and other parameters required for networking, as well as the authentication process to dial up the Internet. After the modem completes the dial-up Internet access, the modem returns the response information of the dial-up result to the vehicle-mounted device, and the vehicle-mounted device forwards the response information to the Android car machine through the control channel. After receiving the response message forwarded by the vehicle-mounted device, the Android car machine parses the response message to confirm whether the dial-up is successful. If the dial-up is successful, several virtual local area network VLAN interfaces are created to establish a data channel between the Android car machine and the vehicle-mounted terminal for the transmission of Internet access data, wherein the Internet access data is mainly IP message data. The Internet access data channel is mapped through the Ethernet VLAN (virtual local area network) interface and the corresponding APN (network access point name) dial-up interface. The data is routed and forwarded through policy routing to achieve this mapping relationship. The data is routed and forwarded through routing to ensure that the data can be accurately transmitted from the vehicle-mounted device to the modem. Finally, the modem sends the IP message data to the network to achieve vehicle networking. Through this implementation, the Android vehicle can use the native RIL to directly initiate a dial-up operation to the external modem, and can obtain the dial-up results, such as the IP address and interface information (the VLAN interface automatically created by the libfibo-ril.so component). It is fully compatible with the Android native modem control logic and simplifies the modem control logic.

[0054] Optionally, in-vehicle networking generally has multi-way dial-up, such as private network and public network. Therefore, in this embodiment, multiple VLAN interfaces can also be created to support multi-way dial-up. This embodiment uses Ethernet VLAN to virtualize the dial-up data channel interface and meet the multi-way dial-up requirements at the same time.

[0055] In another implementation of this embodiment, after establishing a Socket connection with the vehicle-mounted device through Ethernet and generating a control channel, the method further includes:

[0056] The message actively reported by the modem and sent by the vehicle-mounted device based on the control channel is received through the RIL client of the Android vehicle machine.

[0057] In this embodiment, the Android car machine can also receive information actively reported by the modem. A customized RIL library (libfibo-ril.so) is defined on the Android car machine. The RIL library contains some programs. After the Android car machine loads the RIL library, the programs in the RIL library can be run as the RIL client of the Android car machine. Figure 5, the modem reports QMI to the RILD of the vehicle-mounted device (the RILD of the vehicle-mounted device serves as the RIL server, i.e., Qcril server), the Qcril server converts the actively reported message into a message recognizable by Android (such as unsol id), and sends the converted message to the Android car machine, the Android car machine receives the message actively reported by the modem sent by the Qcril server based on the control channel, and calls the non-solicited callback function OnUnsolicitedResponse() to send the actively reported message to the Android RILD. In one example, when the modem receives a call or text message, it is necessary to report the call or text message to the Android car machine. When the modem detects that the dial-up network is disconnected, it is also necessary to report the message of the dial-up network disconnection to the Android car machine so that the Android car machine can re-initiate the dial-up connection. This implementation enables the network signal and other states to be directly displayed within the Android system without the need for transfer through a private protocol or the development of a special application.

[0058] This embodiment proposes a solution for an Android car machine to use an external heterogeneous modem via Ethernet. The vehicle-mounted device (such as T-Box) can be used as a universal modem for the Android car machine via Ethernet, so that the Android system can directly control the external modem to perform Internet access, phone calls, text messages and other services.

[0059] In this embodiment, a control method for a modem applied to an in-vehicle device is also provided. The in-vehicle device is integrated with a modem. Figure 3 is a flow chart of a modem control method according to an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:

[0060] Step S40, creating a transmission control protocol socket tcp socket, establishing a socket connection with the Android car machine through Ethernet, and generating a control channel;

[0061] Step S50, receiving a modem control instruction sent by the Android car machine based on the control channel;

[0062] Step S60: forwarding the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0063] A new TCP socket channel is added on the vehicle-mounted device side for cross-machine communication. The Android vehicle-mounted device establishes a socket connection with the vehicle-mounted device through connect, that is, a control channel is established between the vehicle-mounted device and the Android vehicle-mounted device through Ethernet.

[0064] The vehicle-mounted device receives the modem control command sent by the Android vehicle machine based on the control channel, and forwards the modem control command to the modem to control the modem to execute the modem control command, thereby enabling the Android vehicle machine to control the modem across devices.

[0065] The above steps establish a control channel between the vehicle-mounted device and the Android car machine through Ethernet, so that the Android car machine can use an external modem (such as a heterogeneous modem on the T-Box) across machines through Ethernet. In the vehicle scenario, no additional hardware interface is required, and the vehicle machine networking can be achieved even if the Android car machine chip itself does not have an integrated modem.

[0066] In one implementation of this embodiment, the modem control instruction includes a dial-up Internet access instruction. After forwarding the modem control instruction to the modem, the method further includes:

[0067] Step C1, receiving a response message returned by the modem, wherein the response message is a networking result of the modem executing the dial-up Internet access instruction;

[0068] Step C2, forwarding the response message to the Android car machine through the control channel.

[0069] In this embodiment, the modem used by the vehicle-mounted device (such as T-Box) generally supports RILD. The RILD of the vehicle-mounted device receives the dial-up Internet access command sent by the Android car machine based on the control channel, and then forwards the dial-up Internet access command to the modem to control the modem to execute the dial-up Internet access command.

[0070] In this embodiment, the vehicle-mounted device converts the format of the forwarded message, that is, converts the dial-up Internet access command sent by the Android vehicle machine into a message recognizable by the modem (such as a QMI message), and then forwards it to the modem. After receiving the QMI message, the modem executes the corresponding dial-up command and returns a response message to the vehicle-mounted device. Similarly, the vehicle-mounted device converts the response message returned by the modem into a message recognizable by Android, and then forwards it to the Android vehicle machine, completing the entire communication process, ensuring that the Android vehicle machine and the modem can correctly parse the message and respond.

[0071] In another implementation of this embodiment, after establishing a Socket connection with the Android car machine through Ethernet and generating a control channel, the method further includes:

[0072] Step D1, receiving a message actively reported by the modem;

[0073] Step D2, forwarding the actively reported message to the Android car machine through the control channel.

[0074] In this embodiment, the modem can actively report relevant messages to the Android car machine across devices, such as the modem's network status information, etc. The vehicle-mounted device and the modem transmit messages through inter-process communication IPC, and the QMI Client of the vehicle-mounted device receives the messages actively reported by the modem's QMI Server, converts the format of the actively reported messages, and forwards them to the Android car machine through the control channel.

[0075] Through this implementation, the Android car machine can obtain status information about the mobile network or modem messages such as phone text messages in a timely manner and make corresponding adjustments.

[0076] In a specific application scheme of the present embodiment, a method for an Android system car machine to use an external heterogeneous 5G modem across machines via Ethernet is also provided, including: the Android car machine calls relevant functions of the third-party RIL library, and establishes a control channel with the RILD on the T-Box side based on Ethernet; the RILD on the T-Box side needs to add a tcpsocket channel based on the original standard RILD (the original channels are all unix domain sockets, which can only communicate locally but not across machines); the Android car machine sends the RIL control message to the RILD on the T-Box side through the control channel, and the RILD forwards it to the modem to complete the control communication.

[0077] The solution of this embodiment uses the vehicle Ethernet to enable the Android car machine to use an external modem (heterogeneous modem of T-Box), so that the Android car machine directly controls the modem to perform Internet access, phone calls, text messages and other services without adding additional hardware interfaces, and there is no need to develop additional complex control logic. This solution is equivalent to directly integrating the modem on the car machine, and the car machine can connect to the 5G network more quickly and stably, providing a smooth Internet experience for drivers and passengers. Since an external modem is actually used, it is convenient for maintenance, replacement, and upgrading, and the Android native system directly connected to the external modem has good compatibility and stability.

[0078] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0079] Example 2

[0080] In this embodiment, a control device for a modem is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are omitted. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0081] Figure 6 is a structural block diagram of a control device for a modem applied to an Android car machine according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0082] A first creation module 60 is used to establish a Socket connection with an on-board device via Ethernet to generate a control channel, wherein the on-board device is integrated with a modem;

[0083] The control module 64 is used to send a modem control instruction to the vehicle-mounted device through the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0084] Figure 7 is a structural block diagram of a control device for a modem applied to a vehicle-mounted terminal according to an embodiment of the present application, such as Figure 7 As shown, the device comprises:

[0085] The second creation module 71 is used to create a transmission control protocol socket TCP socket and establish a control channel with the Android car machine through Ethernet;

[0086] A second receiving module 73 is used to receive a network control instruction sent by the Android car machine based on the control channel;

[0087] The forwarding module 75 is used to forward the network control instruction to the modem to control the modem to execute the network control instruction.

[0088] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0089] Example 3

[0090] An embodiment of the present application further provides a computer storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0091] Optionally, in this embodiment, the computer storage medium may be configured to store a computer program for performing the following steps:

[0092] S1, establishing a Socket connection with an on-board device via Ethernet to generate a control channel, wherein the on-board device is integrated with a modem;

[0093] S2, sending a modem control instruction to the vehicle-mounted device through the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0094] Optionally, in this embodiment, the above-mentioned computer storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0095] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0096] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0097] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0098] S1, establishing a Socket connection with an on-board device via Ethernet to generate a control channel, wherein the on-board device is integrated with a modem;

[0099] S2, sending a modem control instruction to the vehicle-mounted device through the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

[0100] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0101] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0102] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0103] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0104] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned computer storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.

[0107] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A modem control method, characterized in that: Applied to an Android car machine, the Android car machine is connected to a vehicle-mounted device via Ethernet, and the vehicle-mounted device is integrated with a modem. The method includes: Establishing a Socket connection with the vehicle-mounted device via Ethernet to generate a control channel; A modem control instruction is sent to the vehicle-mounted device through the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

2. The method according to claim 1, characterized in that The modem control instruction includes a dial-up Internet access instruction. After sending the modem control instruction to the vehicle-mounted device through the control channel, the method further includes: Receiving, through the control channel, response information sent by the vehicle-mounted device, the response information being a dial-up result of the modem executing the dial-up Internet access instruction; If the response information indicates that the dial-up is successful, a virtual local area network VLAN interface is created; The IP message data is transmitted to the vehicle-mounted device through the VLAN interface, the vehicle-mounted device forwards the IP message data to the modem, and the modem sends the IP message data to the network.

3. The method according to claim 1, characterized in that Sending a modem control instruction to the vehicle-mounted device through the control channel includes: Deploy a radio interface layer RIL client in the Android vehicle machine, and obtain a modem control instruction initiated by the Android vehicle machine application layer through the RIL client; The modem control command is sent to the RIL server of the vehicle-mounted device through the control channel.

4. The method according to claim 1, characterized in that: After establishing a Socket connection with the vehicle-mounted device through Ethernet and generating a control channel, the method further includes: The message actively reported by the modem and sent by the vehicle-mounted device based on the control channel is received through the RIL client of the Android vehicle machine.

5. A modem control method, characterized in that: Applied to an on-board device, the on-board device is integrated with a modem, and the on-board device is connected to an Android car machine via Ethernet. The method includes: Create a transmission control protocol socket tcp socket, establish a socket connection with the Android car machine through Ethernet, and generate a control channel; Receiving a modem control command sent by the Android vehicle machine based on the control channel; The modem control instruction is forwarded to the modem to control the modem to execute the modem control instruction.

6. The method according to claim 5, characterized in that The modem control instruction includes a dial-up Internet access instruction. After forwarding the modem control instruction to the modem, the method further includes: receiving a response message returned by the modem, wherein the response message is a dial-up result of the modem executing the dial-up Internet access instruction; The response message is forwarded to the Android car machine through the control channel.

7. The method according to claim 5, characterized in that After establishing a Socket connection with the Android vehicle computer through Ethernet and generating a control channel, the method further includes: receiving a message actively reported by the modem; The actively reported message is forwarded to the Android vehicle machine through the control channel.

8. A control device for a modem, characterized in that: Applied to Android car machines, including: A first creation module is used to establish a Socket connection with an on-board device via Ethernet to generate a control channel, wherein the on-board device is integrated with a modem; The control module is used to send a modem control instruction to the vehicle-mounted device through the control channel, and the vehicle-mounted device forwards the modem control instruction to the modem to control the modem to execute the modem control instruction.

9. A control device for a modem, characterized in that: Applied to an in-vehicle device, the in-vehicle device is integrated with a modem, comprising: The second creation module is used to create a transmission control protocol socket tcp socket, establish a socket connection with the Android car machine through Ethernet, and generate a control channel; A first receiving module, used for receiving a modem control instruction sent by the Android car machine based on the control channel; The forwarding module is used to forward the modem control instruction to the modem to control the modem to execute the modem control instruction.

10. A computer storage medium, characterized in that: The computer storage medium stores a computer program, wherein the computer program executes the modem control method according to any one of claims 1 to 7 when executed.