CN107734007A - A kind of communication module and its implementation that PPP Server functions are realized based on PPPD - Google Patents

A kind of communication module and its implementation that PPP Server functions are realized based on PPPD Download PDF

Info

Publication number
CN107734007A
CN107734007A CN201710889526.3A CN201710889526A CN107734007A CN 107734007 A CN107734007 A CN 107734007A CN 201710889526 A CN201710889526 A CN 201710889526A CN 107734007 A CN107734007 A CN 107734007A
Authority
CN
China
Prior art keywords
ppp
server
modules
pppd
realized based
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710889526.3A
Other languages
Chinese (zh)
Inventor
常洪山
杨虎岳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Teng River Wisdom Energy Technology Co Ltd
Original Assignee
Beijing Teng River Wisdom Energy 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 Teng River Wisdom Energy Technology Co Ltd filed Critical Beijing Teng River Wisdom Energy Technology Co Ltd
Priority to CN201710889526.3A priority Critical patent/CN107734007A/en
Publication of CN107734007A publication Critical patent/CN107734007A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W92/00Interfaces specially adapted for wireless communication networks
    • H04W92/04Interfaces between hierarchically different network devices
    • H04W92/10Interfaces between hierarchically different network devices between terminal device and access point, i.e. wireless air interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to and computer communication technology field, more particularly to a kind of communication module and its implementation that PPP Server functions are realized based on PPPD, a kind of communication module that PPP Server functions are realized based on PPPD, including a 4G module, the 4G inside modules have application processor and BBP, carried and communicated by DMA data between the application processor and BBP, there is AT Server modules and PPP Server modules, PPP0 modules and the modules of CP243 1 in the 4G inside modules application processor;Communicated to connect between the AT Server modules and PPP Server modules by pseudo-terminal, the external application processors of AT Server and UART are write to each other;The present invention also provides the Realization Method of Communication of the module, and module of the present invention is portable strong, reduces time and the financial cost of exploitation;Using open source software, the maintenance and upgrade cost of software is reduced.

Description

A kind of communication module and its implementation that PPP-Server functions are realized based on PPPD
Technical field
The present invention relates to computer communication technology field, and in particular to a kind of to realize PPP-Server functions based on PPPD Communication module and its implementation.
Background technology
In network communication technology field, generally use in the following manner is communicated:
As 4G data modules use application processor+BP integrated designs more, on the one hand ensure that BP parts independence and Stability, on the other hand also enhance the scalability in functions of modules.The PPP dial features of 4G data modules are a standard configurations Function, acquiescence only provide support to USB.4G data modules, which provide, supports that UART mouths PPP dial features are the needs in market.
In the prior art, a kind of scheme is:Supporting to carry out PPP dialing on UART mouths, but PPP-Server is realized BBP in module;, it is necessary to realize that difference is big in different platform in the program, portable poor, the later stage of the program Service, it is strong to chip supplier dependence, bring inconvenience.Another scheme is:It is only supported at progress PPP dialing in USB port; The program, although simply, to the bad adaptability in market;It is difficult to promote.
The content of the invention
The technical problem of solution
In view of the shortcomings of the prior art, the invention provides a kind of communication mould that PPP-Server functions are realized based on PPPD Block and its implementation, it is desirable to provide a kind of communication module that PPP-Server functions are realized based on PPPD, allow 4G data modules Support to carry out PPP dialing on UART mouths, for solving the problems, such as proposed in background technology.
Technical scheme
To realize object above, the present invention is achieved by the following technical programs:
A kind of communication module that PPP-Server functions are realized based on PPPD, including a 4G module, in the 4G modules Portion has application processor and BBP, between the application processor and BBP between removed by DMA data Fortune communication, the 4G inside modules application processor have AT-Server modules and PPP-Server modules, PPP0 modules with CP243-1 modules;Communicated to connect between the AT-Server modules and PPP-Server modules by pseudo-terminal, the AT- The external application processors of Server and UART are write to each other, by routeing translation function between the PPP0 modules and CP243-1 Communication.
A kind of method that PPP-Server functions are realized based on PPPD,
1) applications processor initiates PPP dialing by PPP dialing process to 4G Modem;And open route to turn Change;
2) after the completion of dialling, configuration IP address, the passage that applications processor can be established by PPP dialing, to Desired destination server initiates connection, transceiving data;
3) data of applications processor, UART mouths, AT-Server, pseudo-terminal, PPPD, route conversion are passed sequentially through Mechanism, ethx, DMA data carry, finally via 4G modules eat dishes without rice or wine be sent to destination server;Similarly, from destination service The data of device, inversely reach applications processor via above-mentioned interface and equipment.
Further, the AT-Server is responsible for handling AT orders and forwards PPP frames, and the PPP-Server is responsible for All PPP business.
Further, the 4G inside modules application processor is Ubuntu systems, and internal BBP is MsgOS System.
Further, the configuration IP address step is as follows:
1) configuration file blacklist.conf disablings IPV6 is changed;
2) blacklist ipv6 are finally added in document, then checks modification result;
3) IP (IP address and subnet mask that set network interface card eth0) is set;
4) gateway is set;
5) DNS modifications/etc/resolv.conf is set, adds the nameserver DNS He of address 1 wherein Complete nameserver DNS address 2.
Beneficial effect
The invention provides a kind of communication module and its implementation that PPP-Server functions are realized based on PPPD, with showing There is known technology to compare, of the invention has the advantages that:
1st, a kind of communication module that PPP-Server functions are realized based on PPPD of the present invention, is made by pseudo-terminal AT-Server and PPPD carries out data interaction;Conversion is route by IPTABLES+ and carries out data forwarding;Pseudo-terminal is merely responsible for turning PPP frames are sent out, the purpose being achieved in that can accomplish that PPP source programs need not be changed.So that system module is portable strong, reduce The time of exploitation and financial cost;Using open source software, the maintenance and upgrade cost of software is reduced.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the 4G module entire block diagrams of the present invention;
Fig. 2 is the PPP dial business flow charts of the present invention;
Term is explained in figure:
AP (Aplication Process) application processor;
BP (Baseband Process) BBP;
PPP (Point-to-Point Protocol) point-to-point protocol;
The Long Term Evolution of 4G (Long Term Evolution) universal mobile communications technology;
C/S (Client-Server model) client-server end model;
UMTS (Universal Mobile Telecommunications System) UMTS;
UART (Universal Asynchronous Receiver/Transmitter) UART Universal Asynchronous Receiver Transmitter;
USB (Universal Serial Bus) USB;
Modem modems;
The program of increasing income that PPPD realizes in accordance with point-to-point protocol;
The network card equipment of PPP0 PPPD programming automatic generations;
Ethx follows the network card equipment of Ethernet protocol;
DMA data carries (Direct Memory Access) DMA data and carries communication mechanism;
LCP (Link Control Protocol) LCP;
P application processors (Password Authentication Protocol) password authentication protocol;
CH application processors (Challenge Handshake Authentication Protocol) inquire handshake authentication Agreement;
IPCP (IP Control Protocol) IP control protocol.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Embodiment:
A kind of communication module that PPP-Server functions are realized based on PPPD of the present embodiment, including a 4G module, institute Stating 4G inside modules has application processor and BBP, between the application processor and BBP between pass through DMA data carries communication, the 4G inside modules application processor have AT-Server modules and PPP-Server modules, PPP0 modules and CP243-1 modules;Pass through pseudo-terminal communication link between the AT-Server modules and PPP-Server modules Connect, the external application processors of the AT-Server and UART are write to each other, and pass through road between the PPP0 modules and CP243-1 Communicated by translation function.
A kind of method that PPP-Server functions are realized based on PPPD,
1) applications processor initiates PPP dialing by PPP dialing process to 4G Modem;And open route to turn Change;
2) after the completion of dialling, configuration IP address, the passage that applications processor can be established by PPP dialing, to Desired destination server initiates connection, transceiving data;
3) data of applications processor, UART mouths, AT-Server, pseudo-terminal, PPPD, route conversion are passed sequentially through Mechanism, ethx, DMA data carry, finally via 4G modules eat dishes without rice or wine be sent to destination server;Similarly, from destination service The data of device, inversely reach applications processor via above-mentioned interface and equipment.
Further, the AT-Server is responsible for handling AT orders and forwards PPP frames, and the PPP-Server is responsible for All PPP business.
Further, the 4G inside modules application processor is Ubuntu systems, and internal BBP is MsgOS System.
Further, the configuration IP address step is as follows:
1) configuration file blacklist.conf disablings IPV6 is changed;
2) blacklist ipv6 are finally added in document, then checks modification result;
3) IP (IP address and subnet mask that set network interface card eth0) is set;
4) gateway is set;
5) DNS modifications/etc/resolv.conf is set, adds the nameserver DNS He of address 1 wherein Complete nameserver DNS address 2.
Reference picture 2, it is as follows to describe function course in detail according to step:
Applications processor sends AT+CGDCONT=1, and " IP ", " CMNET " is necessary before PPP dials to configure Parameter;
4G modules reply OK, represent that AT instructions run succeeded;
Applications processor sends ATD*99****1#, to initiate PPP dialing;
4G modules reply CONNECT, represent:1, AT instruction runs succeeded;
Applications processor receives CONNECT, and now, applications processor and 4G modules all have been switched to PPP Dialing mode;
Applications processor and 4G modules carry out PPP_LCP negotiations;
Applications processor and 4G modules carry out PPP_P application processors or PPP_CH application processor identity is tested Card;
Applications processor and 4G modules carry out PPP_IPCP network address negotiations;
Between applications processor and 4G modules, normal data communication is carried out;
It is as follows to open route translation function step:
1) the route translation function of Ubuntu systems is opened:
echo 1>/proc/sys/net/ipv4/ip_forward;
2) data are set to go out path:
iptables-t nat-A POSTROUTING-o ethx-j SNAT--to A.B.C.D;
3) data entering path is set:
iptables-t nat-A PREROUTING-i ethx-j DNAT--to A.B.C.D;
4) IP address A.B.C.D refers to the IP address obtained from network side;
A kind of communication module that PPP-Server functions are realized based on PPPD of the present invention, makes AT- by pseudo-terminal Server and PPPD carries out data interaction;Conversion is route by IPTABLES+ and carries out data forwarding;Pseudo-terminal is merely responsible for forwarding PPP frames, the purpose being achieved in that can accomplish that PPP source programs need not be changed.So that system module is portable strong, reduce The time of exploitation and financial cost;Using open source software, the maintenance and upgrade cost of software is reduced.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including key element.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments The present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each implementation Technical scheme described in example is modified, or carries out equivalent substitution to which part technical characteristic;And these modification or Replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (6)

  1. A kind of 1. communication module that PPP-Server functions are realized based on PPPD, it is characterised in that:It is described including a 4G module 4G inside modules have application processor and BBP, between the application processor and BBP between pass through DMA data carries communication, the 4G inside modules application processor have AT-Server modules and PPP-Server modules, PPP0 modules and CP243-1 modules;Pass through pseudo-terminal communication link between the AT-Server modules and PPP-Server modules Connect, the external application processors of the AT-Server and UART are write to each other, and pass through road between the PPP0 modules and CP243-1 Communicated by translation function.
  2. A kind of 2. method that PPP-Server functions are realized based on PPPD, it is characterised in that
    1) applications processor initiates PPP dialing by PPP dialing process to 4G Modem;And open route conversion;
    2) after the completion of dialling, IP address, the passage that applications processor can be established by PPP dialing, to expectation are configured Destination server initiate connection, transceiving data;
    3) data of applications processor, UART mouths is passed sequentially through, AT-Server, pseudo-terminal, PPPD, route transformation mechanism, Ethx, DMA data carry, finally via 4G modules eat dishes without rice or wine be sent to destination server;Similarly, the number from destination server According to inversely via above-mentioned interface and equipment arrival applications processor.
  3. A kind of 3. communication module that PPP-Server functions are realized based on PPPD according to claim 1, it is characterised in that The AT-Server is responsible for handling AT orders and forwards PPP frames, and the PPP-Server is responsible for all PPP business.
  4. A kind of 4. communication module that PPP-Server functions are realized based on PPPD according to claim 1, it is characterised in that The 4G inside modules application processor is Ubuntu systems.
  5. A kind of 5. communication module that PPP-Server functions are realized based on PPPD according to claim 1, it is characterised in that The BBP of the 4G inside modules is MsgOS systems.
  6. A kind of 6. communication module that PPP-Server functions are realized based on PPPD according to claim 1, it is characterised in that The configuration IP address step is as follows:
    1) configuration file blacklist.conf disablings IPV6 is changed;
    2) blacklist ipv6 are finally added in document, then checks modification result;
    3) IP (IP address and subnet mask that set network interface card eth0) is set;
    4) gateway is set;
    5) DNS modifications/etc/resolv.conf is set, adds nameserver DNS address 1 and nameserver wherein Complete DNS address 2.
CN201710889526.3A 2017-09-27 2017-09-27 A kind of communication module and its implementation that PPP Server functions are realized based on PPPD Pending CN107734007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710889526.3A CN107734007A (en) 2017-09-27 2017-09-27 A kind of communication module and its implementation that PPP Server functions are realized based on PPPD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710889526.3A CN107734007A (en) 2017-09-27 2017-09-27 A kind of communication module and its implementation that PPP Server functions are realized based on PPPD

Publications (1)

Publication Number Publication Date
CN107734007A true CN107734007A (en) 2018-02-23

Family

ID=61207028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710889526.3A Pending CN107734007A (en) 2017-09-27 2017-09-27 A kind of communication module and its implementation that PPP Server functions are realized based on PPPD

Country Status (1)

Country Link
CN (1) CN107734007A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917418A (en) * 2020-06-10 2020-11-10 北京市腾河智慧能源科技有限公司 Method, device, medium and equipment for compressing working condition data
CN114584569A (en) * 2022-03-01 2022-06-03 展讯通信(上海)有限公司 Method for supporting PPP dialing, PPP dialing method and terminal equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209526A (en) * 2016-06-30 2016-12-07 龙尚科技(上海)有限公司 A kind of communication module and its implementation realizing PPP Server function based on PPPD

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209526A (en) * 2016-06-30 2016-12-07 龙尚科技(上海)有限公司 A kind of communication module and its implementation realizing PPP Server function based on PPPD

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917418A (en) * 2020-06-10 2020-11-10 北京市腾河智慧能源科技有限公司 Method, device, medium and equipment for compressing working condition data
CN111917418B (en) * 2020-06-10 2023-09-15 北京市腾河智慧能源科技有限公司 Compression method, device, medium and equipment for working condition data
CN114584569A (en) * 2022-03-01 2022-06-03 展讯通信(上海)有限公司 Method for supporting PPP dialing, PPP dialing method and terminal equipment

Similar Documents

Publication Publication Date Title
US7113520B1 (en) Local protocol server
US7006467B2 (en) Method and system for simulating multiple independent client devices in a wired or wireless network
US7454233B2 (en) Communications of UICC in mobile devices using internet protocols
TWI228661B (en) Generic external proxy
CN101600224B (en) Realization method for supporting a plurality of PDP contexts by wireless data card and wireless data card
HK1044432A1 (en) Establishing a packet network call between a mobile terminal device and an interworking function
CN100380902C (en) Method for connection of data terminal devices to data network
US9191995B2 (en) Radio access network node with IP interface
CN102546407B (en) File transmitting method and device
CN107734007A (en) A kind of communication module and its implementation that PPP Server functions are realized based on PPPD
WO2023185130A1 (en) Data forwarding apparatus and method, electronic device, and storage medium
CN109525639A (en) Vehicle electronic device connects the method that smart phone realizes online by USB line
WO2021121018A1 (en) Network roaming method and apparatus, terminal device and storage medium
CN1319336C (en) Method for building special analog network
CN106209526B (en) A kind of communication module and its implementation for realizing PPP-Server function based on PPPD
CN101150818A (en) A method and mobile terminal for access to built-in WWW server of user recognition card
KR20040111612A (en) System And Method For A Routing Device To Securely Share Network Data With A Host Utilizing A Hardware Firewall
CN109587749A (en) Data transmission method for uplink and system
CN112839355B (en) IPSEC testing system and method in network of 5G network
CN115174310A (en) PDN dialing and configuration method, system, device, equipment and storage medium
CN114301831A (en) Service transmission method, device and storage medium
CN106533800A (en) Method for network adaptation of terminal, and RNDIS equipment
CN103888363A (en) Internet access service flow dividing method and apparatus
CN114339769B (en) Method and system for accessing WIFI user to core network
KR100975865B1 (en) Session establishment method using gateway server and phone number

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223