EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
<== Date ==> <== Thread ==>

Subject: Re: Further OMS PC78 questions
From: "James P. Withrow via Tech-talk" <[email protected]>
To: "Peterson, Kevin M." <[email protected]>, Tech Talk EPICS <[email protected]>
Date: Fri, 5 Dec 2025 17:40:14 +0000
Kevin - 

AsynOctetGetInputEos L0 initially reported "". In the IOC's st.cmd file, I added 'asynOctetSetInputEos("L0", 0, "\n\r")'. I still get the same result from the IOC initialization, but now when I caput the 'WY' command, the port only reads back the first 8 characters:

2025/12/05 11:33:58.486 /dev/ttyS0 write 2
WY
2025/12/05 11:33:58.497 /dev/ttyS0 read 8
\n\rPC78 v
Invalid entry-card #0

In the PC78 manual, it states that echo off is the default at power-up.

-Jim

Jim Withrow, Research Support Specialist - [email protected]
NE-CAT, Cornell University - https://necat.chem.cornell.edu
Advanced Photon Source, Sector 24
9700 S. Cass Avenue, Building 436 E001
Lemont, IL 60439

From: Peterson, Kevin M. <[email protected]>
Sent: Friday, December 5, 2025 9:31 AM
To: James P. Withrow <[email protected]>; Tech Talk EPICS <[email protected]>
Subject: Re: Further OMS PC78 questions
 
This output is interesting.  The \n\r at the start seems like an unhandled terminator from a previous command:

2025/12/05 07:58:37.732 /dev/ttyS0 write 2
WY
2025/12/05 07:58:37.744 /dev/ttyS0 read 8
\n\rPC78 v

Please run the following command on the IOC's shell:

asynOctetGetInputEos L0

Is the input end of string set to \n\r or \r?  I think either of those should work.

Kevin

Replies:
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
References:
Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Re: Further OMS PC78 questions James P. Withrow via Tech-talk
Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk

Navigate by Date:
Prev: Weird question (related to possible EPICS abuse) Graeme Winter via Tech-talk
Next: Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
Navigate by Thread:
Prev: Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Next: Re: Further OMS PC78 questions Peterson, Kevin M. via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  <20252026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·