Received: by 10.213.65.68 with SMTP id h4csp1160605imn; Sat, 7 Apr 2018 19:48:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/2kXxQ62w24VT4QoZlQfi0W0un6m1BWU2C3U/WQIKU3Hs5OU2z94WUakhjx3IbH21lD5ls X-Received: by 2002:a17:902:69ce:: with SMTP id m14-v6mr33867848pln.358.1523155702528; Sat, 07 Apr 2018 19:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523155702; cv=none; d=google.com; s=arc-20160816; b=k6F4gnaqQZVloNYIMcskVavkPo5L3vDnVFvu6bl80SETijN9OBrhKVIQSgxRxTeWWw zf2KIpiMcp+MVTvztajkpdqN3B3rsy1Qwu/XDL+QSaLhRDrs1k6jMznqtiGjqzQ4uy4f qxi2UCSz5dig4Gp9fpmsSv92nKAiUTUOxDHbb7pNzgi3BM2QysRuOdROH07arzsttnW8 13b7opMM6v4Vo+kqyYnHBFLTlezckDJmJ7BE2lfOGHsc0nO/P/3pjNfdJ7uuGmA6xwep hDTEyG+MTbdPxEKo71fh3AIlTXDvs1Ny6hCqNTiRazOj5JqQGLOlWAzh/FY+9KaoBtEb +dWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=JjwqGTno7QCs2mxdR+WTEAQGD/C6ute4JTkpiGJrt3w=; b=ATZYBB8LBbIiGyLPIIcYv+3kCLorJc1dv4dXo81NScgK8wjYWqBrcJhAjYgdxhTKEe NpY1k4I7nJxQVl/Iw8Ei4ISAWMSU2t4d+lIIxBhLgmBhzwLM/fJNi7kFiNsfGItF750w FiZKdaB/zzFRBVF4IurEVWLAGM2x4g1IKClKHP1ex9/eDG6HSyeJaZJ20mN9C8SYQtLx CTukN0VawRCpeHqx2o0XNCy2lVgUuwpgjkMmVQyPfEdNx+232RHnUQ6K9LJrxRm/DzXW vFR5lJhkEcQsXeEmKijUWPK8/Bi+2P2Y3o3fx79mq5B0XEKheI6N4R2gWCBIlOHWf/P9 Bx8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n76si5355427pfi.122.2018.04.07.19.47.45; Sat, 07 Apr 2018 19:48:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752561AbeDHCpF (ORCPT + 99 others); Sat, 7 Apr 2018 22:45:05 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:41688 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752034AbeDHCpD (ORCPT ); Sat, 7 Apr 2018 22:45:03 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 205B36166E; Sun, 8 Apr 2018 02:45:03 +0000 (UTC) Received: from ovpn-112-14.rdu2.redhat.com (ovpn-112-14.rdu2.redhat.com [10.10.112.14]) by smtp.corp.redhat.com (Postfix) with ESMTP id 973901102E23; Sun, 8 Apr 2018 02:45:00 +0000 (UTC) Message-ID: Subject: Re: simultaneous voice/data works (was Re: call/normal switch was Re: omap4-droid4: voice call support was) From: Dan Williams To: Pavel Machek , Merlijn Wajer Cc: Tony Lindgren , Sebastian Reichel , Mark Brown , Liam Girdwood , Rob Herring , Lee Jones , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Date: Sat, 07 Apr 2018 21:44:59 -0500 In-Reply-To: <20180407122233.GA11302@amd> References: <20180401153631.GA5700@atomide.com> <20180401173012.GB5700@atomide.com> <67086fdd0cdd69142cb89cd00f90e5a580e6607a.camel@redhat.com> <20180402155754.GD5700@atomide.com> <20180403150444.GE5700@atomide.com> <20180403155023.GA14638@atrey.karlin.mff.cuni.cz> <20180403194419.GG5700@atomide.com> <20180406120423.GA18691@amd> <516eb3f7-e300-d59d-6a31-ab7545c656f1@wizzup.org> <20180407081000.GB7818@amd> <20180407122233.GA11302@amd> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sun, 08 Apr 2018 02:45:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Sun, 08 Apr 2018 02:45:03 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dcbw@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-04-07 at 14:22 +0200, Pavel Machek wrote: > On Sat 2018-04-07 10:10:00, Pavel Machek wrote: > > Hi! > > > > It seems qmicli can be used while unicsy_demo/ofone talks to the > > modem > > using the AT commands. > > > > So I could do: > > > > qmicli -d /dev/cdc-wdm0 --wds-follow-network --wds-start- > > network=apn=internet.t-mobile.cz > > route del default > > sudo ifconfig wwan0 up > > dhclient wwan0 > > > > to get GPRS/UMTS connection. AT commands still work. > > > > Does anyone have any idea what to do to get the GPS to work? > > Got that to work. > > I installed modemmanager -- unfortunately that claims ttyUSB4 so it > breaks voice/sms -- but then It shouldn't break SMS since MM will do SMS via QMI, but yeah for now it'll break voice because that would happen via QMI too, and we haven't implemented voice for QMI yet. --help-messaging --help-sms Also available via D-Bus of course. > mmcli -m 0 --enable > mmcli -m 0 --location-enable-gps-nmea > watch -n .3 sudo mmcli -m 0 --location-get-gps-nmea > > ...can be used to get GPS data. Droid4 seems to have rather bad GPS, > so you should probably put it near window for testing. > > Is there way to grab data from modemmanager and feed it to gpsd, so > that normal applications can access gps? I don't see easy way. > > I tried --location-enable-gps-unmanaged , but that did not work for > me. That requires a TTY that would spit out the GPS data; in this mode MM only sends the start/stop commands, and what comes out the GPS TTY is undefined (at least by MM). So unless you know that one of the 6600's TTYs does GPS and in what format it does GPS, then no. Doesn't --location-get-gps-nmea work for you? That will spit out the latest NMEA traces MM gets from the modem, if it supports NMEA. I believe --location-status will tell you what methods MM supports with the modem. Also available via D-Bus of course. > Is modemmanager enabling GPS, or is it talking to libqmi to do that? > The code is quite confusing to me... Yes. When the modem is driven with QMI, then all the data comes from QMI. For other modems (like Huawei HiLink and Gobi 1000) the enabling commands are done via AT on the main command port and then one of the TTYs starts spewing out NMEA. Dan