Re: Problem with fopen, linux, and RS-232, possibly

alp_at_linuxfarms.com
Date: 12/09/04


Date: 8 Dec 2004 17:02:46 -0800

Hi Gregory,

Are those pins you specified the DCD signal?
I am not sure how fopen() is calling open(), but you want to make sure
open() is called WITHOUT the O_NDELAY flag.
Also, you may want the O_NOCTTY flag to be present.

Try writing the program using open() instead, and specify the exact
flags.
You can also pass fcntl()s to the device.

If this is not DCD signal, and rather some obscure pins than the driver
may be unaware of its "readiness", then any open() call may not block.
Whether the device is actually capable of sending data or not. I
haven't checked the serial pinout to verify.

Here is some reading that may be of assistance.
http://www.easysw.com/~mike/serial/serial.html#2_5
Hope this helps.

Art Perry
Linux Systems/Software Engineer



Relevant Pages

  • Re: Problem with fopen, linux, and RS-232, possibly
    ... On Wed, 8 Dec 2004, Gregory Graham wrote: ... Are those pins you specified the DCD signal? ... you may want the O_NOCTTY flag to be present. ... Try writing the program using openinstead, and specify the exact flags. ...
    (comp.lang.c)
  • Re: CreateFile() and FILE_FLAG_WRITE_THROUGH
    ... BUT this will not work UNLESS you specify the ... FILE_FLAG_NO_BUFFERING flag, ... I have now proved to myself that file metadata is not written ... disk structure to be consistent, this incurs a cost and that's why the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Letting a user select a color for a control
    ... CC_FULLOPEN flag instead of the CC_SOLIDCOLOR flag in order to do this. ... is there any way to specify where on the screen the Color Dialog ... > specify an initial color selection. ... >> something before calling aDialogColor. ...
    (microsoft.public.access.modulesdaovba)
  • Re: date from yesterday
    ... | | versions of date that uses the -v flag. ... | | adjust units, but without the -/+ preceding the unit it gives the ... Users in countries that didn't switch from the Julian ... Fully functional demos available by email request (specify OS). ...
    (comp.unix.sco.misc)
  • Re: how to import two .tlb uses same interface?
    ... Unless you specify no_namespace flag on #import directive, ... interfaces will be in different namespaces. ...
    (microsoft.public.vc.atl)