Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12689 Discussions

interconnection between uCLinux and Windows by USB gadget

Altera_Forum
Honored Contributor II
2,265 Views

Hello, 

 

I've already read some bad news about the chance to interconnect a Linux system and a Windows system using the USB gadgets. Below you can find some tests done to verify the current functionality of both device and driver. Seeing that in linux the game works, I suspect that the generic windows driver is not the best one can find. In a mailing list I've found the news (in January and June) about the absence of a good driver for Windows. Anyone has recently tested a good driver for windows that makes USB gadgets to be correctly identified? I mean every kind of: open souce, freeware, proprietary, pay-per-use, licensed under fee payment.... any suggestion is accepted, even the suggestion for other tests. 

 

TESTS PASSED: 

- usb serial gadget to Linux pc: sending and receiving strings with kermit on PC and using echo and cat on our board 

- usb serial gadget to Linux pc: with an application of ours (developed for testing devices) which sets termios, sends and receive characters between the two endpoints and release some stats. No character lost. 

- usb serial gadget to Linux pc: file excange after connecting them between PPP over ttyGS and ttyACM 

- usb ethernet gadget to linux pc: connecting, ping (with low latency), telnet, file exchange using ftpget and ftpput 

- usb compostie ( CDC+ACM): connection, some pings, file exchanges, telnet 

- usb serial to linux pc: using an application with a custom protocol, the first handshake always fails but then the other exchanges works as good as on the rs232 serial 

 

FAILED TESTS: 

- usb ethernet to Windows pc: after installing the .inf file found in linux documentation in device manger I can see an RNDIS device but with the following error: This device cannot start CODE 10. Microsoft throubleshoot tells about unistalling and reinstalling, plugging and unplugging... 

- usb serial to Windows pc: exchange strings using hyperterminal on windows and cat end echo on our board  

- usb serial to Windows pc: PPP between the two systems goes up and it is possible to open a telnet or to ping but it has a very burstiness habit in the latency. We observed that pings goes slow if our embedded system pings windows (>1000 ms) but it falls down to 7 ms if windows is pinging the system (eventually if both are pinging each other). The telnet over this PPP connection has a very long latency for echoing the characters and even the execution of a simple command (like ls) takes a while before getting the results (which come alltogheter fastly). 

 

EQUIPEMENT FOR TESTS: 

- Windows XP Pro SP3 

- Linux openSuse 10.11 

- Embedded system: custom board with NXP ISP1161X controller. uClinux released in August with kernel 2.6.30
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
505 Views

I had no problems with a serial USB device I made using a PIC. Same needs just a text file as USB "driver!" on the PC to make the standard serial driver accept the device ID.  

 

Why should using a Linux/NIOS system as USB device offer more problems ?  

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
505 Views

 

--- Quote Start ---  

 

 

Why should using a Linux/NIOS system as USB device offer more problems ?  

 

-Michael 

--- Quote End ---  

 

 

 

this puzzle is the thing that made me post here... I verified this to work on linux, I then noticed the problem on windows. I searched the internet and found some mailing lists reporting things like this: 

http://markmail.org/message/rd6cbsumosz6zdht 

which make me thinks I'm not the only dealing with this problems.
0 Kudos
Altera_Forum
Honored Contributor II
505 Views

Could you tell me how to config the kernel to finish that usb serial gadget to Linux pc?

0 Kudos
Altera_Forum
Honored Contributor II
505 Views

Hello, 

I missed to see your post. I am replying quite an year later... I do not know if you still have problems.
0 Kudos
Reply