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  <20122013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: ASYN Communication through windows serial port (via USB)
From: "S. Stein" <stein@aps.anl.gov>
To: Emmanuel Mayssat <emayssat@yahoo.com>
Cc: tech-talk@aps.anl.gov
Date: Sun, 4 Mar 2012 10:49:29 -0600 (CST)
Yes, I have successfully talked to the device with a terminal program running on the same windows box.


----- Original Message -----
From: "Emmanuel Mayssat" <emayssat@yahoo.com>
To: "Josh Stein" <stein@aps.anl.gov>, tech-talk@aps.anl.gov
Sent: Sunday, March 4, 2012 1:02:23 AM
Subject: Re: ASYN Communication through windows serial port (via USB)

Did you test the driver/hardware installation of your USB to serial device?
You may have several USB port, COM3 not be the one you are connected to.
--
Emmanuel
 
----- Original Message -----
From: Josh Stein <stein@aps.anl.gov>
To: tech-talk@aps.anl.gov
Cc: 
Sent: Friday, March 2, 2012 2:03 PM
Subject: ASYN Communication through windows serial port (via USB)

Boy how I hate bringing this stuff up on a Friday...

I have a need to communicate to a serial based instrument off of a windows laptop. I have the latest ASYN build, which supports COM port mapping for windows. Like any 'modern' laptop, this machine does not have any built in serial connections, so I have a USB adapter which maps COM3 to a serial port. I can talk to the device via a terminal program on machine.

I execute the following on a softIOC running on the windows box:

drvAsynSerialPortConfigure("L0","COM3",0,0,0,0)
asynSetOption("L0",0,"baud","115200")

setOption failed COM3 error calling GetCommConfig 87


Note the setOption failed error; this is (apparently) preventing me from setting the baud rate to 115.2K (which, of course, is what the external device needs). (As an aside, I contacted Mark Rivers and he pointed out the typo in the error message - it should read: "...error calling SetCommConfig...")

I know this adapter handles that baud rate, as I can set it via a terminal program and communicate to my external device.

Any ideas?


References:
Re: ASYN Communication through windows serial port (via USB) Emmanuel Mayssat

Navigate by Date:
Prev: Re: ASYN Communication through windows serial port (via USB) Emmanuel Mayssat
Next: RE: ASYN Communication through windows serial port (via USB) Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
Navigate by Thread:
Prev: Re: ASYN Communication through windows serial port (via USB) Emmanuel Mayssat
Next: RE: ASYN Communication through windows serial port (via USB) Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·