Dumb Terminal for QNX 6

We have an application that requires a dumb terminal for our users.
Does anyone out there know how to set up a serial channel so that
a Login: prompt appears when the user attaches a device to it?

The QNX 4 documentation suggests the I use tinit but this does not
appear to be working under QNX6 (only tinit -P is allowed)

We have managed to work around this by using:

on -t/dev/ser1 login -p

but this will only work until the user type logout!


Thanks in advance

Neptune

Try the following entry in your /etc/sysinit file;

tinit -t ser1 &



You wrote:

We have an application that requires a dumb terminal for our users.
Does anyone out there know how to set up a serial channel so that
a Login: prompt appears when the user attaches a device to it?

The QNX 4 documentation suggests the I use tinit but this does not
appear to be working under QNX6 (only tinit -P is allowed)

We have managed to work around this by using:

on -t/dev/ser1 login -p

but this will only work until the user type logout!

Thanks in advance

Neptune

Would (should) this same command work in a build script for an embedded
target?

“Paul N. Leonard” <paull@ifspurity.com> wrote in message
news:3B49D9F7.B280832D@ifspurity.com

Try the following entry in your /etc/sysinit file;

tinit -t ser1 &



You wrote:

We have an application that requires a dumb terminal for our users.
Does anyone out there know how to set up a serial channel so that
a Login: prompt appears when the user attaches a device to it?

The QNX 4 documentation suggests the I use tinit but this does not
appear to be working under QNX6 (only tinit -P is allowed)

We have managed to work around this by using:

on -t/dev/ser1 login -p

but this will only work until the user type logout!

Thanks in advance

Neptune

We are using it in our embedded system which has a Disk-on-chip device.
The only build script I can think of is for the boot file and I’m
not sure if it will work there.

Has someone else tried this?

Issam Haddad wrote:

Would (should) this same command work in a build script for an embedded
target?

“Paul N. Leonard” <> paull@ifspurity.com> > wrote in message
Try the following entry in your /etc/sysinit file;

tinit -t ser1 &

It doesn’t work from the build file, although I understand from a QNX source
that it should - albeit via some undocumented mechanism. I have not tried
it using a /etc/sysinit file on the embedded system. Also, the
documentation does not make reference to the “-t” option…


“Paul N. Leonard” <paull@ifspurity.com> wrote in message
news:3B49E04C.AD0BD1B3@ifspurity.com

We are using it in our embedded system which has a Disk-on-chip device.
The only build script I can think of is for the boot file and I’m
not sure if it will work there.

Has someone else tried this?

Issam Haddad wrote:

Would (should) this same command work in a build script for an embedded
target?

“Paul N. Leonard” <> paull@ifspurity.com> > wrote in message
Try the following entry in your /etc/sysinit file;

tinit -t ser1 &

My mistake, the -t option is for QNX4 and it specifies a port.
tinit under Neutrino(and QNX6) does not provide this option.
Someone with more familiarity with QNX6 should be able to help you
although I think tinit still may be the right direction.

<!doctype html public “-//w3c//dtd html 4.0 transitional//en”>

Hi There,

I have now solved the QNX6 dumb terminal problem. It would appear that tinit has been rewritten to prevent initialisation of serial channels through the command line. However...

The solution I have found is to do the following

1.    Set up the seial channel during initialisation (rc.local) using something like:

         echo "Setting Serial channel 1 for TTY Login"
    stty +edit +fix baud=115200 < /dev/ser1

2.     Disable photon auto login by creating the folloring file

    /etc/system/config/nophoton

3.    Add the following line to /etc/ttys

        ser1 "/bin/login" vt100 on
 

This will enable a VT100 type terminal session on the serial channel running at 115Kbaud. Modify the stty to include flow control if you wish

The auto photon login has to be disabled as it prevents the serial channel login from starting until the user exits photon. You can always start photon once you have logged in.

Dave aka Neptune
 
 
 
 

"Paul N. Leonard" wrote:

My mistake, the -t option is for QNX4 and it specifies a port.
tinit under Neutrino(and QNX6) does not provide this option.
Someone with more familiarity with QNX6 should be able to help you
although I think tinit still may be the right direction.