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=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no 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 26960C433FF for ; Sat, 10 Aug 2019 23:14:51 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E6E512086A for ; Sat, 10 Aug 2019 23:14:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BNTkNzHo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E6E512086A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=HJVnBKjQQd3Fk0oDXNzOUJfRsMN4FOUh8wTkS2Mmz/M=; b=BNT kNzHogt0BIkr9r3O53+uCajHsGE4+8ySjLCmRbCtE2I54HOEf+/ID4bmP7nPveKdF3t/Y7i9f/2h4 WTBKXezHitLbARMftUDI41JvBbkXcj+4sZxhwcLV+UNg2/LsHCGEXZlE1oKVRISUCEPgofY9B3/m5 BCoBMO9McN19Ggg88dWy92mrx+lUYFj+TAsATRHvkgIc3KyeTxBnky9VHaE8Bzc0J9V/JOV3yAe+e BnwuP8IXU2xubCvsKI47O70Y6yRYmRX8RKncNV8qRtE/vw8EW/Ml6E5Yh7VSzjgAv9kdkWpuBAcZY jvyirhtNJUw3a0yLL21t8TQlGLbAoxw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hwaZ4-0000R7-LK; Sat, 10 Aug 2019 23:14:22 +0000 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hwaYy-0000QS-UK for linux-arm-kernel@lists.infradead.org; Sat, 10 Aug 2019 23:14:19 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id BA1B38030F; Sun, 11 Aug 2019 01:13:52 +0200 (CEST) Date: Sun, 11 Aug 2019 01:14:04 +0200 From: Pavel Machek To: ofono@ofono.org, kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org Subject: Motorola Droid 4 SMS sending Message-ID: <20190810231404.GA26417@amd> MIME-Version: 1.0 User-Agent: Mutt/1.5.23 (2014-03-12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190810_161417_311339_577E3597 X-CRM114-Status: UNSURE ( 7.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4133548012572774420==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4133548012572774420== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! Motorola Droid 4 runs packet protocol over serial... and its kernel driver requires explicit "write()" boundaries at places where packet boundaries should be. So I can send SMS using low level g_at... functions (that are not normally accessible), but not using g_at_chat_send(). If anyone has good idea for clean (or clean enough) solution, let me know. Best regards, Pavel snprintf(buf, sizeof(buf), "AT+GCMGS=3D\r"); encode_hex_own_buf(pdu, pdu_len, 0, buf_pdu); #if WANT_IT_BROKEN strcat(buf, buf_pdu+2); g_at_chat_send(data->send_chat, buf, none_prefix, NULL, data, NULL); #else g_at_io_write(data->send_chat->parent->io, buf, strlen(buf)); g_at_io_write(data->send_chat->parent->io, buf_pdu, strlen(buf_pdu)); g_io_channel_flush(data->send_chat->parent->io->channel, NULL); #endif =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1PT7wACgkQMOfwapXb+vLHKQCbB1FXu15H78z7H1X+NaG1Y/pJ UfsAn1FJ/Qlz2GsssMPxTbGJBNgwHcZZ =YHx4 -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- --===============4133548012572774420== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4133548012572774420==--