Date: Wed, 14 Aug 2024 21:15:05 +0200 From: Dirk-Willem van Gulik <dirkx@webweaving.org> To: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Minor patch for ppp.conf Message-ID: <1101247A-CCE8-4FA1-A784-6A34261F0495@webweaving.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Minor patch for ppp.conf below. This makes the out of the box u3g(4) config/command referred to from its manpage a lot more usable out of the box. Especially now that virtually everyone uses “internet” as the APN and Usernames/passwords are no longer required. I would not mind some advice on the speed setting - as obviously the card can handle a much higher baudrate; but AFAIK these cannot be set from ppp. With kind regards, Dw. *** ppp.conf.orig Wed Aug 14 21:03:58 2024 --- ppp.conf Wed Aug 14 21:09:40 2024 *************** *** 36,43 **** --- 36,61 ---- add default HISADDR # Add a (sticky) default route u3g: + # Configuration for the u3g(4) 3G and 4G datacards setup. + # + # Fill out the APN in below (often 'internet'). The PIN is + # assumed to be disabled (e.g. '0000'). If not; add a line + # + # AT+CPIN=123 OK \ + # + # Above the AT+CPIN? line in below dial string. Some providers + # also need an authname/authkey and/or a special phone number. + # set device /dev/cuaU0.0 set phone *99\# + set speed 921600 + set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ + \"\" \ + AT OK-AT-OK \ + AT+CPIN? READY \ + AT+CSQ OK \ + AT+CGDCONT=1,\\\"IP\\\",\\\"<your-providers-APN>\\\" OK \ + ATDT\\T TIMEOUT 40 CONNECT" set timeout 0 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR # Add a (sticky) default route [-- Attachment #2 --] <html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><font face="Courier New">Minor patch for ppp.conf below. This makes the out of the </font><div><font face="Courier New">box u3g(4) config/command referred to from its manpage </font><span style="font-family: "Courier New";">a </span></div><div><font face="Courier New">lot more usable out of the box. </font></div><div><font face="Courier New"><br></font></div><div><span style="font-family: "Courier New";">Especially now </span><span style="font-family: "Courier New";">that virtually everyone uses “internet” as </span></div><div><span style="font-family: "Courier New";">the APN and </span><span style="font-family: "Courier New";">Usernames/passwords are no longer required.</span></div><div><br></div><div><font face="Courier New">I would not mind some advice on the speed setting - as obviously </font></div><div><font face="Courier New">the card can handle a much higher baudrate; but AFAIK these</font></div><div><font face="Courier New">cannot be set from ppp.</font></div><div><font face="Courier New"><br></font></div><div><font face="Courier New">With kind regards,</font></div><div><font face="Courier New"><br>Dw.</font><div><font face="Courier New"><br>*** ppp.conf.orig Wed Aug 14 21:03:58 2024<br> --- ppp.conf Wed Aug 14 21:09:40 2024<br> ***************<br> *** 36,43 ****<br> --- 36,61 ----<br> add default HISADDR # Add a (sticky) default route</font></div><div><font face="Courier New"><br> u3g:<br> + # Configuration for the u3g(4) 3G and 4G datacards setup.<br> + #<br> + # Fill out the APN in below (often 'internet'). The PIN is<br> + # assumed to be disabled (e.g. '0000'). If not; add a line<br> + # </font></div><div><font face="Courier New">+ # AT+CPIN=123 OK \<br> + #<br> + # Above the AT+CPIN? line in below dial string. Some providers<br> + # also need an authname/authkey and/or a special phone number.<br> + #<br> set device /dev/cuaU0.0<br> set phone *99\#<br> + set speed 921600<br> + set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \<br> + \"\" \<br> + AT OK-AT-OK \<br> + </font><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";">AT+CPIN? READY \</span></div><div><font face="Courier New"> + </font><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";">AT+CSQ OK \</span></div><div><font face="Courier New"> + </font><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";">AT+CGDCONT=1,\\\"IP\\\",\\\"<your-providers-APN>\\\" OK \</span></div><div><font face="Courier New"> + </font><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";"> </span><span style="font-family: "Courier New";">ATDT\\T TIMEOUT 40 CONNECT"</span></div><div><font face="Courier New"> set timeout 0<br> set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0<br> add default HISADDR # Add a (sticky) default route</font></div></div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1101247A-CCE8-4FA1-A784-6A34261F0495>
