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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Comms issue with New Focus 8752 motor driver
From: Mark Rivers <[email protected]>
To: "'Kevin Peterson'" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 20 Aug 2013 19:06:48 +0000
I don't think this is the problem.  The driver can change the eos before and after each command it sends.

#define PROMPT_EOS      ">"

...

    if (eos)
      // Temporary Change to End-of-string
      pasynOctetSyncIO->setInputEos(cntrl->pasynUser,eos,strlen(eos));


    /* Perform atomic write/read operation  */
    status = pasynOctetSyncIO->writeRead(cntrl->pasynUser, send_com, size,
                                         recv_com, BUFF_SIZE-1,
                                         PMNC_TIMEOUT, &nwrite, &nread, &eomReason);
    if (eos)
      // Reset EOS to default
      pasynOctetSyncIO->setInputEos(cntrl->pasynUser,PROMPT_EOS,strlen(PROMPT_EOS));


Mark


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Kevin Peterson
Sent: Tuesday, August 20, 2013 2:03 PM
To: [email protected]
Cc: [email protected]
Subject: Re: Comms issue with New Focus 8752 motor driver

On 8/20/13 1:13 PM, [email protected] wrote:
> send_recv_mess(): message = VER
> 2013/08/20 17:37:57.736 192.168.42.31:23 write 4
> VER\r
> 2013/08/20 17:37:57.742 192.168.42.31:23 read 16
> Version 1.6.0\r\n>
> send_recv_mess(): recv message = "Version 1.6.0
> "

It looks like the input terminator may not be set correctly.  If the
asynOctetSetInputEos really set the input terminator to ">", there
shouldn't be any ">" characters in the responses that are received.

What is the response to the following command?

asynOctetGetInputEos("serial1", 0)

Kevin


References:
Comms issue with New Focus 8752 motor driver tim.hayton
Re: Comms issue with New Focus 8752 motor driver Kevin Peterson

Navigate by Date:
Prev: Re: Comms issue with New Focus 8752 motor driver Kevin Peterson
Next: RE: Comms issue with New Focus 8752 motor driver Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Comms issue with New Focus 8752 motor driver Kevin Peterson
Next: RE: Comms issue with New Focus 8752 motor driver Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·