comm via USB

Hi…

I wonder if any one has a sample application for communication via USB
between two QNX boxes?

If not, I wonder if any one has some pointers on how to go about doing
this? I have not yet looked into the DDK, and I wonder if any one has a
word of wisdom before I dive into this endeavor.

Thanks.

Regards…

Miguel.

Miguel Simon <simon@ou.edu> wrote:

Hi…

I wonder if any one has a sample application for communication via USB
between two QNX boxes?

You can’t hook USB between two PCs. It isn’t a peer-to-peer network
and unless you have two USB-On-The-Go devices (which I doubt our stack
supports) it can’t be done. In the world of USB one device is the “Host”
and the rest are devices. They have different electrical and software
specifications. This is why, IMHO, USB sucks.

chris


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/

Chris McKillop wrote:

You can’t hook USB between two PCs. It isn’t a peer-to-peer network
and unless you have two USB-On-The-Go devices (which I doubt our stack
supports) it can’t be done. In the world of USB one device is the “Host”
and the rest are devices. They have different electrical and software
specifications. This is why, IMHO, USB sucks.

There actually are USB to USB file transfer cables. See
http://www.iogear.com/products/product.php?Item=GUN161&PHPSESSID=b5b047caaf98acf7d9497ef5b6504b43

There are some active components in the middle; they’re
not just cables.

It’s unclear what software you’d use with this on QNX.
It comes, inevitably, with a Microsoft Windows driver,
plus support for legacy MacOS systems.

For computer-to-computer, Ethernet is the way to go today.

John Nagle
Animats

Hi Chris, John…

John Nagle wrote:

Chris McKillop wrote:

You can’t hook USB between two PCs. It isn’t a peer-to-peer network

Humm…

and unless you have two USB-On-The-Go devices (which I doubt our stack
supports) it can’t be done. In the world of USB one device is the “Host”

Wow, ok, coming from you Chris, I guess that I have to take your word
for it. No way to trick a machine into thinking that it is a host? I
du-not-know…, I am ignorant on this, so I’ll do some research based
on your hints here. However, ‘can’t be done’ is a rather strong
statement, specially when it comes from you! Thanks.

and the rest are devices. They have different electrical and software
specifications. This is why, IMHO, USB sucks.



There actually are USB to USB file transfer cables. See
http://www.iogear.com/products/product.php?Item=GUN161&PHPSESSID=b5b047caaf98acf7d9497ef5b6504b43


There are some active components in the middle; they’re
not just cables.

It’s unclear what software you’d use with this on QNX.

Well… many embedded systems come with USB ports in them (Prometheus
PC104, VMIC 7755 cPCI board, for example), thus I was thinking if I
could utilize what I already have. Frankly, it would be cool to have an
iPaq connect to one of the embedded Prometheus boxes and interface via
USB. (I know…, iPaq this, Prometheus that… Thanks). This way I
could diagnose what is going on with a universal interface, easy plug-in
cables-tested-by-kids, etc. That’s all.


It comes, inevitably, with a Microsoft Windows driver,
plus support for legacy MacOS systems.

For computer-to-computer, Ethernet is the way to go today.

This is a given. But it would be nice to have other ways to communicate
other than serial, backplane pci, I2C, can bus, 1553, infrared,…, and
ethernet, specially if it is already there (USB is). I guess that USB
is out for now.

Thanks…

Regards…

Miguel.

John Nagle
Animats