Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - CDC ECM Driver: Page 1 of 3 (3 Items)
   
CDC ECM Driver  
Hi,

I'm porting an application from LINUX to QNX that uses CDC ECM over USB. The Linux Kernel supported this by linking a 
network device to the USB device. 

So far, I have created a rudimentary USB CDC ECM driver that detects if a ECM device is plugged in and obtains the Data 
interfaces and endpoints, etc. The USB DDK seems to make all this work fine.

What I am quite unclear about is how to link this to a network device. So far I have come to the conclusion that I need 
to 

a) Create a network device driver that receives the packets from the stack and passes them onto the USB driver which 
writes them to ECM data channel (In itself an altsetting.)
b) Create the reverse mechanism, a means of the USB driver sending received packets on the ECM.
c) Some mechanism to create the (enX) device...

So far I guess I need to be able to write a driver that I can start up with io-pkt and access using a different socket 
using SOCK.

What I am unclear about is the interface required to write the driver - there is a document (Apparently) with the source
, but I am an unable to download the source - I'm not sure what permissions I need. 

Is what I am trying to do crazy? Is there a way of obtaining the description of the interface that is required? 

Will I be able to connect a USB driver to the network driver and tell it to create a network interface that I can then 
use? 

Any help would be appreciated...