Data dialing method, device, computer equipment and computer readable storage medium

By adopting a target dialing method that supports multi-PDN dialing in the data dialing method and obtaining the private network gateway address in combination with the gateway address acquisition instruction, the problem of poor applicability in the existing technology is solved, and the data dialing method in multiple scenarios is realized, and the applicability is improved.

CN114449113BActive Publication Date: 2025-04-11XI AN FIBOCOM WIRELESS INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210032181.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2025-04-11
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

The existing data dialing method is difficult to apply in multiple scenarios, and there is a problem of poor applicability, especially when it supports multi-PDN dialing and private network gateway address acquisition.

Method used

The target dialing method that supports multi-PDN dialing is adopted. After the data dialing is successful, a protocol address is obtained, and a gateway address acquisition instruction is sent to the communication module to obtain the private network gateway address. Then, a protocol address and a private network gateway address are configured for the communication module.

Benefits of technology

The data dialing method applied in multiple scenarios is realized, which not only supports multi-PDN dialing, but also obtains private network gateway addresses, thus broadening the application scenarios of data dialing method and improving applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114449113B_ABST
    Figure CN114449113B_ABST
Patent Text Reader

Abstract

The present application relates to a data dialing method, device, computer equipment and computer-readable storage medium. The method includes: when the host side is connected to the communication module, data dialing is performed using a target dialing method; the target dialing method is a method that supports multi-PDN dialing; when the data dialing is successful, a protocol address is obtained, and a gateway address acquisition instruction is sent to the communication module; the gateway address acquisition instruction is used to instruct the communication module to return the private network gateway address to the host side; the protocol address and the private network gateway address are configured for the communication module. This method can simultaneously support multi-PDN dialing and private network gateway address acquisition, thereby broadening the application scenarios of the data dialing method and improving the applicability of the data dialing method.
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 data dialing method, device, computer equipment and computer-readable storage medium. Background Art

[0002] Before a computer device interacts with a packet data network, it is necessary to establish a default bearer, namely a PDN (Public Data Network) connection, between the computer device and the packet data network, and implement data interaction between the computer device and the packet data network through the PDN connection. Currently, a PDN connection can generally be established through data dialing, but the current data dialing method has limitations and is difficult to apply in multiple scenarios, and has the problem of poor applicability. Summary of the invention

[0003] Based on this, it is necessary to provide a data dialing method, apparatus, computer device and computer-readable storage medium that can be applied in multiple scenarios to address the above technical problems, thereby improving applicability.

[0004] In a first aspect, the present application provides a data dialing method, which is applied to a host side, and the method includes:

[0005] When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing;

[0006] In the case where the data dialing is successful, the protocol address is obtained, and a gateway address obtaining instruction is sent to the communication module; the gateway address obtaining instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0007] The protocol address and the private network gateway address are configured for the communication module.

[0008] In one embodiment, the method further comprises:

[0009] When the data dial-up is successful, obtain the value of the gateway flag;

[0010] When the value of the gateway flag is the first preset value, calling the acquisition interface of the public network gateway address to obtain the public network gateway address returned by the communication module, and configuring the protocol address and the public network gateway address for the communication module;

[0011] The step of sending a gateway address acquisition instruction to the communication module includes:

[0012] When the value of the gateway flag is the second preset value, the gateway address acquisition instruction is sent to the communication module.

[0013] In one embodiment, the gateway address acquisition instruction is an AT instruction;

[0014] The step of sending the gateway address acquisition instruction to the communication module includes:

[0015] The AT port corresponding to the communication module is searched, and the AT command is sent to the communication module through the AT port.

[0016] In one embodiment, the step of configuring the protocol address and the private network gateway address for the communication module includes:

[0017] The private network gateway address returned by the communication module is converted into a hexadecimal private network gateway address, and the protocol address and the hexadecimal private network gateway address are configured for the communication module.

[0018] In one of the embodiments, the target dialing mode is a QMI dialing mode.

[0019] In one embodiment, the step of performing data dialing using the target dialing mode includes:

[0020] The dialing quantity is obtained, and according to the dialing quantity, data dialing is performed using the target dialing mode.

[0021] In a second aspect, the present application further provides a data dialing device. The device is applied to a host side and specifically includes:

[0022] A dialing module, used for performing data dialing by adopting a target dialing mode when the host side is connected to the communication module; the target dialing mode is a mode supporting multi-PDN dialing;

[0023] A private network gateway address acquisition module, used to acquire the protocol address and send a gateway address acquisition instruction to the communication module when the data dialing is successful; the gateway address acquisition instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0024] A configuration module is used to configure the protocol address and the private network gateway address for the communication module.

[0025] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0026] When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing;

[0027] In the case where the data dialing is successful, the protocol address is obtained, and a gateway address obtaining instruction is sent to the communication module; the gateway address obtaining instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0028] The protocol address and the private network gateway address are configured for the communication module.

[0029] In one of the embodiments, the computer device further includes a communication module connected to the processor.

[0030] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0031] When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing;

[0032] In the case where the data dialing is successful, the protocol address is obtained, and a gateway address obtaining instruction is sent to the communication module; the gateway address obtaining instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0033] The protocol address and the private network gateway address are configured for the communication module.

[0034] In the above-mentioned data dialing method, device, computer equipment and computer-readable storage medium, when the host side is connected to the communication module, a target dialing method supporting multi-PDN dialing is adopted for data dialing. When the data dialing is successful, the protocol address is obtained, and a gateway address acquisition instruction is sent to the communication module in a timely manner to obtain the private network gateway address returned by the communication module. When the private network gateway address is obtained, the private network gateway address and the protocol address are configured for the communication module. The present application cleverly combines a target dialing method supporting multi-PDN dialing with a gateway address acquisition instruction capable of acquiring a private network gateway address, thereby simultaneously supporting multi-PDN dialing and private network gateway address acquisition, thereby broadening the application scenarios of the data dialing method and improving the applicability of the data dialing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A diagram showing an application environment of a data dialing method in an embodiment;

[0036] Figure 2One of the flowcharts of a data dialing method in one embodiment;

[0037] Figure 3 The second flowchart of the data dialing method in one embodiment;

[0038] Figure 4 A diagram showing a test result of a driver loading in one embodiment;

[0039] Figure 5 A test result diagram of a data dialing log in one embodiment;

[0040] Figure 6 A test result diagram of a status query in an embodiment;

[0041] Figure 7 The figure is a return result diagram of an AT command in an embodiment;

[0042] Figure 8 A test result diagram of base conversion in one embodiment;

[0043] Fig. 9 A diagram showing test results of IP address and gateway address configuration in one embodiment;

[0044] Fig.10 A test result diagram of an Internet access function in an embodiment;

[0045] Fig.11 is a structural block diagram of a data dialing device in one embodiment;

[0046] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0048] As mentioned in the background technology, the current data dialing method is difficult to apply in multiple scenarios and has the problem of poor applicability. The inventors have found that the reason for this problem is that the prior art generally adopts the following two dialing methods to implement RmNet data connection: (1) dialing based on AT commands, and (2) dialing based on the QMI (Qualcomm MSM Interface) interface provided by Qualcomm. For the aforementioned implementation method (1), after the AT command dialing, although the private network gateway address can be obtained through the AT command, this method only supports single PDN dialing and cannot support multi-PDN dialing. For the aforementioned implementation method (2), although it can support multiple PDNs and meet the requirements of most users for multi-PDN dialing, the gateway address obtained after the QMI dialing is successful is the public network gateway address, and the private network gateway address cannot be obtained. It can be seen that the current data dialing method cannot support the acquisition function of the private network gateway address while supporting multi-PDN dialing, and thus has the problem of poor applicability.

[0049] In order to solve the problems existing in the prior art, the present application provides a data dialing method, apparatus, computer equipment and computer-readable storage medium, which can support both multi-PDN dialing and private network gateway address acquisition function. In some embodiments, the present application can select single PDN dialing or multi-PDN dialing according to user needs. In other embodiments, the present application can select to obtain a public network gateway address or a private network gateway address according to user needs.

[0050] The data dialing method provided in the embodiment of the present application can be applied to Figure 1 It is understood that the computer device may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.

[0051] Among them, the computer device can be divided into a host side 102 and a communication module 104. The host side 102 can be used to implement the part of the data processing function, for example, it can include a processor and a memory. The communication module 104 can be a circuit or device for implementing the communication function, and can support any communication format. The host side 102 can realize data interaction with the packet data network through the communication module 104. It can be understood that the communication module 104 and the host side 102 can be connected in any way, and the communication module 104 can include any number and any form of antennas or antenna interfaces, which are not specifically limited in this application. In one embodiment, the communication module 104 can be connected to the host side 102 via a TYPE-C data cable, and can include multiple antenna interfaces.

[0052] In one embodiment, Figure 2 As shown, a data dialing method is provided, which is applied to Figure 1 The host side in the example is used for explanation. The method specifically includes the following steps:

[0053] S200: When the host side is connected to the communication module, data dialing is performed using a target dialing mode, wherein the target dialing mode is a mode that supports multi-PDN dialing.

[0054] It is understandable that the target dialing mode may be any mode that supports multi-PDN dialing, and this application does not specifically limit this. In one embodiment, the target dialing mode may be a QMI dialing mode.

[0055] Specifically, when the host side is connected to the communication module, the host side can use the target dialing method to perform data dialing to establish a PDN connection through the communication module, so that the computer device can access the packet data network and realize the RmNet data connection. Among them, the target dialing method can be a method that supports multi-PDN dialing. In other words, the target dialing method can support two or more data dialing. It should be noted that the "multi-PDN dialing" involved in this application does not exclude the single PDN dialing method, that is, the target dialing method can perform both single PDN dialing and multi-PDN dialing.

[0056] In one of the embodiments, the step of performing data dialing using a target dialing method includes: obtaining a dialing number, and performing data dialing using a target dialing method according to the dialing number. The dialing number reflects the number of routes that need to be dialed for PDN, and its specific value can be a positive integer, that is, the dialing number can be greater than or equal to one. Before performing data dialing, the host side can obtain the dialing number to determine how many PDN dialing routes are required, and perform data dialing according to the dialing number. In this way, both single-channel PDN dialing and multi-channel PDN dialing can be performed, thereby further broadening the application scenarios of the data dialing method and improving the applicability of the data dialing method.

[0057] S300, when the data dialing is successful, obtain the protocol address, and send a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used to instruct the communication module to return the private network gateway address to the host side.

[0058] Specifically, when the data dialing is successful, the host side can obtain the assigned protocol address and send a gateway address acquisition instruction to the communication module to obtain the private network gateway address returned by the communication module. It can be understood that the assigned protocol address can be any type of protocol address, and this application does not make specific limitations on this. In one embodiment, the protocol address can be an IP (Internet Protocol Address). Similarly, the gateway address acquisition instruction can be any instruction that can obtain a private network gateway address, and this application does not make specific limitations on this.

[0059] S400, configuring a protocol address and a private network gateway address for the communication module.

[0060] Specifically, when the host side obtains the protocol address and the private network gateway address, it can assign the protocol address and the private network gateway address to the communication module to implement the configuration of the communication module.

[0061] In the above-mentioned data dialing method, when the host side is connected to the communication module, a target dialing method supporting multi-PDN dialing is adopted for data dialing. When the data dialing is successful, the protocol address is obtained, and the gateway address acquisition instruction is sent to the communication module in a timely manner to obtain the private network gateway address returned by the communication module. When the private network gateway address is obtained, the private network gateway address and the protocol address are configured for the communication module. The present application cleverly combines the target dialing method supporting multi-PDN dialing with the gateway address acquisition instruction capable of acquiring the private network gateway address, thereby simultaneously supporting multi-PDN dialing and private network gateway address acquisition, thereby broadening the application scenarios of the data dialing method and improving the applicability of the data dialing method.

[0062] In one embodiment, the data dialing method further includes:

[0063] When the data dial-up is successful, obtain the value of the gateway flag;

[0064] When the value of the gateway flag is the first preset value, the acquisition interface of the public network gateway address is called to obtain the public network gateway address returned by the communication module, and the protocol address and the public network gateway address are configured for the communication module;

[0065] The step of sending a gateway address acquisition instruction to the communication module includes:

[0066] When the value of the gateway flag is the second preset value, a gateway address acquisition instruction is sent to the communication module.

[0067] Specifically, when the data dialing is successful, the value of the gateway flag can be obtained. Among them, the value of the gateway flag can be used to reflect the need to obtain a public network gateway address or a private network gateway address. If the value of the gateway flag is the first value, the host side can obtain the public network gateway address and configure the public network gateway address for the communication module. Specifically, the host side can call the acquisition interface of the public network gateway address, receive the public network gateway address returned by the communication module, and assign the protocol address and the public network gateway address to the communication module. If the value of the gateway flag is the second value, the host side can obtain the private network gateway address, and configure the protocol address and the private network gateway address for the communication module.

[0068] In this embodiment, by selectively acquiring the public network gateway address or the private network gateway address according to the value of the gateway flag bit, the public and private gateway address acquisition function can be supported, thereby further broadening the application scenarios of the data dialing method and improving the applicability of the data dialing method.

[0069] In one embodiment, the step of configuring the protocol address and the private network gateway address for the communication module includes: converting the private network gateway address returned by the communication module into a hexadecimal private network gateway address, and configuring the protocol address and the hexadecimal private network gateway address for the communication module. Specifically, when the host side obtains the private network gateway address returned by the communication module, it can perform a base conversion on the returned private network gateway address, that is, convert the returned private network gateway address into a hexadecimal address, and configure the protocol address and the hexadecimal private network gateway address for the communication module. In this way, configuration failure caused by base mismatch can be avoided, thereby improving communication reliability.

[0070] In one embodiment, the gateway address acquisition instruction may be an AT instruction. The step of sending the gateway address acquisition instruction to the communication module includes: searching for the AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port. Among them, the AT port may be an interface on the host side for data transmission with the communication module. Specifically, when the data dialing is successful, the host side may query the AT port corresponding to the communication module to send an AT instruction to the communication module through the AT port. When the communication module receives the AT instruction, it will return the private network gateway address to the host side, and the host side can intercept the private network gateway address from the return result of the AT instruction. In one example, the AT instruction may be an "AT+CGDCONTRDP=1" instruction.

[0071] In this embodiment, by flexibly applying the AT command to query the private network gateway address during the data dialing process, and in the case of successful data dialing, the private network gateway address is promptly intercepted through the AT port, so that the target dialing method supporting multi-PDN dialing and the gateway address acquisition instruction capable of acquiring the private network gateway address can be cleverly combined, and multi-PDN dialing and private network gateway address acquisition are supported at the same time, thereby broadening the application scenarios of the data dialing method and improving the applicability of the data dialing method.

[0072] For ease of understanding, a specific example is used below to illustrate. The fibocom-dial tool can be used for single-way or multi-way dialing. The usage is ". / fibocom-dial [options]". The dialing tool has the following parameters when it was first released. The meaning of each parameter is shown in Table 1:

[0073] Table 1 fibocom-dial parameter types and meanings

[0074]

[0075] Based on the above, the secondary development of this application continues the parameter execution method and adds the "-g parameter" to obtain the private network gateway address. In this way, the function of obtaining the private network gateway address can be realized on the basis of continuing the original dialing method of the fibocom-dial tool, and then effective data dialing in the private network environment can be simply realized. In this embodiment, the data dialing method can be as follows Figure 3 As shown, specifically including:

[0076] S502, add the -g parameter in the main function main.c;

[0077] S504, setting the gateway flag;

[0078] S506, executing a dialing instruction; for ease of explanation, take executing the dialing instruction / fibocom-dial-6-g as an example;

[0079] S508, according to the dialing instruction, use QMI dialing mode to perform single PDN dialing or multi-PDN dialing. For example, when the / fibocom-dial-6-g dialing instruction is obtained, the host side can perform single IPv6 dialing;

[0080] S510, when the data dial-up is successful, assigning an IP address and gateway information;

[0081] S512, determine whether the value of the gateway flag is 1, if not, proceed to step S514, if yes, proceed to step 518;

[0082] S514, calling the public network gateway address acquisition interface and receiving the public network gateway address returned by the communication module;

[0083] S516, allocating an IP address and a public network gateway address to the corresponding network card; wherein the gateway can be regarded as an image device of the communication module on the host side;

[0084] S518, calling the interface for obtaining the private network gateway address;

[0085] S520, searching for an AT port corresponding to the communication module;

[0086] S522, sending an AT+CGDCONTRDP=1 command to the communication module through the corresponding AT port;

[0087] S524, intercepting the private network gateway address from the return result of the AT command;

[0088] S526, performing base-to-base conversion on the intercepted private network gateway address to obtain a hexadecimal private network gateway address;

[0089] S528, allocate an IP address and a private network gateway address to the corresponding network card.

[0090] After the QMI dialing is successful, the present application promptly intercepts the private network gateway address in the AT command return result through the AT port and assigns it to the corresponding network card, thereby cleverly combining the QMI dialing method with the AT command dialing method. This not only retains the multi-PDN function of the QMI dialing method, but also realizes the private network gateway acquisition function, thereby improving the applicability of the data dialing method.

[0091] This application uses a Fibocom FG150 communication module and a Linux computer to build an application environment for testing. Figure 1 The host side shown can be a Linux computer with a kernel version of 3.X / 4.X / 5.X, and the communication module can be a communication module of the FG150 model. The communication module is inserted with a pre-set SIM (Subscriber Identity Module) card, and its ANT_8 interface is connected to a 5G antenna. The communication module is connected to the Linux computer via a TYPE-C data cable. The test process may include:

[0092] (1) Turn on the Linux computer and the communication module, and switch the communication module to the mode that supports RmNet dial-up. Import the GobiNet driver source code and the fibocom-dial dial-up tool source code. Enter the driver source code path and execute the "makeinstall" command to load the GobiNet driver. When the driver is loaded successfully, the computer code can be as follows: Figure 4 shown.

[0093] (2) Perform data dialing

[0094] ① Enter the fibocom-dial source code path, execute the "make" command to compile and generate the "fibocom-dial" binary file.

[0095] ②Execute the dial command ". / fibocom-dial-6–g–n 2–m 1". As shown in Table 1, the "-n" parameter refers to the channel ID specified when multiple PDN data connections are established. The channel ID in the dial command is 2, indicating that the second network card usb0.2 is used for data dialing. The "-m" parameter refers to the dialing number specified when setting multiple PDN data connections. Here, the dialing number is 1, indicating single PDN dialing.

[0096] After executing the above dial-up command, you can confirm the data dial-up success from the data dial-up log, so as to allocate an IP address and private network gateway URL to the corresponding network card. Figure 5 As shown in the data dialing log, qmap_mode=5 indicates that 5-way PDN dialing is currently supported, and qmap_netcard=usb0.2 indicates that the second network card usb0.2 is currently used for dialing.

[0097] ③If Figure 6 As shown, the host side checks whether the current SIM card status is normal, and checks whether the current IPv6 connection status is disconnected.

[0098] ④The fibocom-dial tool triggers the interface function of obtaining the private network gateway address through the "-g" parameter, and then sends the "AT+CGDCONTRDP=1" command based on the AT port " / dev / ttyUSB1", and intercepts the corresponding private network gateway address "254.128.0.0.0.0.0.0.0.0.0.0.0.0.1" from the AT response result, as shown in Figure 7 shown.

[0099] ⑤ Such as Figure 8 As shown, the host side converts the decimal private network gateway address "254.128.0.0.0.0.0.0.0.0.0.0.0.0.1" into hexadecimal "fe80::1" and configures the dead gateway address to the corresponding network card.

[0100] (3) Check whether you can access the Internet successfully after data dial-up

[0101] ① Such as Fig. 9As shown in the figure, if the data dial-up is successful, use the "ifconfig-a" command to check whether usb0.2 successfully obtains the IP address.

[0102] ② Ping the external network to test whether it can access the Internet normally, such as Fig.10 As shown, the Internet access function can be used normally.

[0103] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0104] Based on the same inventive concept, the embodiment of the present application also provides a data dialing device for implementing the data dialing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more data dialing device embodiments provided below can refer to the limitations of the data dialing method above, and will not be repeated here.

[0105] In one embodiment, Fig.11 As shown, a data dialing device applied to a host side is provided, comprising:

[0106] A dialing module, used for performing data dialing by adopting a target dialing mode when the host side is connected to the communication module; the target dialing mode is a mode supporting multi-PDN dialing;

[0107] A private network gateway address acquisition module, used to acquire the protocol address and send a gateway address acquisition instruction to the communication module when the data dialing is successful; the gateway address acquisition instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0108] A configuration module is used to configure the protocol address and the private network gateway address for the communication module.

[0109] In one embodiment, the device further includes a value acquisition module and a public network gateway address acquisition module. The value acquisition module is used to obtain the value of the gateway flag bit when the data dialing is successful. The public network gateway address acquisition module is used to call the acquisition interface of the public network gateway address when the value of the gateway flag bit is a first preset value to obtain the public network gateway address returned by the communication module, and configure the protocol address and the public network gateway address for the communication module. The private network gateway address acquisition module is used to send the gateway address acquisition instruction to the communication module when the value of the gateway flag bit is a second preset value.

[0110] In one embodiment, the gateway address acquisition instruction is an AT instruction. The private network gateway address acquisition module includes an AT instruction sending unit, which is used to find the AT port corresponding to the communication module and send the AT instruction to the communication module through the AT port.

[0111] In one of the embodiments, the configuration module is further used to convert the private network gateway address returned by the communication module into a hexadecimal private network gateway address, and configure the protocol address and the hexadecimal private network gateway address for the communication module.

[0112] In one of the embodiments, the target dialing mode is a QMI dialing mode.

[0113] In one embodiment, the dialing module is further used to obtain a dialing quantity, and perform data dialing using the target dialing method according to the dialing quantity.

[0114] Each module in the above data dialing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0115] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a data dialing method is implemented.

[0116] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0118] When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing;

[0119] In the case where the data dialing is successful, the protocol address is obtained, and a gateway address obtaining instruction is sent to the communication module; the gateway address obtaining instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0120] The protocol address and the private network gateway address are configured for the communication module.

[0121] In one embodiment, the processor further implements the following steps when executing the computer program: when the data dialing is successful, obtaining the value of the gateway flag; when the value of the gateway flag is a first preset value, calling the public network gateway address acquisition interface to obtain the public network gateway address returned by the communication module, and configuring the protocol address and the public network gateway address for the communication module; when the value of the gateway flag is a second preset value, sending the gateway address acquisition instruction to the communication module.

[0122] In one embodiment, the gateway address acquisition instruction is an AT instruction. When the processor executes the computer program, the processor further implements the following steps: searching for an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.

[0123] In one embodiment, when the processor executes the computer program, the processor also implements the following steps: converting the private network gateway address returned by the communication module into a hexadecimal private network gateway address, and configuring the protocol address and the hexadecimal private network gateway address for the communication module.

[0124] In one embodiment, the target dialing mode is a QMI dialing mode.

[0125] In one embodiment, when the processor executes the computer program, the processor further implements the following steps: obtaining the dialing quantity, and performing data dialing using the target dialing mode according to the dialing quantity.

[0126] In one embodiment, the computer device further includes a communication module connected to the processor.

[0127] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0128] When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing;

[0129] In the case where the data dialing is successful, the protocol address is obtained, and a gateway address obtaining instruction is sent to the communication module; the gateway address obtaining instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0130] The protocol address and the private network gateway address are configured for the communication module.

[0131] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the data dialing is successful, the value of the gateway flag is obtained; when the value of the gateway flag is a first preset value, the public network gateway address acquisition interface is called to obtain the public network gateway address returned by the communication module, and the protocol address and the public network gateway address are configured for the communication module; when the value of the gateway flag is a second preset value, the gateway address acquisition instruction is sent to the communication module.

[0132] In one embodiment, the gateway address acquisition instruction is an AT instruction. When the computer program is executed by the processor, the following steps are also implemented: searching for the AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.

[0133] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: converting the private network gateway address returned by the communication module into a hexadecimal private network gateway address, and configuring the protocol address and the hexadecimal private network gateway address for the communication module.

[0134] In one embodiment, the target dialing mode is a QMI dialing mode.

[0135] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining the dialing quantity, and performing data dialing using the target dialing mode according to the dialing quantity.

[0136] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0137] When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing;

[0138] In the case where the data dialing is successful, the protocol address is obtained, and a gateway address obtaining instruction is sent to the communication module; the gateway address obtaining instruction is used to instruct the communication module to return the private network gateway address to the host side;

[0139] The protocol address and the private network gateway address are configured for the communication module.

[0140] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: when the data dialing is successful, the value of the gateway flag is obtained; when the value of the gateway flag is a first preset value, the public network gateway address acquisition interface is called to obtain the public network gateway address returned by the communication module, and the protocol address and the public network gateway address are configured for the communication module; when the value of the gateway flag is a second preset value, the gateway address acquisition instruction is sent to the communication module.

[0141] In one embodiment, the gateway address acquisition instruction is an AT instruction. When the computer program is executed by the processor, the following steps are also implemented: searching for the AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.

[0142] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: converting the private network gateway address returned by the communication module into a hexadecimal private network gateway address, and configuring the protocol address and the hexadecimal private network gateway address for the communication module.

[0143] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: the target dialing mode is the QMI dialing mode.

[0144] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: obtaining the dialing quantity, and performing data dialing using the target dialing mode according to the dialing quantity.

[0145] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0146] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0147] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data dialing method, characterized in that: Applied to the host side, the method includes: When the host side is connected to the communication module, a target dialing mode is used for data dialing; the target dialing mode is a mode that supports multi-PDN dialing; When the data dial-up is successful, the protocol address and the value of the gateway flag are obtained; When the value of the gateway flag is the first preset value, calling the acquisition interface of the public network gateway address to obtain the public network gateway address returned by the communication module, and configuring the protocol address and the public network gateway address for the communication module; When the value of the gateway flag is the second preset value, a gateway address acquisition instruction is sent to the communication module; the gateway address acquisition instruction is used to instruct the communication module to return the private network gateway address to the host side; The protocol address and the private network gateway address are configured for the communication module.

2. The data dialing method according to claim 1, characterized in that: The gateway address acquisition instruction is an AT instruction; The step of sending the gateway address acquisition instruction to the communication module includes: The AT port corresponding to the communication module is searched, and the AT command is sent to the communication module through the AT port.

3. The data dialing method according to claim 1, characterized in that: The step of configuring the protocol address and the private network gateway address for the communication module includes: The private network gateway address returned by the communication module is converted into a hexadecimal private network gateway address, and the protocol address and the hexadecimal private network gateway address are configured for the communication module.

4. The data dialing method according to any one of claims 1 to 3, characterized in that: The target dialing mode is the QMI dialing mode.

5. The data dialing method according to any one of claims 1 to 3, characterized in that: The steps of performing data dialing by using the target dialing mode include: The dialing quantity is obtained, and according to the dialing quantity, data dialing is performed using the target dialing mode.

6. A data dialing device, characterized in that: Applied to the host side, the device comprises: A dialing module, used for performing data dialing by adopting a target dialing mode when the host side is connected to the communication module; the target dialing mode is a mode supporting multi-PDN dialing; The private network gateway address acquisition module is used to obtain the protocol address when the data dial-up is successful; The value acquisition module is used to obtain the value of the gateway flag bit when the data dialing is successful; A public network gateway address acquisition module, used to call the public network gateway address acquisition interface when the value of the gateway flag is a first preset value, so as to obtain the public network gateway address returned by the communication module, and configure the protocol address and the public network gateway address for the communication module; The private network gateway address acquisition module is further used to send a gateway address acquisition instruction to the communication module when the value of the gateway flag bit is a second preset value; the gateway address acquisition instruction is used to instruct the communication module to return the private network gateway address to the host side; A configuration module is used to configure the protocol address and the private network gateway address for the communication module.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. The computer device according to claim 7, characterized in that The computer device also includes a communication module, which is connected to the processor.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Data message forwarding method, customer premises equipment and system

    CN103973569A