From: Gilles Chanteperdrix MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17984.61751.376631.920611@domain.hid> Date: Tue, 8 May 2007 23:52:55 +0200 In-Reply-To: <1178659440.5074.9.camel@domain.hid> References: <1178645689.7883.9.camel@domain.hid> <17984.50298.842145.884348@domain.hid> <1178659440.5074.9.camel@domain.hid> Subject: Re: [Xenomai-help] rtser not showing up List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Brandt Erickson Cc: xenomai@xenomai.org Brandt Erickson wrote: > > > No node will turn up in /dev, you will find the list of available RTDM > > devices in /proc/xenomai/rtdm/named_devices. > > Okay, > there is a /proc/xenomai/rtdm/rtser0. The example opens the file > "rtser0", does this default to the full path name when I use > rt_dev_open? > > Right now, it appears I can open the file (rt_dev_open returns 0) and > configure the serial port (using rt_dev_ioctl), however, every call to > rt_dev_write returns -1. I'm using the configuration from the example > code which basically has everything set to defaults. Is there an > equivalent of errno I can get to find out what's going wrong? Thanks. > -Brandt The errors of the serial driver are documented here: http://www.xenomai.org/documentation/trunk/html/api/group__rtserial.html -1 is -EPERM... which is not documented. -EPERM probably means that you are trying to use a real-time call from a non real-time thread. See rt_task_shadow or rt_task_create. -- Gilles Chanteperdrix.