Hi!
I’ve used QNX 4 & many other OSs for years and used the parallel port
(0x378) for I/O. Under QNX 6 I have tried several programs that are intermittant at best an do not seem to operate at all in other cases.
I’m a newbie with QNX 6 so bear with me…
X86 is correct.
Running as root, (also setuid)
Compile command is:
qcc rout.cc -o ro
followed by
chmod 4755 ro
Both issued as root.
What’s really puzzeling is it occassionally works. This is actually a simplified version that doesn’t work.
I originally had a more complicated version that repeated 20 times with 50ms between outputs of 0xff & 0x00.
Scope is on pins 4 & gnd. DC coupled.
I plan to try on another computer (swap drive).
Computer is a Dell. Port is on motherboard, and as previously stated
works when booted into DOS with debug.
Not that it should matter, but you could try renaming to rout.c (from rout.cc) in order to compile with the C compiler…
Are you slaying devc-par, or did you remove it from the enumeration (see /etc/system/enum/devices/char) ? It could be that if you are slaying it after it has started that it leaves the port in some funny state.
THANK YOU!!
Life is logical again.
It was the removal from the enumeration.
I find it VERY useful to use the parallel port. Low overhead, accurate
(real) timing of functions, etc. It’s almost always there, decoded, and hardly ever used for a printer!!