A dialing method, device, storage medium and equipment

By detecting the device's dialing method and network connection status, the target network card information is obtained, which solves the problem of user terminal dialing failure and improves the success rate of network connection and user experience.

CN114844997BActive Publication Date: 2026-03-27XI AN FIBOCOM WIRELESS INC
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

During the dial-up internet connection process, changes in network card information can cause a mismatch between the default network card information and the actual network card information, resulting in dial-up failure and inability to connect to the service device.

Method used

By detecting the network connection status of the device, obtaining the device's dialing method, determining the target network card information, initiating a network dialing request to the service device, and establishing a network connection based on the target network card information and network connection address, the accuracy of the network card information is ensured.

Benefits of technology

It improves the success rate of network dialing, avoids dialing failures caused by changes in network card information, meets users' needs for free configuration of network card information, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114844997B_ABST
    Figure CN114844997B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a dialing method, device, storage medium and equipment. The method comprises: if it is detected that a network connection state of a target device is in a waiting connection state, obtaining a device dialing mode for dialing online in the target device; determining target network card information of the target device according to the device dialing mode; initiating a network dialing request about the target device to a service device according to the device dialing mode, so that the service device returns a network connection address according to the network dialing request; receiving the network connection address returned by the service device, and performing network connection according to the target network card information and the network connection address. Through the present application, the success rate of network dialing of the target device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

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

[0002] With the popularization of wireless networks, based on the advantages of small and portable user terminals, easy to carry and data service processing anytime and anywhere, using user terminals to process data services has become more and more popular, and such data services running on user terminals are also becoming more and more popular. At the same time, the service device and the user terminal are closely related, and the user terminal can realize network connection with the service device through dial-up to realize various service processing.

[0003] At present, in the process of dialing up the network by the user terminal, the default network card information is used to complete the dial-up network process of different dialing methods. When the actual network card information in the user terminal changes, the default network card information will not match the actual network card information, resulting in dialing failure, and thus the user terminal and the service device cannot be connected. SUMMARY

[0004] The technical problem to be solved by the embodiments of the present application is to provide a dialing method, device, storage medium and equipment, which can improve the success rate of network dialing of the target device.

[0005] The embodiments of the present application provide a dialing method, which comprises:

[0006] If it is detected that the network connection state of the target device is in a to-be-connected state, a device dialing method for dialing up the network in the target device is acquired;

[0007] The target network card information of the target device is determined according to the device dialing method;

[0008] According to the device dialing method, a network dialing request about the target device is initiated to the service device, so that the service device returns a network connection address according to the network dialing request;

[0009] The network connection address returned by the service device is received, and network connection is performed according to the target network card information and the network connection address.

[0010] The target network card information of the target device is determined according to the device dialing method, comprising:

[0011] It is detected whether the device dialing method belongs to a preset dialing method;

[0012] If the device dialing method belongs to the preset dialing method, the device attribute information of the target device is acquired, and the target network card information of the target device is determined according to the device attribute information;

[0013] If the device dialing mode does not belong to the preset dialing mode, a device database of the target device is acquired, and target network card information of the target device is acquired from the device database.

[0014] The target network card information of the target device is determined according to the device attribute information, and the method comprises the following steps.

[0015] It is detected whether an edited network card name exists in the device attribute information, and the edited network card name is obtained based on an editing operation of a user.

[0016] If the edited network card name exists in the device attribute information, the edited network card name is determined as the target network card information of the target device.

[0017] If the edited network card name does not exist in the device attribute information, the target network card information of the target device is acquired from the device database.

[0018] The target network card information of the target device is acquired from the device database, and the method comprises the following steps.

[0019] A communication master file used for storing communication data between the target device and a service device is determined from the device database.

[0020] A communication sub-file used for storing network card running data of the target device is determined from the communication master file.

[0021] The target network card information of the target device is acquired according to the communication sub-file.

[0022] The target network card information of the target device is acquired according to the communication sub-file, and the method comprises the following steps.

[0023] It is detected whether a network card name exists in the communication sub-file.

[0024] If the network card name exists in the communication sub-file, the network card name in the communication sub-file is determined as the target network card information of the target device.

[0025] If the network card name does not exist in the communication sub-file, a preset network card name set is acquired, and a network card name in the preset network card name set is taken as the target network card information of the target device.

[0026] The method further comprises the following steps.

[0027] A channel registration state of a network channel in the target device is acquired.

[0028] According to the channel registration state of the network channel in the target device, it is detected whether the target device has a network connection permission.

[0029] A network card state of a target network card corresponding to the target network card information is acquired.

[0030] If the network card state of the target network card is detected to satisfy the dial-up initiation state, and the target device has the network connection permission, a step of initiating, according to the device dial-up mode, a network dial-up request about the target device to the service device is performed.

[0031] The network connection according to the target network card information and the network connection address comprises:

[0032] The target network card corresponding to the target network card information is acquired.

[0033] The network connection address is associated and bound with the target network card, so that the target network card in the target device is connected to the service device based on the network connection address.

[0034] The embodiment of the application provides a dial-up device, which comprises:

[0035] The first acquisition module is configured to acquire a device dial-up mode for dialing up the network in the target device if the network connection state of the target device is detected to be in the to-be-connected state.

[0036] The determination module is configured to determine target network card information of the target device according to the device dial-up mode.

[0037] The initiation module is configured to initiate, according to the device dial-up mode, a network dial-up request about the target device to the service device, so that the service device returns a network connection address according to the network dial-up request.

[0038] The network connection module is configured to receive the network connection address returned by the service device, and perform network connection according to the target network card information and the network connection address.

[0039] The determination module comprises:

[0040] The detection unit is configured to detect whether the device dial-up mode belongs to a preset dial-up mode.

[0041] The determination unit is configured to acquire device attribute information of the target device if the device dial-up mode belongs to the preset dial-up mode, and determine the target network card information of the target device according to the device attribute information.

[0042] The acquisition unit is configured to acquire a device database of the target device if the device dial-up mode does not belong to the preset dial-up mode, and acquire the target network card information of the target device from the device database.

[0043] The determination unit is specifically configured to:

[0044] Detect whether an edited network card name exists in the device attribute information, wherein the edited network card name is obtained based on an editing operation of a user.

[0045] If the edited network card name exists in the device attribute information, the edited network card name is determined as the target network card information of the target device;

[0046] If the edited network card name does not exist in the device attribute information, the target network card information of the target device is obtained from the device database.

[0047] The obtaining unit is specifically configured to:

[0048] The communication master file used for storing communication data between the target device and the service device is determined from the device database;

[0049] The communication sub-file used for storing the network card running data of the target device is determined from the communication master file;

[0050] The target network card information of the target device is obtained according to the communication sub-file.

[0051] The target network card information of the target device is obtained according to the communication sub-file, including:

[0052] It is detected whether the network card name exists in the communication sub-file;

[0053] If the network card name exists in the communication sub-file, the network card name in the communication sub-file is determined as the target network card information of the target device;

[0054] If the network card name does not exist in the communication sub-file, a preset network card name set is obtained, and the network card name in the preset network card name set is taken as the target network card information of the target device.

[0055] The dialing apparatus further includes:

[0056] The second obtaining module is configured to obtain the channel registration state of the network channel in the target device;

[0057] The detection module is configured to detect whether the target device has network connection permission according to the channel registration state of the network channel in the target device;

[0058] The third obtaining module is configured to obtain the network card state of the target network card corresponding to the target network card information;

[0059] The execution module is configured to execute the step of initiating the network dialing request about the target device to the service device according to the device dialing mode if it is detected that the network card state of the target network card meets the dialing initiation state and the target device has network connection permission.

[0060] The network connection module includes:

[0061] The target network card corresponding to the target network card information is obtained;

[0062] The network connection address is associated with the target network card, so that the target network card in the target device is connected to the service device based on the network connection address.

[0063] The embodiment of the present application provides a computer device, including: a processor and a memory.

[0064] The processor is connected with the memory, and the memory is used for storing a computer program, and the computer program is executed by the processor, so that the computer device executes the method provided by the embodiment of the present application.

[0065] The embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program, the computer program is suitable for being loaded and executed by a processor, so that a computer device with the processor executes the method provided by the embodiment of the present application.

[0066] The embodiment of the present application provides a computer program product or a computer program, and the computer program product or the computer program includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided by the embodiment of the present application.

[0067] In the embodiment of the present application, if it is detected that the network connection state of the target device is in a connecting state, the device dialing mode of the target device for dialing up the network is acquired. Since the target device uses different device dialing modes to dial up the network, the network card information used is inconsistent. Therefore, the target network card information of the target device can be determined according to the device dialing mode, so that the accuracy of acquiring the target network card information can be improved, and the problem that the default network card information does not match the actual network card information of the target device after the network card information of the target device is modified, and then the target device fails to dial up the network can be avoided. Further, the network dialing request about the target device is initiated to the service device according to the device dialing mode, so that the service device returns the network connection address according to the network dialing request. The network connection address returned by the service device is received, and the network connection is performed according to the target network card information and the network connection address. In this way, the success rate of dialing up the network of the target device can be improved. BRIEF DESCRIPTION OF DRAWINGS

[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0069] Figure 1 is a schematic diagram of a dialing system architecture provided by an embodiment of the present application;

[0070] Figure 2 is a schematic diagram of a dialing method flow provided by an embodiment of the present application;

[0071] Figure 3 is a schematic diagram of obtaining target network card information provided by an embodiment of the present application;

[0072] Figure 4 is a schematic diagram of obtaining target network card information from a master communication file provided by an embodiment of the present application;

[0073] Figure 5 is a schematic diagram of a dialing device structure provided by an embodiment of the present application;

[0074] Figure 6 is a schematic diagram of a computer device structure provided by an embodiment of the present application. DETAILED DESCRIPTION

[0075] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative labor fall within the protection scope of the present application.

[0076] See Figure 1 , Figure 1 is a schematic diagram of a dialing system structure provided by an embodiment of the present application. As Figure 1 shown, the dialing system can include a server 10 and a user terminal cluster. The user terminal cluster can include one or more user terminals, and the number of user terminals will not be limited here. As Figure 1 shown, it can specifically include a user terminal 100a, a user terminal 100b, a user terminal 100c, …, and a user terminal 100n. As Figure 1 shown, the user terminal 100a, the user terminal 100b, the user terminal 100c, …, and the user terminal 100n can be respectively connected with the above-mentioned server 10 in a network, so that each user terminal can interact with the server 10 in data through the network connection.

[0077] Among them, each user terminal in the user terminal cluster can include a smart phone, a tablet computer, a notebook computer, a desktop computer, a wearable device, a smart home, a head-mounted device, a vehicle-mounted terminal, and other intelligent terminals with dialing functions.

[0078] Among them, as Figure 1As shown, the server 10 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0079] For ease of understanding, the embodiments of this application may be described in detail below. Figure 1 Among the multiple user terminals shown, one user terminal is selected as the target user terminal, i.e., the target device. For example, for ease of understanding, the embodiments of this application can be... Figure 1 The user terminal 100a shown is the target user terminal. Specifically, if the target device detects that its network connection status is in a pending connection state, it can obtain the device dialing method used for dialing up to the Internet. This device dialing method can refer to RAS (Remote Access Service), ECM (Ethernet Networking Control Model), NDIS (Network Driver Interface Specification), RmNet (Virtual Ethernet Framework), etc. RAS uses a virtual modem for dialing and is used in 2G and 3G scenarios. ECM is used to obtain the Internet Protocol address (IP address) of the local area network. RmNet is used to obtain the Internet Protocol address of the public network and refers to a proprietary virtual Ethernet framework that can provide higher throughput through thin-layer protocols and allows for quality of service flow control. NDIS (Network Driver Interface Specification) spans the transport layer, network layer, and data link layer, defining the communication interface specification between the network card or network card driver and the upper-layer protocol driver, shielding the differences in the underlying physical hardware, allowing the upper-layer protocol driver to communicate with any type of network card at the lower level.

[0080] Further, after the target device obtains the device dialing mode for dialing up the network, the target device can initiate a network dialing request about the target device to the service device according to the device dialing mode. After the service device receives the network dialing request about the target device, the service device can generate a network connection address and return the network address to the target device. The target device can receive the network connection address returned by the service device, and the target device can determine the target network card information of the target device according to the device dialing mode. Further, the target device can perform network connection according to the target network card information and the network connection address. In this way, when the network card information of the device network card of the target device is changed, the target network card information (i.e., the changed network card information) of the device network card can be accurately obtained, and the situation that the default network card information of the target device does not match the changed target network card information, resulting in dialing failure, can be avoided.

[0081] Please refer to Figure 3 , Figure 3 is a flowchart of a dialing method provided by an embodiment of the present application. The dialing method can be executed by any user terminal in Figure 1 , can be executed by a server in Figure 1 , or can be executed by any user terminal and the server in Figure 1 together. In the present application, the device for executing the dialing method can be collectively referred to as a computer device. As shown in Figure 3 , the dialing method can include but is not limited to the following steps:

[0082] S101, if it is detected that the network connection state of a target device is in a to-be-connected state, obtaining a device dialing mode for dialing up the network in the target device.

[0083] Specifically, the target device can dial up the Internet through an external or internal modem (Modem) to realize connection with the service device to perform relevant service processing. Specifically, if the computer device detects the connection state between the target device and the service device, if the target device and the service device are in an unconnected state, it can be determined that the network connection state of the target device is in a to-be-connected state. Wherein, when the target device is powered on, it is in an unconnected state with the service device, so it can be determined that the network connection state of the target device is in a to-be-connected state. Wherein, after the target device is restarted, it can also be determined that the target device and the service device are in an unconnected state, so it can be determined that the network connection state of the target device is in a to-be-connected state. Wherein, after the target device initiates dialing, it can be determined that the network connection state of the target device is in a to-be-connected state after the dialing is interrupted or terminated due to the influence of interference factors. When the computer detects that the network connection state of the target device is in a to-be-connected state, the device dialing mode for dialing up the Internet can be obtained. Wherein, when the computer device detects that the network card information in the target device changes, such as when the target user edits the network card information in the target device, the computer device can determine that the network connection state of the target device is in a to-be-connected state.

[0084] Wherein, the device dialing mode for dialing up the Internet can include RAS (Remote Access Service), ECM (Ethernet Networking Control Model), NDIS (Network Driver Interface Specification), RmNet (virtual Ethernet framework), etc. RAS is a virtual modem for dialing, which is used for dialing in 2G and 3G scenarios. ECM is used to obtain the Internet Protocol Address (IP Address) of the local area network. RmNet is a virtual Ethernet framework for obtaining public Internet Protocol Address, which can provide higher throughput through a thin protocol and allow quality of service traffic control. NDIS is the abbreviation of Network Driver Interface Specification, which spans the transport layer, network layer and data link layer, defines the communication interface specification between the network card or network card driver and the upper protocol driver, and shields the difference of the bottom layer physical hardware, so that the upper protocol driver can communicate with any model of network card.

[0085] Optionally, the computer device can acquire the connection attribute information of the target device, which can include the type of network (such as public network or local area network, etc.) that the target device needs to connect, whether it needs to integrate other drivers (such as ECM dialing mode does not need to integrate other drivers, RmNet dialing needs to integrate gobinet driver (i.e. a driver module), etc.), whether it needs to call the modem in the target device to dial, etc. The device dialing mode used by the target device for dialing up is determined according to the connection attribute information of the target device.

[0086] In S102, the target network card information of the target device is determined according to the device dialing mode.

[0087] Specifically, the computer device can determine the target network card information of the target device according to the device dialing mode, which can be the network card name, network card identifier and network card storage location of the target network card in the target device. The target network card refers to the network card of the target device. The network card refers to the network interface board, also known as network adapter or network interface controller, which is a computer interface used to allow the computer device to communicate on the computer network, composed of processor, memory and other components. The target device can communicate with the service device through the target network card.

[0088] Optionally, the specific way in which the computer device determines the target network card information of the target device according to the device dialing mode can include: detecting whether the device dialing mode belongs to a preset dialing mode. If the device dialing mode belongs to the preset dialing mode, the device attribute information of the target device is acquired, and the target network card information of the target device is determined according to the device attribute information; if the device dialing mode does not belong to the preset dialing mode, the device database of the target device is acquired, and the target network card information of the target device is acquired from the device database.

[0089] Specifically, the computer device can detect whether the device dialing mode belongs to a preset dialing mode. The preset dialing mode can be a dialing mode in which a user can modify the network card name of the target network card. The preset dialing mode can be set by the administrator device according to specific conditions. It can be understood that when the dialing mode of the target device is the preset dialing mode, the target user (i.e., the holder of the target device) can modify the target network card information of the target network card in the target device, but when the dialing mode of the target device is not the preset dialing mode, the target user cannot modify the target network card information of the target network card in the target device. For example, if the preset dialing mode is ECM dialing and RmNet dialing, if the dialing mode of the target device is ECM dialing or RmNet dialing, the target user can modify the target network card information of the target network card in the target device, such as modifying the network card name of the target network card. If the dialing mode of the target device is RAS dialing or NDIS dialing, the target user cannot modify the target network card information of the target network card in the target device.

[0090] Specifically, if the computer device detects that the device dialing mode of the target device belongs to the device dialing mode, the device attribute information of the target device can be obtained, which can include the configuration information and the state information of the target device. The computer device can manage the device attribute information of the target device through the attribute system (i.e., property) of the target device. The attribute system is an important function of the target device and can manage the configuration information and the state information of the target device. The attribute system can manage the related configuration information and state information through key / value combination, and the key and the value are both string types. If the device dialing of the target device belongs to the device dialing mode, the target user can modify the network card information of the network card in the target device according to specific requirements. The computer device can set the network card attribute in the device attribute information of the target device, which can be ril.fibocom.netadapter. The user can set the network card attribute according to specific requirements, thereby realizing the flexibility of the user in configuring the network card in the target device.

[0091] In this way, the freedom of the target user in configuring the network card in the target device can be met, the flexibility of modifying the network card information in the target device can be realized, the freedom of the target user in configuring can be met, and the user experience of the target user can be improved. When the computer device detects that the target user edits (such as modification, update, or addition, etc.) the network card information of the network card in the target device, the computer device can obtain the edited network card name input by the target user for the network card of the target device, and can define a network card attribute through the attribute system to store the edited network card name input by the target user. Therefore, the computer device can obtain the device attribute information of the target device, and determine the target network card information of the target device according to the device attribute information. If the device dialing mode does not belong to the preset dialing mode, the computer device can obtain the device database of the target device, and obtain the target network card information of the target device from the device database. The device database refers to a database used by the target device to store service data generated during service processing. The device database can refer to a system file (sys file) of the target device, which is used to store executable code files of the driver program of the target device. The sys file is used to store installation files, log files, driver files, backup files, operation files, etc. of the target device.

[0092] Optionally, the specific manner in which the computer device determines the target network card information of the target device according to the device attribute information can include: detecting whether the edited network card name exists in the device attribute information, the edited network card name being obtained based on the editing operation of the user. If the edited network card name exists in the device attribute information, the edited network card name is determined as the target network card information of the target device. If the edited network card name does not exist in the device attribute information, the target network card information of the target device is obtained from the device database.

[0093] Specifically, the computer device can detect whether the edited network card name exists in the device attribute information, the edited network card name being obtained based on the editing operation of the target user. It can be understood that when the target user edits the network card in the target device, the computer device can obtain the edited network card name obtained by the editing operation of the target user, and store the edited network card name in the device attribute information of the target device. Specifically, only when the target user edits the network card of the target device, the edited network card name exists in the device attribute information of the target device; when the target user does not edit the network card of the target device, the edited network card name does not exist in the device attribute information of the target device. Therefore, if the edited network card name exists in the device attribute information, it indicates that the target user has edited the network card of the target device, i.e., the network card information of the network card in the target device has been modified, and the edited network card name can be determined as the target network card information of the target device. If the edited network card name does not exist in the device attribute information, it indicates that the target user has not edited the network card of the target device, i.e., the network card information of the network card in the target device has not been modified, and the target network card information of the target device is obtained from the device database. In this way, the problem that the default network card information does not match the actual network card information of the target device after the network card information of the target device is modified, and the target device fails to dial up the Internet can be avoided.

[0094] Optionally, a specific manner in which the computer device obtains the target network card information of the target device from the device database can include: determining, from the device database, a communication master file used to store communication data between the target device and a service device. Determining, from the communication master file, a communication sub-file used to store network card running data of the target device, and obtaining the target network card information of the target device according to the communication sub-file.

[0095] Specifically, the computer device can determine, from the device master database, a communication master file for storing communication data between the target device and the service device, the communication master file storing communication data for service interaction between the target device and the service device. The communication master file can be referred to as a devices file, which is a configuration file for storing a communication scheme between the target device and the service device, including kernel configuration, partition table configuration, and the like. Further, the computer device can determine, from the communication master file, a communication sub-file for storing network card running data of the target device, which can be referred to as a net file. The net file is a network card information file for storing relevant information of a network card in the target device. When the computer device obtains the device database (i.e., the sys file) of the target device, the computer device can obtain the bus file from the sys file, the bus file being used to store the system file of the target device. Further, the computer device can query the usb file from the bus file in the target device, the usb file being an external bus standard file, and the usb file being used to store connection and communication content between the target device and the service device. Further, the computer device can query the devices file (i.e., the communication sub-file) from the usb file. The computer device can detect whether the devices file includes a module file, the module file being used to store connection configuration information between the target device and a target component (a communication component), and the module file being referred to as a communication module file, such as a fibocom (a communication technology module). If the devices file does not include the module file, it can be determined that the target device cannot perform dial-up Internet access. If the devices file includes the module file, the computer device can obtain the net file (i.e., the communication sub-file) from the module file. Further, the computer device can obtain target network card information of the target device from the communication sub-file.

[0096] Optionally, the specific manner in which the computer device obtains the target network card information of the target device from the communication sub-file can include detecting whether the communication sub-file includes a network card name. If the communication sub-file includes the network card name, the network card name in the communication sub-file is determined as the target network card information of the target device. If the communication sub-file does not include the network card name, a preset network card name set is obtained, and a network card name in the preset network card name set is used as the target network card information of the target device.

[0097] Specifically, the computer device can detect whether a network interface card (NIC) name exists in the communication subfile. If the NIC name exists, it means the target device has already dialed up to the internet and the NIC information in the target device has been named. Therefore, the NIC name in the communication subfile can be identified as the target NIC information of the target device. If the NIC name does not exist in the communication subfile, it means the target device has not dialed up to the internet and the NIC information in the target device has not been named. Therefore, a preset set of NIC names can be obtained. This preset set of NIC names can refer to a set pre-defined by the programmer. The computer device can select a NIC name from the preset set of NIC names as the target NIC information of the target device. This preset set of NIC names can include usb0 (i.e., NIC 0), usb1 (i.e., NIC 1), ..., usbn (i.e., NIC n). For example, the computer device can randomly select a NIC name from the preset set of NIC names as the target NIC information of the target device. For example, a computer device can select a network card name that matches the target device's dialing method from a preset list of network card names, and use it as the target network card information for the target device.

[0098] like Figure 3 As shown, Figure 3 This is a schematic diagram illustrating how to obtain target network card information according to an embodiment of this application, such as... Figure 3 As shown, after the computer device obtains the dial-up method 30a used to dial up the target device to access the Internet, it can detect whether the dial-up method belongs to the preset dial-up method 30b. If the computer device determines that the dial-up method belongs to the preset dial-up method, it checks whether the target device has device attribute information 30c. Further, if the computer device determines that the target device has device attribute information, it obtains the editable network interface name from the device attribute information and uses it as the target network interface information 30d. If the computer device determines that the target device does not have device attribute information, i.e., the editable network interface name does not exist in the target device's device attribute information, it obtains the target device's device database and retrieves the main communication file 30e from the device database. Further, the computer device can detect whether the network interface name 30f exists in the main communication file. If the network interface name 30g exists in the main communication file, it can determine the network interface name in the main communication file as the target network interface information of the target device. If the computer device determines that there is no network card name in the main communication file, it obtains the preset network card name 30h. The preset network card name 30h may refer to the one obtained from the preset network card name set. The preset network card name 30h is determined as the target network card information of the target device. Figure 3 The specific implementation process can be found in step S102 above, and will not be repeated here in the embodiments of this application.

[0099] like Figure 4As shown, Figure 4 is a schematic diagram of obtaining target network card information from a main communication file provided by an embodiment of the present application, as Figure 4 As shown, after the computer device obtains the main communication file 40a, it can detect whether the main communication file contains a module file 40b, which can be a communication module file. If the computer device determines that the main communication file does not contain a module file, it means that the target device is not connected to a communication module, and therefore cannot perform network dialing. If the computer device determines that the main communication file contains a module file, it means that the target device is connected to a communication module, and therefore can perform dial-up networking. The computer device can obtain a communication sub-file 40d in the main communication file. Further, the computer device can detect whether the communication sub-file contains a network card name. If the computer device detects that the communication sub-file contains a network card name 40f, it determines the network card name in the communication sub-file as the target network card information of the target device. If the computer device determines that the communication sub-file does not contain a network card name 40e, it can obtain a preset network card name 40g and determine the preset network card name as the target network card information of the target device. Figure 4 The specific implementation process in the above step S102 can be referred to the content of the above step S102, which will not be described here in detail.

[0100] Specifically, the target network card information can be the network card name of the target network card. Since the target device obtains the target network card information of the target device through a default mechanism when performing dial-up networking based on RIL (a communication technology), the network card name of the target network card in the target device is directly named in the RIL process. When the network card name of the target network card changes in subsequent application processes, the directly named network card name in the RIL process will not match the actual running network card name, resulting in failure to complete the dialing service. The present solution determines whether the target user has edited the network card name of the target network card through the device attribute information of the target device. If the target user has edited the network card name of the target network card, the edited network card name of the target user is obtained as the target network card name of the target device. If the target user has not edited the network card name of the target network card, the device database of the target device is obtained to detect whether there is a network card name that automatically names the target network card. If there is a network card name in the device database, the network card name is determined as the target network card name of the target device. If there is no network card name in the device database, a preset network card name is selected as the target network card name of the target device. This can meet the user's demand for free configuration of the network card in the target device, increase the coupling of RIL, and thus improve the dialing efficiency.

[0101] S103, according to the device dialing mode, initiating a network dialing request about the target device to the service device, so that the service device returns a network connection address according to the network dialing request.

[0102] Specifically, the computer device can initiate a network dialing request about the target device to a service device according to a dialing protocol of a device dialing mode, such as a dialing protocol of ECM dialing or a dialing protocol of RmNet dialing. After receiving the network dialing request of the target device, the service device can perform legality verification on the target device according to the network dialing request. When the target device passes the legality verification, the service device can generate a network connection address (i.e., an IP address). Further, the service device can send the network connection address to the target device.

[0103] Optionally, before initiating the network dialing request, the computer device can detect a device state of the target device. Only when the device state of the target device reaches a dialing condition, the network dialing request can be initiated. Specifically, the computer device can obtain a channel registration state of a network channel in the target device. According to the channel registration state of the network channel in the target device, it is detected whether the target device has network connection permission, and a network card state of a target network card corresponding to target network card information is obtained. If it is detected that the network card state of the target network card satisfies a dialing initiation state, and the target device has network connection permission, a network dialing request about the target device is initiated to a service device according to a device dialing mode.

[0104] Specifically, the computer device can determine whether the target device has network connection permission according to the network card state of the target network card corresponding to the target network card information, the target network card being a network card in the target device. The computer device can obtain the channel registration state of the network channel in the target device, and the network channel can include a PS domain (Packet Switch) and a CS domain (Circuit Switched). The PS domain refers to packet switching. For most data services (such as browsing a webpage, sending and receiving an email, a BBS, etc.), an exclusive circuit channel is not required, so the implementation of the service does not require circuit (exclusive circuit channel) switching, but only packet switching. When communicating through a CS network, the CS network allocates a “dedicated” channel for both parties of the communication, which can be occupied throughout the communication process, and no one else can occupy the channel. When the communication ends, the CS network releases the channel to be allocated to other users for communication in the next time. In simple terms, the circuit is connected when the communication is established, and the circuit is disconnected when the communication ends, which is circuit switching. The computer device can query the registration state corresponding to the PS domain and the CS domain respectively, and determine whether the target device has network connection permission according to the registration state corresponding to the PS domain and the CS domain respectively. Specifically, if the PS domain is in the registration state and the CS domain is in the registration state, it can be determined that the target device has network connection permission; if the PS domain is in the unregistered state and the CS domain is in the unregistered state, it can be determined that the target device does not have network connection permission.

[0105] Further, the computer device can obtain the network card state of the target network card in the target device, which can include whether the network card is inserted into the target device. If the network card state of the target network card is not inserted into the target device, it can be determined that the network card state of the target network card does not meet the dial initiation state, and if the network card state of the target network card is inserted into the target device, it can be detected whether the target device can detect the target network card. If the target device can detect the target network card, it can be determined that the network card state of the target network card meets the dial initiation state. Further, if the computer device can determine that the network card state of the target network card meets the dial initiation state and the target device has network connection permission, it can be determined that the device state of the target device meets the dial condition, and the step of initiating a dial request for the target device to the service device according to the device can be performed. If the computer device can determine that the network card state of the target network card does not meet the dial initiation state and the target device does not have network connection permission, it can be determined that the device state of the target device does not meet the dial condition, and the device state of the target device is continuously detected. When the device state of the target device meets the dial condition, the step of initiating a dial request for the target device to the service device according to the device is performed.

[0106] S104, receiving the network connection address returned by the service device, and performing network connection according to the target network card information and the network connection address.

[0107] Specifically, the computer device can receive the network connection address, i.e. IP address, returned by the service device, and dial up the target device according to the target network card information of the target device and the network connection address returned by the service device, so that the target device is connected to the service device.

[0108] Optionally, the specific method of the computer device for performing network connection according to the target network card information and the network connection address can include: obtaining a target network card corresponding to the target network card information; and associating and binding the network connection address with the target network card, so that the target network card in the target device is connected to the service device based on the network connection address.

[0109] Optionally, the computer device can obtain a target network card corresponding to the target network card information, and associate and bind the network connection address returned by the service device with the target network card. It can be understood that the computer device can assign the network connection address to the target network card, and the target network card can be connected to the service device through the network connection address, so that the target device can be connected to the service device to perform related business processing.

[0110] In the embodiment of the present application, if it is detected that the network connection state of the target device is in the connecting state, the device dialing mode of the target device for dialing up the network is obtained. Since the network card information used by the target device is inconsistent when the target device uses different device dialing modes to dial up the network, the target network card information of the target device can be determined according to the device dialing mode, which can improve the accuracy of obtaining the target network card information, and can avoid the problem that the default network card information does not match the actual network card information of the target device after the network card information of the target device is modified, and thus the target device fails to dial up the network.

[0111] Further, according to the device dialing mode, a network dialing request about the target device is initiated to the service device, so that the service device returns a network connection address according to the network dialing request. The network connection address returned by the service device is received, and network connection is performed according to the target network card information and the network connection address; in this way, the success rate of network dialing of the target device can be improved. Wherein, through the device attribute information of the target device, it is determined whether the target user edits the network card name of the target network card, if the network card name of the target network card is edited, the edited network card name of the target user is obtained as the target network card name of the target device. If the target user does not edit the network card name of the target network card, the device database of the target device is obtained, and it is detected whether there is a network card name for automatically naming the target network card. If there is a network card name in the device database, the network card name is determined as the target network card name of the target device. If there is no network card name in the device database, a preset network card name is selected as the target network card name of the target device. In this way, the user's demand for free configuration of the network card in the target device can be met, the coupling of the RIL is increased, and the success rate of network dialing is improved. Also, the problem that the default network card information does not match the actual network card information of the target device after the network card information of the target device is modified, and the target device fails to dial the network can be avoided.

[0112] Please refer to Figure 5 , Figure 5 is a structural schematic diagram of a dialing device provided by an embodiment of the present application. The dialing device can be a computer program (including program code) running in a computer device, for example, the dialing device is an application software; the dialing device can be used to execute corresponding steps in the dialing method provided by the present application. As shown in Figure 5 , the dialing device can include a first obtaining module 11, a determining module 12, an initiating module 13, a network connection module 14, a second obtaining module 15, a detecting module 16, a third obtaining module 17, and an executing module 18.

[0113] The first obtaining module 11 is configured to, if it is detected that the network connection state of the target device is in a to-be-connected state, obtain a device dialing mode for dialing the network in the target device;

[0114] The determining module 12 is configured to determine target network card information of the target device according to the device dialing mode;

[0115] The initiating module 13 is configured to initiate a network dialing request about the target device to the service device according to the device dialing mode, so that the service device returns a network connection address according to the network dialing request;

[0116] The network connection module 14 is configured to receive the network connection address returned by the service device, and perform network connection according to the target network card information and the network connection address.

[0117] The determining module 12 includes:

[0118] The detecting unit is configured to detect whether the device dialing mode belongs to the preset dialing mode.

[0119] The determining unit is configured to, if the device dialing mode belongs to the preset dialing mode, acquire device attribute information of the target device, and determine target network card information of the target device according to the device attribute information.

[0120] The acquiring unit is configured to, if the device dialing mode does not belong to the preset dialing mode, acquire a device database of the target device, and acquire the target network card information of the target device from the device database.

[0121] The determining unit is specifically configured to:

[0122] Detect whether an edited network card name exists in the device attribute information, wherein the edited network card name is obtained based on an editing operation of a user.

[0123] If the edited network card name exists in the device attribute information, the edited network card name is determined as the target network card information of the target device.

[0124] If the edited network card name does not exist in the device attribute information, the target network card information of the target device is acquired from the device database.

[0125] The acquiring unit is specifically configured to:

[0126] Determine, from the device database, a communication master file used for storing communication data between the target device and the service device.

[0127] Determine, from the communication master file, a communication sub-file used for storing network card running data of the target device.

[0128] Acquire the target network card information of the target device according to the communication sub-file.

[0129] The acquiring of the target network card information of the target device according to the communication sub-file includes:

[0130] Detect whether a network card name exists in the communication sub-file.

[0131] If the network card name exists in the communication sub-file, the network card name in the communication sub-file is determined as the target network card information of the target device.

[0132] If the network card name does not exist in the communication sub-file, a preset network card name set is acquired, and a network card name in the preset network card name set is taken as the target network card information of the target device.

[0133] The dialing device further comprises:

[0134] The second obtaining module 15 is configured to obtain a channel registration state of the network channel in the target device.

[0135] The detection module 16 is configured to detect whether the target device has the network connection permission according to the channel registration state of the network channel in the target device.

[0136] The third obtaining module 17 is configured to obtain a network card state of a target network card corresponding to the target network card information.

[0137] The execution module 18 is configured to perform the step of initiating the network dialing request about the target device to the service device according to the device dialing mode if it is detected that the network card state of the target network card meets the dialing initiation state and the target device has the network connection permission.

[0138] The network connection module 14 comprises:

[0139] The network card corresponding to the target network card information is obtained.

[0140] The network connection address is associated and bound with the target network card, so that the target network card in the target device is connected to the service device based on the network connection address.

[0141] According to one embodiment of the present application, Figure 5 The modules in the dialing device shown in the embodiments can be combined into one or several units respectively or totally, or some of the units can be further split into a plurality of sub-units with smaller functions, and the same operations can be realized without affecting the realization of the technical effects of the embodiments of the present application. The modules are divided based on logical functions, and in actual applications, the functions of one module can be realized by a plurality of units, or the functions of a plurality of modules can be realized by one unit. In other embodiments of the present application, the testing device can also include other units, and in actual applications, these functions can also be realized by other units and can be realized by a plurality of units in cooperation.

[0142] In the embodiments of the present application, if it is detected that the network connection state of the target device is in the waiting connection state, the device dialing mode for dialing up the network in the target device is obtained. Since the network card information used is inconsistent when the target device uses different device dialing modes to dial up the network, the target network card information of the target device can be determined according to the device dialing mode, so that the accuracy of obtaining the target network card information can be improved, and the problem that the default network card information does not match the actual network card information of the target device after the network card information of the target device is modified, and thus the target device fails to dial up the network, can be avoided.

[0143] Further, according to the device dialing mode, a network dialing request about the target device is initiated to the service device, so that the service device returns a network connection address according to the network dialing request. The network connection address returned by the service device is received, and network connection is performed according to the target network card information and the network connection address; in this way, the success rate of network dialing of the target device can be improved. Wherein, through the device attribute information of the target device, it is determined whether the target user edits the network card name of the target network card, if the network card name of the target network card is edited, the edited network card name of the target user is obtained as the target network card name of the target device. If the target user does not edit the network card name of the target network card, the device database of the target device is obtained, and it is detected whether there is a network card name for automatically naming the target network card. If there is a network card name in the device database, the network card name is determined as the target network card name of the target device. If there is no network card name in the device database, a preset network card name is selected as the target network card name of the target device. In this way, the user's demand for free configuration of the network card in the target device can be met, the coupling of the RIL is increased, and the success rate of network dialing is improved. Also, the problem that the default network card information does not match the actual network card information of the target device after the network card information of the target device is modified, and the target device fails to dial the network can be avoided.

[0144] Please refer to Figure 6 , Figure 6 is a structural schematic diagram of a computer device provided by the embodiment of the present application. As Figure 6 shown, the computer device 1000 can include a processor 1001, a network interface 1004 and a memory 1005, in addition, the computer device 1000 can further include a user interface 1003 and at least one communication bus 1002. Wherein, the communication bus 1002 is used to realize the connection communication between these components. Wherein, the user interface 1003 can include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 can further include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 can be a high-speed RAM memory, or a non-volatile memory, for example, at least one disk memory. The memory 1005 can optionally be at least one storage device located away from the aforementioned processor 1001. As Figure 6 shown, the memory 1005 as a computer readable storage medium can include an operating system, a network communication module, a user interface module and a device control application program.

[0145] In Figure 6In the computer device 1000 shown, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an interface for user input; and the processor 1001 can be used to call a device control application stored in the memory 1005 to implement the following steps:

[0146] If it is detected that the network connection state of the target device is in a to-be-connected state, a device dialing method for dialing up the network in the target device is acquired;

[0147] According to the device dialing method, target network card information of the target device is determined;

[0148] According to the device dialing method, a network dialing request about the target device is initiated to the service device, so that the service device returns a network connection address according to the network dialing request;

[0149] The network connection address returned by the service device is received, and network connection is performed according to the target network card information and the network connection address.

[0150] It should be understood that the computer device 1000 described in the embodiments of the present application can perform the foregoing description of the dialing method in the corresponding embodiments, and can also perform the foregoing description of the dialing apparatus in the corresponding embodiments, and details are not repeated here. Figure 2 It should be understood that the computer device 1000 described in the embodiments of the present application can perform the foregoing description of the dialing method in the corresponding embodiments, and can also perform the foregoing description of the dialing apparatus in the corresponding embodiments, and details are not repeated here. Figure 5 It should be understood that the computer device 1000 described in the embodiments of the present application can perform the foregoing description of the dialing method in the corresponding embodiments, and can also perform the foregoing description of the dialing apparatus in the corresponding embodiments, and details are not repeated here.

[0151] In the embodiments of the present application, if it is detected that the network connection state of the target device is in a to-be-connected state, a device dialing method for dialing up the network in the target device is acquired. Since the target device uses different device dialing methods to dial up the network, the network card information used is inconsistent. Therefore, the target network card information of the target device can be determined according to the device dialing method, which can improve the accuracy of acquiring the target network card information, and can avoid the problem that after the network card information of the target device is modified, the default network card information does not match the actual network card information of the target device, thereby causing the target device to fail to dial up the network.

[0152] Further, according to the device dialing mode, a network dialing request about the target device is initiated to the service device, so that the service device returns a network connection address according to the network dialing request. The network connection address returned by the service device is received, and network connection is performed according to the target network card information and the network connection address; in this way, the success rate of network dialing of the target device can be improved. Wherein, through the device attribute information of the target device, it is determined whether the target user edits the network card name of the target network card, if the network card name of the target network card is edited, the edited network card name of the target user is obtained as the target network card name of the target device. If the target user does not edit the network card name of the target network card, the device database of the target device is obtained, and it is detected whether there is a network card name for automatically naming the target network card. If there is a network card name in the device database, the network card name is determined as the target network card name of the target device. If there is no network card name in the device database, a preset network card name is selected as the target network card name of the target device. In this way, the user's demand for free configuration of the network card in the target device can be met, the coupling of the RIL is increased, and the success rate of network dialing is improved. Also, the problem that the network card information of the target device is modified, the default network card information does not match the actual network card information of the target device, and the target device fails to dial the network can be avoided.

[0153] In addition, it should be noted that the embodiments of the present application also provide a computer readable storage medium, and the computer readable storage medium stores the computer program executed by the dialing device mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, the computer program can execute the above Figure 2 The description of the dialing method in the corresponding embodiment is not repeated here.

[0154] In addition, the beneficial effects of using the same method are not repeated here. For technical details not disclosed in the computer readable storage medium embodiments involved in the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions can be deployed on one computing device for execution, or on multiple computing devices located in one place for execution, or on multiple computing devices distributed in multiple places and interconnected through a communication network for execution. The multiple computing devices distributed in multiple places and interconnected through a communication network can constitute a blockchain system.

[0155] In addition, it should be noted that the embodiments of the present application also provide a computer program product or a computer program, which can include computer instructions that can be stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor can execute the computer instructions to make the computer device execute the above Figure 2The dialing method is described in the corresponding embodiment, and thus, the description will not be repeated here. In addition, the beneficial effects of using the same method are not repeated. For technical details not disclosed in the computer program product or computer program embodiments involved in the present application, please refer to the description of the method embodiments of the present application.

[0156] It should be noted that, for the foregoing various method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the order of the described actions, because according to the present application, some steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0157] The steps in the method embodiments of the present application can be adjusted in order, combined and reduced according to actual needs.

[0158] The modules in the device embodiments of the present application can be combined, divided and reduced according to actual needs.

[0159] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The program can be stored in a computer readable storage medium, and when the program is executed, it can include the processes of the above-mentioned embodiments of the method. The storage medium can be a magnetic disc, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.

[0160] The above only discloses the preferred embodiments of the present application, and of course cannot limit the scope of the rights of the present application, so the equivalent changes made according to the claims of the present application still fall within the scope of the present application.

Claims

1. A dialing method, characterized by, The method comprises the following steps: If it is detected that the network connection state of the target device is in a connecting state, connection attribute information of the target device is acquired, and a device dialing mode for dialing up network of the target device is determined according to the connection attribute information of the target device; The connection attribute information reflects at least one of whether the network to which the target device needs to be connected needs to be integrated with a driver and whether the modem in the target device needs to be called for dialing; Whether the device dialing mode belongs to a preset dialing mode is detected; The preset dialing mode is a dialing mode in which network card information is modifiable; If the device dialing mode belongs to the preset dialing mode, device attribute information of the target device is acquired, and whether an edited network card name exists in the device attribute information is detected; the edited network card name is obtained based on an editing operation of a user; If the edited network card name exists in the device attribute information, the edited network card name is determined as target network card information of the target device; If the device dialing mode does not belong to the preset dialing mode, a device database of the target device is acquired, and the target network card information of the target device is acquired from the device database; According to the device dialing mode, a network dialing request about the target device is initiated to a service device, so that the service device returns a network connection address according to the network dialing request; The network connection address returned by the service device is received, and network connection is performed according to the target network card information and the network connection address.

2. The method of claim 1, wherein, The method further comprises the following steps: If the edited network card name does not exist in the device attribute information, the target network card information of the target device is acquired from the device database.

3. The method of claim 2, wherein, The target network card information of the target device acquired from the device database comprises the following steps: A communication master file used for storing communication data between the target device and the service device is determined from the device database; A communication sub-file used for storing network card running data of the target device is determined from the communication master file; The target network card information of the target device is acquired according to the communication sub-file.

4. The method of claim 3, wherein, The target network card information of the target device acquired according to the communication sub-file comprises the following steps: Whether a network card name exists in the communication sub-file is detected; If the network card name exists in the communication sub-file, the network card name in the communication sub-file is determined as the target network card information of the target device; If the network card name does not exist in the communication sub-file, a preset network card name set is acquired, and the network card name in the preset network card name set is used as the target network card information of the target device.

5. The method of claim 1, wherein, The method further comprises the following steps: A channel registration state of a network channel in the target device is acquired; Whether the target device has network connection authority is detected according to the channel registration state of the network channel in the target device; A network card state of a target network card corresponding to the target network card information is acquired; If it is detected that the network card state of the target network card meets the dial-up initiation state, and the target device has network connection authority, then a step of initiating a network dial-up request for the target device to a service device according to the device dial-up mode is performed.

6. The method of claim 1, wherein, The network connection according to the target network card information and the network connection address comprises: obtaining a target network card corresponding to the target network card information; associating and binding the network connection address with the target network card, so that the target network card in the target device performs network connection with a service device based on the network connection address.

7. A dialling device, characterised in that comprises: a first obtaining module, configured to, if it is detected that the network connection state of a target device is in a to-be-connected state, obtain connection attribute information of the target device, and determine a device dial-up mode for dial-up network access of the target device according to the connection attribute information of the target device; the connection attribute information reflects at least one of whether a network to be connected by the target device needs to be integrated with a driver, and whether a modem in the target device needs to be called for dial-up; the determining module comprises a detecting unit, a determining unit, and an obtaining unit; the detecting unit is configured to detect whether the device dial-up mode belongs to a preset dial-up mode; the preset dial-up mode is a dial-up mode in which network card information is modifiable; the determining unit is configured to, if the device dial-up mode belongs to the preset dial-up mode, obtain device attribute information of the target device, and detect whether an edited network card name exists in the device attribute information; the edited network card name is obtained based on an editing operation of a user; if the edited network card name exists in the device attribute information, the edited network card name is determined as target network card information of the target device; the obtaining unit is configured to, if the device dial-up mode does not belong to the preset dial-up mode, obtain a device database of the target device, and obtain target network card information of the target device from the device database; an initiating module, configured to initiate a network dial-up request for the target device to a service device according to the device dial-up mode, so that the service device returns a network connection address according to the network dial-up request; a network connection module, configured to receive the network connection address returned by the service device, and perform network connection according to the target network card information and the network connection address.

8. A computer device, comprising: comprises: a processor and a memory; the processor is connected with the memory, wherein the memory is configured to store a computer program, and the processor is configured to call the computer program, so that the computer device executes the method in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is adapted to be loaded and executed by the processor, so that the computer device with the processor executes the method in any one of claims 1-6.

Citation Information

Patent Citations

  • Vehicle-mounted equipment internet surfing method and device, server and storage medium

    CN110830481A