From nobody Tue Apr 18 21:43:06 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q1HTp0ktGz45jZB for ; Tue, 18 Apr 2023 21:43:10 +0000 (UTC) (envelope-from mail@souji-thenria.net) Received: from alisa.souji-thenria.net (alisa.souji-thenria.net [188.68.37.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q1HTn44jXz3pxq for ; Tue, 18 Apr 2023 21:43:09 +0000 (UTC) (envelope-from mail@souji-thenria.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=souji-thenria.net; s=20220813rsa; t=1681854186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XzzbkTp4nlQRqXWnGuiqp4W9EbiyjwzBZJ0pkWoVRiQ=; b=05HsydbeidQMUuUU0c0DVGioNPoROPSYt1qh3eIiIssJ3cVeqEMvvH2gplsitXxTWZwfQQ MPZpaskDFqVGa1hBgT/i03rjeHOApGtbVMHDClg1ynyBbaVAnEa54ngTtzeKEbLNA8yow5 8+a8yGNMDUjECoG7ibTxoRQM1uxKG8bXwe1N/4xnz5HeZlWQF4094YMXfV8humIECd6KP6 dZr3/6igf226hbKZ2lbAPVADpdju0g+1EVg1X5dd+xgbDLu1DUaT+Zbumvt7pjvbvzrqqf p6i91h1HxGjDUEPWoxXqoFwkBy9sH+CyM9hgDJHsShOYsK82GBjjhK+l8g/xGg== Received: from [192.168.178.41] (nat-178-19-229-24.net.encoline.de [178.19.229.24]) by alisa.souji-thenria.net (OpenSMTPD) with ESMTPSA id e0618026 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 18 Apr 2023 23:43:06 +0200 (CEST) Message-ID: <53a8a589-154a-5efd-d73b-4964814d5762@souji-thenria.net> Date: Tue, 18 Apr 2023 23:43:06 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: serial from usb port, cu using /dev/cuau0 Content-Language: en-US To: freebsd@dreamchaser.org, FreeBSD Mailing List Cc: markmoellering@psyberation.com References: <2a149c85-7aa3-c92c-0518-219d52971453@dreamchaser.org> <675fd143-24b1-c1d6-a871-5ae54ab238f4@dreamchaser.org> From: Souji Thenria In-Reply-To: <675fd143-24b1-c1d6-a871-5ae54ab238f4@dreamchaser.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4Q1HTn44jXz3pxq X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:197540, ipnet:188.68.32.0/20, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 4/18/23 21:11, Gary Aitken wrote: > At least *some* of the time I was doing the cu command before plugging > in the cable; since cuau0 was the only one visible at that time, that's > the only one I could use and what I tried to connect to.  So I got a > connection, but not to the cuaU0 created after plugging the cable in. > That is to be expected because if you connect to '/dev/cuau0', you connect to the built-in serial port. However, you want to connect to your modem via the USB-serial adapter, which is, in your case, '/dev/cuaU0' (after plugging the device into your PC). There is no logic which decides which serial device will be used, '/dev/cuau0' and '/dev/cuaU0' are two different devices, and you need to connect to the one you want to use. For example, connecting another USB-serial adapter will generate a third device, '/dev/cuaU1'. You can also find a description of the naming in the docs: https://docs.freebsd.org/en/books/handbook/serialcomms/ -- Souji Thenria