Comtrol eCos User Manual
Page 742
Example Host-side Device Driver
If a suitable USB peripheral is now connected the host will detect this, assign an address in the local USB network,
obtain enumeration data, and find a suitable device driver. Assuming the peripheral and device driver agree on the
supported vendor ids, the
ecos_usbeth.o
module will be selected and this will be reported in the system log:
Apr 1 18:04:12 grumpy kernel: usb.c: USB new device connect, assigned device number 3
Apr 1 18:04:12 grumpy kernel: eCos-based USB ethernet peripheral active at eth1
What can happen next depends very much on the software that is running on top of the USB-ethernet package
inside the peripheral. For example, if there is a TCP/IP stack then it should be possible to bring up a network
connection between host and peripheral using ifconfig.
638