read USB information

hello,
in the tutorial, to read USB device information the command is : usb (with
options).
But when we use the QNX 6.3 on a windows XP environment and the QNX IDE, how
can i do to this commmand? Do I have to put the command in a C/C++ file?

thak you for your help.

PS: where can I find examples about USB and getting video data from a USB
cam?

“cyril bros” <cyrbros@hotmail.com> wrote in message
news:cp2o1h$512$1@inn.qnx.com

hello,
in the tutorial, to read USB device information the command is : usb (with
options).

But when we use the QNX 6.3 on a windows XP environment and the QNX IDE,
how can i do to this commmand?

Ok first some facts. On xp you are using a cross development system, you
cannot run any QNX6 program on Windows. The system under Windows allows you
to build/debug program that runs on QNX6.

Do I have to put the command in a C/C++ file?

Depends on what data you want. Yes you could put the usb command inside a
C/C++ file with popen() for example. That would change the fact that the
executable you build must run on the QNX6 operating system.

thak you for your help.

PS: where can I find examples about USB and getting video data from a USB
cam?

If you want to get video data, you will have to write your own video USB
driver. There is no example for writting a video driver. However the
documentation does show how to write a USB driver with the help of the USB
DDK. A good understanding of the USB protocol is highly recommanded
(www.usb.org)

Good luck.

Thank you for your help.
About what you wrote, does that mean that I can’t run a self-hosted
software? I a new user of RTOS’ and I just want to have a real time
environment but not for an embedded device. Can I use the real time services
of such a RTOS like QNX and create an executable that I can run on my own
computer? If not, do you know a free RTOS with which I can have such
services?

Thank you very much

Cyril
“Mario Charest” <nowheretobefound@8thdimension.com> a écrit dans le message
de news: cp3gbp$ld8$1@inn.qnx.com

“cyril bros” <> cyrbros@hotmail.com> > wrote in message
news:cp2o1h$512$> 1@inn.qnx.com> …
hello,
in the tutorial, to read USB device information the command is : usb
(with options).

But when we use the QNX 6.3 on a windows XP environment and the QNX IDE,
how can i do to this commmand?

Ok first some facts. On xp you are using a cross development system, you
cannot run any QNX6 program on Windows. The system under Windows allows
you to build/debug program that runs on QNX6.

Do I have to put the command in a C/C++ file?

Depends on what data you want. Yes you could put the usb command inside a
C/C++ file with popen() for example. That would change the fact that the
executable you build must run on the QNX6 operating system.


thak you for your help.

PS: where can I find examples about USB and getting video data from a USB
cam?

If you want to get video data, you will have to write your own video USB
driver. There is no example for writting a video driver. However the
documentation does show how to write a USB driver with the help of the USB
DDK. A good understanding of the USB protocol is highly recommanded
(> www.usb.org> )

Good luck.

\

Hi Cyril

Yes, you can have a QNX self hosted system. But you wrote below:

But when we use the QNX 6.3 on a windows XP environment and the QNX IDE,

This implies to most of us that you are running the QNX development
environment while under Window XP. This means that you can develop QNX
programs (Edit, compile & link) but you can’t run or test them there.
Normally you would copy them through a network connectioin to a QNX
runtime system.

If you install QNX for a self hosted envirnment then you can develop and
test on the same system. I believe that the self hosted system is only
avilable for Intel X86 system. Although the QNX runtime system is
available for many hardware platforms.

One other thought. You can have a dual boot system. This allows you to
boot into QNX when you want to do your real-time development and testing and
Windows XP when you requier a really slow system.

I hope this helps.


cyril bros <cyrbros@hotmail.com> wrote:
cb > Thank you for your help.
cb > About what you wrote, does that mean that I can’t run a self-hosted
cb > software? I a new user of RTOS’ and I just want to have a real time
cb > environment but not for an embedded device. Can I use the real time services
cb > of such a RTOS like QNX and create an executable that I can run on my own
cb > computer? If not, do you know a free RTOS with which I can have such
cb > services?

cb > Thank you very much

cb > Cyril
cb > “Mario Charest” <nowheretobefound@8thdimension.com> a crit dans le message
cb > de news: cp3gbp$ld8$1@inn.qnx.com

“cyril bros” <> cyrbros@hotmail.com> > wrote in message
news:cp2o1h$512$> 1@inn.qnx.com> …
hello,
in the tutorial, to read USB device information the command is : usb
(with options).

But when we use the QNX 6.3 on a windows XP environment and the QNX IDE,
how can i do to this commmand?

Ok first some facts. On xp you are using a cross development system, you
cannot run any QNX6 program on Windows. The system under Windows allows
you to build/debug program that runs on QNX6.

cb > Do I have to put the command in a C/C++ file?

Depends on what data you want. Yes you could put the usb command inside a
C/C++ file with popen() for example. That would change the fact that the
executable you build must run on the QNX6 operating system.


thak you for your help.

PS: where can I find examples about USB and getting video data from a USB
cam?

If you want to get video data, you will have to write your own video USB
driver. There is no example for writting a video driver. However the
documentation does show how to write a USB driver with the help of the USB
DDK. A good understanding of the USB protocol is highly recommanded
(> www.usb.org> )

Good luck.


\


Bill Caroselli – Q-TPS Consulting
qtps@earthlink.net

cyril bros wrote:

Thank you for your help.
About what you wrote, does that mean that I can’t run a self-hosted
software? I a new user of RTOS’ and I just want to have a real time
environment but not for an embedded device. Can I use the real time services
of such a RTOS like QNX and create an executable that I can run on my own
computer? If not, do you know a free RTOS with which I can have such
services?

QNX is an RTOS. An RTOS is an OS (Operating System). The windoze install of “Momentics” is a cross-compiler. A cross-compiler is not an OS, it creates programs for a different OS.

http://www.webopedia.com/TERM/o/operating_system.html
http://en.wikipedia.org/wiki/Operating_System

You need to run your programs on QNX. To do that you need to install QNX. That install is not done in windoze unless you have a virtual machine (VM) or emulator. You need to download the self-hosted version of QNX (QNX Momentics v6.3 Product Evaluation - QNX Neutrino RTOS x86 Host) and install it to run your programs on.