Trouble with qtalk - Transfer files through serial port at t

Hi everyone,

I am trying to configure my QNX Momentics V6.2.1 to send files through
serial port 1 (/dev/ser1) and receive the same file through the other serial
port (/dev/ser2).
I would like to use this procedure to test my hardware (mainly serial
ports)!
I have used a twisted cable with following pinout:

Port 1 -------------------- Port 2
2 ---------------------------------- 3
3 ---------------------------------- 2
5 ---------------------------------- 5

I have started two terminal (console) where I am running “qtalk” in both
side. When I type any character into the one console I see the character
shows into the other console and vice-versa.
But when I try to send files using “qcp” protocol I don´t get any success
and the qtalk stays “blocked”!

I am using the commands:
(At console 1 - directory /tmp/send)
stty -a -isflow -osflow -ihflow -ohflow < /dev/ser1
qtalk -b 9600,8,n,1 -m /dev/ser1
<< I used <ctrl+A> command “s” and type the name of my file to send! >>

(At console 2 - directory /tmp/receive)
stty -a -isflow -osflow -ihflow -ohflow < /dev/ser2
qtalk -b 9600,8,n,1 -m /dev/ser2
<< I used <ctrl+A> command “r” and type the name of my file to receive!

What have I been doing wrong to this procedure doesn´t work fine?
What can I do to solve this trouble?

Any help is appreciated.
Regards,
Ricardo Peres

T-Systems do Brasil Ltda.
TMAN - Eng. de Automação Industrial
Al. Campinas, 1070 - 11º andar
01404-002 - São Paulo - SP - Brazil
Phone: (55) (11) 3886-8287 or 3886-8297
Fax: (55) (11) 3886-2824


T-Systems do Brasil Ltda.
TMAN - Eng. de Automação Industrial
Al. Campinas, 1070 - 11º andar
01404-002 - São Paulo - SP - Brazil
Phone: (55) (11) 3886-8287 or 3886-8297
Fax: (55) (11) 3886-2824

I haven’t used qcp on QNX6. I have used it on QNX4. Let me try to
correct your procedure.

What you did do does confirm that the two ports are talking to each
other and that is a good thing. But the intended way to use qtalk is
that you dial from a local computer into another computer (may may
very well be the same computer). But instead of typing into another
qtalk session you need to get a login prompt and login. You may need
to edit /etc/config/ttys to get a login prompt. If yo do have to edit
this file you may need to reboot after you make the changes. You may
also need to write something to answer the modem on the other
computer. The modem program was never ported to QNX6.

So, dial into the other computer and login. You now have a session
similar to a telnet session going. Type into the remote shell either
qcp re
and then on your local computer’s qtalk do a -A (this pops up a
command menu), type ‘s’ to send a file and give it teh name of the
file.

Or do a
qcp se /this/is/the/pathname/of/my/file
Your local qtalk should recognize this and automaticall start
receiving the file.

When you mention the file to send you can use a command to change
it’s pathname. I.E.

qcp se /my_dir/config.file,/joes_dir/config.file.backup

Or you can cd into the directories that you want to use on each end
and just enter relative pathnames.

I hope this helps.


Ricardo Peres <ricardo.peres@t-systems.com.br> wrote:
RP > Hi everyone,

RP > I am trying to configure my QNX Momentics V6.2.1 to send files through
RP > serial port 1 (/dev/ser1) and receive the same file through the other serial
RP > port (/dev/ser2).
RP > I would like to use this procedure to test my hardware (mainly serial
RP > ports)!
RP > I have used a twisted cable with following pinout:

RP > Port 1 -------------------- Port 2
RP > 2 ---------------------------------- 3
RP > 3 ---------------------------------- 2
RP > 5 ---------------------------------- 5

RP > I have started two terminal (console) where I am running “qtalk” in both
RP > side. When I type any character into the one console I see the character
RP > shows into the other console and vice-versa.
RP > But when I try to send files using “qcp” protocol I dont get any success
RP > and the qtalk stays “blocked”!

RP > I am using the commands:
RP > (At console 1 - directory /tmp/send)
RP > stty -a -isflow -osflow -ihflow -ohflow < /dev/ser1
RP > qtalk -b 9600,8,n,1 -m /dev/ser1
RP > << I used <ctrl+A> command “s” and type the name of my file to send! >>

RP > (At console 2 - directory /tmp/receive)
RP > stty -a -isflow -osflow -ihflow -ohflow < /dev/ser2
RP > qtalk -b 9600,8,n,1 -m /dev/ser2
RP > << I used <ctrl+A> command “r” and type the name of my file to receive!

RP > What have I been doing wrong to this procedure doesnt work fine?
RP > What can I do to solve this trouble?

RP > Any help is appreciated.
RP > Regards,
RP > Ricardo Peres
RP > –
RP > T-Systems do Brasil Ltda.
RP > TMAN - Eng. de Automao Industrial
RP > Al. Campinas, 1070 - 11 andar
RP > 01404-002 - So Paulo - SP - Brazil
RP > Phone: (55) (11) 3886-8287 or 3886-8297
RP > Fax: (55) (11) 3886-2824

RP > –
RP > T-Systems do Brasil Ltda.
RP > TMAN - Eng. de Automao Industrial
RP > Al. Campinas, 1070 - 11 andar
RP > 01404-002 - So Paulo - SP - Brazil
RP > Phone: (55) (11) 3886-8287 or 3886-8297
RP > Fax: (55) (11) 3886-2824


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net

qcp for QNX6 was broken for a long time. There was also a problem with
qtalk. But both were fixed a long time ago. I presume that QSSL will
make the working versions available in some future release.

Geoff Roberts



Bill Caroselli wrote:

I haven’t used qcp on QNX6. I have used it on QNX4. Let me try to
correct your procedure.

What you did do does confirm that the two ports are talking to each
other and that is a good thing. But the intended way to use qtalk is
that you dial from a local computer into another computer (may may
very well be the same computer). But instead of typing into another
qtalk session you need to get a login prompt and login. You may need
to edit /etc/config/ttys to get a login prompt. If yo do have to edit
this file you may need to reboot after you make the changes. You may
also need to write something to answer the modem on the other
computer. The modem program was never ported to QNX6.

So, dial into the other computer and login. You now have a session
similar to a telnet session going. Type into the remote shell either
qcp re
and then on your local computer’s qtalk do a -A (this pops up a
command menu), type ‘s’ to send a file and give it teh name of the
file.

Or do a
qcp se /this/is/the/pathname/of/my/file
Your local qtalk should recognize this and automaticall start
receiving the file.

When you mention the file to send you can use a command to change
it’s pathname. I.E.

qcp se /my_dir/config.file,/joes_dir/config.file.backup

Or you can cd into the directories that you want to use on each end
and just enter relative pathnames.

I hope this helps.

Ricardo Peres <> ricardo.peres@t-systems.com.br> > wrote:
RP > Hi everyone,

RP > I am trying to configure my QNX Momentics V6.2.1 to send files through
RP > serial port 1 (/dev/ser1) and receive the same file through the other serial
RP > port (/dev/ser2).
RP > I would like to use this procedure to test my hardware (mainly serial
RP > ports)!
RP > I have used a twisted cable with following pinout:

RP > Port 1 -------------------- Port 2
RP > 2 ---------------------------------- 3
RP > 3 ---------------------------------- 2
RP > 5 ---------------------------------- 5

RP > I have started two terminal (console) where I am running “qtalk” in both
RP > side. When I type any character into the one console I see the character
RP > shows into the other console and vice-versa.
RP > But when I try to send files using “qcp” protocol I dont get any success
RP > and the qtalk stays “blocked”!

RP > I am using the commands:
RP > (At console 1 - directory /tmp/send)
RP > stty -a -isflow -osflow -ihflow -ohflow < /dev/ser1
RP > qtalk -b 9600,8,n,1 -m /dev/ser1
RP > << I used <ctrl+A> command “s” and type the name of my file to send!

RP > (At console 2 - directory /tmp/receive)
RP > stty -a -isflow -osflow -ihflow -ohflow < /dev/ser2
RP > qtalk -b 9600,8,n,1 -m /dev/ser2
RP > << I used <ctrl+A> command “r” and type the name of my file to receive!


RP > What have I been doing wrong to this procedure doesnt work fine?
RP > What can I do to solve this trouble?

RP > Any help is appreciated.
RP > Regards,
RP > Ricardo Peres
RP > –
RP > T-Systems do Brasil Ltda.
RP > TMAN - Eng. de Automao Industrial
RP > Al. Campinas, 1070 - 11 andar
RP > 01404-002 - So Paulo - SP - Brazil
RP > Phone: (55) (11) 3886-8287 or 3886-8297
RP > Fax: (55) (11) 3886-2824

RP > –
RP > T-Systems do Brasil Ltda.
RP > TMAN - Eng. de Automao Industrial
RP > Al. Campinas, 1070 - 11 andar
RP > 01404-002 - So Paulo - SP - Brazil
RP > Phone: (55) (11) 3886-8287 or 3886-8297
RP > Fax: (55) (11) 3886-2824


Bill Caroselli – Q-TPS Consulting
1-(626) 824-7983
qtps@earthlink.net




*** PLEASE NOTE NEW MOBILE PHONE NUMBER BELOW ***

Realtime Technology Systems Pty Ltd
2 Hadleigh Circuit
Isabella Plains
ACT 2905
AUSTRALIA

Phone: 61-2-6291 3833
Fax: 61-2-6291 3838
Mobile: 0408 673 993
Email: ger1@rtts.com.au