CN114449113A - Data dialing method and device, computer equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN114449113A
CN114449113A CN202210032181.0A CN202210032181A CN114449113A CN 114449113 A CN114449113 A CN 114449113A CN 202210032181 A CN202210032181 A CN 202210032181A CN 114449113 A CN114449113 A CN 114449113A
Authority
CN
China
Prior art keywords
dialing
communication module
gateway address
data
network gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210032181.0A
Other languages
Chinese (zh)
Inventor
刘澄澄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Guanghetong Wireless Communication Co ltd
Original Assignee
Xi'an Guanghetong Wireless Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Guanghetong Wireless Communication Co ltd filed Critical Xi'an Guanghetong Wireless Communication Co ltd
Priority to CN202210032181.0A priority Critical patent/CN114449113A/en
Publication of CN114449113A publication Critical patent/CN114449113A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/0024Services and arrangements where telephone services are combined with data services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a data dialing method, a data dialing device, computer equipment and a computer readable storage medium. The method comprises the following steps: under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing; under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side; and configuring the protocol address and the private network gateway address for the communication module. By adopting the method, multiple PDN dialing and private network gateway address acquisition can be simultaneously supported, so that the application scene of the data dialing method can be widened, and the applicability of the data dialing method is improved.

Description

Data dialing method and device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data dialing method, an apparatus, a computer device, and a computer-readable storage medium.
Background
Before the computer device performs Data interaction with the packet Data Network, a default bearer, that is, a PDN (Public Data Network) connection, needs to be established between the computer device and the packet Data Network, and Data interaction between the computer device and the packet Data Network is realized through the PDN connection. At present, a PDN connection can be generally established through data dialing, but the current data dialing method has limitations, is difficult to apply in multiple scenes, and has a problem of poor applicability.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data dialing method, device, computer device and computer readable storage medium that can be applied in multiple scenarios, so as to improve applicability.
In a first aspect, the present application provides a data dialing method, which is applied to a host side, and the method includes:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
In one embodiment, the method further comprises:
under the condition that the data dialing is successful, obtaining the value of a gateway zone bit;
under the condition that the value of the gateway zone bit is a first preset value, calling an acquisition interface of a public network gateway address to acquire 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;
a step of sending a gateway address acquisition instruction to the communication module, including:
and sending the gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is a second preset value.
In one embodiment, the gateway address obtaining instruction is an AT instruction;
the step of sending the gateway address acquisition instruction to the communication module comprises:
and searching an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.
In one embodiment, the step of configuring the protocol address and the private gateway address for the communication module includes:
and 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.
In one embodiment, the target dialing mode is a QMI dialing mode.
In one embodiment, the step of performing data dialing in a destination dialing mode includes:
and acquiring the dialing number, and carrying out data dialing by adopting the target dialing mode according to the dialing number.
In a second aspect, the application further provides a data dialing device. The device is applied to the host side, and specifically comprises:
the dialing module is used for carrying out data dialing in a target dialing mode under the condition that the host side is connected with the communication module; the target dialing mode is a mode supporting multi-PDN dialing;
the private network gateway address acquisition module is used for acquiring a protocol address and sending a gateway address acquisition instruction to the communication module under the condition that data dialing is successful; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and the configuration module is used for configuring the protocol address and the private network gateway address for the communication module.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
In one embodiment, the computer device further comprises a communication module, which is connected with the processor.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
In the data dialing method, the data dialing device, the computer equipment and the computer readable storage medium, under the condition that the host side is connected with the communication module, a target dialing mode supporting multi-PDN dialing is adopted for data dialing. And under the condition that the data dialing is successful, acquiring the protocol address, and timely sending a gateway address acquisition instruction to the communication module to acquire the private network gateway address returned by the communication module. And under the condition of acquiring the private network gateway address, configuring the private network gateway address and the protocol address for the communication module. According to the method and the device, the target dialing mode supporting multi-PDN dialing and the gateway address acquisition instruction capable of acquiring the private network gateway address are ingeniously combined, so that multi-PDN dialing and private network gateway address acquisition can be simultaneously supported, the application scene of the data dialing method can be widened, and the applicability of the data dialing method is improved.
Drawings
FIG. 1 is a diagram of an exemplary data dialing method;
FIG. 2 is a flow diagram illustrating a data dialing method according to one embodiment;
FIG. 3 is a second flowchart of the data dialing method according to an embodiment;
FIG. 4 is a diagram of test results for driver loads in one embodiment;
FIG. 5 is a diagram of test results for a data dialing log in one embodiment;
FIG. 6 is a diagram of test results for status queries in one embodiment;
FIG. 7 is a diagram illustrating the return of AT commands in one embodiment;
FIG. 8 is a diagram of test results for binary translation in one embodiment;
FIG. 9 is a diagram of test results for IP address and gateway address configurations in one embodiment;
FIG. 10 is a diagram illustrating test results of the Internet surfing function in one embodiment;
FIG. 11 is a block diagram of the structure of the data dialing apparatus in one embodiment;
FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As the background art shows, the current data dialing method is difficult to be applied in a plurality of scenes, and has the problem of poor applicability. The inventor researches and finds that the problem is caused because the prior art generally adopts the following two dialing modes in the aspect of RmNet data connection: (1) dialing based on AT instruction, and (2) dialing in QMI mode based on QMI Interface provided by Qualcomm MSM Interface. For the foregoing implementation manner (1), after the AT instructs to dial, although the private gateway address can be obtained through the AT instructs, this manner only supports single PDN dialing, but cannot support multiple PDN dialing. For the aforementioned implementation manner (2), although it can support multiple PDNs and meet the requirement of most users for multiple PDN dialing, the gateway address obtained after QMI dialing succeeds is the public network gateway address, and cannot obtain the private network gateway address. Therefore, the current data dialing mode cannot support the function of acquiring the private network gateway address while supporting multi-PDN dialing, and further has the problem of poor applicability.
In order to solve the problems in the prior art, the application provides a data dialing method, a device, computer equipment and a computer readable storage medium, which can support both multi-PDN dialing and private network gateway address acquisition functions. In some embodiments, the present application may select single PDN dialing or multiple PDN dialing according to user requirements. In other embodiments, the method and the device can select to acquire the public network gateway address or the private network gateway address according to the user requirement.
The data dialing method provided by the embodiment of the application can be applied to computer equipment shown in fig. 1. It can be understood that the computer device can be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices can be smart speakers, smart televisions, smart air conditioners, smart vehicle-mounted devices and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like.
The computer device can be divided into a host side 102 and a communication module 104. The host side 102 may be used to implement portions of data processing functionality, and may include, for example, a processor and memory. The communication module 104 may be a circuit or a device for implementing a communication function, and may support any communication system. Host side 102 may enable data interaction with a packet data network through communication module 104. It is understood that the communication module 104 and the host side 102 can be connected in any manner, and the communication module 104 can include any number of antennas or antenna interfaces in any form, which is not specifically limited in this application. In one embodiment, the communication module 104 may be connected to the host side 102 via a TYPE-C data line and may include a plurality of antenna interfaces.
In one embodiment, as shown in fig. 2, a data dialing method is provided, which is exemplified by the application of the method to the host side in fig. 1. The method specifically comprises the following steps:
and S200, under the condition that the host side is connected with the communication module, carrying out data dialing by adopting a target dialing mode. The target dialing mode is a mode supporting multi-PDN dialing.
It is understood that the destination dialing mode may be any mode supporting multiple PDN dialing, and this application is not limited thereto. In one embodiment, the destination dialing mode may be a QMI dialing mode.
Specifically, under the condition that the host side is connected with the communication module, the host side can adopt a target dialing mode to carry out data dialing so as to establish PDN connection through the communication module, so that the computer equipment is accessed to a packet data network, and RmNet data connection can be realized. The destination dialing mode may be a mode supporting multiple PDN dialing, in other words, the destination dialing mode may support two or more data dialing. It should be noted that the "multiple PDN dialing" referred to in this application does not exclude a single PDN dialing manner, that is, the target dialing manner may be both single PDN dialing and multiple PDN dialing.
In one embodiment, the step of performing data dialing in a destination dialing mode includes: and acquiring the dialing number, and performing data dialing by adopting a target dialing mode according to the dialing number. The number of dialed lines reflects the number of lines to be dialed in PDN, and the specific value may be a positive integer, that is, the number of dialed lines may be greater than or equal to one. Before data dialing, the host side can obtain the dialing number to determine the PDN dialing of the needed routes, and performs data dialing according to the dialing number. Therefore, both single-path PDN dialing and multi-path PDN dialing can be carried out, so that the application scene of the data dialing method can be further widened, and the applicability of the data dialing method is improved.
S300, under the condition that data dialing is successful, acquiring a protocol address and sending a gateway address acquisition instruction to a communication module; the gateway address acquisition instruction is used for indicating the communication module to return the private network gateway address to the host side.
Specifically, under the condition that the data dialing is successful, the host side can acquire the allocated protocol address and send a gateway address acquisition instruction to the communication module to acquire the private network gateway address returned by the communication module. It is understood that the assigned Protocol Address may be any type of Protocol Address, which is not specifically limited in this application, and in one embodiment, the Protocol Address may be an Internet Protocol (IP) Address. Similarly, the gateway address obtaining instruction may be any instruction capable of obtaining a private network gateway address, and the application does not specifically limit this.
S400, configuring a protocol address and a private network gateway address for the communication module.
Specifically, the host side can assign the protocol address and the private gateway address to the communication module under the condition of obtaining the protocol address and the private gateway address, so as to realize the configuration of the communication module.
In the data dialing method, under the condition that the host side is connected with the communication module, a target dialing mode supporting multi-PDN dialing is adopted for data dialing. And under the condition that the data dialing is successful, acquiring the protocol address, and timely sending a gateway address acquisition instruction to the communication module to acquire the private network gateway address returned by the communication module. And under the condition of acquiring the private network gateway address, configuring the private network gateway address and the protocol address for the communication module. According to the method and the device, the target dialing mode supporting multi-PDN dialing and the gateway address acquisition instruction capable of acquiring the private network gateway address are ingeniously combined, so that multi-PDN dialing and private network gateway address acquisition can be simultaneously supported, the application scene of the data dialing method can be widened, and the applicability of the data dialing method is improved.
In one embodiment, the data dialing method further comprises:
under the condition that the data dialing is successful, obtaining the value of a gateway zone bit;
under the condition that the value of the gateway zone bit is a first preset value, calling an acquisition interface of a public network gateway address to acquire the public network gateway address returned by the communication module, and configuring a protocol address and the public network gateway address for the communication module;
the step of sending a gateway address acquisition instruction to a communication module includes:
and sending a gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is the second preset value.
Specifically, under the condition that data dialing is successful, the value of the gateway zone bit can be acquired. The value of the gateway zone bit can be used for reflecting that a public network gateway address or a private network gateway address needs to be acquired. If the value of the gateway zone bit is the first value, the host side can acquire the public network gateway address and configure the public network gateway address for the communication module. Specifically, the host side can call an 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 zone bit is the second value, the host side can acquire the private network gateway address and configure a protocol address and the private network gateway address for the communication module.
In this embodiment, the public network gateway address or the private network gateway address is selectively obtained according to the value of the gateway flag bit, so that the public and private gateway address obtaining function can be supported, the application scenarios of the data dialing method can be further widened, and the applicability of the data dialing method is improved.
In one embodiment, the step of configuring the protocol address and the private gateway address for the communication module comprises: and converting the private network gateway address returned by the communication module into a hexadecimal private network gateway address, and configuring a protocol address and the hexadecimal private network gateway address for the communication module. Specifically, the host side can perform system conversion on the returned private network gateway address under the condition that the private network gateway address returned by the communication module is obtained, that is, the returned private network gateway address is converted into a hexadecimal address, and a protocol address and the private network gateway address of the hexadecimal address are configured for the communication module. Therefore, configuration failure caused by the mismatch of the system numbers can be avoided, and the communication reliability can be further improved.
In one embodiment, the gateway address fetch instruction may be an AT instruction. The step of sending the gateway address acquisition instruction to the communication module comprises: and searching an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port. The AT port may be an interface in 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, so as to send an AT command to the communication module through the AT port. The communication module returns the private network gateway address to the host side under the condition of receiving the AT instruction, 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.
In the embodiment, the AT instruction is flexibly applied to inquire the private network gateway address in the data dialing process, and the private network gateway address is intercepted through the AT port in time under the condition that the data dialing is successful, so that a target dialing mode supporting multi-PDN dialing and a gateway address acquisition instruction capable of acquiring the private network gateway address can be ingeniously combined, the multi-PDN dialing and the acquisition of the private network gateway address are supported, the application scene of the data dialing method can be widened, and the applicability of the data dialing method is improved.
For ease of understanding, the following description is given by way of a specific example. The Fibocom-dial tool can be used for single or multiple dialing, and the usage is "./Fibocom-dial [ options ]". The dialing tool has the following parameters at the beginning of the release, and the meanings of the parameters are shown in the table 1:
TABLE 1Fibocom-dial parameter types and meanings
Figure BDA0003466856630000081
On the basis, the method for continuing the parameter execution is developed for the second time, and the 'g parameter' is added for obtaining the private network gateway address. Therefore, the function of acquiring the private network gateway address can be realized on the basis of continuing the original dialing mode of the fibocom-dial tool, and further, the effective data dialing in the private network environment can be simply realized. In this embodiment, the data dialing method may be as shown in fig. 3, and specifically includes:
s502, adding a-g parameter in a main function main.c;
s504, setting a gateway zone bit;
s506, executing a dialing instruction; for convenience of explanation, the execution/fibocom-dial-6-g dialing command is taken as an example;
and S508, according to the dialing instruction, adopting a QMI dialing mode to carry out single PDN dialing or multi PDN dialing. For example, in the case of acquiring/fibocom-dial-6-g dialing instruction, the host side may perform single IPv6 dialing;
s510, under the condition that data dialing is successful, an IP address and gateway information are distributed;
s512, judging whether the value of the gateway zone bit is 1, if not, entering the step S514, and if so, entering the step 518;
s514, calling an acquisition interface of the public network gateway address, and receiving the public network gateway address returned by the communication module;
s516, distributing an IP address and a public network gateway address for the corresponding network card; the gateway can be used as the mapping equipment of the communication module on the host side;
s518, calling an acquisition interface of a private network gateway address;
s520, searching for an AT port corresponding to the communication module;
s522, sending an AT + CGDCONTRDP-1 instruction to the communication module through the corresponding AT port;
s524, intercepting the private network gateway address from the return result of the AT instruction;
s526, carrying out system conversion on the intercepted private network gateway address to obtain a hexadecimal private network gateway address;
s528, an IP address and a private network gateway address are distributed to the corresponding network card.
According to the method and the device, after the QMI dialing is successful, the private network gateway address in the AT instruction return result is intercepted through the AT port in time and is assigned to the corresponding network card, so that the QMI dialing mode and the AT instruction dialing mode can be ingeniously combined, the multi-PDN function of the QMI dialing mode is reserved, the acquisition function of the private network gateway is realized, and the applicability of the data dialing method can be improved.
The application builds an application environment for testing by using a Fibocom FG150 type communication module and a Linux computer. The host side shown in fig. 1 may be a Linux computer with a kernel version of 3.X/4.X/5.X, and the communication module may be a FG150 communication module. The communication Module is inserted with a Subscriber Identity Module (SIM) card, and the ANT _8 interface is connected with a 5G antenna. The communication module is connected with the Linux computer through a TYPE-C data line. The test procedure may include:
(1) the Linux computer and the communication module are started, the communication module is switched to a mode supporting RmNet dialing, and GobioNet driving source codes and fibocom-dial tool source codes are led in. And entering a drive source code path, and executing a 'make instruction' to load the Gobinet drive. The computer code may be as shown in fig. 4 if the driver loading is successful.
(2) Performing data dialing
Firstly, entering a fibocom-dial source code path, executing a make instruction for compiling, and generating a fibocom-dial binary file.
② executing a dialing instruction,/fibocom-dial-6-g-n 2-m 1. Referring to table 1, the parameter "n" indicates the channel ID assigned in the multi-PDN data connection, and the channel ID in the dial command is 2, which indicates that the 2 nd network card usb0.2 is used for data dialing. The "-m" parameter refers to the number of dials specified when setting up a multiple PDN data connection, where a dialed number of 1 is denoted as single PDN dial.
After the dialing instruction is executed, the success of data dialing can be confirmed from the data dialing log so as to distribute an IP address and a private network gateway website to the corresponding network card. As shown in the data dialing log shown in fig. 5, qmap _ mode ═ 5 indicates that 5-way PDN dialing is currently supported, and qmap _ netcard ═ usb0.2 indicates that 2 nd-way network card usb0.2 is currently used for dialing.
Thirdly, as shown in fig. 6, the host side checks whether the current SIM card status is normal, and checks whether the current IPv6 connection status is unconnected.
The fibocom-dial tool triggers an interface function for acquiring the private network gateway address through the "-g" parameter, then sends an "AT + CGDCONTRDP ═ 1" command based on the AT port "/dev/ttyUSB 1", and intercepts the corresponding private network gateway address "254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1" from the result of the AT response, as shown in fig. 7.
Fifthly, as shown in fig. 8, the host side converts the decimal private network gateway address '254.128.0.0.0.0.0.0.0.0.0.0.0.0.0.1' into hexadecimal 'fe 80:: 1', and configures the death gateway address to the corresponding network card.
(3) Checking whether the network can be successfully accessed after data dialing
In the case that the data dialing is successful, it is checked whether usb0.2 successfully acquires the IP address through an "ifconfig-a" command, as shown in fig. 9.
② ping the external network tests whether it can surf the internet normally, as shown in fig. 10, the function of surfing the internet can be used normally.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the application also provides a data dialing device for realizing the data dialing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so the specific limitations in one or more embodiments of the data dialing device provided below can refer to the limitations on the data dialing method in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 11, there is provided a data dialing apparatus applied to a host side, including:
the dialing module is used for carrying out data dialing in a target dialing mode under the condition that the host side is connected with the communication module; the target dialing mode is a mode supporting multi-PDN dialing;
the private network gateway address acquisition module is used for acquiring a protocol address and sending a gateway address acquisition instruction to the communication module under the condition that data dialing is successful; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and the configuration module is used for configuring the protocol address and the private network gateway address for the communication module.
In one embodiment, the device further comprises a value obtaining module and a public network gateway address obtaining module. The value obtaining module is used for obtaining the value of the gateway zone bit under the condition that the data dialing is successful. The public network gateway address acquisition module is used for calling an acquisition interface of a public network gateway address to acquire the public network gateway address returned by the communication module under the condition that the value of the gateway zone bit is a first preset value, and configuring the protocol address and the public network gateway address for the communication module. The private network gateway address acquisition module is used for sending the gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is a second preset value.
In one embodiment, the gateway address fetch instruction is an AT instruction. The private network gateway address acquisition module comprises an AT instruction sending unit, and the AT instruction sending unit is used for searching the AT port corresponding to the communication module and sending the AT instruction to the communication module through the AT port.
In one embodiment, the configuration module is further configured 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.
In one embodiment, the target dialing mode is a QMI dialing mode.
In one embodiment, the dialing module is further configured to obtain a dialing number, and perform data dialing in the target dialing mode according to the dialing number.
The modules in the data dialing device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data dialing method.
Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that the data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
In one embodiment, the processor, when executing the computer program, further performs the steps of: under the condition that the data dialing is successful, obtaining the value of a gateway zone bit; under the condition that the value of the gateway zone bit is a first preset value, calling an acquisition interface of a public network gateway address to acquire 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; and sending the gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is a second preset value.
In one embodiment, the gateway address fetch instruction is an AT instruction. The processor, when executing the computer program, further performs the steps of: and searching an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and 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.
In one embodiment, the target dialing mode is a QMI dialing mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and acquiring the dialing number, and carrying out data dialing by adopting the target dialing mode according to the dialing number.
In one embodiment, the computer device further comprises a communication module, which is connected to the processor.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the data dialing is successful, obtaining the value of a gateway zone bit; under the condition that the value of the gateway zone bit is a first preset value, calling an acquisition interface of a public network gateway address to acquire 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; and sending the gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is a second preset value.
In one embodiment, the gateway address fetch instruction is an AT instruction. The computer program when executed by the processor further realizes the steps of: and searching an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.
In one embodiment, the computer program when executed by the processor further performs the steps of: and 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.
In one embodiment, the target dialing mode is a QMI dialing mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring the dialing number, and carrying out data dialing by adopting the target dialing mode according to the dialing number.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
In one embodiment, the computer program when executed by the processor further performs the steps of: under the condition that the data dialing is successful, obtaining the value of a gateway zone bit; under the condition that the value of the gateway zone bit is a first preset value, calling an acquisition interface of a public network gateway address to acquire 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; and sending the gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is a second preset value.
In one embodiment, the gateway address fetch instruction is an AT instruction. The computer program when executed by the processor further realizes the steps of: and searching an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.
In one embodiment, the computer program when executed by the processor further performs the steps of: and 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.
In one embodiment, the computer program when executed by the processor further performs the steps of: the target dialing mode is a QMI dialing mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring the dialing number, and carrying out data dialing by adopting the target dialing mode according to the dialing number.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A data dialing method is applied to a host side, and comprises the following steps:
under the condition that the host side is connected with the communication module, data dialing is carried out in a target dialing mode; the target dialing mode is a mode supporting multi-PDN dialing;
under the condition that data dialing is successful, acquiring a protocol address, and sending a gateway address acquisition instruction to the communication module; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and configuring the protocol address and the private network gateway address for the communication module.
2. The data dialing method of claim 1 wherein the method further comprises:
under the condition that the data dialing is successful, obtaining the value of a gateway zone bit;
under the condition that the value of the gateway zone bit is a first preset value, calling an acquisition interface of a public network gateway address to acquire 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;
a step of sending a gateway address acquisition instruction to the communication module, including:
and sending the gateway address acquisition instruction to the communication module under the condition that the value of the gateway zone bit is a second preset value.
3. The data dialing method of claim 1 wherein the gateway address get command is an AT command;
the step of sending the gateway address acquisition instruction to the communication module comprises:
and searching an AT port corresponding to the communication module, and sending the AT instruction to the communication module through the AT port.
4. The data dialing method of claim 1 wherein the step of configuring the protocol address and the private gateway address for the communication module comprises:
and 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.
5. The data dialing method of any one of claims 1 to 4 wherein the target dialing mode is a QMI dialing mode.
6. The data dialing method according to any one of claims 1 to 4, wherein the step of data dialing in a destination dialing mode comprises:
and acquiring the dialing number, and carrying out data dialing by adopting the target dialing mode according to the dialing number.
7. A data dialing apparatus for use on a host side, the apparatus comprising:
the dialing module is used for carrying out data dialing in a target dialing mode under the condition that the host side is connected with the communication module; the target dialing mode is a mode supporting multi-PDN dialing;
the private network gateway address acquisition module is used for acquiring a protocol address and sending a gateway address acquisition instruction to the communication module under the condition that data dialing is successful; the gateway address acquisition instruction is used for indicating the communication module to return a private network gateway address to the host side;
and the configuration module is used for configuring the protocol address and the private network gateway address for the communication module.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. The computer device of claim 8, further comprising a communication module coupled to the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202210032181.0A 2022-01-12 2022-01-12 Data dialing method and device, computer equipment and computer readable storage medium Pending CN114449113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210032181.0A CN114449113A (en) 2022-01-12 2022-01-12 Data dialing method and device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210032181.0A CN114449113A (en) 2022-01-12 2022-01-12 Data dialing method and device, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114449113A true CN114449113A (en) 2022-05-06

Family

ID=81368606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210032181.0A Pending CN114449113A (en) 2022-01-12 2022-01-12 Data dialing method and device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114449113A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174310A (en) * 2022-05-16 2022-10-11 深圳市广和通无线通信软件有限公司 PDN dialing and configuration method, system, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174310A (en) * 2022-05-16 2022-10-11 深圳市广和通无线通信软件有限公司 PDN dialing and configuration method, system, device, equipment and storage medium
WO2023221708A1 (en) * 2022-05-16 2023-11-23 深圳市广和通无线通信软件有限公司 Pdn dialing method, system and apparatus, multi-pdn dialing configuration method, system and apparatus, and device and storage medium
CN115174310B (en) * 2022-05-16 2024-04-05 深圳市广和通无线通信软件有限公司 PDN dialing and configuration method, system, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US8260354B2 (en) Operating device and method for universal IC card
CN105430108B (en) Test environment access method and proxy server
US11483689B1 (en) Electronic subscriber identity module (eSIM) management platform
US9204239B1 (en) Segmented customization package within distributed server architecture
US20080117991A1 (en) Partitioning Compression-Based Firmware Over the Air
CN101350852B (en) Dialing method, system and mobile terminal
US20080119178A1 (en) Allocating Compression-Based Firmware Over the Air
CN105376107A (en) Terminal test method and proxy server
CN105144126B (en) Radio interface layer for smart phone designs
KR20050105201A (en) System and method for identifying applications targeted for message receipt in devices utilizing message queues
CN114501593B (en) Network slice access method, device, system and storage medium
CN105491081A (en) Method for forwarding of internal flow of application in mobile intelligent terminal
CN114449113A (en) Data dialing method and device, computer equipment and computer readable storage medium
CN111475754A (en) Page loading method, device, terminal and storage medium
CN112416617A (en) Control method and device of Bluetooth equipment, storage medium and electronic device
CN103559091A (en) Data scheduling method and split type terminal system
CN108260119B (en) Mobile terminal, embedded SIM card and access method and device thereof
JP2021510020A (en) Wireless communication method and equipment
CN104427380A (en) Information processing method, electronic devices and information processing system
JP2003198561A (en) Method for mobile network access
CN111447692B (en) Call method and device for multi-system terminal, electronic equipment and storage medium
CN105577904B (en) A kind of file sharing method and mobile terminal
CN102891888B (en) A kind of data access method and relevant device, system
CN106851582B (en) Service switching method and device of mobile terminal and mobile terminal
CN109660585A (en) Call method, device, equipment and the storage medium of AOP enhancing objects services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination