Simple write to a Serial Port

I have four serial ports which I understand are represented by /dev/ser1 →
ser4.

devc-ser8250 is running.

Is there a simple way of writing to one of these ports to check a connection
to a PC running Hyperterminal?

Ian Macafee <imacafee@radamec.co.uk> wrote:

I have four serial ports which I understand are represented by /dev/ser1 -
ser4.

devc-ser8250 is running.

Is there a simple way of writing to one of these ports to check a connection
to a PC running Hyperterminal?

cat > /dev/ser1

Then type into your terminal?

More complex, but more powerful:

qtalk -m /dev/ser1

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

I have been trying to communicate with a Windows 2000 based PC using cat

/dev/ser1 and qtalk -m /dev/ser1, however, the translated characters
are nothing like what I typed. Is there something other than the

default setup of devc-ser8250 that I have to do? When I do a stty -a
this is the result:
-parenb -parodd -parstk -cstopb -inpck +hupcl +cread -clocal +isig +icanon
+iexten +echo +echoe +echok +echoke +echonl +echoctl -noflsh -ignbrk +brkint
-ignpar -parmrk -istrip -inlcr -igncr +icrnl +imaxbel +opost +onlcr
-isflow +osflow -ihflow -ohflow
intr=^C quit=^\ erase=^? kill=^U eof=^D eol=^- eol2=^- swtch=^-
start=^Q stop=^S susp=^Z dsusp=^- reprint=^- discard=^- werase=^- lnext=^V
min=01 time=00 fwd=^- login=^- pr1=^[ pr2=5B pr3=^- pr4=^-
sf1=^- sf2=^- sf3=^- sf4=^- left=44 right=43 up=41 down=42
ins=40 del=50 rub=^- can=^- home=48 end=59
par=none bits=8 stopb=1 baud=9600 rows=35,80

For example, the cat string of 0123456789abcdef becomes û.

Any help would be appreciated.

Steve



David Gibbs wrote:

Ian Macafee <> imacafee@radamec.co.uk> > wrote:

I have four serial ports which I understand are represented by /dev/ser1 -
ser4.


devc-ser8250 is running.


Is there a simple way of writing to one of these ports to check a connection
to a PC running Hyperterminal?


cat > /dev/ser1

Then type into your terminal?

More complex, but more powerful:

qtalk -m /dev/ser1

-David

Steve Wortley <Steve.Wortley@millenium-biologix.com> wrote:

I have been trying to communicate with a Windows 2000 based PC using cat
/dev/ser1 and qtalk -m /dev/ser1, however, the translated characters

par=none bits=8 stopb=1 baud=9600 rows=35,80

What is the baud and other settings on the other (Windows) side? I’m
betting that it hasn’t defaulted/been set to 9600 baud.

-David


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

I have been setting the Windows side hyperterminal to 9600,8,N,1, with
no hardware flow control. I have even run a Windows hyperterminal on
the target (instead of QNX) and the hardware seems to be functioning.
I’m only having difficulty with the bridge between QNX and Windows. Is
it suppose to be compatible without any additional setup beyond the
defaults? My QNX target is a Diamond Systems Prometheus PC-104. The
device driver controlling the serial ports is the devc-ser8250.

David Gibbs wrote:

Steve Wortley <> Steve.Wortley@millenium-biologix.com> > wrote:

I have been trying to communicate with a Windows 2000 based PC using cat
/dev/ser1 and qtalk -m /dev/ser1, however, the translated characters


par=none bits=8 stopb=1 baud=9600 rows=35,80


What is the baud and other settings on the other (Windows) side? I’m
betting that it hasn’t defaulted/been set to 9600 baud.

-David