On Tue, 2004-08-17 at 16:42, Richard E Miles wrote: > > I am setting up a program that uses posix serial communication. I have ported this project from MAC OS X and everything seems to be fine except incoming data. It seems the "/dev/ttyS0" does not behave like it should ( I can't read any data from it). The problem is that any calls to "/dev/ttyd0" don't work. Is there something I have to do to get "/dev/ttyd0" to work?? > > > > By the way I am using just the standard POSIX open and read/write > commands. Any thoughts? > > > > Thanks Josh > > > > Maybe you need to set the IRQ up. What does setserial /dev/ttyS0 report? > Is this correct for your system? > -- > Richard E Miles > Federal Way WA. > registered linux user 46097 Josh, You mention ttyS0 and ttyd0, I've never used ttyd0, but I have used ttyS0 for several things. Are your read calls returning any errors? Take a look at /proc/ioports 03f8-03ff : serial(auto) and /proc/interrupts 4: 6 0 IO-APIC-edge serial They should match your hardware for ttyS0. The serial port interrupt does not appear to be allocated until the device is opened and is deallocated when it is closed. Two other things: Check that there is not a getty running on ttyS0 and verify the permissions for /dev/ttyS0. Bob...
Attachment:
signature.asc
Description: This is a digitally signed message part