Greetings
Kernel:2.6.35.4
Board: i.MX28 custom device
I am developing a device that when connected via USB is seen as a mass storage device on the host PC(the easy part)
Now from the Host Application I would like to send and receive data to the device for status checks and other things.
This would have been easy if g_mass_storage works with g_serial, and I can just use serial communications.
But it seems you cannot register both at the same time. (Or is there a way to do this?)
I am planning of usng LibUSBDotNet on the Host side which it seems capable of sending data to the USB endpoints.
How would I go about communicating with the Host and catching those endpoints data whilst enabling the Mass Storage to function.
I would not really want to resort to communicating via file read/write(device write status to a file, host reads from file)
If there is some smart way to do this, you're advice would really be appreciated
Regards
Yuri
Solved! Go to Solution.
Hi Yuri
yes, I think you should write custom usb driver for
Windows too. :smileyhappy:
Best regards
chip
Hi Yuri
I believe link below answers this
Creating a Linux Gadget USB Composite Device for i.MX28
Best regards
chip
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hello chipexpert
I am able to switch my device from using g_mass_storage.ko to g_multi.ko.
But the problem is windows just sees it as a "Multifunction Composite Gadget".
It does not show as neither USB Serial or USB Mass Storage
I know this has become a "windows question" but does this mean that I would need a customized
composite gadget driver for windows?
Best regards
Yuri
Hi Yuri
yes, I think you should write custom usb driver for
Windows too. :smileyhappy:
Best regards
chip
Hello chip
Thank you for your answers, I am really totally new with this.
Would you happen to know where I should start in creating this custom driver?
Best regards
Yuri
P.S.
I tried my device on a Linux PC, the mass storage and serial ports are working great!
Now if only I could get it to work on a Windows PC...
Hi Yuri
first I think you should create new thread
since this is new problem (creating custom Windows USB driver).
Second I think creating Windows USB driver is somewhat
different, from what we support here.
I think more appropriate to send this to Microsoft
forums.
Best regards
chip