CN110944407B - Dialing networking method and device - Google Patents

Dialing networking method and device Download PDF

Info

Publication number
CN110944407B
CN110944407B CN201911151413.9A CN201911151413A CN110944407B CN 110944407 B CN110944407 B CN 110944407B CN 201911151413 A CN201911151413 A CN 201911151413A CN 110944407 B CN110944407 B CN 110944407B
Authority
CN
China
Prior art keywords
information
configuration file
gsm module
sim card
network
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.)
Active
Application number
CN201911151413.9A
Other languages
Chinese (zh)
Other versions
CN110944407A (en
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.)
Beijing LSSEC Technology Co Ltd
Original Assignee
Beijing LSSEC Technology 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 Beijing LSSEC Technology Co Ltd filed Critical Beijing LSSEC Technology Co Ltd
Priority to CN201911151413.9A priority Critical patent/CN110944407B/en
Publication of CN110944407A publication Critical patent/CN110944407A/en
Application granted granted Critical
Publication of CN110944407B publication Critical patent/CN110944407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a dial-up networking method and device. The method comprises the following steps: acquiring a configuration file, wherein the configuration file is a file which is configured in advance and used for realizing dial-up networking; detecting first information of a GSM module and second information of an SIM card; generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file; and calling the dialing script to dial so as to establish a network link between the terminal equipment and the network side. According to the technical scheme, the corresponding dialing script can be automatically generated according to the GSM module, the SIM card and the configuration file so as to establish the network link, so that the complexity in the using process and the working complexity of debugging personnel are avoided, and the flexibility in the using process is improved.

Description

Dialing networking method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a dial-up networking method and apparatus.
Background
At present, for GSM (Global System for Mobile Communications) modules of different manufacturers and SIM (Subscriber Identity Module) cards of different operators, different dialing scripts need to be manually switched during dial-up networking, and specifically, the dial-up scripts of a specific operator are compiled for a specific GSM Module to implement dial-up networking. However, the complexity of the terminal device in the using process is increased, the modification process is complicated and error is easy to occur, and therefore production and debugging personnel are required to have a relatively high technical level, so that a correct adaptive dialing script can be ensured.
Disclosure of Invention
The technical scheme of the disclosure aims to provide a dial-up networking method and a dial-up networking device, which can automatically generate a corresponding dial-up script according to a GSM module, an SIM card and a configuration file to establish a network link, thereby avoiding the problems of complicated modification process and easy error when the dial-up script is manually switched. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, a dial-up networking method is provided, including:
acquiring a configuration file, wherein the configuration file is a file which is configured in advance and used for realizing dial-up networking;
detecting first information of a GSM module and second information of an SIM card;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file;
and calling the dialing script to dial so as to establish a network link between the terminal equipment and the network side.
In one embodiment, detecting the first information of the GSM module includes:
sending a first instruction to the GSM module, wherein the first instruction is used for inquiring first information, and the first information comprises manufacturer information and model information of the GSM module;
and receiving first feedback information returned by the GSM module in response to the first instruction, wherein the first feedback information comprises manufacturer information and model information of the GSM module.
In one embodiment, the configuration file comprises a first configuration file, and the first configuration file stores the corresponding relation between the international mobile subscriber identity and the operator as well as the chat script;
the detecting the second information of the SIM card includes:
sending a second instruction to the GSM module, wherein the second instruction is used for inquiring second information, and the second information comprises operator information of the SIM card;
receiving second feedback information returned by the GSM module in response to the second instruction, wherein the second feedback information comprises an International Mobile Subscriber Identity (IMSI) of the SIM card;
and based on the first configuration file, determining the operator information of the SIM card and the name of the chat script according to the international mobile subscriber identity of the SIM card.
In one embodiment, the configuration file comprises a second configuration file, and the second configuration file stores general information for dial-up networking;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file comprises the following steps:
acquiring general information in the second configuration file, wherein the communication information comprises modification information based on the GSM module and a name of a chat script determined based on operator information of the SIM card;
and generating a corresponding dialing script according to the general information, wherein the dialing script designates the names of the chat scripts used by different operators.
In one embodiment, the method further comprises:
monitoring network parameter information of the network link in real time, wherein the network parameter information comprises a CSQ value and a network type;
and providing the network parameter information to the upper layer application so that the upper layer application can determine the network connection state according to the network parameter information.
In an embodiment, the invoking the dialing script to dial to establish a network link between the terminal device and the network side further includes: determining whether the network link established between the terminal device and the network side can normally transmit communication signals, including the steps of:
step A1: determining an attenuation value delta P of a communication signal in a free space in a transmission process according to formula (1);
Figure BDA0002283639430000031
wherein, Δ P represents the attenuation value of the communication signal in the transmission process, d represents the propagation distance from the terminal device to the network link at the network side, L is the loss factor preset by the system, λ represents the wavelength of the communication signal in the propagation process, GlIndicating the gain of the antenna of the device transmitting the communication signal, GrRepresenting the antenna gain of the device receiving the communication signal;
step A2: according to the formula (2), the attenuation value of the communication signal in the transmission process is corrected to obtain the attenuation value delta P of the communication signal after correction in the transmission processl
Figure BDA0002283639430000032
Wherein Δ PlRepresenting the attenuation value of the modified communication signal during transmission, d0A distance value at a distance point representing a predetermined position, μ represents the number of dielectric fields of a propagation medium of a signal in a real environment, and dmRepresents the minimum distance that the signal content can be normally transmitted, exp represents an exponential function of a natural constant e, and σ represents the variance of a gaussian variable with respect to ad;
step A3: substituting the attenuation value of the communication signal obtained in the step a2 in the transmission process into the formula (3) to judge whether the network link channel between the terminal device and the network needs to be replaced:
S=exp{ΔPl-P} (3)
wherein, S represents the judgment value for replacing and establishing the network link channel between the terminal equipment and the network side, and P represents the minimum attenuation value of the signal content which can be normally transmitted;
when S is larger than or equal to 1, the establishment of a network link channel between the terminal equipment and the network side is indicated to be capable of normally transmitting communication signals, and the communication channel does not need to be replaced;
and when the S <1, the communication channel needs to be replaced if the communication signal cannot be normally transmitted by establishing the network link channel between the terminal equipment and the network side, and the dialing script is called to redial based on the replacement of the communication channel.
According to a second aspect of the embodiments of the present disclosure, there is provided a dial-up networking device, including:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a configuration file, and the configuration file is a file which is configured in advance and is used for realizing dial-up networking;
the detection module is used for detecting first information of the GSM module and second information of the SIM card;
the generating module is used for generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file;
and the dialing module is used for calling the dialing script to dial so as to establish a network link between the terminal equipment and the network side.
In one embodiment, the detection module comprises:
the first sending unit is used for sending a first instruction to the GSM module, wherein the first instruction is used for inquiring first information, and the first information comprises manufacturer information and model information of the GSM module;
and the first receiving unit is used for receiving first feedback information returned by the GSM module in response to the first instruction, wherein the first feedback information comprises manufacturer information and model information of the GSM module.
In one embodiment, the configuration file comprises a first configuration file, and the first configuration file stores the corresponding relation between the international mobile subscriber identity and the operator as well as the chat script;
the detection module comprises:
a second sending unit, configured to send a second instruction to the GSM module, where the second instruction is used to query second information, and the second information includes operator information of the SIM card;
a second receiving unit, configured to receive second feedback information returned by the GSM module in response to the second instruction, where the second feedback information includes an international mobile subscriber identity of the SIM card;
and the determining unit is used for determining the operator information of the SIM card and the name of the chat script according to the international mobile subscriber identity of the SIM card based on the first configuration file.
In one embodiment, the configuration file comprises a second configuration file, and the second configuration file stores general information for dial-up networking;
the generation module comprises:
an obtaining unit, configured to obtain general information in the second configuration file, where the communication information includes modification information based on the GSM module and a name of a chat script determined based on operator information of the SIM card;
and the generating unit is used for generating a corresponding dialing script according to the general information, wherein the dialing script designates the names of the chat scripts used by different operators.
In one embodiment, the apparatus further comprises:
the monitoring module is used for monitoring the network parameter information of the network link in real time, and the network parameter information comprises a CSQ value and a network format;
and the reporting module is used for providing the network parameter information for the upper layer application so as to facilitate the upper layer application to determine the network connection state according to the network parameter information.
According to a third aspect of the embodiments of the present disclosure, there is provided a dial-up networking device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of the method of any embodiment of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer instructions which, when executed by a processor, implement the steps of the method according to any one of the embodiments of the first aspect.
The technical scheme of the disclosure has the following beneficial effects:
according to the dial-up networking method provided by the technical scheme, the configuration file in the terminal equipment can be obtained, the first information of the GSM module and the second information of the SIM card can be detected, the corresponding dial-up script is automatically generated according to the GSM module, the SIM card and the configuration file to establish the network link, so that the manual participation in the process of switching the dial-up script can be reduced, the problems of complicated modification process and easy error are avoided, the technical requirements on debuggers and the working complexity of field debuggers are reduced, and the flexibility in the use process is increased while the complexity in the use process is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a dial-up method according to an exemplary embodiment;
fig. 2 is a flow chart illustrating detection of first information of a GSM module according to an exemplary embodiment;
fig. 3 is a flowchart illustrating detecting second information of a SIM card according to an exemplary embodiment;
FIG. 4 is a flowchart illustrating automatic generation of a dialing script, according to an exemplary embodiment;
FIG. 5 is a flow chart illustrating a dial-up method according to an exemplary embodiment;
FIG. 6 is a block diagram illustrating a dial-up networking device according to an exemplary embodiment;
FIG. 7 is a block diagram illustrating a dial-up networking device according to an exemplary embodiment;
fig. 8 is a block diagram illustrating a structure of an apparatus for dial-up networking according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The technical scheme provided by the embodiment of the disclosure relates to a dial-up networking method and device, which can be applied to the technical field of the Internet, and specifically can automatically generate a corresponding dial-up script according to a GSM module, an SIM card and a related configuration file, thereby realizing dial-up networking to establish network link.
Fig. 1 exemplarily shows a flowchart of a dial-up networking method in an embodiment of the present disclosure, where the dial-up networking method includes the following steps S110 to S140:
in step S110, a configuration file is obtained, where the configuration file is a file configured in advance for implementing dial-up networking.
In this embodiment, the configuration file may include a plurality of configuration files for implementing dial-up networking. In an example, a first configuration file stores a corresponding relationship between an IMSI (International Mobile Subscriber identity Number) and an operator and a chat script, a second configuration file stores general information for dial-up networking, the general information includes an interface designated by dial-up networking connection, a control character transmission rate, hardware acceleration, overflow control and the like, a third configuration file can manually add interfaces and control character transmission rates used when different devices are connected, names of different operators and IMSI relationship tables and the like according to needs, and in addition, chat scripts corresponding to different operators are stored in the chat configuration file.
Specifically, when the terminal device needs to dial up to access the internet, the configuration file and the interface information can be acquired first. The configuration file refers to a file configured in advance for dial-up networking, and may include a plurality of configuration files of different types, such as first to third configuration files and chat configuration files. The interface information refers to an AT interface used for information interaction with the GSM module and a Modem interface used for dial-up connection, and can be obtained by reading the settings file. It should be understood that: when the GSM module is switched, some parameters such as the AT interface and the Modem interface need to be manually modified in the configuration file, and the parameters can be directly used after the modification is successful.
In step S120, first information of the GSM module and second information of the SIM card are detected.
In this embodiment, the first information refers to relevant information of the GSM module, which includes manufacturer information and model information of the GSM module, and the second information refers to relevant information of the SIM card, which includes operator information of the SIM card and other relevant information.
Specifically, when first information of the GSM module and second information of the SIM card need to be detected, information interaction between the control module in the terminal device and the GSM module may be implemented, that is, the control module sends an AT instruction to the GSM module to query relevant information, the GSM module feeds back the relevant information to the control module according to the AT instruction, and the control module further needs to analyze feedback information returned by the GSM module to obtain a required information format, or further combines a configuration file according to the feedback information to obtain a required information content.
Fig. 2 illustrates a flowchart of detecting first information of a GSM module in an embodiment of the present disclosure. As shown in fig. 2, the detecting the first information of the GSM module includes the following steps S121 to S122:
in step S121, a first instruction is sent to the GSM module, where the first instruction is used to query first information, and the first information includes manufacturer information and model information of the GSM module;
in step S122, first feedback information returned by the GSM module in response to the first instruction is received, where the first feedback information includes manufacturer information and model information of the GSM module.
For example, when a dial-up network is needed, the control module of the terminal device sends an AT instruction to the GSM module to confirm whether the GSM module is good or bad and whether the SIM card is inserted. After determining that the GSM module and the SIM card are both normal, the control module may send a first instruction, i.e., a first AT instruction, to the GSM module to query manufacturer information and model information of the GSM module, the GSM module may return first feedback information in response to the first instruction, where the first feedback information includes the manufacturer information and model information of the GSM module, and the control module needs to analyze the first feedback information after receiving the first feedback information to obtain an identifiable information format. It should be noted that: the GSM module can realize data transmission through its AT interface, and interfaces of different manufacturers and messages of feedback information are different, so that files corresponding to GSM modules of multiple manufacturers capable of identifying interfaces and analyzing information need to be configured in advance.
Fig. 3 illustrates a flowchart of detecting second information of a SIM card in an embodiment of the present disclosure. At this time, the configuration file includes a first configuration file, and the first configuration file stores a corresponding relationship between the IMSI and the operator and the chat script. As can be seen from fig. 3, the detecting the second information of the SIM card includes the following steps S123 to S125:
in step S123, sending a second instruction to the GSM module, where the second instruction is used to query second information, where the second information includes operator information of the SIM card;
in step S124, receiving second feedback information returned by the GSM module in response to the second instruction, where the second feedback information includes an IMSI number of the SIM card;
in step S125, based on the first configuration file, the operator information of the SIM card and the name of the chat script are determined according to the IMSI number of the SIM card.
For example, when a dial-up network is needed, the control module of the terminal device sends an AT instruction to the GSM module to confirm whether the GSM module is good or bad and whether the SIM card is inserted. After determining that the GSM module and the SIM card are both normal, the control module may send a second instruction, that is, a second AT instruction, to the GSM module to query the operator information of the SIM card, and the GSM module may return second feedback information in response to the second instruction, where the second feedback information includes an IMSI code of the SIM card, and AT this time, the control module may determine, according to the IMSI code of the SIM card and in combination with the first configuration file, the operator information of the SIM card and a name of a chat script, where the name of the chat script includes path information for calling the chat script. It should be noted that: the control module is located in the information interaction process of the GSM module, and can query the current information such as signal strength in addition to the first information of the GSM module and the second information of the SIM card, which is not described herein again.
In step S130, a corresponding dialing script is automatically generated according to the first information of the GSM module, the second information of the SIM card, and the configuration file.
In this embodiment, the configuration file at least needs to include a second configuration file, where the second configuration file stores general information for dial-up networking, such as an interface designated by a dial-up networking connection, a control character transmission rate, hardware acceleration, and overflow control.
Fig. 4 illustrates a flow chart of automatically generating a dialing script in an embodiment of the present disclosure. As can be seen from fig. 4, the step of automatically generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card, and the configuration file specifically includes the following steps S131 to S132:
in step S131, general information in the second configuration file is obtained, where the communication information may include modification information based on the GSM module and a name of the chat script determined based on operator information of the SIM card;
in step S132, a corresponding dial script is generated based on the general information, and the name of the chat script used by different operators is specified in the dial script.
For example, after confirming that the GSM module, the SIM card, and the current signal state are all normal, and acquiring the manufacturer information and model information of the GSM module, the operator information of the SIM card, the name of the corresponding chat script, and the required various configuration files, the control module may replace a relevant part of contents in the second configuration file with the modification information input in advance based on the GSM module and the name of the chat script determined based on the operator information of the SIM card, thereby generating a dialing script applicable to the current GSM module and SIM card, where the generated dialing script specifies the name of the chat script used by different operators for AT calling and controlling and information affecting the dialing link, so that the problem of needing to manually switch the dialing script can be avoided.
In step S140, the generated dialing script is called to dial, so as to establish a network link between the terminal device and the network side.
In this embodiment, the terminal device refers to a terminal capable of implementing wireless network connection, and includes but is not limited to an intelligent home and an intelligent transportation system, and this is not limited specifically here. The network link can be established between the terminal equipment and the network side through dial-up networking of the terminal equipment, and specifically, the control module in the terminal equipment dials up through a Modem interface in a GSM module to establish the network link.
For example, after the correct dialing script is generated, the control module of the terminal device may call the dialing script to dial, and generate a corresponding virtual network card when the dialing is successful, so that data transmission between the terminal device and the network side may be implemented through the virtual network card.
Based on this, according to the dial-up networking method provided by the technical scheme of the disclosure, the configuration file in the terminal device can be obtained, the first information of the GSM module and the second information of the SIM card can be detected, and the corresponding dial-up script can be automatically generated according to the GSM module, the SIM card and the configuration file to establish the network link, so that the manual participation in the process of switching the dial-up script can be reduced, the problems of complicated modification process and easy error can be avoided, the technical requirements on debuggers and the working complexity of field debuggers can be reduced, and the flexibility of the use process can be increased while the complexity of the use process is reduced.
Furthermore, according to the technical scheme, after the dialing is successful, various information of the network link can be monitored in real time, so that multiple criteria can be provided for the use of the network link. Fig. 5 illustrates a flowchart of a dial-up networking method in an embodiment of the present disclosure. As shown in fig. 5, the dial-up networking method may further include the following steps S150 to S160:
in step S150, network parameter information of the network link is monitored in real time, where the network parameter information includes a CSQ value and a network type.
Wherein, the CSQ value is used to represent the Signal Strength, and has a specific relationship with RSSI (Received Signal Strength Indication); the network standard refers to the network type of the current network link. It should be understood that what the dialer program in the control module can monitor is not limited to the CSQ value and the network type, but can also monitor other network parameter information, and is not limited herein.
It should be noted that: step S150 and step S120 may be performed synchronously or sequentially, that is, the execution sequence of step S120 and step S150 is not limited in this embodiment, but meaningful data information can be obtained by monitoring the network parameter information after the network link is successfully established.
In step S160, the network parameter information is provided to the upper layer application, so that the upper layer application determines the network connection status according to the network parameter information.
The upper layer application includes, but is not limited to, a server, and the upper layer application may specifically determine a current network connection state and perform network connection problem troubleshooting, etc. according to the monitored network parameter information.
Specifically, the control module of the terminal device may send a third instruction, that is, a third AT instruction, to the GSM module to query the network parameter information of the established network link, and AT this time, the GSM module may return third feedback information in response to the third instruction, where the third feedback information includes network parameter information such as a CSQ value and a network format of the established network link, and the control module may parse the third feedback information as needed after receiving the third feedback information to obtain an identifiable information format. After analyzing the required network parameter information such as the CSQ value, the network system and the like, the control module can also report the network parameter information to the upper layer application, so that the control module can determine the network connection state, troubleshoot the network connection problem and the like according to the network parameter information.
Based on this, the dial-up networking method provided by the technical scheme of the disclosure can automatically generate the corresponding dial-up script according to the GSM module, the SIM card and the configuration file to establish the network link, and can monitor multiple network parameter information such as the CSQ value and the network format of the network link in real time after the network link is successfully established, so as to provide multiple judgment bases for the use of the network link, thereby increasing the flexibility of the use process.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 6 is a block diagram illustrating a dial-up device 60 according to an exemplary embodiment, where the device 60 may be implemented as part or all of an electronic device through software, hardware, or a combination of both. Referring to fig. 6, the dial-up networking device 60 includes an obtaining module 610, a detecting module 620, a generating module 630 and a dialing module 640. The obtaining module 610 is configured to obtain a configuration file, where the configuration file is a file that is configured in advance and is used for implementing dial-up networking; the detecting module 620 is configured to detect first information of the GSM module and second information of the SIM card; the generating module 630 is configured to generate a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card, and the configuration file; the dialing module 640 is configured to invoke the dialing script to dial, so as to establish a network link between the terminal device and the network side.
In one embodiment, the detection module 620 includes a first transmitting unit and a first receiving unit. The first sending unit is used for sending a first instruction to the GSM module, the first instruction is used for inquiring first information, and the first information comprises manufacturer information and model information of the GSM module; the first receiving unit is used for receiving first feedback information returned by the GSM module in response to the first instruction, and the first feedback information comprises manufacturer information and model information of the GSM module.
In one embodiment, the configuration file comprises a first configuration file, and the first configuration file stores the corresponding relation between the international mobile subscriber identity and the operator as well as the chat script; the detection module 620 includes a second sending unit, a second receiving unit, and a determining unit. The second sending unit is used for sending a second instruction to the GSM module, wherein the second instruction is used for inquiring second information, and the second information comprises operator information of the SIM card; the second receiving unit is used for receiving second feedback information returned by the GSM module in response to the second instruction, and the second feedback information comprises an IMSI code of the SIM card; the determining unit is used for determining the operator information of the SIM card and the name of the chat script according to the IMSI code of the SIM card based on the first configuration file.
In one embodiment, the configuration file comprises a second configuration file, and the second configuration file stores general information for dial-up networking; the generating module 630 includes an obtaining unit and a generating unit. The obtaining unit is used for obtaining general information in the second configuration file, and the communication information comprises modification information based on the GSM module and a name of a chat script determined based on operator information of the SIM card; the generation unit is used for generating a corresponding dialing script according to the general information, and the dialing script designates names of the chat scripts used by different operators.
In one embodiment, referring to fig. 7, the dial-up device 60 further includes a monitoring module 650 and a reporting module 660. The monitoring module 650 is configured to monitor network parameter information of a network link in real time, where the network parameter information includes a CSQ value and a network type; the reporting module 660 is configured to provide the network parameter information to the upper layer application, so that the upper layer application determines the network connection state according to the network parameter information.
Based on this, the dial-up networking device provided by the technical scheme of the disclosure can automatically generate the corresponding dial-up script according to the GSM module, the SIM card and the configuration file to establish the network link by acquiring the configuration file in the terminal device and detecting the first information of the GSM module and the second information of the SIM card, and can also monitor multiple items of network parameter information such as the CSQ value and the network format of the network link in real time after the network link is successfully established, so as to provide multiple judgment bases for the use of the network link, thereby reducing the manual participation in switching the dial-up script, avoiding the problem of complicated modification process and easy error, reducing the technical requirements for debuggers and the working complexity of field debuggers, and increasing the flexibility of the use process while reducing the complexity of the use process.
With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
The embodiment of the present disclosure further provides a terminal device, where the terminal device includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring a configuration file, wherein the configuration file is a file which is configured in advance and used for realizing dial-up networking;
detecting first information of a GSM module and second information of an SIM card;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file;
and calling the dialing script to dial so as to establish a network link between the terminal equipment and the network side.
In one embodiment, the processor may be further configured to:
sending a first instruction to the GSM module, wherein the first instruction is used for inquiring first information, and the first information comprises manufacturer information and model information of the GSM module;
and receiving first feedback information returned by the GSM module in response to the first instruction, wherein the first feedback information comprises manufacturer information and model information of the GSM module.
In one embodiment, the configuration file comprises a first configuration file, and the first configuration file stores the corresponding relation between the international mobile subscriber identity and the operator as well as the chat script; the processor may be further configured to:
sending a second instruction to the GSM module, wherein the second instruction is used for inquiring second information, and the second information comprises operator information of the SIM card;
receiving second feedback information returned by the GSM module in response to the second instruction, wherein the second feedback information comprises an International Mobile Subscriber Identity (IMSI) of the SIM card;
and based on the first configuration file, determining the operator information of the SIM card and the name of the chat script according to the international mobile subscriber identity of the SIM card.
In one embodiment, the configuration file comprises a second configuration file, and the second configuration file stores general information for dial-up networking; the processor may be further configured to:
acquiring general information in the second configuration file, wherein the communication information comprises modification information based on the GSM module and a name of a chat script determined based on operator information of the SIM card;
and generating a corresponding dialing script according to the general information, wherein the dialing script designates the names of the chat scripts used by different operators.
In one embodiment, the processor may be further configured to:
monitoring network parameter information of the network link in real time, wherein the network parameter information comprises a CSQ value and a network type;
and providing the network parameter information to the upper layer application so that the upper layer application can determine the network connection state according to the network parameter information.
Fig. 8 is a block diagram illustrating an apparatus for dial-up networking according to an exemplary embodiment, which is suitable for a terminal device. For example, the apparatus 800 may be a computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a device 800, enable the device 800 to perform the above dial-up networking method, the method comprising:
acquiring a configuration file, wherein the configuration file is a file which is configured in advance and used for realizing dial-up networking;
detecting first information of a GSM module and second information of an SIM card;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file;
and calling the dialing script to dial so as to establish a network link between the terminal equipment and the network side.
In one embodiment, detecting the first information of the GSM module includes:
sending a first instruction to the GSM module, wherein the first instruction is used for inquiring first information, and the first information comprises manufacturer information and model information of the GSM module;
and receiving first feedback information returned by the GSM module in response to the first instruction, wherein the first feedback information comprises manufacturer information and model information of the GSM module.
In one embodiment, the configuration file comprises a first configuration file, and the first configuration file stores the corresponding relation between the international mobile subscriber identity and the operator as well as the chat script;
the detecting the second information of the SIM card includes:
sending a second instruction to the GSM module, wherein the second instruction is used for inquiring second information, and the second information comprises operator information of the SIM card;
receiving second feedback information returned by the GSM module in response to the second instruction, wherein the second feedback information comprises an International Mobile Subscriber Identity (IMSI) of the SIM card;
and based on the first configuration file, determining the operator information of the SIM card and the name of the chat script according to the international mobile subscriber identity of the SIM card.
In one embodiment, the configuration file comprises a second configuration file, and the second configuration file stores general information for dial-up networking;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file comprises the following steps:
acquiring general information in the second configuration file, wherein the communication information comprises modification information based on the GSM module and a name of a chat script determined based on operator information of the SIM card;
and generating a corresponding dialing script according to the general information, wherein the dialing script designates the names of the chat scripts used by different operators.
In one embodiment, the method further comprises:
monitoring network parameter information of the network link in real time, wherein the network parameter information comprises a CSQ value and a network type;
and providing the network parameter information to the upper layer application so that the upper layer application can determine the network connection state according to the network parameter information.
In an embodiment, the invoking the dialing script to dial to establish a network link between the terminal device and the network side further includes: determining whether the network link established between the terminal device and the network side can normally transmit communication signals, including the steps of:
step A1: determining an attenuation value delta P of a communication signal in a free space in a transmission process according to formula (1);
Figure BDA0002283639430000181
where Δ P denotes the attenuation value of the communication signal during transmission, d denotes the network link of the terminal to the network sidePropagation distance, L is a loss factor preset by a system, lambda represents the wavelength of a communication signal in the propagation process, and GlIndicating the gain of the antenna of the device transmitting the communication signal, GrRepresenting the antenna gain of the device receiving the communication signal;
wherein the preset value of L is 0.853;
step A2: according to the formula (2), the attenuation value of the communication signal in the transmission process is corrected to obtain the attenuation value delta P of the communication signal after correction in the transmission processl
Figure BDA0002283639430000191
Wherein Δ PlRepresenting the attenuation value of the modified communication signal during transmission, d0A distance value at a distance point representing a predetermined position, μ represents the number of dielectric fields of a propagation medium of a signal in a real environment, and dmRepresents the minimum distance that the signal content can be normally transmitted, exp represents an exponential function of a natural constant e, and σ represents the variance of a gaussian variable with respect to ad;
step A3: substituting the attenuation value of the communication signal obtained in the step a2 in the transmission process into the formula (3) to judge whether the network link channel between the terminal device and the network needs to be replaced:
S=exp{ΔPl-P} (3)
wherein, S represents the judgment value for replacing and establishing the network link channel between the terminal equipment and the network side, and P represents the minimum attenuation value of the signal content which can be normally transmitted;
when S is larger than or equal to 1, the establishment of a network link channel between the terminal equipment and the network side is indicated to be capable of normally transmitting communication signals, and the communication channel does not need to be replaced;
and when the S <1, the communication channel needs to be replaced if the communication signal cannot be normally transmitted by establishing the network link channel between the terminal equipment and the network side, and the dialing script is called to redial based on the replacement of the communication channel.
The beneficial effects of the above technical scheme are: the attenuation value of the communication signal in the process of establishing the network link between the terminal equipment and the network side is determined to ensure that the established communication can effectively transmit normal signals and ensure the integrity and the accuracy of communication signal data, the attenuation value in free space is corrected to determine the actual attenuation value of the communication signal in the real environment, the inaccuracy of the calculation of the attenuation value of normal communication data caused by the existence of other propagation media is avoided, the minimum attenuation value which can be normally transmitted by the content of the signal is used for judgment so as to switch communication channels, and the completeness and the high efficiency of the transmitted communication signal are ensured.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (4)

1. A dial-up networking method is characterized by comprising the following steps:
acquiring a configuration file, wherein the configuration file is a file which is configured in advance and used for realizing dial-up networking;
detecting first information of a GSM module and second information of an SIM card;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file;
calling the dialing script to dial so as to establish a network link between the terminal equipment and a network side, and determining whether the network link established between the terminal equipment and the network side can normally transmit communication signals, wherein the steps comprise:
step A1: determining an attenuation value delta P of a communication signal in a free space in a transmission process according to formula (1);
Figure FDA0002920207610000011
wherein, Δ P represents the attenuation value of the communication signal in the transmission process, d represents the propagation distance from the terminal device to the network link at the network side, L is the loss factor preset by the system, λ represents the wavelength of the communication signal in the propagation process, GlIndicating the gain of the antenna of the device transmitting the communication signal, GrRepresenting the antenna gain of the device receiving the communication signal;
step A2: according to the formula (2), the attenuation value of the communication signal in the transmission process is corrected to obtain the attenuation value delta P of the communication signal after correction in the transmission processl
Figure FDA0002920207610000012
Wherein Δ PlRepresenting the attenuation value of the modified communication signal during transmission, d0A distance value at a distance point representing a predetermined position, μ represents the number of dielectric fields of a propagation medium of a signal in a real environment, and dmThe minimum distance that the signal content can be normally transmitted is represented, exp represents an exponential function of a natural constant e, and sigma represents a variance of a Gaussian variable;
step A3: substituting the attenuation value of the communication signal obtained in the step a2 in the transmission process into the formula (3) to judge whether the network link channel between the terminal device and the network needs to be replaced:
S=exp{ΔPl-P} (3)
wherein, S represents the judgment value for replacing and establishing the network link channel between the terminal equipment and the network side, and P represents the minimum attenuation value of the signal content which can be normally transmitted;
when S is less than 1, indicating that the establishment of a network link channel between the terminal equipment and the network side can normally transmit communication signals, and not replacing the communication channel;
when S is larger than or equal to 1, indicating that the establishment of a network link channel between the terminal equipment and the network side cannot normally transmit communication signals, needing to replace the communication channel, calling the dialing script to re-dial based on the replacement of the communication channel;
monitoring network parameter information of the network link in real time, wherein the network parameter information comprises a CSQ value and a network type;
and providing the network parameter information to the upper layer application so that the upper layer application can determine the network connection state according to the network parameter information.
2. The method of claim 1, wherein detecting the first information of the GSM module comprises:
sending a first instruction to the GSM module, wherein the first instruction is used for inquiring first information, and the first information comprises manufacturer information and model information of the GSM module;
and receiving first feedback information returned by the GSM module in response to the first instruction, wherein the first feedback information comprises manufacturer information and model information of the GSM module.
3. The method of claim 1, wherein the configuration file comprises a first configuration file, and wherein the first configuration file stores a correspondence between an international mobile subscriber identity and an operator as well as a chat script;
the detecting the second information of the SIM card includes:
sending a second instruction to the GSM module, wherein the second instruction is used for inquiring second information, and the second information comprises operator information of the SIM card;
receiving second feedback information returned by the GSM module in response to the second instruction, wherein the second feedback information comprises an International Mobile Subscriber Identity (IMSI) of the SIM card;
and based on the first configuration file, determining the operator information of the SIM card and the name of the chat script according to the international mobile subscriber identity of the SIM card.
4. The method of claim 1, wherein the configuration file comprises a second configuration file, and wherein the second configuration file stores general information for dial-up networking;
generating a corresponding dialing script according to the first information of the GSM module, the second information of the SIM card and the configuration file comprises the following steps:
acquiring general information in the second configuration file, wherein the communication information comprises modification information based on the GSM module and a name of a chat script determined based on operator information of the SIM card;
and generating a corresponding dialing script according to the general information, wherein the dialing script designates the names of the chat scripts used by different operators.
CN201911151413.9A 2019-11-21 2019-11-21 Dialing networking method and device Active CN110944407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911151413.9A CN110944407B (en) 2019-11-21 2019-11-21 Dialing networking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911151413.9A CN110944407B (en) 2019-11-21 2019-11-21 Dialing networking method and device

Publications (2)

Publication Number Publication Date
CN110944407A CN110944407A (en) 2020-03-31
CN110944407B true CN110944407B (en) 2021-06-08

Family

ID=69908021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911151413.9A Active CN110944407B (en) 2019-11-21 2019-11-21 Dialing networking method and device

Country Status (1)

Country Link
CN (1) CN110944407B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810303A (en) * 2021-09-28 2021-12-17 深圳市智微智能软件开发有限公司 Self-adaptive method, device and equipment of communication module and storage medium
CN114500265A (en) * 2021-12-09 2022-05-13 北京连山科技股份有限公司 Automatic dial-up networking method and device for private network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104185195A (en) * 2014-09-12 2014-12-03 北京瑞汛世纪科技有限公司 Mobile web performance measuring method, device and system
CN104427521A (en) * 2013-08-29 2015-03-18 深圳市共进电子股份有限公司 Embedded type 3G (the third generation telecommunication) networking card working method and system
CN107969006A (en) * 2017-11-29 2018-04-27 艾体威尔电子技术(北京)有限公司 A kind of wireless pay terminal cellular network dials up on the telephone the method for automated validation

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047917A (en) * 2007-03-29 2007-10-03 宇龙计算机通信科技(深圳)有限公司 Method and device for multi-card mobile phone dialing on network
CN101321099B (en) * 2007-06-06 2011-07-20 艾威梯科技(北京)有限公司 Method, device and system for automatic IP network access
CN101702836A (en) * 2009-11-17 2010-05-05 中兴通讯股份有限公司 Method and device for establishing dial-up service
CN102547825B (en) * 2010-12-15 2015-04-22 上海贝尔股份有限公司 Home base station and method for positioning user equipment by means of signal attenuation
CN103052170B (en) * 2012-12-21 2016-04-13 Tcl通讯(宁波)有限公司 A kind of method that network based on cell phone network share service connects and mobile phone
TWI500335B (en) * 2013-03-15 2015-09-11 Realtek Semiconductor Corp Method for auto-switching transmission network for communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427521A (en) * 2013-08-29 2015-03-18 深圳市共进电子股份有限公司 Embedded type 3G (the third generation telecommunication) networking card working method and system
CN104185195A (en) * 2014-09-12 2014-12-03 北京瑞汛世纪科技有限公司 Mobile web performance measuring method, device and system
CN107969006A (en) * 2017-11-29 2018-04-27 艾体威尔电子技术(北京)有限公司 A kind of wireless pay terminal cellular network dials up on the telephone the method for automated validation

Also Published As

Publication number Publication date
CN110944407A (en) 2020-03-31

Similar Documents

Publication Publication Date Title
CN111404623B (en) Data transmission method, device and storage medium based on mobile network
CN110291840B (en) Connection processing method, device and medium
CN107820684B (en) Channel detection method, information sending method, device and communication equipment
CN110944407B (en) Dialing networking method and device
CN111654341A (en) Method, device, equipment and storage medium for testing wireless communication equipment
CN114554571A (en) Method and device for using network slice
CN112788183A (en) Incoming call prompting method and device, electronic equipment and storage medium
CN107562500B (en) Debugging device, method and equipment
CN109040651B (en) Video communication method and device
CN110337825B (en) Service switching method and device
CN106878654B (en) Video communication method and device
CN110933773B (en) Link monitoring method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN112492654A (en) Network control method, device and storage medium
CN111025921A (en) Local automation control method, local automation control device and electronic equipment
CN109379147B (en) Antenna test method and antenna test device
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
CN112020093B (en) Network diagnosis method and device
CN114218005A (en) Equipment fault detection and repair processing method, device and equipment
CN109982307B (en) Data transmission method and device
CN109542660B (en) Fault processing method and device
CN111984532A (en) Applet-based exception handling method and device
CN112311770A (en) Information platform selection method and device, electronic equipment and storage medium
CN105933491B (en) Test method, test device, test antenna and test system
CN113645695B (en) Method, device and storage medium for processing radio resource control link configuration signaling

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
TA01 Transfer of patent application right

Effective date of registration: 20210114

Address after: 2 / F, building 3, 19 Dongying Road, zhaoquanying Town, Shunyi District, Beijing

Applicant after: Beijing Lianshan Science and Technology Co.,Ltd.

Address before: 1 / F, building 3, 19 Dongying Road, zhaoquanying Town, Shunyi District, Beijing

Applicant before: BEIJING LIANSHAN TIMES TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant