EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  <19981999  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  Index 1994  1995  1996  1997  <19981999  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 
<== Date ==> <== Thread ==>

Subject: RE: Serial rate on mv162
From: [email protected] (Jeff Hill)
To: "'Garrett D. Rinehart'" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 21 Oct 1998 13:07:52 -0600
On Wednesday, October 21, 1998 12:39 PM, Garrett D. Rinehart [SMTP:[email protected]] wrote:
> I gather from what I've found in the listserver 
> archives that one can change the baud rate of a serial 
> port via "ioctl". What I can't figure out is how. All I 
> want to do is switch one of the ports on my 162 to 1200 
> baud. Can someone out there please tell me how?
> 
> -- Garrett Rinehart
>    IPNS, ANL


/*
 * conveinence routine which sets the baud rate from the vxWorks shell
 * (called before iocInit)
 */
int drvSerialSetBaudRate (const char *pName, unsigned rate)
{
	int fd;
	int status;

	fd = open (pName, O_RDWR, 0);
	if (fd<0) {
		return fd;
	}

	status = ioctl (fd, SIO_BAUD_SET, (int) rate);

	close (fd);

	return status;
}

Navigate by Date:
Prev: Serial rate on mv162 Garrett D. Rinehart
Next: RE: result: CA links dont connect Jeff Hill
Index: 1994  1995  1996  1997  <19981999  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 
Navigate by Thread:
Prev: Serial rate on mv162 Garrett D. Rinehart
Next: RE: result: CA links dont connect Jeff Hill
Index: 1994  1995  1996  1997  <19981999  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·