From owner-freebsd-usb@freebsd.org Fri Nov 2 13:59:37 2018 Return-Path: Delivered-To: freebsd-usb@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 BACAE10F7BA1 for ; Fri, 2 Nov 2018 13:59:36 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CA5A6BDFA for ; Fri, 2 Nov 2018 13:59:36 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io1-xd2d.google.com with SMTP id d80-v6so1441029iof.1 for ; Fri, 02 Nov 2018 06:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R5mC+t/VnnHJHEGLk7ZIXCOopUVhHTv4uF8KjPuwRlw=; b=twh5YakyrKVEQoe9ZDWopFz+8MCLEZbVryupCTR0xB2pEMeH0oCAA9WeNoH4lxXmkh WR4K84t9XVEwE9bXDXxRCLleZnuH6fnhHkHv5OJlw5QcDwmsIW4Hq6mxhwypJ4V5Ee2t 9GmgDif7hGuNNziX61vaGrTF1GWkxmUiC+LZt13Sw7gWitNz3bp23/UV6gOgmlW8kdx+ haALv7kHCkBc4qwOyEvHOBbSSeSfETqDIiXF7D9oxjdms3AIbZ5hdHdpwllN3BTBS2gQ P6QnVbybbbn3ogfEMoLAi/bddoKhjRuwaBlExmRbfNqVh/gxg2O8T4HWnki1rTXfSVn8 DDqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=R5mC+t/VnnHJHEGLk7ZIXCOopUVhHTv4uF8KjPuwRlw=; b=AOZPwZulHLMg/tOcV9ZArzKWF97k2azYjnrObp51npNi5Ny8pG9BdBIxP3MLN8d8MP iP243kO4vVwskEjVGTG1yjMQmGiQXkpkQ70McmdkFcR235ttIciaySvkTb2NLwZZM/uy au9qV+m39SOl3hZim6aUuaj+hiFixOjgv/b/kEIu1gOFJ8feQlxM2boU/Ui24yN9G0da HotUJKwqksQktX/NwFV2nBLVjSUjagVUxgfPzDtZKHIz8gq0RIN3OfFV+a0eti//rwoJ j1qrHn3h6ft6OwEjn/GxG3oo8fYjFSIuzEl3xp0PdZiJKPCN8gy0fqpdHfsNuBk6nHG3 F0HQ== X-Gm-Message-State: AGRZ1gICnnPscJSJOrPwsRWMpEz04IhOZyOY6AXkvswIFZ2AbdC+hNq5 /+H6DVSZ+7505CX0Wj8hOVqJTIpg4XsnABPWeiAmiQ== X-Google-Smtp-Source: AJdET5f7r7mbBO9AUWEKdJsIa4a8pL8JOC6Top75wTSzvEUedZ0Ha0DBrNOHMdiYIfS0ViOCh4O1tKl0PmLIrgSn9Ko= X-Received: by 2002:a6b:ca87:: with SMTP id a129-v6mr9074330iog.168.1541167175248; Fri, 02 Nov 2018 06:59:35 -0700 (PDT) MIME-Version: 1.0 References: <0c4022f3-bd21-49b5-cadd-daeb9f1f3081@selasky.org> <33f3a1f8-69d1-9240-6381-8a851beb97d0@yandex.ru> <18d57cbe-1235-aedf-45e6-e36b495ca1eb@bit0.com> <15cff2a5-021f-49e5-b287-37a14a9321b3@selasky.org> <5d0a544d-517c-2fb9-84e8-d87704474cce@yandex.ru> <5cdb37b5-fca1-99db-cacc-cf72f0cee0df@selasky.org> <51ae0fc4-7e93-30d6-caa3-393afbe278b6@yandex.ru> In-Reply-To: From: Warner Losh Date: Fri, 2 Nov 2018 07:59:24 -0600 Message-ID: Subject: Re: umodem0, Cisco USB serial console, and quirks To: Hans Petter Selasky Cc: "Andrey V. Elsukov" , mandrews@bit0.com, "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2018 13:59:37 -0000 On Fri, Nov 2, 2018 at 3:57 AM Hans Petter Selasky wrote: > On 11/2/18 10:24 AM, Andrey V. Elsukov wrote: > > On 02.11.2018 12:12, Hans Petter Selasky wrote: > >>> # cu -l /dev/cuaU0 > >>> Connected > >>> > >>> > >>> > >> > >> Did you try "-s" option to set another baudrate? > > > > Yes, the result is the same. > > > > # cu -s 115200 -l /dev/cuaU0 > > Connected > > > > If I understand correctly from > > https://www.bit0.com/tmp/usbmon-ciscoasa-verbose.txt > > > > The > > > > Leftover Capture Data: 80250000000008 > > > > and > > > > frame[1] WRITE 7 bytes > > 0000 80 25 00 00 00 00 08 -- -- -- -- -- -- -- -- -- |.%..... > > > > is something like configuration data, where 80 25 is 0x2580 == 9600, so > > it should work with default speed. When I use 115200, I see this: > > > > All the commands for USB modems should be described here: > > https://www.usb.org/sites/default/files/CDC_EEM10.pdf > > I'm sorry, but I don't have time currently to decode the Linux traces > and compare with FreeBSD. > One thing to also note about the Linux driver. "it just works" is only because people have inserted a crap-ton of special cases and dealt with weird quirks of different devices, and devices that are only kinda sorta standards conforming, but easy enough to hack the driver to make work. Chances are quite good you'll have to, as hps points out, puzzle through the traces to find where it's non-conformant and/or our driver is non-compliant. Warner