From nobody Fri Oct 06 04:42:23 2023 X-Original-To: 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 4S1wlP3w9Pz4vnFp for ; Fri, 6 Oct 2023 04:42:41 +0000 (UTC) (envelope-from paulbeard@gmail.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S1wlN0Ntlz4nmK for ; Fri, 6 Oct 2023 04:42:40 +0000 (UTC) (envelope-from paulbeard@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=OrQtG6pG; spf=pass (mx1.freebsd.org: domain of paulbeard@gmail.com designates 2a00:1450:4864:20::529 as permitted sender) smtp.mailfrom=paulbeard@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-533c5d10dc7so2909237a12.3 for ; Thu, 05 Oct 2023 21:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696567355; x=1697172155; darn=freebsd.org; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=fNXgyolVunVdQp4up/feAd6Q/hrnAUAjF43u+DEiHnc=; b=OrQtG6pGzpOIHHus+9RMHnlCcnrEUy5K0qkHmOFRquN/JQpmMWjI3HabJz3Ccsw6xh a48KyZr3HtLgHSX2nxdoeBI0k/FjKvPtU/Qcv8KxPeRcrvy0n/4Qa4W1P19qDOqXe15c HRk19KXDWre8D4gSY8sRSwjAOdiRnwkvEtLdxrpn0Ed/pev900h0hDAuZVRrNIwCy/F0 yfYEzPTHO6u9Z3BY19/dRQQURClKRyuT+9g6Fuy+wAKoWLXUtyHs1dUgiSEnC1o8eAnn pLf99etI44gYOENKXVtVmFF7mi3gapOakXSmGVlHl4p4fg6NlxhlpU+AV7TbzR3FFwkc gVyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696567355; x=1697172155; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fNXgyolVunVdQp4up/feAd6Q/hrnAUAjF43u+DEiHnc=; b=FhjRNTTG71BZdGcH7PExeNX9rOQEpcxJyZqzwijMmqEXk57M2VV6y8qFTYXQiY+Viv 7qBH/eK4fgPcRemazeRPsWd9f95sypspOE5Fv71KMryhONnAmBL5lPRN+cC2uHBebbXm DrOqCBWQeprQs27pxO+5fPnuhNxtqjJEmexPZCBfoYSSJwjC7B1gVMive35tBqWCpW5R +3GA+sl8+P6Kk0NGiC19CEdTT1rZRpmDcAmZevFk4KDUuqOfDz/nn0GrsbNB20rTRoAp 46cueTlIJ/12W0ufckWGBNKFxjO8UZmWDEX3Aj2G5k2MH2i5YrIct4ycn7Wwk49pYU9I IZlQ== X-Gm-Message-State: AOJu0Yx5oZYRLn8z9h4yRTM0MjasqiEPZtN6pncoqK7zc6w1g33k0/7D HaNQJyf5R9UPprH0VqVuZ46lR/VEdI2bna1tijJbM60+ X-Google-Smtp-Source: AGHT+IGEy4JmSybbC/7a3JZ5n7XUBjwYBgKsKhnUM9YmUAZsTw1u1Y+1fdWL2FU871QlD2CzKtaAnd1Ee4q0Ks3RT8I= X-Received: by 2002:a17:906:2d2:b0:9ad:8ef8:a7e8 with SMTP id 18-20020a17090602d200b009ad8ef8a7e8mr6694086ejk.25.1696567354941; Thu, 05 Oct 2023 21:42:34 -0700 (PDT) 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 References: In-Reply-To: From: paul beard Date: Thu, 5 Oct 2023 21:42:23 -0700 Message-ID: Subject: Re: serial port question Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000087656d060704de24" X-Spamd-Bar: - X-Spamd-Result: default: False [-1.99 / 15.00]; MISSING_TO(2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::529:from]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4S1wlN0Ntlz4nmK --00000000000087656d060704de24 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This has all been great=E2=80=A6got me on the right track. I am not getting= a response from the device but now I know it's not me. Hoping the developers can fill in the gaps there. On Thu, Oct 5, 2023 at 9:11=E2=80=AFPM Edward Sanford Sutton, III < mirror176@hotmail.com> wrote: > On 10/5/23 17:28, paul beard wrote: > > Not strictly FreeBSD-based but adjacent, surely=E2=80=A6 > > > > I have a 3D printer that has a serial port connection through USB but > > it's not working through the various apps that obscure the details in > > the name of "convenience." You know what I mean. I like convenience as > > much as anyone but sometimes I just have to get on with it. Does anyone > > have experience in communicating with really simple machines over a > > serial connection? It's not always easy to ID the serial device but > > that's a separate problem. Allegedly I can communicate up to 115k but > > I'll settle for a lot less to send simple commands like M502 or M500. > > If memory serves, multiple device permissions may be needed for the > one device node to work. I had the following rules in a /etc/devfs.rules > entry (which involves a header+/etc/rc.conf entry fi I recall). Likely > only the first two mattered but I don't remember now. > add path 'cuaU*' mode 0777 group operator > add path 'ttyU*' mode 0777 group operator > add path 'usb/*' mode 0660 group operator > > Other posts are also correct about some software not searching > through port labels when they vary from Linux. Most of my effort was put > toward keeping a Makerbot Thing-O-Matic working off and on over the > years but that kept me mostly just playing with replicatorg due to its > incompatibilities with other software that I someday need to setup a > workflow to migrate to. reprap software I had started to get basic > control from but recall manually patching its list of checked and > available ports when I did it years ago. > > It isn't recommended but I have been known to either test software as > root, or change many more permissions than I need to figure out how to > get things working. > > If you say what printer/software you are working with, others may be > able to chime in with more specifics. > > --=20 Paul Beard / www.paulbeard.org/ --00000000000087656d060704de24 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This has all been great=E2=80=A6got me on the right=C2=A0t= rack. I am not getting=C2=A0a response from the device but now I know it= 9;s not me. Hoping=C2=A0the developers can fill in the gaps there.=C2=A0
On = Thu, Oct 5, 2023 at 9:11=E2=80=AFPM Edward Sanford Sutton, III <mirror176@hotmail.com> wrote:
<= /div>
On 10/5/23 17:28, paul beard wrote:
> Not strictly=C2=A0FreeBSD-based but adjacent, surely=E2=80=A6
>
> I have=C2=A0a 3D printer that has a serial=C2=A0port connection throug= h USB but
> it's not working through the various=C2=A0apps that obscure=C2=A0t= he details in
> the name of "convenience." You know what I mean. I like conv= enience as
> much as anyone but sometimes I just have to get on with it. Does anyon= e
> have experience=C2=A0in communicating=C2=A0with really simple=C2=A0mac= hines=C2=A0over a
> serial connection? It's not always easy to ID the serial=C2=A0devi= ce but
> that's a separate problem. Allegedly I can communicate=C2=A0up to = 115k but
> I'll settle for a lot less to send simple=C2=A0commands like M502 = or M500.

=C2=A0 =C2=A0If memory serves, multiple device permissions may be needed fo= r the
one device node to work. I had the following rules in a /etc/devfs.rules entry (which involves a header+/etc/rc.conf entry fi I recall). Likely
only the first two mattered but I don't remember now.
add path 'cuaU*' mode 0777 group operator
add path 'ttyU*' mode 0777 group operator
add path 'usb/*' mode 0660 group operator

=C2=A0 =C2=A0Other posts are also correct about some software not searching=
through port labels when they vary from Linux. Most of my effort was put toward keeping a Makerbot Thing-O-Matic working off and on over the
years but that kept me mostly just playing with replicatorg due to its
incompatibilities with other software that I someday need to setup a
workflow to migrate to. reprap software I had started to get basic
control from but recall manually patching its list of checked and
available ports when I did it years ago.

=C2=A0 =C2=A0It isn't recommended but I have been known to either test = software as
root, or change many more permissions than I need to figure out how to
get things working.

=C2=A0 =C2=A0If you say what printer/software you are working with, others = may be
able to chime in with more specifics.



--
Pa= ul Beard / www.paul= beard.org/
--00000000000087656d060704de24--