From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 906F7C43387 for ; Wed, 16 Jan 2019 13:58:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6462720657 for ; Wed, 16 Jan 2019 13:58:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387560AbfAPN6d (ORCPT ); Wed, 16 Jan 2019 08:58:33 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34311 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727935AbfAPN6d (ORCPT ); Wed, 16 Jan 2019 08:58:33 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9F207808A5; Wed, 16 Jan 2019 14:58:24 +0100 (CET) Date: Wed, 16 Jan 2019 14:58:29 +0100 From: Pavel Machek To: Tony Lindgren Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Jarkko Nikula , Johan Hovold , Kuninori Morimoto , Marcel Partap , Merlijn Wajer , Michael Scott , NeKit , omerlle@gmail.com, Sebastian Reichel , Peter Ujfalusi , Rob Herring Subject: Re: WIP Droid 4 voice calls, GNSS & PM with a TS 27.010 serdev driver Message-ID: <20190116135829.GA10426@amd> References: <20181217004450.GW6707@atomide.com> <20181227101647.GA32260@amd> <20181228193105.GW6707@atomide.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20181228193105.GW6707@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > * Pavel Machek [181227 10:17]: > > Ok, I really need SMS messages, too. > >=20 > > Fortunately, they are on /dev/motmdm9, in PDU format. Quite > > logical. And you probably need to acknowledge them, using PDU, > > too... (because otherwise you'll just get the same SMS over and over > > and over). Which is also logical, but hard to do from shell/python. >=20 > Yeah so I found that Ruby pdu_tools module allows decoding PDUs > properly while I did not have much luck with other tools. >=20 > So I wrote a hasty script to read SMS, copy it to a Maildir and > then ack it: >=20 > https://github.com/tmlind/droid4-sms-tools I could not get that one to work. /var/lib/gems/2.3.0/gems/phone-1.2.3/lib/support.rb:47:in `class_eval': /var/lib/gems/2.3.0/gems/phone-1.2.3/lib/support.rb:47: `@@{' is not allowed as a class variable name (SyntaxError) /var/lib/gems/2.3.0/gems/phone-1.2.3/lib/support.rb:47: syntax error, unexpected end-of-input unless defined? @@{:default=3D>true} ^ =66rom /var/lib/gems/2.3.0/gems/phone-1.2.3/lib/support.rb:47:in `block in = cattr_accessor' =09 And I wanted to ask -- did you figure out how to acknowledge the SMSs? +CGNNA does not seem to do the job: 07912470338016... AT+CGNMA=3D1 +CGNMA:ERROR=3D9 > > Fortunately ttyUSB4 still works, so I can still use my old code... and > > I started logging motmdm1 and 9 to a file as a backup... that should > > be better than my existing solution. (But I don't get power benefits > > etc.) >=20 > So what are you using to ack the received SMS over ttyUSB4? >=20 > My logs show that Android uses two different commands for ack. > Either AT+GCNMA=3D1 or AT+CNMA=3D0,0 gets used depending on something > that I have no idea of.. Maybe the network connected? I believe I tried both... but for some reason I think you need to paste back "acknowledge PDU"...? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --jRHKVT23PllUwdXP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlw/OIUACgkQMOfwapXb+vJbkgCfZqQ749WAy9iVhYjTZLaBv7Pv IaIAnjGYv3zjXtJ4rv6LEZLE41PhNmip =fBDo -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--