CN112565031A - Parameter configuration method and terminal for PPP connection - Google Patents

Parameter configuration method and terminal for PPP connection Download PDF

Info

Publication number
CN112565031A
CN112565031A CN202011377372.8A CN202011377372A CN112565031A CN 112565031 A CN112565031 A CN 112565031A CN 202011377372 A CN202011377372 A CN 202011377372A CN 112565031 A CN112565031 A CN 112565031A
Authority
CN
China
Prior art keywords
parameter
parameters
information
configuration file
preset
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.)
Granted
Application number
CN202011377372.8A
Other languages
Chinese (zh)
Other versions
CN112565031B (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.)
Fujian Huisibo Digital Technology Co ltd
Original Assignee
Fuzhou Huisibo Information 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 Fuzhou Huisibo Information Technology Co ltd filed Critical Fuzhou Huisibo Information Technology Co ltd
Priority to CN202011377372.8A priority Critical patent/CN112565031B/en
Publication of CN112565031A publication Critical patent/CN112565031A/en
Application granted granted Critical
Publication of CN112565031B publication Critical patent/CN112565031B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2858Access network architectures
    • H04L12/2859Point-to-point connection between the data network and the subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a parameter configuration method and a terminal of PPP connection; the method comprises the steps of receiving a preset application request, and packaging information in the preset application request into first information; analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing step S3, and if so, executing step S4; stopping a PPPD daemon; analyzing parameters and parameter values in the first information, matching the parameters and parameter values with contents in a preset parameter configuration file, and operating the PPPD according to a matching result; the invention can flexibly configure and expand PPP parameters by presetting the application request and the parameter configuration file, can be suitable for various PPP connection scenes, supports host and device ends, can also support various PPPD connections, is not limited to the existing dial-up networking, such as supporting USB data transmission of two devices adopting PPPD.

Description

Parameter configuration method and terminal for PPP connection
Technical Field
The present invention relates to the field of mobile communication technologies, and in particular, to a method and a terminal for configuring parameters of PPP connection.
Background
PPP (Point to Point Protocol) provides a standard method for transmitting multi-Protocol packets over a Point-to-Point connection. PPP is located at the data link layer and is a link layer protocol designed for simple links for transmitting packets between peer units, which provide full duplex operation and deliver packets in sequence.
The PPP protocol is represented in the kernel as a PPP protocol processing module. The PPP protocol is arranged below the physical layer such as the Ethernet and the serial port, and the network layer such as the IP protocol is arranged above the physical layer.
When data is sent, the TCP/IP data packet is packaged by PPP and then sent by a serial port.
When receiving data, the data from the serial port is unpacked by PPP and then reported to the TCP/IP protocol layer.
The network protocol is realized in a layered mode, an upper layer generally only needs to know a direct lower layer, and an interface of an indirect lower layer is used only under the condition of extremely little data. For example, applications such as multimedia messages, browsers, and mail are programmed using socket interfaces, which only need to know the TCP/IP protocol, but not the PPP protocol. This hierarchical design simplifies the implementation of the protocol and the development of the application.
PPPD (Point to Point Protocol daemon) is a background service process, a process in user space, that processes strategic content. The PPPD realizes the control protocols of all the extended functions of authentication, compression/decompression, encryption/decryption and the like.
The most traditional communication mode between kernel space and user space is adopted between PPP protocol processing modules in the PPPD and the kernel: a device file. The device filename is/dev/PPP.
Through read system call, the PPPD can read the data packet of the PPP protocol processing module, and of course, the PPP protocol processing module will only send the data packet that should be processed by the PPPD to the PPPD.
Through the write system call, the PPPD can transfer the data packet to be sent to the PPP protocol processing module.
Through an ioctl system (input/output control, system call dedicated to device input/output operation) call, the PPPD can set parameters of the PPP protocol, and can establish/close a connection.
The PPP configuration technique of the existing modem module is as follows:
1. create a modem dialing script for the PPP program:
the script mainly configures AT commands, the commands are transmitted to the modem end, and the modem end converts the AT commands into signaling and mobile wireless network interaction after receiving the AT commands.
2. Create PPP on and PPP off scripts:
the PPP on script mainly executes the PPPD executable file, issues related PPPD parameters and calls a modem dialing script. The PPP off script is primarily used for PPP disconnection operations.
3. The operation method comprises the following steps:
(1) executing dial-up connection;
(2) dial-off is performed.
The existing PPP connection configuration technology has the following disadvantages:
1. and (5) parameter configuration is rigid. The existing PPP connection generally executes PPPD through a script, once the script is fixed, PPP parameters cannot be added or deleted later, and only the PPP parameters can be updated through ota.
2. The mode is single. The script can only be suitable for one mode, for example, the script can only be suitable for PPP dialing of a certain 3G/4G module, and the script cannot be universal and is suitable for various PPP dialing connections.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: provided are a parameter configuration method and a terminal for PPP connection, which can flexibly configure extended PPP parameters and have universality.
In order to solve the technical problems, the invention adopts the technical scheme that:
a method for configuring parameters of PPP connection includes:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
s3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result.
A parameter configuration terminal for PPP connection, comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the processor implementing the following steps when executing the computer program:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
s3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result.
The invention has the beneficial effects that: the invention provides a parameter configuration method and a terminal of PPP connection, which are characterized in that parameters and parameter values required by configuration are requested in a preset application, the parameters and the parameter values are matched with a preset parameter configuration file, and the PPPD is operated according to a matching result; the invention can flexibly configure and expand PPP parameters by presetting an application request and a parameter configuration file, can be suitable for various PPP connection scenes, supports host and device terminals, can also support various PPPD connections, is not limited to the existing dial-up networking, such as supporting USB data transmission of two devices adopting PPPD.
Drawings
Fig. 1 is a flowchart of a method for configuring parameters of a PPP connection according to an embodiment of the invention;
fig. 2 is a structural diagram of a parameter configuration terminal of PPP connection according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of a method for configuring parameters of PPP connection according to an embodiment of the invention;
description of reference numerals:
1. a PPP connection parameter configuration terminal; 2. a processor; 3. a memory.
Detailed Description
In order to explain technical contents, achieved objects, and effects of the present invention in detail, the following description is made with reference to the accompanying drawings in combination with the embodiments.
Referring to fig. 1 and fig. 3, a method for configuring parameters of PPP connection includes:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
s3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result.
From the above description, the beneficial effects of the present invention are: the invention provides a parameter configuration method and a terminal of PPP connection, which are characterized in that parameters and parameter values required by configuration are requested in a preset application, the parameters and the parameter values are matched with a preset parameter configuration file, and the PPPD is operated according to a matching result; the invention can flexibly configure and expand PPP parameters by presetting an application request and a parameter configuration file, can be suitable for various PPP connection scenes, supports host and device terminals, can also support various PPPD connections, is not limited to the existing dial-up networking, such as supporting USB data transmission of two devices adopting PPPD.
Further, step S4 is specifically:
s41, analyzing the parameters and parameter values in the first information, and matching the parameters and parameter values with the contents in a preset parameter configuration file;
s42, when the parameters and the parameter values are successfully matched with the contents in the preset parameter configuration file, reading option values corresponding to the parameters and the parameter values in the preset parameter configuration file, splicing the parameters, the parameter values and the option values into a PPP character string execution instruction, operating the PPPD, and returning an operation result;
and S43, when the parameter and the parameter value fail to be matched with the content in the preset parameter configuration file, returning the error information which is not supported.
According to the description, when the parameter and the parameter value are successfully matched with the content in the preset parameter configuration file, the further operation is carried out, otherwise, the unsupported information is returned, the validity of the parameter can be accurately checked, and tampering and malicious codes are prevented.
Further, the step S41 of matching the parameters and the parameter values with the content in the preset parameter configuration file specifically includes:
if the parameter value is a character string, matching the parameter with a preset parameter of the character string type in the parameter configuration file;
and if the parameter value is of the pool type, matching the parameter and the parameter value with a preset parameter and a preset parameter value of the pool type in a parameter configuration file.
According to the invention, different matching modes are carried out according to different parameter types, so that the accuracy of parameter matching is improved.
Further, step S4 is followed by:
and S5, maintaining the PPP connection state and returning state change information.
It can be known from the above description that the present invention also maintains the PPP connection state, and returns the connection state change information to the upper layer in time, which is beneficial for the user to learn the PPP connection state.
Further, a Java interface layer and a first daemon process are newly added, the content of the Java interface layer is obtained in step S1, and the content of the first daemon process is obtained in steps after S2 and S2;
the communication between the Java interface layer and the first daemon process is performed through socket information, that is, the first information in step S1 is socket information encapsulated by socket.
As can be seen from the above description, the communication of the socket information is performed between the Java interface layer and the first daemon process through the socket, so that the security of information interaction is improved.
Referring to fig. 2, a parameter configuration terminal for PPP connection includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the following steps:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
s3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result.
From the above description, the beneficial effects of the present invention are: the invention provides a parameter configuration method and a terminal of PPP connection, which are characterized in that parameters and parameter values required by configuration are requested in a preset application, the parameters and the parameter values are matched with a preset parameter configuration file, and the PPPD is operated according to a matching result; the invention can flexibly configure and expand PPP parameters by presetting an application request and a parameter configuration file, can be suitable for various PPP connection scenes, supports host and device terminals, can also support various PPPD connections, is not limited to the existing dial-up networking, such as supporting USB data transmission of two devices adopting PPPD.
Further, step S4 is specifically:
s41, analyzing the parameters and parameter values in the first information, and matching the parameters and parameter values with the contents in a preset parameter configuration file;
s42, when the parameters and the parameter values are successfully matched with the contents in the preset parameter configuration file, reading option values corresponding to the parameters and the parameter values in the preset parameter configuration file, splicing the parameters, the parameter values and the option values into a PPP character string execution instruction, operating the PPPD, and returning an operation result;
and S43, when the parameter and the parameter value fail to be matched with the content in the preset parameter configuration file, returning the error information which is not supported.
According to the description, when the parameter and the parameter value are successfully matched with the content in the preset parameter configuration file, the further operation is carried out, otherwise, the unsupported information is returned, the validity of the parameter can be accurately checked, and tampering and malicious codes are prevented.
Further, the step S41 of matching the parameters and the parameter values with the content in the preset parameter configuration file specifically includes:
if the parameter value is a character string, matching the parameter with a preset parameter of the character string type in the parameter configuration file;
and if the parameter value is of the pool type, matching the parameter and the parameter value with a preset parameter and a preset parameter value of the pool type in a parameter configuration file.
According to the invention, different matching modes are carried out according to different parameter types, so that the accuracy of parameter matching is improved.
Further, the processor executes the computer program after step S4 and includes:
and S5, maintaining the PPP connection state and returning state change information.
It can be known from the above description that the present invention also maintains the PPP connection state, and returns the connection state change information to the upper layer in time, which is beneficial for the user to learn the PPP connection state.
Further, when the processor executes the computer program, a Java interface layer and a first daemon process are added, the content of the Java interface layer is obtained in step S1, and the content of the first daemon process is obtained in steps after S2 and S2;
the communication between the Java interface layer and the first daemon process is performed through socket information, that is, the first information in step S1 is socket information encapsulated by socket.
As can be seen from the above description, the communication of the socket information is performed between the Java interface layer and the first daemon process through the socket, so that the security of information interaction is improved.
Referring to fig. 1 and fig. 3, a first embodiment of the present invention is:
a method for configuring parameters of PPP connection includes:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
in this embodiment, compared to the prior art, a Java interface layer and a first daemon process are added, step S1 is the content of the Java interface layer, and steps after step S2 and step S2 are the content of the first daemon process;
the communication between the Java interface layer and the first daemon process is performed through socket information, that is, the first information in step S1 is socket information encapsulated by socket;
in this embodiment, the APK sends a request including a start command, a stop command, and a configuration parameter through a PPPD API interface of the Java interface layer. The Java interface layer is used for providing an interface for APK calling, encapsulating socket information and transmitting pppd _ service to the information through the socket; and then receiving a processing result and connection state information returned by the pppd _ service through the socket, and returning the processing result and the connection state information to the APK application, wherein the pppd _ service is a first daemon process.
The socket information format is Header + Message + check bit + End, and the following specific steps are performed:
a Header: start bit 0 xFF;
the Message format is ab cdef cdef cdef, wherein a is 4 bytes and represents the command type, 1 represents start PPPD after the command type is converted into the integer, and 0 represents stop PPPD; b is 4 bytes, which indicates the total length of the subsequent data frame, i.e. the total byte length of b + c + d + e + f, c is 4 bytes, which indicates the length of key, the subsequent bytes are read as the length of key after being converted into integer, the length of d is specified by b, which is the content of key, the key is the PPP parameter key to be supported, e is 4 bytes, which indicates the length of value, the subsequent bytes are read as the length of value after being converted into integer, the length of f is specified by d, which is the content of value, and the value is the character string or the bool value of PPP parameter;
and (3) check bit algorithm: the calculation method adopts XOR sum, namely XOR calculation is carried out on data one by one;
end: end bit 0 xFF.
S3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result;
wherein, step S4 specifically includes:
s41, analyzing the parameters and parameter values in the first information, and matching the parameters and parameter values with the contents in a preset parameter configuration file;
s42, when the parameters and the parameter values are successfully matched with the contents in the preset parameter configuration file, reading option values corresponding to the parameters and the parameter values in the preset parameter configuration file, splicing the parameters, the parameter values and the option values into a PPP character string execution instruction, operating the PPPD, and returning an operation result;
s43, when the parameter and the parameter value fail to match with the content in the preset parameter configuration file, returning the error information which is not supported;
in step S41, the specific step of matching the parameters and parameter values with the content in the preset parameter configuration file is:
if the parameter value is a character string, matching the parameter with a preset parameter of the character string type in the parameter configuration file;
if the parameter value is a pool type, matching the parameter and the parameter value with a preset parameter and a preset parameter value of the pool type in a parameter configuration file;
and S5, maintaining the PPP connection state and returning state change information.
In this embodiment, the newly added daemon PPPD _ service is responsible for executing start and stop of the PPPD process, and the process is as follows:
receiving fixed format socket information packaged by a Java interface layer, analyzing the socket information to obtain a command type cmdtype; if the analysis process is wrong, error information is directly returned to the Java interface layer through the socket. (3) If the cmdtype is stop, directly performing stop pppd operation;
if cmdtype is start, the following keys and values, i.e., parameters and parameter values, continue to be explained. If the value of the key is a character string, comparing the key with the key supported by the StringType in the xml parameter configuration file, and if the key is inquired, indicating that the key is supported; if the query is not successful, the option value option corresponding to the key is considered not to be supported by the current software, and the method can also prevent malicious key from being issued.
Such as: the socket message analyzes that key is device _ name; value ═ dev/ttyGS0
And then inquiring whether the xml parameter configuration file contains item with the key being device _ name, if yes, indicating support, and if not, supporting. The format of the key of device _ name supported is as follows.
<StringType key="device_name"/>
If the value of the key is pool (0 or 1), comparing the key/value with the key and value supported by BoolType in xml, if the key/value is inquired, indicating that the key is supported, and then acquiring the corresponding option value; if the query is not successful, the option corresponding to the key is not supported by the current software, and the method can also prevent the malicious key from issuing.
Such as: the socket message analyzes out key as default _ route; value is 0
Then inquiring whether the xml parameter configuration file contains key default rout or not; if yes, the item option is read for configuring the PPPD parameter; not supported.
The supported formats are as follows. The option is obtained as nodefaultroute.
<BoolType key="default_route"value="0"option="nodefaultroute"/>
And splicing the parsed string and option into a PPP character string execution instruction, and returning a result to a Java interface layer through a socket when the execution success or the execution error of the PPPD operation is performed.
In addition, it is necessary to maintain various status changes of PPP connection, such as init, connecting, connected, disconnected, and notify the upper layer when the status changes.
The xml parameter configuration file format is referenced as follows:
Figure BDA0002807480960000091
wherein the pool type contains the key name, the value corresponding to the key, and the options value of the mapping.
Such as "default _ route" value ═ 1"option ═ default"/>, for example, boolType key ═ default _ route "value ═ 1" option
That is, when the upper layer transfer key is default _ route and has a value of 1, the PPPD _ service sets the option value option obtained by xml as default, and finally transfers the default parameter to the PPPD.
The string type contains only the key name.
Such as < StringType key ═ device _ name'/>
The pppd _ service detects the correctness and validity of the incoming parameters by the key name and value in the xml parameter configuration file.
Referring to fig. 2, the second embodiment of the present invention is:
a parameter configuration terminal 1 for PPP connection, comprising a processor 2, a memory 3 and a computer program stored on the memory 3 and operable on the processor 2, wherein the processor 2 implements the steps of the first embodiment when executing the computer program.
In summary, the present invention provides a method and a terminal for parameter configuration of PPP connection, which configure parameters and parameter values required by a preset application request, match the parameters and parameter values with a preset parameter configuration file, and operate the PPPD according to the matching result; the invention can flexibly configure and expand PPP parameters by presetting an application request and a parameter configuration file, can be suitable for various PPP connection scenes, supports host and device terminals, can also support various PPPD connections, is not limited to the existing dial-up networking, such as supporting USB data transmission of two devices adopting PPPD. And the Java interface layer and the first daemon process adopt socket message communication, thereby improving the safety of messages.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for configuring parameters of a PPP connection, comprising:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
s3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result.
2. The method for configuring parameters of PPP connection as recited in claim 1, wherein step S4 specifically comprises:
s41, analyzing the parameters and parameter values in the first information, and matching the parameters and parameter values with the contents in a preset parameter configuration file;
s42, when the parameters and the parameter values are successfully matched with the contents in the preset parameter configuration file, reading option values corresponding to the parameters and the parameter values in the preset parameter configuration file, splicing the parameters, the parameter values and the option values into a PPP character string execution instruction, operating the PPPD, and returning an operation result;
and S43, when the parameter and the parameter value fail to be matched with the content in the preset parameter configuration file, returning the error information which is not supported.
3. The method as claimed in claim 1, wherein the step S41 of matching the parameters and parameter values with the contents of the preset parameter configuration file specifically comprises:
if the parameter value is a character string, matching the parameter with a preset parameter of the character string type in the parameter configuration file;
and if the parameter value is of the pool type, matching the parameter and the parameter value with a preset parameter and a preset parameter value of the pool type in a parameter configuration file.
4. The method for configuring parameters of PPP connection as in claim 1, further comprising after step S4:
and S5, maintaining the PPP connection state and returning state change information.
5. The method of claim 1, 2, 3 or 4, wherein a Java interface layer and a first daemon process are added, the content of the Java interface layer is obtained in step S1, and the content of the first daemon process is obtained in steps after S2 and S2;
the communication between the Java interface layer and the first daemon process is performed through socket information, that is, the first information in step S1 is socket information encapsulated by socket.
6. A parameter configuration terminal for PPP connection, comprising a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the processor executes the computer program to implement the following steps:
s1, receiving a preset application request, and packaging information in the preset application request into first information;
s2, analyzing the content in the first information to obtain a command type, judging whether the command type is stop, if so, executing a step S3, and if the command type is start, executing a step S4;
s3, stopping PPPD;
s4, analyzing the parameters and parameter values in the first information, matching the parameters and parameter values with the contents in a preset parameter configuration file, and operating the PPPD according to the matching result.
7. The terminal for configuring parameters of PPP connection according to claim 6, wherein the step S4 specifically comprises:
s41, analyzing the parameters and parameter values in the first information, and matching the parameters and parameter values with the contents in a preset parameter configuration file;
s42, when the parameters and the parameter values are successfully matched with the contents in the preset parameter configuration file, reading option values corresponding to the parameters and the parameter values in the preset parameter configuration file, splicing the parameters, the parameter values and the option values into a PPP character string execution instruction, operating the PPPD, and returning an operation result;
and S43, when the parameter and the parameter value fail to be matched with the content in the preset parameter configuration file, returning the error information which is not supported.
8. The terminal of claim 6, wherein the matching of the parameters and parameter values with the contents of the preset parameter configuration file in step S41 specifically comprises:
if the parameter value is a character string, matching the parameter with a preset parameter of the character string type in the parameter configuration file;
and if the parameter value is of the pool type, matching the parameter and the parameter value with a preset parameter and a preset parameter value of the pool type in a parameter configuration file.
9. The terminal of claim 6, wherein the processor executes the computer program after step S4 and further comprises:
and S5, maintaining the PPP connection state and returning state change information.
10. A parameter configuration terminal for PPP connection as recited in claim 6, 7, 8 or 9, wherein said processor adds a Java interface layer and a first daemon process when executing said computer program, wherein the content of said Java interface layer is obtained in step S1, and the content of the first daemon process is obtained in steps after S2 and S2;
the communication between the Java interface layer and the first daemon process is performed through socket information, that is, the first information in step S1 is socket information encapsulated by socket.
CN202011377372.8A 2020-11-30 2020-11-30 Parameter configuration method and terminal for PPP connection Active CN112565031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011377372.8A CN112565031B (en) 2020-11-30 2020-11-30 Parameter configuration method and terminal for PPP connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011377372.8A CN112565031B (en) 2020-11-30 2020-11-30 Parameter configuration method and terminal for PPP connection

Publications (2)

Publication Number Publication Date
CN112565031A true CN112565031A (en) 2021-03-26
CN112565031B CN112565031B (en) 2023-05-05

Family

ID=75045551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011377372.8A Active CN112565031B (en) 2020-11-30 2020-11-30 Parameter configuration method and terminal for PPP connection

Country Status (1)

Country Link
CN (1) CN112565031B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584569A (en) * 2022-03-01 2022-06-03 展讯通信(上海)有限公司 Method for supporting PPP dialing, PPP dialing method and terminal equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094310A (en) * 2006-06-23 2007-12-26 华为技术有限公司 Method, application, and device for changing application states in multiple current services
CN101159591A (en) * 2007-08-06 2008-04-09 中兴通讯股份有限公司 Method and system of implementing different type port image
CN101188614A (en) * 2007-11-28 2008-05-28 华为技术有限公司 A method, system and device for secure control of the user access
CN101242236A (en) * 2008-01-24 2008-08-13 张建中 Method, device and system for packing data packets into link layer frame
CN101478403A (en) * 2009-01-15 2009-07-08 中山大学 UPnP digital household gateway apparatus having security mechanism
CN102291493A (en) * 2011-08-25 2011-12-21 华为终端有限公司 Method, relevant device and system for configuring application parameter of mobile terminal
CN104750780A (en) * 2015-03-04 2015-07-01 北京航空航天大学 Hadoop configuration parameter optimization method based on statistic analysis
CN105698844A (en) * 2014-11-24 2016-06-22 江苏省精创电气股份有限公司 Temperature and humidity recorder safety control method
CN106357889A (en) * 2016-08-22 2017-01-25 杭州字节信息技术有限公司 Intelligence framework of Beidou satellite communication and navigation based on Android system and application
CN108737259A (en) * 2018-05-08 2018-11-02 平安证券股份有限公司 Gateway device, data transmission method and storage medium
CN110601880A (en) * 2019-09-02 2019-12-20 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment
CN111813701A (en) * 2020-09-09 2020-10-23 平安国际智慧城市科技股份有限公司 HTTP-based interface testing method and device, computer equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094310A (en) * 2006-06-23 2007-12-26 华为技术有限公司 Method, application, and device for changing application states in multiple current services
CN101159591A (en) * 2007-08-06 2008-04-09 中兴通讯股份有限公司 Method and system of implementing different type port image
CN101188614A (en) * 2007-11-28 2008-05-28 华为技术有限公司 A method, system and device for secure control of the user access
CN101242236A (en) * 2008-01-24 2008-08-13 张建中 Method, device and system for packing data packets into link layer frame
CN101478403A (en) * 2009-01-15 2009-07-08 中山大学 UPnP digital household gateway apparatus having security mechanism
CN102291493A (en) * 2011-08-25 2011-12-21 华为终端有限公司 Method, relevant device and system for configuring application parameter of mobile terminal
CN105698844A (en) * 2014-11-24 2016-06-22 江苏省精创电气股份有限公司 Temperature and humidity recorder safety control method
CN104750780A (en) * 2015-03-04 2015-07-01 北京航空航天大学 Hadoop configuration parameter optimization method based on statistic analysis
CN106357889A (en) * 2016-08-22 2017-01-25 杭州字节信息技术有限公司 Intelligence framework of Beidou satellite communication and navigation based on Android system and application
CN108737259A (en) * 2018-05-08 2018-11-02 平安证券股份有限公司 Gateway device, data transmission method and storage medium
CN110601880A (en) * 2019-09-02 2019-12-20 平安科技(深圳)有限公司 Cloud platform, service processing method, command interface and computer equipment
CN111813701A (en) * 2020-09-09 2020-10-23 平安国际智慧城市科技股份有限公司 HTTP-based interface testing method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114584569A (en) * 2022-03-01 2022-06-03 展讯通信(上海)有限公司 Method for supporting PPP dialing, PPP dialing method and terminal equipment

Also Published As

Publication number Publication date
CN112565031B (en) 2023-05-05

Similar Documents

Publication Publication Date Title
US7404148B2 (en) Method, system and apparatus using a sensory cue to indicate subsequent action characteristics for data communications
US9167420B2 (en) Mobile terminal system
US8805957B2 (en) Method and apparatus for communications over low bandwidth communications networks
EP2487838B1 (en) Data card and method for internet access of data card
US8788814B2 (en) Secure data transfer using an embedded system
US6023698A (en) System and method for transparently registering and updating information over the internet
US9497620B2 (en) Method and system for implementing smart card remote operation based on smart card web server
WO2000068824A9 (en) Method and system for network management
WO1999061984A1 (en) Method and apparatus for wireless internet access
WO2008148278A1 (en) Method for exchanging large-capacity data between mobile terminal and smart card
US11709722B2 (en) Extensible communication framework and communication method supporting multiple communication protocols
CN112565031B (en) Parameter configuration method and terminal for PPP connection
EP1464195B1 (en) Applet download in a communication system
EP1562115A2 (en) Socket connections over a serial link
EP1671467A1 (en) Method and system for establishing a data link layer protocol on a physical layer port connection
WO2022121682A1 (en) Method and system for communication between apple mobile device andapple external accessory
JP3887263B2 (en) IC card system and IC card communication control application
US20030018831A1 (en) Application programming interface for providing direct access to a WSP layer of a WAP stack
CN113885816A (en) Method, system, device and storage medium for printing by virtual printing device
JP2000134602A (en) Image transmission device, image reception device, image transmission system, control method therefor and storage medium
Tiedemann nfcpy documentation
US20030017850A1 (en) System, method, and apparatus for providing high-speed access to data stored at a digital cellular switch
CN117931149A (en) Low code device for multi-source API access
CN116170798A (en) Data communication method, device, storage medium and electronic equipment
GB2307625A (en) Communication over wireless modem using sockets protocol

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 201-9, Zone C, No. 18 Guanri Road, Phase II, Software Park, Torch High tech Zone, Xiamen City, Fujian Province, 361000

Patentee after: Fujian Huisibo Digital Technology Co.,Ltd.

Address before: No. 89 Software Avenue, Tongpan Road, Gulou District, Fuzhou City, Fujian Province, 350000. 510, Floor 5, 34 #, Zone C, Fuzhou Software Park

Patentee before: FUZHOU HUISIBO INFORMATION TECHNOLOGY Co.,Ltd.