ncurses / terminfo key mapping on QNX console

We are using Industrial Rackmount computer but they are all passive
backplane with Single-Board Computer. So you can upgrade the power of your
machine just with changing one card. we have more than twelve installed. We
use SBC manufacture by Lanner Electronics and distributed by Amer.com in the
USA. This is a cheap solution and it works well. All runs with QNX 4 and we
use separate SCSI controllers.

\

Jean-Jacques Levesque

jlevesque@sigma-techno.com

Rick Suntag <rick@take-this-out.att.com> a écrit dans le message :
126sms8auhgpcc093ee2ueacrcrlq5ep4u@4ax.com

We’re looking for industrial strength rack mounted high-end PCs that are
certified to run QNX. We tried putting them on some high-end Compaq
servers and
had all sorts of problems trying to get the disk-subsystem to work. I’d
like to
get something that will work out of the box (hopefully certified by the
manufacturer to be QNX compatible). Anybody have any suggestions (we’d
prefer
brand name machines - they’re much easier to sell to management)!

Thanks,
Rick

Actually, the hardware clock on this machine keeps fairly accurate time,
hardly losing a second a day. Our current solution is to spawn a script to
do an rtc hw, on a frequent event that occurs in our system (once every 1.5
hours give or take). So far, the only side affect created is that ntp
adjusts us in a big increment of 1-30 seconds. When this happens in
forward/reverse direction, we are wondering if a bunch of timers go off too
soon or too late. We think ntp does this because it senses a drift in time
caused by the rtc hw command.

It is the software clock in qnx that is causing us the problem. And mainly
it is the big adjustments being made by ntp. I thought it was only
supposed to adjust gradually, in 128msec jumps. If you look at our
/dev/con1, it shows these message that start out “Photon: clock adjusted
by…” or something like that. And it has been in the past as high as 180
seconds. Since we started spawning the script, it has kept under 30
seconds, but it still causes problems once in a while.

The computers are kept in a well air conditioned rack. I don’t think
temperature should be a problem.

Scott

vboyko@my-deja.com wrote:

IMHO.

Although a 30 second change in time per day is extreme it’s only a 2%
error which is not unheard of with the “great precision” clocks in PCs.

I’ve seen PCs alter their time depending on whether they are
continually running or shutdown at night. The clock circuitry may not
be temperature compensated (lazy, stupid, or cost reason on the
design). So when the PC heats up its frequency may change – seen it.
Thus you may not be able to determine a single value for the frequency
that the clock is running at.

Vince

In article <> 396B7C7D.DFB555BC@switch.com> >,
“J. Scott Franko” <> jsfranko@switch.com> > wrote:
Has anyone ever found out why a PC running QNX4 and not doing much of
anything, loses time on the order of about 30 seconds a day? I’ve
heard
it mentioned that solaris on the same PC doesn’t lose time at such a
great rate.

Scott



Sent via Deja.com > http://www.deja.com/
Before you buy.

I don’t believe so. The graphics process is most likely a Matrox if I
remember correctly. It’s a compaq computer.

Mitchell Schoenbrun wrote:

By any odd chance is this computer running a
Cyrix Media GX processor?

J. Scott Franko <> jsfranko@switch.com> > wrote:
Has anyone ever found out why a PC running QNX4 and not doing much of
anything, loses time on the order of about 30 seconds a day? I’ve heard
it mentioned that solaris on the same PC doesn’t lose time at such a
great rate.

Scott


Mitchell Schoenbrun --------- > maschoen@pobox.com

I’ll Try it!!!

The instigator of this thread…
Paul@jenosys.com

Rick Lake <rwlake@anp.nl> wrote in message news:3971D10F.B4D8DF8B@anp.nl

I’ve put a tgz together with samba version 2.0.7. It’s about 6M in size
(ouch!). Before I drop this off at QUICS, I’d appreciate it if any
volunteers (preferably with W2K) would try it out first. (I can send it
by email or ftp.)

regards,

rick

Rick Lake wrote:

According to postings in the comp.protocols.smb group, 2.0.7 should be
able to work with W2K. I’m running 2.0.7 in-house for simple
straight-forward use, but I haven’t tried it with W2K, though.

Time permitting I’ll see about putting an install package together this
weekend and dropping it somewhere on QUICS. (Unless, of course, someone
else was already planning this. In that case, be my guest > :slight_smile:

You will have to run the test yourself to determine if it really does
work with W2K, because I don’t have W2K to test with.

regards,

rick

BTW: I’m assuming people have already patched their system to use the
new crypting algorithm to login(?)

Paul Russell wrote:

Has anyone ported a version of Samba that works with Windows2000 to
QNX4.25?
If possible, I would really like to get a copy of the binaries (I
don’t have
the tcp/ip libraries so I can’t build it myself).

Paul
paul@jenosys.com

Replied by email.
[Just some details about how to send over 6M]

Paul Russell wrote:

I’ll Try it!!!

The instigator of this thread…
Paul@jenosys.com

Rick Lake <> rwlake@anp.nl> > wrote in message news:> 3971D10F.B4D8DF8B@anp.nl> …
I’ve put a tgz together with samba version 2.0.7. It’s about 6M in size
(ouch!). Before I drop this off at QUICS, I’d appreciate it if any
volunteers (preferably with W2K) would try it out first. (I can send it
by email or ftp.)

regards,

rick

Rick Lake wrote:

According to postings in the comp.protocols.smb group, 2.0.7 should be
able to work with W2K. I’m running 2.0.7 in-house for simple
straight-forward use, but I haven’t tried it with W2K, though.

Time permitting I’ll see about putting an install package together this
weekend and dropping it somewhere on QUICS. (Unless, of course, someone
else was already planning this. In that case, be my guest > :slight_smile:

You will have to run the test yourself to determine if it really does
work with W2K, because I don’t have W2K to test with.

regards,

rick

BTW: I’m assuming people have already patched their system to use the
new crypting algorithm to login(?)

Paul Russell wrote:

Has anyone ported a version of Samba that works with Windows2000 to
QNX4.25?
If possible, I would really like to get a copy of the binaries (I
don’t have
the tcp/ip libraries so I can’t build it myself).

Paul
paul@jenosys.com

Thanks all.
KenR

Bill at Sierra Design wrote:

There’s always “roll-your-own” using ps_info()

Mike Taillon <> miket@qnx.com> > wrote in message
news:8kimek$85c$> 2@nntp.qnx.com> …
Bill at Sierra Design <> BC@sierradesign.com> > wrote:
Here is another useful trick: To get the exact version of all running
software, even if it does NOT respond to a sin ve request, try;
sin fo nT


very useful… but doesn’t output the year ;=(

(i’ve been bit before…)

(ghowland69@my-deja.com) wrote
]In article <8kuekv$3b0h3$1@ID-26022.news.cis.dfn.de>,
] Chris Costello <chris@FreeBSD.org> wrote:
]> Donn Miller <dmmiller@cvzoom.net> wrote:
]> > I was wondering – do you think it would be possible to fork off
]> > another distro of FreeBSD, one that concentrates mainly on
]microkernel
]> > design? I also wonder if Solaris uses a microkernel?
]>
]> Any reason you have in mind?
]>
]> - Chris Costello <chris@FreeBSD.org>
]>
]
]
]I for one would like to run a web server, firewall, and NAT office
]router on a PC/104 386/486 machine with only 32Meg ram and an 8meg
]flash disk

QNX may be able to do that

get.qnx.com

As Mitchell said, I also wanted the source code of netinfo last
year, but QSSL said I must sign a NDA with them, Wooo, Cool!

Maybe we should wait until QSSL release the source code next
century. :wink:

Mitchell Schoenbrun <maschoen@tsoft.com> wrote in message
news:smq2a9m7nd623@corp.supernews.com

Ok, I think I know as much about this as anyone. QNX is somewhat
picky about who gets this interface. I don’t know the exact
reasons, but plausible ones are, A) you could get around
their node licensing with it, B) it’s a very messy ugly
interface which they don’t want to support except for
internally.

They do provide Net.fd which works very well if you do
not require the absolutely fastest performance. To day
I think that only comes up with 100TX ethernet or the
equivalent.

When I last dealt with QSSL about this, I was told that
they hadn’t provided an NDA for this interface in two
years. I have my doubts about this having seen the
result of a more recent development, but it was from
a very very big company.

The headers you spoke of might have come from the raw packet
interface. QSSL provides this without an NDA, and it
is downloadable from QUICS. There are some interfaces to
Net that are available in one form or another, but this
is not the same as the Net to Net.driver interface.

Take a look on QUICS at:

/usr/free/qnx4/os/net/netraw.v4.tgz


ian zagorskih <> ianzag@mail.ru> > wrote:
hi all

i heard that Net and Net.* drivers interface is hidden for public
domain
by qssl and mayne there’s some actual reasons for this, but afair i’v
saw
somewhere sys/net_msg.h header that described some part of this
interface
but i cannot remind where exactly i saw that > :frowning: > there’s no such header
in my
watcom 10.6. exactly, i need some interface to ethernet card driver to
send
and receive raw packets a’la Tcpip does it i.e. we need to build out
custom
network protocol stack different from ip.

ps: not to just write driver for some new network card.

any sugestions ? i exactly remember that somewrere i saw this
sys/net_msg.h but where !

thanks

// wbr



\

Mitchell Schoenbrun --------- > maschoen@pobox.com

I too am looking for a solution to this. Ideally I’d like a UDF v1.5
CD-R driver for QNX. We use a third party device that has QNX embedded
in it which is mounted in the field. It currently uses Fujitsu 3.5" MO
drives for removable mass storage, however the client actually wants a
Write-Once solution which these are not. A CD-R with a packet writing
driver (eg UDF) would seem a good cheap solution. If not we’ll have to
go to the Maxoptics or Sony 5.25" WORM drives - but who knows how long
they’ll still be around, as well as the hassle of converting to SCSI &
supplying drives for the media at the other end of the chain.

Any suggestions gratefully received.

Chris Hoffmann.

Chris Travis wrote:

In qdn.public.qnx4 Scott Merz <> scottm@gorge.net> > wrote:
hi
Hello,

There is no s/w available from QNX, but there is a method for how to burn
a CD for QNX in the QDN
http://support.qnx.com/support/bok/solution.qnx?5348

Also may be third party support:
http://support.qnx.com/support/bok/solution.qnx?8658

Chris

i was wondering if anybody has heard of software used for utilizing a cd
burner in qnx…im talkin software that would allow you to burn cd’s from
inside qnx w/ qnx files

if anybody has any info on this
id appreciate it

Scott Merz
Solution Engineering

Previously, Andor wrote in comp.os.qnx:

On 10 Jul 2000 14:32:57 GMT, Mike Taillon <> miket@qnx.com> > wrote:

I dont have so much files open, but queues. After closing some

In QNX, though POSIX doesn’t say this must be so, queue descriptors
are file descriptors, so yes, you should be able to fcntl() them to
close-on-exec (I’ve never tried, but the other io functions I’ve
done on them work just fine).

Sam

queues for testing it works fine … But i need a lot
of queues because of elastic coupling of processes.
Is it possible to use fcntl() and F_CLOEXEC also ?
How do I do that ?
After mq_open(), can I do fcntl() with the (mqd_t ) mq_des ?
Thanks again in advance,
Andor


Sam Roberts (sam@cogent.ca), Cogent Real-Time Systems (www.cogent.ca)
“News is very popular among its readers.” - RFC 977 (NNTP)

Its all working (new QNX crypt and your Samba2.07 binaries), with both
Win2k and WinNT, in both full networks and simple back-to-back setups!

We did set the Win2k to plaintextpasswd as with WinNT/95.
Note that the Win2k had to be rebooted for this change - Mostly Win2k
doesn’t have to be rebooted for network changes unlike WinNT/95, but in this
instance that wasn’t true.

Thank you very much for this software. The installation was very easy!

Only problem is my boss doesn’t want to put the QNX crypt fix at all our
sites yet,
so I held off from putting the Samba2.07 everywhere.
But I will continue testing it at my own test setup.
Now if we can only get QNX to advance the qcrypt from Beta to a Release…

Again Thank you. This will make life easier!

-Paul


Rick Lake <rwlake@anp.nl> wrote in message news:397356F7.9F88A81F@anp.nl

Replied by email.
[Just some details about how to send over 6M]

Paul Russell wrote:

I’ll Try it!!!

The instigator of this thread…
Paul@jenosys.com

Rick Lake <> rwlake@anp.nl> > wrote in message
news:> 3971D10F.B4D8DF8B@anp.nl> …
I’ve put a tgz together with samba version 2.0.7. It’s about 6M in
size
(ouch!). Before I drop this off at QUICS, I’d appreciate it if any
volunteers (preferably with W2K) would try it out first. (I can send
it
by email or ftp.)

regards,

rick

Rick Lake wrote:

According to postings in the comp.protocols.smb group, 2.0.7 should
be
able to work with W2K. I’m running 2.0.7 in-house for simple
straight-forward use, but I haven’t tried it with W2K, though.

Time permitting I’ll see about putting an install package together
this
weekend and dropping it somewhere on QUICS. (Unless, of course,
someone
else was already planning this. In that case, be my guest > :slight_smile:

You will have to run the test yourself to determine if it really
does
work with W2K, because I don’t have W2K to test with.

regards,

rick

BTW: I’m assuming people have already patched their system to use
the
new crypting algorithm to login(?)

Paul Russell wrote:

Has anyone ported a version of Samba that works with Windows2000
to
QNX4.25?
If possible, I would really like to get a copy of the binaries (I
don’t have
the tcp/ip libraries so I can’t build it myself).

Paul
paul@jenosys.com

Paul Russell wrote:

Its all working (new QNX crypt and your Samba2.07 binaries), with both
Win2k and WinNT, in both full networks and simple back-to-back setups!

Great news :slight_smile:

We did set the Win2k to plaintextpasswd as with WinNT/95.
Note that the Win2k had to be rebooted for this change - Mostly Win2k
doesn’t have to be rebooted for network changes unlike WinNT/95, but in this
instance that wasn’t true.

The other way around is to turn on encryption in samba. (See global
config in SWAT) Since I only have Win95, I can’t test this. But
according to reports I heard, it should work.

Thank you very much for this software. The installation was very easy!

Actually thank the samba team at samba.org. I only ported it (and that
was easy).

Only problem is my boss doesn’t want to put the QNX crypt fix at all our
sites yet,
so I held off from putting the Samba2.07 everywhere.

I just thought of something: you could try creating a test account on
your system that has the encryption patch, and then manually copy the
resulting entries from your /etc/passwd and /etc/shadow files to the
files on your other (non-patched) system(s). The old pw-lookup utils on
those systems (login, ftpd, telnetd, etc…) will fail with this
particular account, but samba should be able to work with it. It’s just
a thought experiment, but I don’t see why this shouldn’t work.

But I will continue testing it at my own test setup.
Now if we can only get QNX to advance the qcrypt from Beta to a Release…

Agreed. This would be best.

Again Thank you. This will make life easier!

No problem at all. Glad to have helped :slight_smile:

-Paul

Rick Lake <> rwlake@anp.nl> > wrote in message news:> 397356F7.9F88A81F@anp.nl> …
Replied by email.
[Just some details about how to send over 6M]

Paul Russell wrote:

I’ll Try it!!!

The instigator of this thread…
Paul@jenosys.com

Rick Lake <> rwlake@anp.nl> > wrote in message
news:> 3971D10F.B4D8DF8B@anp.nl> …
I’ve put a tgz together with samba version 2.0.7. It’s about 6M in
size
(ouch!). Before I drop this off at QUICS, I’d appreciate it if any
volunteers (preferably with W2K) would try it out first. (I can send
it
by email or ftp.)

regards,

rick

Rick Lake wrote:

According to postings in the comp.protocols.smb group, 2.0.7 should
be
able to work with W2K. I’m running 2.0.7 in-house for simple
straight-forward use, but I haven’t tried it with W2K, though.

Time permitting I’ll see about putting an install package together
this
weekend and dropping it somewhere on QUICS. (Unless, of course,
someone
else was already planning this. In that case, be my guest > :slight_smile:

You will have to run the test yourself to determine if it really
does
work with W2K, because I don’t have W2K to test with.

regards,

rick

BTW: I’m assuming people have already patched their system to use
the
new crypting algorithm to login(?)

Paul Russell wrote:

Has anyone ported a version of Samba that works with Windows2000
to
QNX4.25?
If possible, I would really like to get a copy of the binaries (I
don’t have
the tcp/ip libraries so I can’t build it myself).

Paul
paul@jenosys.com

Is this it Johanna ? http://forward.to/research

“Johanna svenson” <J.Svenson@surnet.se> wrote in message
news:398F7447.95599EA7@surnet.se

Hey there, I use to know a cool site but I cant
remember the adress any more. Do you still have
it Nadine ?

Previously, J. Scott Franko wrote in comp.os.qnx:

I’m about to get cable or dsl networking too. I have Apple’s airport,
broadcasting encrypted 802.11 network access throughout my apartment
through its built in modem. When the dsl or cable comes in, I can
connect it to the airport wth ethernet (the airport has both a modem,
and 10mb ethernet port).

That’s interesting, where would I find information on how it’s encrypted?
And the airport does NAT, eh, is it also a firewall? How’s it configured?

Linux and *BSD have a pppdoe driver, so it’s just hurried my firewall
building effort. Still, its pretty frustrating, DHCP is a perfectly
good standard protocol, and Bell’s reasons for turfing it are all bad
for the customer. Arrrgh.

In my research, I have been finding that many people have found devices
to translate pppoe to ethernet ports. If you hit some of the powerbook
newsgroups and websites, you will see many discussions of people hooking
up such services to their airport and powerbooks, using devices from
Linksys, etc. It will definitely apply to your situation as well. I
already have a $99 5 port ethernet switch from Linksys, and the Airport
does NAT and DHCP. All I need is the pppoe translation.

Yes, there seems to be a number of these devices around, but I’m not
going to buy something I can build myself out of the 486 sitting under
my bed…

Cheers!
Sam

p.s. Still the Mac fan, eh! One of my roommates has a 5 year old Mac,
and hopefully I’ll be able to get it connected to the firewall so
she doesn’t have to go to her parents to read e-mail… Didn’t look
too promising, the hardware isn’t cheap.


Sam Roberts (sam@cogent.ca), Cogent Real-Time Systems (www.cogent.ca)
“News is very popular among its readers.” - RFC 977 (NNTP)

Please post a link to this file. I can not locate it at
www.qnx.com. I hate 800x600 at 54Hz!

TIA

\

Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com

Please post a link to the refresh_s3 file. I could not find it
at www.qnx.com, and I hate working at 800x600 at 54Hz.

TIA

\

Got questions? Get answers over the phone at Keen.com.
Up to 100 minutes free!
http://www.keen.com

The airport flying saucer is $299. It uses a Lucent Wavelan Silver Turbo
11mbits per second PCMCIA card (now branded Orinoco). It uses 40bit WAP
encryption. Lucent has a gold card which uses >100bit encryption (I think its
128bit), something other than WAP, but I forget off the top of my head. You
can get the information by going to http://www.wavelan.com/. There are web
pages out there that show you how to modify the airport to swap the silver for
the gold. Lucent sells their own solutions but they are more costly than
Apples. But you can get some serious range with an add on antenna. There are
web pages that show you how to modifies the airport to add the antenna.

The aiport has Nat, DHCP, but no firewall in the traditional sense. But you
can do things like set up an “allow” list of MAC addresses, password protect
your network, hide automatic discovery of you network, requiring the
connecting computer to name the network and supply the password, and since the
airport supplies the addresses through dhcp and distributes to your internal
network with NAT, you have a single address at the airport that is exposed to
the internet. The *nix running all this is locked up pretty tight.

What people are doing running a line from the wall to a PPPoE modem, to a hub
or switch that has the airport attached. You can then have wireless clients
connect, as well as wired.

THe majority of the cable ISP’s and the DSL ISP’s customers are not
professionals like us, and PPPoE seems to be the perfect solution for an
installer to come hook up for the non professional. I talked to Bell
Atlantic, and they have a professional solution, but it still uses PPPoE. I
guess if you want better, you have to pay through the nose, like a business
would.

Sam Roberts wrote:

Previously, J. Scott Franko wrote in comp.os.qnx:
I’m about to get cable or dsl networking too. I have Apple’s airport,
broadcasting encrypted 802.11 network access throughout my apartment
through its built in modem. When the dsl or cable comes in, I can
connect it to the airport wth ethernet (the airport has both a modem,
and 10mb ethernet port).

That’s interesting, where would I find information on how it’s encrypted?
And the airport does NAT, eh, is it also a firewall? How’s it configured?

Linux and *BSD have a pppdoe driver, so it’s just hurried my firewall
building effort. Still, its pretty frustrating, DHCP is a perfectly
good standard protocol, and Bell’s reasons for turfing it are all bad
for the customer. Arrrgh.

In my research, I have been finding that many people have found devices
to translate pppoe to ethernet ports. If you hit some of the powerbook
newsgroups and websites, you will see many discussions of people hooking
up such services to their airport and powerbooks, using devices from
Linksys, etc. It will definitely apply to your situation as well. I
already have a $99 5 port ethernet switch from Linksys, and the Airport
does NAT and DHCP. All I need is the pppoe translation.

Yes, there seems to be a number of these devices around, but I’m not
going to buy something I can build myself out of the 486 sitting under
my bed…

Cheers!
Sam

p.s. Still the Mac fan, eh! One of my roommates has a 5 year old Mac,
and hopefully I’ll be able to get it connected to the firewall so
she doesn’t have to go to her parents to read e-mail… Didn’t look
too promising, the hardware isn’t cheap.


Sam Roberts (> sam@cogent.ca> ), Cogent Real-Time Systems (> www.cogent.ca> )
“News is very popular among its readers.” - RFC 977 (NNTP)

don_e@bid-service.com (Don Eilenberger) writes:

We have a piece of manufacturing equipment, which uses a QNX OS
based computer to run some proprietary software that operates the
equipment.

What is the proprietary software called?


Andrew Thomas, President, Cogent Real-Time Systems Inc.
2430 Meadowpine Boulevard, Suite 105, Mississauga, Ontario, Canada L5N 6S2
Email: andrew@cogent.ca WWW: http://www.cogent.ca

It might be worth to consider a shell script using the “du” utility
output. I did it once and it tells you post factum your disk utilisation
which may a bit coarse but it works somehow.

good luck

Andre Koppel schrieb:

Hi,
I do not know a way to set such restrictions. The CPU-usage of a user process
can be restricted by the priority. Because each higher priority process
preemts a lower priority process, there is no problem with the CPU
utilization.
Disk quotas must be supported by the filesystem drivers. Afaik the QNX
Fsys-driver did not support quotas.

Avi Kavas schrieb:

Is there any way to set restrictions on users/processes/process groups in
QNX 4.0

e.g.
CPU time limit,
memory usage limit, (per process)
number of processes limit,
disk quota, etc.

Thanks,
Avi.

Joerg Kampmann
IBK-Consult - (embedded Systems)
WWW: http://www.ibk-consult.de

this seems to be a very bad issue. I did it also once and - failed.
so you are not alone :frowning:(

Joel Hannan schrieb:

My question is, After prefixing another device
to /, how can I change the prefix the t77 partition
back to /.

I have a task that requires me to disassociate the
hard drive and work from a ramdisk as root. When I’m
done I need to prefix root back to the hard drive -
but it doesn’t work.

What I am doing is essentially:

/ramdisk/bin/prefix -R /=/ramdisk/ #prefix the ramdisk
mount /dev/hd0.0t77 /hd #make a mount point to reference
the hd
#Do a bunch of stuff . . .
prefix -R /=/hd/ #re-prefix the hd (!doesn’t really
work!)

After this last command I am left in limbo with a
severely crippled directory structure. I have tried
several other points to prefix to (/ramdisk/hd, /dev/hd0.0t77,
etc.), but none restore the prefix correctly.

I have had some success with prefix -R /=/ramdisk/hd/
but later, when I clean out the ramdisk I loose the prefix
point.

How can I get / back from this condition
/=/ramdisk/
to an original condition
/=4,f
?

Thanks

Joerg Kampmann
IBK-Consult - (embedded Systems)
WWW: http://www.ibk-consult.de