Communication configuration method and system, cellular module, remote communication terminal and vehicle

By implementing a communication configuration method in the cellular module, including network framework configuration and dynamic rule management, the problem of network connection failure of cellular modules is solved, the connection stability is improved and the self-recovery mechanism is realized.

CN119697664APending Publication Date: 2025-03-25VOYAH AUTOMOBILE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411808841.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

When using cellular modules, network connection failure often occurs, and the connection stability is poor.

Method used

By providing a communication configuration method, it includes obtaining network framework configuration instructions, establishing a network framework configuration instance, binding to a data telephone dialing instance, issuing static and dynamic rules for network framework configuration, and reissuing when the rules fail, and re-acquisitioning when the network connection status is not connected.

Benefits of technology

It improves the network connection stability of cellular modules, avoids the problem of network connection failure, realizes a self-recovery mechanism, and reduces the frequency of network connection failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697664A_ABST
    Figure CN119697664A_ABST
Patent Text Reader

Abstract

The invention discloses a communication configuration method and system, a cellular module, a remote communication terminal and a vehicle. Network connection failure caused by routing rule failure is avoided through two recovery logics. According to the method and the device, by setting the recovery logic for re-checking, the nodes which are easy to lose the routing rules in the communication configuration process are re-checked, and the nodes are re-issued after the routing rules are checked to be invalid, so that the problem of network connection failure caused by the failure of the routing rules can be avoided. According to the second recovery logic, the network connection state is obtained, and if the connection state is a non-connection state, the network framework configuration instruction is obtained again; according to the method provided by the invention, the self-recovery logic of the failure of the routing rule is added, the network connection failure is reduced, and the stability of the network connection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of vehicle network communication technology, and in particular, relates to a communication configuration method, system, cellular module, remote communication terminal and vehicle. Background Art

[0002] The remote communication terminal is a box on the car that integrates the vehicle body network and wireless communication functions, and can provide telematics telematics services. The remote communication terminal is equipped with a cellular module, which can be used to realize network communication functions.

[0003] However, the cellular modules in the related art often experience network connection failures during use, and the connection stability is poor. Summary of the invention

[0004] The embodiments of the present application provide a communication configuration method, system, cellular module, remote communication terminal and vehicle, which can improve the network connection stability of the cellular module at least to a certain extent and avoid the problem of frequent network connection failure during use.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to a first aspect of an embodiment of the present application, a communication configuration method is provided, which is applied to a cellular module, wherein the cellular module is arranged in a remote communication terminal of a vehicle, and the method comprises:

[0007] Obtaining a network framework configuration instruction, and establishing a network framework configuration instance based on the network framework configuration instruction;

[0008] Binding the network framework configuration instance to the data phone dialing instance, and issuing network framework configuration static rules, wherein the network framework configuration static rules include rules that do not change with the state of the data phone;

[0009] Recheck the network framework configuration static rule, and if it fails, reissue the network framework configuration static rule;

[0010] Obtaining a dialing instruction, and issuing a network framework configuration dynamic rule based on the dialing instruction, wherein the network framework configuration dynamic rule includes a rule that changes with the state of the data phone;

[0011] Recheck the network framework configuration dynamic rule, and if it fails, reissue the network framework configuration dynamic rule;

[0012] The network connection status is obtained, and if the connection status is not connected, the network framework configuration instruction is obtained again.

[0013] In some embodiments of the present application, based on the above solution, after obtaining the network connection status, if the connection status is not connected, re-obtaining the network framework configuration instruction, the method further includes:

[0014] Count the value N of the unconnected state, and the starting number of N is zero.

[0015] When the connection state is unconnected, let N=N+1;

[0016] When N is less than or equal to 3, the network framework configuration instruction is re-acquired;

[0017] When N is greater than 3, it indicates that there is a problem in the current step that cannot be solved by retrying, so a notification to reconfigure the route is issued.

[0018] In some embodiments of the present application, based on the above-mentioned solution, the cellular module is configured with an API interface for the remote communication terminal to call and a dialing management module for dialing, and the dialing management module is used to issue the network framework configuration static rules and the network framework configuration dynamic rules, and the method for obtaining the network framework configuration instruction includes:

[0019] Obtaining, through the API interface, a network framework configuration instruction issued by an application layer script of the remote communication terminal, wherein the network framework configuration instruction includes a network framework creation instruction and a network framework setting instruction;

[0020] Utilizing the API interface to forward the network framework configuration instruction to the dial-up management module;

[0021] The network framework configuration instruction is obtained by utilizing the dial-up management module.

[0022] In some embodiments of the present application, based on the above solution, the method further includes:

[0023] Using the dial-up management module to return the execution result of the network framework configuration instruction to the API interface;

[0024] The API interface is also used to return the execution result to the application layer script of the remote communication terminal;

[0025] If the execution result is execution failure, the API interface is further used to receive the network framework configuration instruction re-issued by the application layer script of the remote communication terminal.

[0026] In some embodiments of the present application, based on the above solution, the method for issuing a static rule for configuring a network framework includes:

[0027] Send data processing tables and routing decision rules;

[0028] The method for issuing a network framework configuration dynamic rule comprises:

[0029] Send address translation table and routing table rules.

[0030] In some embodiments of the present application, based on the above-mentioned solution, the routing instruction includes a data processing table, a routing decision rule, an address translation table and a routing table rule. When the data processing table and the routing decision rule are issued or the address translation table and the routing table rule are issued, the method further includes:

[0031] Obtain the maximum waiting time when the routing instruction is locked;

[0032] If the routing instruction is locked within the maximum waiting time, a notification that the routing rule is correct is returned;

[0033] If the routing instruction is not locked after the maximum waiting time has passed, a notification of invalidation of the routing rule is returned.

[0034] In some embodiments of the present application, based on the above solution, the method further includes:

[0035] Obtaining a disconnect dialing instruction, and issuing a network framework deletion rule based on the disconnect dialing instruction, wherein the network framework deletion rule is used to delete the address translation table and the routing table rule;

[0036] Recheck the network framework deletion rule to determine whether the address translation table and the routing table rules are completely deleted, and if not, re-issue the network framework deletion rule;

[0037] If yes, then end.

[0038] In some embodiments of the present application, based on the above solution, the method further includes:

[0039] Acquire a periodic query instruction, where the periodic query instruction is used to periodically query the dialing status of the cellular module;

[0040] Returning query results based on the periodic query instruction, and rechecking the network framework configuration static rules at each query, and reissuing the network framework configuration static rules if they are invalid;

[0041] The network framework configuration dynamic rules are also rechecked, and if invalid, the network framework configuration dynamic rules are reissued.

[0042] According to a second aspect of an embodiment of the present application, a cellular module is provided, wherein the cellular module is used to execute any of the methods described above.

[0043] According to a third aspect of an embodiment of the present application, a remote communication terminal is provided, wherein the remote communication terminal includes the cellular module as described above.

[0044] According to a fourth aspect of an embodiment of the present application, a computer program product is provided, which includes computer instructions stored in a computer-readable storage medium and suitable for being read and executed by a processor, so that a computer device having the processor executes a method as described in any embodiment of the first aspect above.

[0045] According to a fifth aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which at least one computer program instruction is stored. The at least one computer program instruction is loaded and executed by a processor to implement the operations performed by the method described in any embodiment of the first aspect above.

[0046] According to the sixth aspect of an embodiment of the present application, a vehicle is provided, comprising one or more processors and one or more memories, wherein at least one computer program instruction is stored in the one or more memories, and the at least one computer program instruction is loaded and executed by the one or more processors to implement the method described in any embodiment of the first aspect above.

[0047] Based on the technical solution proposed in this application, this application avoids network connection failure caused by invalid routing rules through two recovery logics. First recovery logic: In the process of communication configuration, this application rechecks the routing rules, especially after issuing the static rules of the network framework configuration and issuing the dynamic rules of the network framework configuration, the routing rules of these two steps are easily lost in reality. Therefore, this application sets the recovery logic of rechecking, rechecks the nodes that are easy to lose routing rules in the communication configuration process, and re-issues them after checking that the routing rules are invalid. Therefore, the problem of network connection failure caused by invalid routing rules can be avoided. The second recovery logic of this application: This application obtains the network connection status, and if the connection status is not connected, the network framework configuration instruction is re-obtained, that is, this application not only recovers during the communication configuration process, but also judges the entire network connection status at the end of the communication configuration. If the connection status is not connected, the network framework configuration instruction will be re-obtained, so the network connection failure caused by the invalid routing rules in the network configuration process is further avoided, and self-recovery can be performed, which reduces the occurrence of network connection failure and improves the stability of network connection.

[0048] Among them, the communication configuration method of the present application is applicable to the cellular module of the vehicle's remote communication terminal, which can further improve the stability of the vehicle's remote connection through 5G.

[0049] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0051] Figure 1 A flow chart showing a communication configuration method in an embodiment of the present application is shown;

[0052] Figure 2 A framework diagram of a communication configuration method in an embodiment of the present application is shown;

[0053] Figure 3 A framework diagram of a communication configuration method in an application embodiment of the present application is shown;

[0054] Figure 4 A schematic structural diagram of a vehicle in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0057] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0058] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0059] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0060] In order to enable those skilled in the art to better understand the present application, the application scenarios involved in the present application are first briefly described.

[0061] T-BOX (telematics terminal) is a box on the car, referring to Telematics BOX, which is a product that integrates the vehicle body network and wireless communication functions, and can provide Telematics remote information processing services. T-BOX is generally installed under the dashboard. It is a box with communication functions based on operating systems such as Android and Linux. The telematics terminal can contain a SIM card, as well as supporting hardware such as GPS antenna and 4G antenna. T-BOX is required for the car machine to be connected to the Internet. The vehicle-mounted T-BOX is mainly used to communicate with the background system / mobile phone APP to realize the vehicle information display and control of the mobile phone APP. When the user sends a control command through the mobile phone APP, the TSP cloud background will send a monitoring request instruction to the vehicle-mounted T-BOX. After the vehicle obtains the control command, it sends a control message through the CAN bus and realizes the control of the vehicle. Finally, the operation results are fed back to the user's mobile phone APP. This function can help users remotely start the vehicle, turn on the air conditioner, adjust the seat to a suitable position, etc., to achieve intelligent control of the vehicle.

[0062] Among them, the T-BOX is equipped with a cellular module to realize network communication functions. The cellular module is a module that integrates baseband chips, memory, power amplifier devices, etc. on a circuit board. By providing a standard interface, various terminal devices can realize wireless communication functions. The function of the cellular module is to provide the terminal device with the ability to transmit wireless data. For example, you can connect to a 4G or 5G network through dial-up.

[0063] When the cellular module is communicating over the network, for operating systems such as Android and Linux, the configuration process of network communication needs to follow certain routing rules, including: iptables rules, which are mainly responsible for packet filtering and firewall rule settings to control the entry and exit of data packets. iptables is a packet filtering firewall tool under Linux. It is located in the netfilter framework of the kernel and is used to control data packets entering and leaving the network interface. The rules of iptables define how to handle these data packets, such as allowing, rejecting or discarding. Route rules are mainly responsible for routing configuration and determine the forwarding path of data packets; the route command is used to modify the routing table in the Linux kernel to determine the forwarding path of data packets. Iptables rules and route rules have different focuses in Linux network management, and the two work together to ensure that data packets can pass through the network correctly and safely.

[0064] If the above routing rules fail, the cellular module will experience network connection failure. For example, the connection to 4G or 5G networks often fails, and the success rate is low.

[0065] However, in the related art, when configuring the network, the logic of network connection failure caused by routing rule failure and subsequent recovery is not considered. Therefore, when the routing rule fails, network connection failure will occur, which has a great impact on the connection stability of the cellular module. It is also not conducive to the communication transmission of the remote communication terminal.

[0066] Therefore, in order to solve the above problems, the present application discloses the following technical solutions.

[0067] According to a first aspect of the embodiments of the present application, the present application provides a communication configuration method, such as Figure 1 As shown, Figure 1 FIG. 1 is a flow chart showing a communication configuration method in an embodiment of the present application. Figure 2 As shown, Figure 2 A framework diagram of the communication configuration method in an embodiment of the present application is shown.

[0068] The method of the present application is applied to a cellular module, and the cellular module is arranged in a remote communication terminal of a vehicle (hereinafter referred to as T-BOX). The method of the present application includes steps 110 to 160.

[0069] Step 110: Obtain a network framework configuration instruction, and establish a network framework configuration instance based on the network framework configuration instruction.

[0070] refer to Figure 2 In some embodiments of the present application, the cellular module of the present application is configured with an API interface for remote communication terminals to call and a dialing management module for dialing. The dialing management module can be used to issue the following network framework configuration static rules of step 120 and the network framework configuration dynamic rules of step 140, wherein the method for obtaining network framework configuration instructions in step 110 of the present application includes steps 1101-1103.

[0071] Step 1101: Obtain the network framework configuration instructions sent by the application layer script of the remote communication terminal through the API interface. The network framework configuration instructions include network framework creation instructions and network framework setting instructions.

[0072] Among them, the cellular module of the present application provides an API interface for T-BOX to call, so the data transmission between the cellular module and T-BOX can be realized through the API interface. The application layer of the T-BOX of the present application may refer to the middle layer connecting the business application and the device, mainly referring to various operating systems and platform software, providing a unified interface for application development. The application layer refers to the Internet of Things application system in various specific scenarios, such as smart meters, wireless payments, vehicle transportation, smart parking, smart cities, smart security, wireless gateways, etc. The application layer script of the T-BOX of the present application includes a shell script. The shell script is essentially a file that stores instructions in a specific format. The system can use a script parser to translate or parse the instructions and execute them. It does not require compilation. We only need to use any text editor, write the corresponding program according to the syntax, increase the executable permission, and execute it in an environment where the shell command interpreter is installed.

[0073] The network framework configuration instructions of the present application may be configuration instructions for the network management framework, Network Framework, referred to as NF instructions, and corresponding NF instances may be generated. For example, the application layer shell script of the T-BOX of the present application may issue the ql_cmd nf instruction. Among them, the network framework configuration instructions of the present application may include Interface instructions and ACL instructions, refer to Figure 2, the application layer shell script of T-BOX can be sent separately. Interface instruction is in network equipment, Interface refers to the network interface, usually the physical or logical port of a router or switch. Each Interface has a unique identifier to identify the direction and location of the data packet. ACL (Access Control List) instruction: Access control list is a collection of instructions used to control the entry and exit of data packets. ACL can allow or deny data packets to pass through the interface based on predefined rules, such as source address, destination address, port number, etc.

[0074] Step 1102: Use the API interface to forward the network framework configuration instruction to the dial-up management module.

[0075] After the network framework configuration instruction is obtained through the API interface, the network framework configuration instruction can be forwarded to the dial-up management module through the API interface.

[0076] Step 1103: Use the dial-up management module to obtain network framework configuration instructions.

[0077] The cellular module of the present application can achieve stable and low-latency data transmission by providing an API interface for T-BOX to call, and avoids the failure of issuing network framework configuration instructions, thereby improving the stability of instruction issuance.

[0078] In some embodiments of the present application, based on the above scheme, the method of the present application further includes:

[0079] Use the dial-up management module to return the execution result of the network framework configuration instruction to the API interface. This step can correspond to Figure 2 The response in step 110 may return the execution result of the network framework configuration instruction to the API interface.

[0080] The API interface is also used to return the execution result to the application layer script of the remote communication terminal. Figure 2 The return in step 110 may return the execution result to the application layer script of T-BOX.

[0081] If the execution result is execution failure, the API interface is also used to receive the network framework configuration instructions re-issued by the application layer script of the remote communication terminal.

[0082] If the execution result is successful, T-BOX can send a connection success notification through the vehicle's screen or speaker.

[0083] This application uses an API interface to return the execution result to the application layer script of the remote communication terminal, and when the execution result is an execution failure, it re-receives the network framework configuration instructions re-issued by the application layer script of the remote communication terminal. Therefore, it can further avoid re-configuring the communication when the routing rule fails, realize the self-recovery of the routing rule failure, and improve the stability of the network.

[0084] In some embodiments of the present application, based on the above solution, the method for establishing a network framework configuration instance based on the network framework configuration instruction in step 110 of the present application includes:

[0085] The dial-up management module performs initialization processing on the network management framework, that is, Figure 2 NF module initialization processing in.

[0086] Then load the preconfiguration file, where the preconfiguration file is a file corresponding to the network framework configuration instance. The preconfiguration file of the present application can be received through an API interface and can come from the application layer of the T-BOX. The preconfiguration file can be a mapping table of network framework configuration instructions and network framework configuration instances.

[0087] The registration event corresponds to obtaining the network framework configuration instance through the pre-configuration file, which can be obtained by querying the above-mentioned mapping table.

[0088] Through the above steps, the present application can establish a network framework configuration instance based on the network framework configuration instructions, providing a basis for subsequent steps.

[0089] The above steps complete step 110 , and then step 120 of the present application is disclosed.

[0090] Step 120: Bind the network framework configuration instance to the data phone dialing instance, and issue the network framework configuration static rules, which include rules that do not change with the state of the data phone.

[0091] refer to Figure 2, the dataphone dialing instance of the present application corresponds to the Datecall dialing instance. Datacall is a technology for data connection through a mobile network, commonly used for GPRS or 5G data services in cellular networks. The dialing status of Datacall reflects whether the device has been successfully connected to the network. The function of DataCall is to set / query APN, dial-up user and password under CDMA network, connect to the network, disconnect from the network and other functions. Step 120 of the present application binds the network framework configuration instance with the dataphone dialing instance, so the routing rules required for the current network framework configuration instance can be obtained through this step, so the corresponding network framework configuration static rules can be issued. Among them, the present application can also obtain the corresponding routing rules according to the network framework configuration instance and the Datecall dialing instance through mapping.

[0092] In some embodiments of the present application, based on the above-mentioned solution, the method for issuing a static rule for configuring a network framework in the present application includes:

[0093] Send data processing tables and routing decision rules.

[0094] correspond Figure 2 , the data processing table of this application is the Mangle table, and the routing decision rule is the IP rule. The Mangle table is a table in iptables, which is mainly used to modify the content of the data packet and is often used for traffic shaping or marking the data packet. The IP rule (IP rule) is an important component of iptables and is used to define the routing selection strategy for the data packet. Each rule contains a route selector and an action. The route selector defines the conditions under which the rule applies (such as source address, destination address, etc.), and the action specifies how to handle the matching data packet (such as forwarding, blacklist, etc.).

[0095] Therefore, the above method of the present application can realize the distribution of different contents of iptables rules and complete the network configuration process.

[0096] In some embodiments of the present application, based on the above-mentioned solution, the routing instruction includes a data processing table and a routing decision rule. When the data processing table and the routing decision rule are issued or the address translation table and the routing table rule are issued, the method of the present application further includes:

[0097] Get the maximum waiting time when the routing instruction is locked;

[0098] If the routing instruction is locked within the maximum waiting time, a notification that the routing rule is correct will be returned;

[0099] If the routing instruction is not locked after the maximum waiting time, a notification of the invalidation of the routing rule is returned.

[0100] The present application sets the maximum waiting time when the routing instruction is locked, and determines the time when the routing instruction is locked. If the routing instruction is not locked after the maximum waiting time, a notification of the invalidation of the routing rule is returned. This method can be used to solve the problem of multi-process concurrent conflicts. In actual situations, when there are multi-process concurrent conflicts, multiple routing rules will occur but they are not locked for a long time, therefore, the routing rules will also fail, but the existing scheme cannot judge and detect this situation. The present application avoids the problem of multi-process concurrent conflicts by setting the maximum waiting time when the routing instruction is locked, and performing time judgment, and further improves the stability of the network.

[0101] refer to Figure 2 After sending the data processing table and routing decision rules, this application will also return a notification of the sending results, corresponding to the return in step 120, so that the cellular module can know the sending status of the routing rules. At the same time, this application not only receives the sent results, but also continues to step 130.

[0102] Step 130: Recheck the network framework configuration static rules, and if they are invalid, reissue the network framework configuration static rules.

[0103] After step 120, the present application will recheck the network framework configuration static rules, and if they are invalid, reissue the network framework configuration static rules.

[0104] refer to Figure 2 , this application will recheck all the rules under the NF instance, and then return the result of the check, which corresponds to the return of step 130. In this way, through multiple checks, the invalidation of the routing rules is avoided.

[0105] Among them, after performing the check in step 130, the present application will also return the result to the application layer of the remote communication terminal through the API interface.

[0106] After completing step 130 through the above steps, proceed to step 140 .

[0107] Step 140: Obtain a dialing instruction, and issue a network framework configuration dynamic rule based on the dialing instruction. The network framework configuration dynamic rule includes a rule that changes with the state of the data phone.

[0108] The acquisition of dialing instructions corresponds to the instructions for the T-BOX application layer to establish APN dialing. When the dialing management module of the cellular module receives the dialing instructions, the dialing starts successfully. At this time, the network framework configuration dynamic rules are issued, where the network framework configuration dynamic rules include rules that change with the state of the data phone. After the application starts dialing successfully, the Datecall dialing state will change accordingly, and the corresponding Datecall instance state will also change. Therefore, the network framework configuration dynamic rules can be issued according to the change of the Datecall dialing state.

[0109] In some embodiments of the present application, based on the above-mentioned solution, in step 140 of the present application, the method for issuing a network framework configuration dynamic rule includes:

[0110] Send address translation table and routing table rules.

[0111] refer to Figure 2 The address translation table of this application is the Nat table. The Nat table is responsible for network address translation, that is, the conversion of source and destination IP addresses and ports. The routing table rules are ip route rules, which correspond to the IP routing rules in iptables. In the case of dial-up, the corresponding Nat table and ip route rules are issued to achieve communication configuration.

[0112] In some embodiments of the present application, based on the above-mentioned solution, the routing instruction includes an address translation table and a routing table rule. When the address translation table and the routing table rule are issued, the method of the present application further includes:

[0113] Get the maximum waiting time when the routing instruction is locked;

[0114] If the routing instruction is locked within the maximum waiting time, a notification that the routing rule is correct will be returned;

[0115] If the routing instruction is not locked after the maximum waiting time, a notification of the invalidation of the routing rule is returned.

[0116] This application sets the maximum waiting time when the routing instruction is locked, and determines the time when the routing instruction is locked. If the routing instruction is not locked after the maximum waiting time, a notification of invalidation of the routing rule is returned. This method can be used to solve the problem of multi-process concurrent conflicts.

[0117] refer to Figure 2 After sending the address conversion table and routing table rules, this application will also return a notification of the sending results, corresponding to the return in step 140, so that the cellular module can know the sending status of the routing rules. At the same time, this application not only receives the sent results, but also continues to step 150.

[0118] Step 150: Recheck the network framework configuration dynamic rules, and if they are invalid, reissue the network framework configuration dynamic rules.

[0119] After step 140, the present application will recheck the network framework configuration dynamic rules, and if they are invalid, reissue the network framework configuration dynamic rules.

[0120] refer to Figure 2 , this application will recheck all the rules under the NF instance, and then return the result of the check, which corresponds to the return of step 140. In this way, through multiple checks, the invalidation of the routing rules is avoided.

[0121] After performing the check in step 150 , the present application will also return the result to the application layer of the remote communication terminal through the API interface.

[0122] After completing step 150 through the above steps, proceed to step 160 .

[0123] Step 160: Obtain the network connection status. If the connection status is not connected, re-obtain the network framework configuration instruction.

[0124] Among them, the connection status of the present application is not connected, which may be caused by the failure of the routing rules in any of the above steps 120-150. When a problem occurs in any of the above steps, the present application will trigger the re-acquisition of the network framework configuration instruction in step 160. For example, after step 130 of the present application, through response and return, after the result of the current stage reaches the application layer of T-BOX, if the routing rules fail, the application layer of T-BOX will re-issue the network framework configuration instructions to avoid the problem of network connection failure caused by the failure of routing rules.

[0125] That is, step 160 of the present application is to repeatedly obtain the result level. When recovery cannot be performed through steps 120-150 of the present application, and routing rule implementation and connection failure still occur, the present application will re-acquire the network framework configuration instructions through step 160 and perform the recovery logic after routing failure again.

[0126] In some embodiments of the present application, based on the above solution, the network connection status is obtained in step 160. If the connection status is not connected, after re-obtaining the network framework configuration instruction, the method of the present application further includes:

[0127] Count the value N of the unconnected state, and the starting number of N is zero.

[0128] When the connection state is unconnected, let N=N+1;

[0129] When N is less than or equal to 3, the network framework configuration instructions are retrieved;

[0130] When N is greater than 3, it indicates that there is a problem in the current step that cannot be solved by retrying, so a notification to reconfigure the route is issued.

[0131] Through the above method of the present application, endless invalid acquisition can be avoided. The present application sets the value N of the unconnected state. When the value N of the unconnected state is greater than 3, it means that three repeated attempts have been made. If the routing rule still fails and the connection fails, the network framework configuration instruction will not be re-acquired at this time, indicating that there is a problem in the current step that cannot be solved by retrying. Therefore, a notification for reconfiguring the route is issued. At this time, the user knows through the notification that there is a problem with the current configuration, and will modify the configuration and re-issue the framework configuration instruction that can be effectively configured.

[0132] The above method can avoid endless acquisition steps, avoid reducing efficiency, and will not cause waste of computing power, thereby improving efficiency.

[0133] Based on the technical solution proposed in this application, this application avoids network connection failure caused by invalid routing rules through two recovery logics. The first recovery logic corresponds to the above-mentioned steps 130 and 150: In the process of communication configuration, this application rechecks the routing rules, especially after sending the network framework configuration static rules and sending the network framework configuration dynamic rules, the routing rules of these two steps are rechecked. In actual situations, the routing rules of these two steps are easily lost. Therefore, this application sets a recovery logic for rechecking, and rechecks the nodes that are prone to losing routing rules during the communication configuration process, and re-issues them after checking that the routing rules are invalid. Therefore, the problem of network connection failure caused by invalid routing rules can be avoided. In the actual working process, the applicant found that in the process of communication configuration, the routing rules are easily lost when sending the network framework configuration static rules and sending the network framework configuration dynamic rules. Therefore, this application further reduces the possibility of invalid routing rules by adding a recheck mechanism in these two steps. The second recovery logic of the present application corresponds to the above step 160: the present application obtains the network connection status, and if the connection status is not connected, the network framework configuration instructions are obtained again, that is, the present application not only recovers during the communication configuration process but also judges the entire network connection status at the end of the communication configuration. If the connection status is not connected, the network framework configuration instructions are obtained again, thereby further avoiding the problem of network connection failure caused by the failure of routing rules during the network configuration process, and can perform self-recovery, reducing the occurrence of network connection failures and improving the stability of network connections.

[0134] Among them, the communication configuration method of the present application is applicable to the cellular module of the vehicle's remote communication terminal, which can further improve the stability of the vehicle's remote connection through 5G.

[0135] The above introduces steps 110 to 160 of the present application. The following will continue to introduce other embodiments of the present application.

[0136] In some embodiments of the present application, based on the aforementioned scheme, the method of the present application also includes step 170.

[0137] Step 170: Obtain a disconnect dialing instruction, and issue a network framework deletion rule based on the disconnect dialing instruction, where the network framework deletion rule is used to delete the address translation table and the routing table rules;

[0138] The sending of network framework deletion rules includes step 171, deleting address translation table and routing table rules.

[0139] Recheck the network framework deletion rules to determine whether the address translation table and routing table rules are completely deleted. If not, reissue the network framework deletion rules;

[0140] If yes, then end.

[0141] refer to Figure 2 When the cellular module of the present application obtains the disconnect dialing instruction, it corresponds to the application layer of the remote communication terminal initiating the disconnect APN dialing, and will issue the network framework deletion rule based on the disconnect dialing instruction, that is, the dialing is stopped successfully at this time, wherein, when the dialing is stopped, the routing rule is also the dynamic rule configured by the network framework. The network framework deletion rule can delete the address translation table and the routing table rules, and the disconnection dialing is completed by deletion.

[0142] Among them, in step 170 of the present application, a re-check mechanism is also added, that is, the present application will re-check the network framework deletion rules to determine whether the address translation table and routing table rules are completely deleted. If not, the network framework deletion rules are re-issued; if so, the process ends.

[0143] The method of the present application can avoid abnormal situations after the disconnect APN dial is issued, thereby improving accuracy.

[0144] In some embodiments of the present application, based on the aforementioned scheme, the method of the present application also includes step 180.

[0145] Step 180: Obtain a periodic query instruction, where the periodic query instruction is used to periodically query the dialing status of the cellular module;

[0146] Return query results based on periodic query instructions, and perform step 181 to recheck the network framework configuration static rules at each query, and if invalid, re-issue the network framework configuration static rules;

[0147] The network framework configuration dynamic rules are also rechecked, and if invalid, the network framework configuration dynamic rules are reissued.

[0148] refer to Figure 2 When the cellular module of the present application obtains the periodic query instruction, the application layer of the corresponding remote communication terminal initiates the query of the APN dialing status, and returns the query result based on the periodic query instruction. In this way, the application layer of the remote communication terminal can obtain the current APN dialing status.

[0149] In step 180 of the present application, a recheck mechanism is also added, that is, the present application will also perform a recheck step each time the APN dialing status is queried, and all routing rules will be rechecked. If there is an invalidation, the network framework configuration dynamic rule or the network framework configuration static rule will be reissued. The periodic query of the present application can be in seconds, for example, it can be queried once every 20 seconds.

[0150] The method of the present application can recheck the network status when querying the APN dial-up status, further improving the stability of the network connection and avoiding network connection failure.

[0151] What has been disclosed above are specific embodiments of the present application, and application embodiments of the present application will be further disclosed below.

[0152] like Figure 3 As shown, Figure 3 The application embodiment of the present application is disclosed. The steps of the present application include step ① to step ⑦. Among them, the APP in the figure is the T-BOX application layer, QL-SDK corresponds to the above-mentioned API interface, and ql-netd corresponds to the above-mentioned dial-up management module, wherein the dial-up management module and the API interface constitute a cellular module.

[0153] Step ① and step ② are the results of the execution of the ql_cmd nf instruction issued by the T-BOX application layer shell script. The T-BOX application layer script performs a return value check to ensure that the instruction is executed successfully. If the execution fails, it needs to be del / cleaned and reissued: If the execution is successful: no print output. If the execution fails: output err print and return err code (0 for success, non-0 for failure). Among them, this step can correspond to the above step 1103 of the present application, if the execution result is an execution failure, the API interface is also used to receive the network framework configuration instructions reissued by the application layer script of the remote communication terminal. This part of the content has been explained above and will not be repeated here.

[0154] Step ③ is the static rule established when the NF instance is created and configured, that is, the rule that does not change with the Datacall dial-up status. When the iptables rules are issued, the iptables-W setting has been added to wait for the rules to actually complete and take effect before returning. Among them, the iptables-W option is used to set the maximum waiting time (in seconds) for the iptables command to obtain the lock. If the lock cannot be obtained within the specified time, the command will return an error. It is used to solve the problem of multi-process concurrency conflicts. This step of this part of the application corresponds to step 120 above. The content has been explained above and will not be repeated here.

[0155] Steps ④ and ⑤ are dynamic rules bound to the NF instance and the DATACALL instance, that is, rules that will be created and deleted as the Datacall dial-up status changes. When the iptables rules are issued, the -w setting has been added to wait for the rules to actually take effect before returning. Among them, step ④ corresponds to the above step 140, and step ⑤ corresponds to the above step 170. The content has been explained above and will not be repeated here.

[0156] Step ⑥ is a newly added recheck mechanism. After the rules are issued, all the rules under the NF instance will be rechecked. When the rules are lost, they will be reissued. Step ⑥ corresponds to the above steps 130, 150, 181 and the rechecked part in step 170. The recheck of this application runs through multiple stages, which can realize the effectiveness of routing rules and avoid network connection failure.

[0157] Step ⑦ is to add a recheck mechanism to the interface for querying the dial-up instance status. When the T-BOX application layer periodically queries the Datacall dial-up instance status (query once every 20 seconds), it will synchronously detect all the rules under the NF instance bound to the Datacall instance. When the rules are lost, they will be re-issued to ensure that there is a chance to recover after the previous rule fails to be issued or the rules are abnormally lost. This step corresponds to the above step 180, and the content has been explained above, so it will not be repeated here.

[0158] Through the application embodiments of the present application, the problem of network disconnection caused by routing strategies is optimized, the problem of network disconnection caused by failure of routing strategies is solved, and the stability of network connection is further improved, especially for the cellular module of the vehicle's remote communication terminal, which further improves the stability of the vehicle's remote connection through 5G.

[0159] The above introduces the content of the first aspect of this application, and the following will continue to introduce the content of the second aspect of this application.

[0160] According to a second aspect of an embodiment of the present application, the present application provides a cellular module, which is used to execute any of the above methods.

[0161] refer to Figure 2 The cellular module of the present application may include a dial-up management module and an API interface. The cellular module of the present application may be used to achieve stable network connection and avoid network connection failure.

[0162] The above introduces the content of the second aspect of the present application, and the following will continue to introduce the content of the third aspect of the present application.

[0163] According to a third aspect of an embodiment of the present application, a remote communication terminal is provided, and the remote communication terminal includes the above cellular module.

[0164] Through the T-BOX of the present application, the stability of the vehicle's remote connection via 5G can be further improved.

[0165] Based on the same inventive concept, the fourth aspect of an embodiment of the present application also provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium and are suitable for being read and executed by a processor, so that a computer device having the processor executes the method as described above.

[0166] Based on the same inventive concept, the fifth aspect of an embodiment of the present application provides a computer-readable storage medium, in which at least one computer program instruction is stored, and the at least one computer program instruction is loaded and executed by a processor to implement the operations performed by the method described above.

[0167] Based on the same inventive concept, the sixth aspect of the embodiment of the present application further provides a vehicle, referring to Figure 4 , shows a schematic diagram of the structure of a vehicle in an embodiment of the present application, wherein the vehicle includes one or more memories 404, one or more processors 402, and at least one computer program (computer program instruction) stored in the memories 404 and executable on the processors 402, and the processor 402 implements the method described above when executing the computer program.

[0168] Among them, Figure 4In the embodiment of the present invention, a bus architecture (represented by bus 400) is shown, which may include any number of interconnected buses and bridges, and bus 400 links various circuits including one or more processors represented by processor 402 and memory represented by memory 404. Bus 400 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 405 provides an interface between bus 400 and receiver 401 and transmitter 403. Receiver 401 and transmitter 403 may be the same element, namely a transceiver, providing a unit for communicating with various other devices over a transmission medium. Processor 402 is responsible for managing bus 400 and general processing, while memory 404 may be used to store data used by processor 402 when performing operations.

[0169] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope and spirit of the present application and the appended claims. For example, due to the nature of software, the functions described above may be implemented using software executed by a processor, hardware, firmware, hard wiring, or a combination of any of these. In addition, each functional unit may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit.

[0170] 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 can be 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.

[0171] The units described as separate components may or may not be physically separated, and the components of the control device may or may not be physical units, that is, they may be located in one place or distributed in multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0172] 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 can be essentially or partly or all or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for 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 storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store computer program instructions.

[0173] The above description is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims

1. A communication configuration method, characterized in that: Applied to a cellular module, the cellular module is arranged in a remote communication terminal of a vehicle, the method comprises: Obtaining a network framework configuration instruction, and establishing a network framework configuration instance based on the network framework configuration instruction; Binding the network framework configuration instance to the data phone dialing instance, and issuing network framework configuration static rules, wherein the network framework configuration static rules include rules that do not change with the state of the data phone; Recheck the network framework configuration static rule, and if it fails, reissue the network framework configuration static rule; Obtaining a dialing instruction, and issuing a network framework configuration dynamic rule based on the dialing instruction, wherein the network framework configuration dynamic rule includes a rule that changes with the state of the data phone; Recheck the network framework configuration dynamic rule, and if it fails, reissue the network framework configuration dynamic rule; The network connection status is obtained, and if the connection status is not connected, the network framework configuration instruction is obtained again.

2. The method according to claim 1, characterized in that After obtaining the network connection status, if the connection status is not connected, re-obtaining the network framework configuration instruction, the method further includes: Count the value N of the unconnected state, and the starting number of N is zero. When the connection state is unconnected, let N=N+1; When N is less than or equal to 3, the network framework configuration instruction is re-acquired; When N is greater than 3, it indicates that there is a problem in the current step that cannot be solved by retrying, so a notification to reconfigure the route is issued.

3. The method according to claim 1, characterized in that The cellular module is configured with an API interface for the remote communication terminal to call and a dialing management module for dialing, the dialing management module is used to issue the network framework configuration static rules and the network framework configuration dynamic rules, and the method for obtaining the network framework configuration instruction includes: Obtaining, through the API interface, a network framework configuration instruction issued by an application layer script of the remote communication terminal, wherein the network framework configuration instruction includes a network framework creation instruction and a network framework setting instruction; Utilizing the API interface to forward the network framework configuration instruction to the dial-up management module; The network framework configuration instruction is obtained by utilizing the dial-up management module.

4. The method according to claim 3, characterized in that The method further comprises: Using the dial-up management module to return the execution result of the network framework configuration instruction to the API interface; The API interface is also used to return the execution result to the application layer script of the remote communication terminal; If the execution result is execution failure, the API interface is further used to receive the network framework configuration instruction re-issued by the application layer script of the remote communication terminal.

5. The method according to claim 1, characterized in that The method for issuing a network framework configuration static rule comprises: Send data processing tables and routing decision rules; The method for issuing a network framework configuration dynamic rule comprises: Send address translation table and routing table rules.

6. The method according to claim 5, characterized in that The routing instruction includes a data processing table, a routing decision rule, an address translation table and a routing table rule. When the data processing table and the routing decision rule or the address translation table and the routing table rule are issued, the method further includes: Obtain the maximum waiting time when the routing instruction is locked; If the routing instruction is locked within the maximum waiting time, a notification that the routing rule is correct is returned; If the routing instruction is not locked after the maximum waiting time has passed, a notification of invalidation of the routing rule is returned.

7. The method according to claim 5, characterized in that The method further comprises: Obtaining a disconnect dialing instruction, and issuing a network framework deletion rule based on the disconnect dialing instruction, wherein the network framework deletion rule is used to delete the address translation table and the routing table rule; Recheck the network framework deletion rule to determine whether the address translation table and the routing table rules are completely deleted, and if not, re-issue the network framework deletion rule; If yes, then end.

8. The method according to claim 1, characterized in that The method further comprises: Acquire a periodic query instruction, where the periodic query instruction is used to periodically query the dialing status of the cellular module; Returning query results based on the periodic query instruction, and rechecking the network framework configuration static rules at each query, and reissuing the network framework configuration static rules if they are invalid; The network framework configuration dynamic rules are also rechecked, and if invalid, the network framework configuration dynamic rules are reissued.

9. A honeycomb module, characterized in that: The cellular module is used to execute the method according to any one of claims 1-7.

10. A remote communication terminal, characterized in that: The remote communication terminal comprises the cellular module as claimed in claim 8.