From owner-freebsd-questions@freebsd.org Wed Dec 11 14:24:41 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2CDCF1D7CAC for ; Wed, 11 Dec 2019 14:24:41 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene2.sentex.ca", Issuer "pyroxene2.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Xzhm2hYyz496k for ; Wed, 11 Dec 2019 14:24:40 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:8070:e25c:7c11:c7b9] ([IPv6:2607:f3e0:0:4:8070:e25c:7c11:c7b9]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id xBBEOdEi028758 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 11 Dec 2019 09:24:39 -0500 (EST) (envelope-from mike@sentex.net) Subject: Re: u3g Sierra Wireless LTE device disconnects ppp after 2-3MB of outgoing traffic To: Adrian Gschwend , freebsd-questions@freebsd.org References: <972e8912-0ed7-63c8-d079-c11b12f8c9ad@netlabs.org> <6e6176d5-c9c5-b38a-0fe6-8b21c9c33824@sentex.net> <6d5e9963-bdfe-81b3-73be-6ee349f9091e@netlabs.org> From: mike tancsa Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; keydata= mQENBFywzOMBCACoNFpwi5MeyEREiCeHtbm6pZJI/HnO+wXdCAWtZkS49weOoVyUj5BEXRZP xflV2ib2hflX4nXqhenaNiia4iaZ9ft3I1ebd7GEbGnsWCv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XS+GK7DU0fjzX57H5bZ6komE5eY4p3oWT/CwVPSGfPs8jOwARAQAB iQE8BBgBCAAmFiEEmuvCXT0aY6hs4SbWeVOEFl5WrMgFAlywzOQCGwwFCQHhM4AACgkQeVOE Fl5WrMhmjQf/dBCjAVn1J0GzSsHiLvSAQz1cchbdy8LD0Tnpzjgp5KLU7sNojbI8vqt4yKAi cayI88j8+xxNXPMWM4pHELuUuVHS5XTpHa/wwulUtI5w/zyKlUDsIvqTPZLUEwH7DfNBueVM WyNaIjV2kxSmM8rNMC+RkgyfbjGLCkmWsMRVuLIUYpl5D9WHmenUbiErlKU2KvEEXEg/aLKq 3m/AdM9RAYsP9O4l+sAZEfyYoNJzDhTZMzn/9Q0uFPLK9smDQh4WBTFaApveVJPHRKmHPoNF Xxj+yScYdQ4SKH34WnhNSELvnZQ3ulH5tpASmm0w+GxfZqSc8+QCwoKtBRDUxoE56A== Message-ID: <56eb59b2-6cbb-cfb0-4594-46644aee7164@sentex.net> Date: Wed, 11 Dec 2019 09:24:39 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <6d5e9963-bdfe-81b3-73be-6ee349f9091e@netlabs.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 47Xzhm2hYyz496k X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [-2.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; DMARC_NA(0.00)[sentex.net]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-1.71)[ipnet: 2607:f3e0::/32(-4.93), asn: 11647(-3.55), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2019 14:24:41 -0000 On 12/11/2019 2:11 AM, Adrian Gschwend wrote: > On 03.12.19 22:50, Mike Tancsa wrote: > >> I dont use mpd, only the built in ppp.  Can you try it with the built in >> ppp ? Looking at your log snippets > I meanwhile had issues again and I'm now running on ppp. It behaves ok > until it doesn't, so somehow the issues are back here as well. I am > currently logging quite a lot so let's see what I figure out. Do you have LQR/ech enabled ?  Here is the ppp.conf section I use pppgprs:  set device /dev/cuaU0.3  set server /var/run/gprs-internet "" 0177  set speed 921600  set timeout 0  set authname wapuser1  set authkey wap  set dial "ABORT BUSY TIMEOUT 2 \         \"\" \         AT OK-AT-OK \         AT+CFUN=1 OK-AT-OK \         AT+CMEE=2 OK-AT-OK \         AT+CSQ OK \         AT+CGDCONT=2,\\\"IP\\\",\\\"ltemobile.apn\\\" OK \         AT+CGACT? OK-AT-OK \         AT+CGATT? OK \         AT+CGCLASS? OK \         AT+COPS? OK \         AT!GSTATUS? OK \         AT&v OK \         ATD*99# CONNECT"  set crtscts on  #set mtu maximum 296  #set mru maximum 296  disable vjcomp  disable acfcomp  disable deflate  disable deflate24  disable pred1  disable protocomp  disable mppe  disable ipv6cp  set lqrperiod 10  enable lqr  enable echo  disable dns  set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0  add default HISADDR          # See ppp.link* > > ppp seems nice, I especially like pppctl to see status of the line. > > What I can't seem to figure out is how to send AT commands like > AT!GSTATUS? on "demand" to the modem with pppctl, any ideas of how this > would look like? Depending on your modem, some Sierra's dont allow the GSTATUS command from the management port, just signal info. Eg. port /dev/cuaU0.3 is my data port to make my ppp connection on, I can connect to cuaU1.4 to ask some basic info like signal.  Sierra should have a pretty good AT command set manual free to download so you can see what is exactly available. % cu -l /dev/cuaU1.4 Connected Sierra Wireless, Incorporated MC7700 APP1 OK +CSQ: 21,99 OK for whatever reason, ate1 is not respected, so my commands dont show. the above is the output of entering ati and at+csq  set lqrperiod 10  enable lqr  enable echo should allow ppp to reconnect should ppp disconnect. you should in your logs see  ppp[3416]: tun10: LCP: deflink: SendEchoRequest(80560) state = Opened  ppp[3416]: tun10: LCP: deflink: RecvEchoReply(176) state = Opened     ---Mike