EPICS Home

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  <20192020  2021  2022  2023  2024  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Stream Device output hex string
From: David Vine via Tech-talk <[email protected]>
To: [email protected]
Date: Fri, 23 Aug 2019 13:13:50 -0700
Hi all,

i'm trying to write 7 bytes to an ethernet device.

When I write the bytes \x00\x13\x00\x00\x00\x00\x13 through the asynOctet I get what I expect:
2019/08/23 13:04:57.979 10.0.0.173:30305 UDP* write 7

00 13 00 00 00 00 13

When I try to do the same thing through stream device the output is not what I expect:
cmd:
drvAsynIPPortConfigure("OC_CMD", "10.0.0.173:30305 UDP*", 0, 0, 0)

Db:
record(ao, "$(P)$(Q):STOP") {                                                                          
  field(DESC, "Stop program")                                                                          
  field(DTYP, "stream")
  field(OUT, "@OXCS700.proto stop($(P)$(Q)) $(PORTCMD)")                                                
  field(SDIS, "$(P)$(Q):DISABLE")                                                                      
}
Proto:
stop    { out "\x00\x13\x00\x00\x00\x00\x13"; }

Output:
2019/08/23 13:10:37.774 10.0.0.173:30305 UDP* write 2

02 13

Any idea what i'm doing wrong?

Thanks,
David
--
Best regards,
David Vine
(925) 326 7503

http://www.Sigray.com

 

This e-mail and any attachments are provided for the sole use of the intended recipient(s), and may contain information that is confidential, privileged, proprietary or otherwise protected by law. If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy, forward or otherwise disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by reply e-mail and delete the original message from your mail system. Thank you.


PNG image


Replies:
Re: Stream Device output hex string David Vine via Tech-talk

Navigate by Date:
Prev: Re: EPICS 'isegHAL' module Bruno Martins via Tech-talk
Next: Re: Stream Device output hex string David Vine 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Sumo test Jörn Dreyer via Tech-talk
Next: Re: Stream Device output hex string David Vine 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  <20192020  2021  2022  2023  2024