I'm using QNX4 on a PII. I need to test the serial com ports that are
externally looped around ser1 to ser2.
Doing "Dev.ser &" gets me /dev/ser1 and /dev/ser2. Do I need to mount them
also?How? Can I just open them in a C program with a File pointer or handle
and then write to ser1 and read from ser2?
Thanx.
Lou Kale
lou...@sprynet.com
No. After Dev.ser runs the ports are avialable for use.
> Can I just open them in a C program with a File pointer or handle
> and then write to ser1 and read from ser2?
Yes or use the qtalk terminal program...
qtalk -m /dev/ser1
qtalk -m /dev/ser2
Karl
--
Karl A. Morant | TEL 519 836 1291 | ka...@connecttech.com
Connect Tech Inc | FAX 519 836 4878 | http://www.connecttech.com
Connect Tech Inc. is a leading manufacturer of multi-port serial
adapters since 1985.
>
> Thanx.
> Lou Kale
> lou...@sprynet.com
>
>
cp /dev/ser2 /junk &
cp /myfile /dev/ser1
slay cp
cat junk
....and you should see myfile on screen.
Hope this helps.
lou kale wrote:
>
> I'm a QNX newbie, so thanx for any help.
>
> I'm using QNX4 on a PII. I need to test the serial com ports that are
> externally looped around ser1 to ser2.
>
> Doing "Dev.ser &" gets me /dev/ser1 and /dev/ser2. Do I need to mount them
> also?How? Can I just open them in a C program with a File pointer or handle
> and then write to ser1 and read from ser2?
>
> Thanx.
> Lou Kale
> lou...@sprynet.com
--
==============================================================
Francis Dunlop, P.Eng. Pason Systems Corp. fdu...@pason.com
Tel: (403) 255-3158 DID: (403) 212-4414 Fax: (403) 253-9681
==============================================================