From owner-freebsd-hackers@freebsd.org Tue Feb 5 17:35:55 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 253D414C0E04 for ; Tue, 5 Feb 2019 17:35:55 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 933DC850A6 for ; Tue, 5 Feb 2019 17:35:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: by mailman.ysv.freebsd.org (Postfix) id 5317414C0E03; Tue, 5 Feb 2019 17:35:54 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B86814C0DFE for ; Tue, 5 Feb 2019 17:35:54 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 67721850A5 for ; Tue, 5 Feb 2019 17:35:52 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (p2E52C0CB.dip0.t-ipconnect.de [46.82.192.203]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id x15GZ3Zr065339 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 5 Feb 2019 16:35:08 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id x15GZ0eL082783; Tue, 5 Feb 2019 17:35:00 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id x15GYg7l077811; Tue, 5 Feb 2019 17:34:54 +0100 (CET) (envelope-from jhs@berklix.com) Message-Id: <201902051634.x15GYg7l077811@fire.js.berklix.net> To: Matthias Apitz cc: hackers@freebsd.org Subject: Re: bsd android tethering using USB cable - intermittent failure From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Aachen Kent User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Tue, 05 Feb 2019 16:37:13 +0100." <20190205153713.GA7280@sh4-5.1blu.de> Date: Tue, 05 Feb 2019 17:34:42 +0100 X-Rspamd-Queue-Id: 67721850A5 X-Spamd-Bar: ++++++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [8.13 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; MISSING_MIME_VERSION(2.00)[]; BROKEN_CONTENT_TYPE(1.50)[]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MX_GOOD(-0.01)[cached: land.berklix.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.69)[-0.693,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:144.76.0.0/16, country:DE]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[203.192.82.46.zen.spamhaus.org : 127.0.0.10]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[berklix.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.78)[0.784,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.99)[0.992,0]; R_SPF_NA(0.00)[]; GREYLIST(0.00)[pass,body]; IP_SCORE(0.16)[ip: (0.38), ipnet: 144.76.0.0/16(2.68), asn: 24940(-2.26), country: DE(-0.01)] X-Spam: Yes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2019 17:35:55 -0000 Matthias Apitz wrote: > El día Tuesday, February 05, 2019 a las 02:36:59PM +0100, Julian H. Stacey escribió: > > > Hi hackers@, > > I tether Androids to FreeBSDs using USB cables, Using > > ports/devel/android-tools-adb Mostly it works, but sometimes fails to > > connect, I've no idea why. > > > > I've tried: different physical androids, different versions of android (4 & 5), > > different physical ports (once I had a cable hanging down didnt connect on > > laptop socket), via hub & direct avoiding usb hub, different FreeBSDs > > (all of 10.4-RELEASE 11.2-RELEASE 13.0-CURRENT), 2 different FreeBSD PCs > > > > Could someone please please take a look at > > http://www.berklix.org/android/#adb > > & perhaps spot what I'm forgetting to initialise ? > > With my Ubuntu Phone (which has as well an Android kernel behind the > scenes), I learned that one must enable developer mode and even with > this on connect the display *must* be unlocked and a pop up answered > about the permission. Thanks , Yes I've got developer mode on (7 taps on build version) & dont know how to lock display so always on, & yes I do always touch screen to tether. Ive tried rebooting BSD today didnt help. Dont think ive tried rebooting the Androids today. I wondered if I had some hidden faulty initialiser file so just removed a bunch of ~/.[a-zA-Z]* that I didnt recognise or didnt want. Weirdly, adb shell has now just connected on the phone I want to move data on. & also weirdly ifconfig -a does Not display a ue0: eg from past: ue0: flags=8802 metric 0 mtu 1500 ether xx:xx:xx:xx:xx:xx though I thought I needed ue to tether with, ifconfig -a just shows ether & local bge0: & lo0: Unfortunately my background devd set up the connection before I killed it & switched to foreground /sbin/devd -d so xterm scroll back does not show what device, but I grabbed a tar copy of /dev to look at later My Android popped up with a less often seen screen: USB PC Connection Connect as Media device (MTP) which shows pre-ticked Green Camera (PTP) which shows blank, un-checked. Well I wont disturb that pair of devs that are ready to talk, I'll start long transfer of data I need, but I will contine to experiment on another pair of devs, Cheers, Julian -- Julian Stacey, Consultant Systems Engineer, BSD Linux Unix, Munich Aachen Kent UK Stole 700,000 votes from British in EU + 3 million globally; 1.9 M in UK were too young + 1.3 M died. Fraud, fines & lies. Brexit prob. now Minority. 2nd Ref. Avoid Chaos: Revoke Article 50, plan better, re-file 50 or whatever. http://www.berklix.uk/brexit/#email_an_mp