{"id":194,"date":"2010-02-22T13:53:26","date_gmt":"2010-02-22T19:53:26","guid":{"rendered":"http:\/\/dmartenson.dc.multitech.prv\/developer\/?page_id=194"},"modified":"2014-10-07T11:09:08","modified_gmt":"2014-10-07T16:09:08","slug":"ppp-peers","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/corecdp\/applications\/ppp-peers\/","title":{"rendered":"Establishing a Cellular Data (PPP) Connection"},"content":{"rendered":"<p>To establish a cellular data link, you must configure and initiate a PPP connection.  Sample options files and chat scripts are provided in the ppp peers directory <code>\/etc\/ppp\/peers<\/code>.  Anything specific to the network or connection should be placed in one of these files. Global options should be<br \/>\nplaced in <code>\/etc\/ppp\/options<\/code>.<\/p>\n<div class=\"note\">See the man pages on your development system for additional <strong>chat<\/strong> and <strong>pppd<\/strong> information.<\/div>\n<p><strong><br \/>\nTo set up a GSM (G2, H4, H5,radios) cellular data connection using default options:<br \/>\n<\/strong><\/p>\n<pre class=\"brush:shell\">\r\n# Set \"APN\" to the APN for your cellular provider\r\n# ocg-set-apn added in CoreCDP 2.3.3\r\n# If running CoreCDP 2.2.x or earlier, \r\n# you must edit \/etc\/ppp\/peers\/gsm_chat to set your APN\r\nocg-set-apn APN\r\n\r\n# Dial the connection (using \/etc\/ppp\/peers\/gsm config)\r\npppd call gsm\r\n\r\n# Verify ppp0 is up\r\nifconfig ppp0\r\nppp0      Link encap:Point-to-Point Protocol  \r\n          inet addr:33.140.12.18  P-t-P:33.140.12.18  Mask:255.255.255.255\r\n          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1\r\n          RX packets:7 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:3 \r\n          RX bytes:106 (106.0 B)  TX bytes:145 (145.0 B)\r\n<\/pre>\n<p><strong><br \/>\nTo set up a CDMA (EV2, EV3 radios) cellular data connection:<br \/>\n<\/strong><\/p>\n<pre class=\"brush:shell\">\r\n# Dial the connection (using \/etc\/ppp\/peers\/cdma config)\r\npppd call cdma\r\n\r\n# Verify ppp0 is up\r\nifconfig ppp0\r\nppp0      Link encap:Point-to-Point Protocol  \r\n          inet addr:33.140.12.18  P-t-P:33.140.12.18  Mask:255.255.255.255\r\n          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1\r\n          RX packets:7 errors:0 dropped:0 overruns:0 frame:0\r\n          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0\r\n          collisions:0 txqueuelen:3 \r\n          RX bytes:106 (106.0 B)  TX bytes:145 (145.0 B)\r\n<\/pre>\n<p><strong><br \/>\nTo stop a PPP connection:<br \/>\n<\/strong><\/p>\n<pre class=\"brush:shell\">\r\n# send SIGTERM to pppd, which will cause it to hang up and exit cleanly\r\nkillall pppd\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To establish a cellular data link, you must configure and initiate a PPP connection. Sample options files and chat scripts are provided in the ppp peers directory \/etc\/ppp\/peers. Anything specific to the network or connection should be placed in one of these files. Global options should be placed in \/etc\/ppp\/options. See the man pages on [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":324,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-194","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":19,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/194\/revisions"}],"predecessor-version":[{"id":369,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/194\/revisions\/369"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/324"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}