Re: computer in listen-only mode?

HernĂ¡n Freschi <[email protected]> Thu, 18 Sep 2025 21:39:15 -0300
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CALruTQcc9_t229Dc7+QLACX3wZwN89YtRGJbBPnmooo2rVP7VQ@mail.gmail.com>
--===============1232281107207038204==
Content-Type: multipart/alternative; boundary="000000000000a9b9a0063f1cb3b4"

--000000000000a9b9a0063f1cb3b4
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

hi Dave, thanks for that. It didn't really work for me at first - it'll
just stop working after the first chunk of data. I had to modify it by
commenting out "end =3D (stat & END);" But I have to wait for it to time ou=
t
to print out the last chunk. It's good enough for my needs though!

Cheers

On Thu, Sep 18, 2025 at 4:45=E2=80=AFAM dave penkler <[email protected]> w=
rote:

> Hi Hern=C3=A1n,
> This little programme works for me. It sets the pad of the controller to
> 23 and goes into listen mode by sending the command string UNL, UNT, LSN =
23
> to the controller.
> tplot2 >file.hpgl
> cheers,
> -Dave
>
> On Thu, 18 Sept 2025 at 09:12, Hern=C3=A1n Freschi <[email protected]> wrote=
:
>
>> Is it possible to run a device (a ni_pci in particular) in "listen only"
>> mode? Instead of being a controller, I'd like it to be a listen only
>> device, so I can emulate a plotter
>>
>> My idea is to just grab all of the HPGL commands a device sends and then
>> convert into PDF.
>>
>> This has already been discussed 2 decades ago:
>> https://sourceforge.net/p/linux-gpib/mailman/linux-gpib-general/thread/4=
46940000.1056300621%40%5B192.168.1.1%5D/#msg2697429
>> but the solution is specific to a particular device.
>>
>> The NI  forums mention:
>>
>> #define IbcLON 0x0022 /*Enter listen only mode*/
>>
>> but it doesn't seem like linux-gpib implements this?
>>
>> Thanks
>> _______________________________________________
>> Linux-gpib-general mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
>>
>

--000000000000a9b9a0063f1cb3b4
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>hi Dave, thanks for that. It didn&#39;t really work f=
or me at first - it&#39;ll just stop working after the first chunk of data.=
 I had to modify it by commenting out &quot;end =3D (stat &amp; END);&quot;=
 But I have to wait for it to time out to print out the last chunk. It&#39;=
s good enough for my needs though!</div><div><br></div><div>Cheers<br></div=
></div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr=
" class=3D"gmail_attr">On Thu, Sep 18, 2025 at 4:45=E2=80=AFAM dave penkler=
 &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; wrote=
:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.=
8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"lt=
r">Hi Hern=C3=A1n,<div>This little programme works for me. It sets the pad =
of the controller to 23 and goes into listen mode by sending the command st=
ring UNL, UNT, LSN 23 to the controller.</div><div>tplot2 &gt;file.hpgl</di=
v><div>cheers,</div><div>-Dave</div></div><br><div class=3D"gmail_quote"><d=
iv dir=3D"ltr" class=3D"gmail_attr">On Thu, 18 Sept 2025 at 09:12, Hern=C3=
=A1n Freschi &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">hjf@hj=
f.com.ar</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D=
"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-le=
ft:1ex"><div dir=3D"ltr"><div>Is it possible to run a device (a ni_pci in p=
articular) in &quot;listen only&quot; mode? Instead of being a controller, =
I&#39;d like it to be a listen only device, so I can emulate a plotter</div=
><div><br></div><div>My idea is to just grab all of the HPGL commands a dev=
ice sends and then convert into PDF.=C2=A0</div><div><br></div><div>This ha=
s already been discussed 2 decades ago:=C2=A0<a href=3D"https://sourceforge=
.net/p/linux-gpib/mailman/linux-gpib-general/thread/446940000.1056300621%40=
%5B192.168.1.1%5D/#msg2697429" target=3D"_blank">https://sourceforge.net/p/=
linux-gpib/mailman/linux-gpib-general/thread/446940000.1056300621%40%5B192.=
168.1.1%5D/#msg2697429</a> but the solution is specific to a particular dev=
ice.</div><div><br></div><div>The NI=C2=A0 forums mention:</div><div><br></=
div><div>
#define IbcLON 0x0022 /*Enter listen only mode*/=C2=A0</div><div><br></div>=
<div>but it doesn&#39;t seem like linux-gpib implements this?</div><div><br=
></div><div>Thanks</div></div>
_______________________________________________<br>
Linux-gpib-general mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/linux-gpib-general"=
 rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/l=
istinfo/linux-gpib-general</a><br>
</blockquote></div>
</blockquote></div>

--000000000000a9b9a0063f1cb3b4--


--===============1232281107207038204==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1232281107207038204==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Linux-gpib-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general

--===============1232281107207038204==--