for newbiesample source

Hi

I would like to start with QNX programming. Qnx & posix is new to me.I am
used to do the win32 stuff and embedded 8-bit and 16-bit controllers.

can anyone point me to some sites with sample code and/or good QNX
tutorials.
I did not find any good qnx sites to get a newbie started.

My first experiment would be to make a program that processes data from
serial port ,a second thread time based (every 10ms).

Additionally i need a user interface (photon) to display some data from the
above threads , and to change some variables in the threads that process
serial port data and timing functions.

Do i need to make 1 GUI program and one RT program and use some kind of
interprocess communication to exchange data between the two ?
What mechanism do i need to use to accomplish this ? best practices ?

Thanks
Johan

Sagaert Johan <sagaert.j@belgacom.net> wrote:
SJ > Hi

SJ > I would like to start with QNX programming. Qnx & posix is new to me.I am
SJ > used to do the win32 stuff and embedded 8-bit and 16-bit controllers.

SJ > can anyone point me to some sites with sample code and/or good QNX
SJ > tutorials.
SJ > I did not find any good qnx sites to get a newbie started.

SJ > My first experiment would be to make a program that processes data from
SJ > serial port ,a second thread time based (every 10ms).

SJ > Additionally i need a user interface (photon) to display some data from the
SJ > above threads , and to change some variables in the threads that process
SJ > serial port data and timing functions.

SJ > Do i need to make 1 GUI program and one RT program and use some kind of
SJ > interprocess communication to exchange data between the two ?
SJ > What mechanism do i need to use to accomplish this ? best practices ?

Step #1 - Forget everything you did in the windows world!

Actually, QNX isn’t that hard to program for. Take each phase of your
project one step at a time. There is a decent photon tutorial in the QNX
manuals. Then learn how to program for a serial port. Then make your
program multi-threaded.

Nothing you want to do is hard. But do it one step at a time.

Good luck.