[linux-usb-devel] for file_storage start&exit function switch

2005-12-14 Thread tong changda
hello I confused about the best way to start and stop g_file_storage function, We know that before start g_file_storage, we must unmount filesystem then after exit it , need to mount it.Why this function not be a part of function existing in file_storage.c? I use hotplug mechanism to d

[linux-usb-devel] question for add multi-serial port to usb serial driver

2005-12-13 Thread tong changda
hello Now I am working on add multiple usb serial port support to gserial.c, I had refer that qualcomm 3G phone that support 3 usb port on windows pc. On enumeration stage , with ONLY ONE usb reset, the host start four "80 06 00 01 00 00 12 00" each for a different virtual usb device,

[linux-usb-devel] about composite usb device

2005-11-28 Thread tong changda
hello. Never develop a composite usb driver, Now I will develop a composite usb-serial driver based on intel pxa270. It connect to windows pc that has usb driver that create two virtual comm port. I want to know the usual way to develop gadget driver's side of code,My plan is like this:

[linux-usb-devel] two question about zero-length packet and stall feature

2005-11-21 Thread tong changda
hello. I still not very clear with the concept of zero-length.Could anyone explain with it? Does it means if send a 64 byte data(same with endpoint max packet size), after send the 64byte, some usb hardware send a extra zero-length packet, some usb hardware send nothing? what's about intel

[linux-usb-devel] about multiple virtual serial port on windows pc

2005-10-30 Thread tong changda
hello. Now my pxa27x board with g_serial.o function connect with windows pc, I want the windows pc(using usbser.sys)support multiple serial virtual ports(Now only one), So I could let differenet kind of message goes into different ports. Could anybody give me some suggestion? thank u r

[linux-usb-devel] Handling of ACM requests

2005-08-05 Thread tong changda
hello, I am using pxa271 on our customed board, and want to make usb device to work as ACM device. I use serial.c from 2.6.11.12 on linux-2.4.20 with a few modify to header file(no single modify to serial.c). My pxa27x_udc works with usb-storage, rndis, cdc. but when I insmod g_serial.o

[linux-usb-devel] Several questions of usb mass storage device

2005-03-14 Thread tong changda
Hello I have implements usb-mass storage support on Intel pxa271. My backing file is DiskOnChip(/dev/tffsa,/dev/tffsa1). Most of the time, it works normal, but there still has a few questions: First. when I use usb storage,I use hotplug script to umount /truefs1, and when plug off usb cabl

[linux-usb-devel] Anybody successful using DiskOnChip as usb mass-storage backing media

2005-03-01 Thread tong changda
Hello I use DiskOnChip as usb-mass storage media on pxa271, Now I could put file through windows into it, and windows could read the file. but the problem puzzle me dozens of days, that _sometimes_ after a large mount of data transfer and written, do_write hangs on for nearly ten seconds so

Re: [linux-usb-devel] how to format backup media for mass-storage

2005-02-20 Thread tong changda
or fat32 on UFI device? thanks for commenting my doubts. From: Alan Stern <[EMAIL PROTECTED]> To: tong changda <[EMAIL PROTECTED]> CC: linux-usb-devel@lists.sourceforge.net Subject: Re: [linux-usb-devel] how to format backup media for mass-storage Date: Fri, 18 Feb 2005 22:30:32 -050

Re: [linux-usb-devel] how to format backup media for mass-storage

2005-02-18 Thread tong changda
mount it on /truefs/, and could r/w file on it. Is the problem of mkdosfs(v2.8)? or there is some issue with pxa271 driver. I tried hard without any success Thanks From: Alan Stern <[EMAIL PROTECTED]> To: tong changda <[EMAIL PROTECTED]> CC: linux-usb-devel@lists.sourceforge.n

[linux-usb-devel] how to format backup media for mass-storage

2005-02-17 Thread tong changda
Hi, Build Mass-storage based on pxa271, Now I want to format DOC as fat32 filesystem. First I run fdisk on Mobile on /dev/tffsa ,add a new partition, change filesystem type as 0xb(fat32) then write, Now I could mount vfat on mobile and read/write file on it, but connect with windows , No disk

[linux-usb-devel] usb storage driver being reset after finish answer SC_INQUIRY command

2004-12-15 Thread tong changda
Hello I test usb massage driver based on intel pxa271 , now there is some question. after received SC_INQUIRY and then send a reply(seen by win pc) and before send_status send 13 bytes , it received a reset from host, show from following message. from windows host, bushond, see

[linux-usb-devel] usb serial driver transfer speed

2004-10-10 Thread tong . changda
Hello After trying the usb serial driver on linux-2.4.20, I found the max speed is about 120kbytes/sec, My windows side driver is modified against bulkusb(one sample of Windows DDK), I transfer a 2.2M file from window to smartphone(pxa27x) with usb serial driver. It took about 18seconds.why it is s

[linux-usb-devel] Different point of usb driver for Linux and Windows?

2004-10-08 Thread tong . changda
Hello. I need to establish tcp/ip or serial connection through usb during bootloader stage.Now I use blob to successfully established tcp/ip connection with linux host(with usbdnet.o), Now if I connect with windows box,during the enum stage, there is no indication to let me choose a driver for

[linux-usb-devel] (no subject)

2004-10-08 Thread tong . changda
Hello. I need to establish tcp/ip or serial connection through usb during bootloader stage.Now I use blob to successfully established tcp/ip connection with linux host(with usbdnet.o), Now if I connect with windows box,during the enum stage, there is no indication to let me choose a driver for

[linux-usb-devel] 答复: [linux-usb-devel] 答复: Re: [linux-usb-devel] pxa27x+rndis

2004-08-03 Thread tong . changda
yes,there usb rndis driver lies some issue with power management. IF pxa27x into sleep mode when usb is plug in, Only tried 4 times ,"usb0: rndis_command_complete: rndis parse error -524", but if cpu into sleep when usb is not plug in, it is all right. I will tried to contact with microsoft . But

[linux-usb-devel] 答复: Re: [linux-usb-devel] pxa27x+rndis

2004-08-02 Thread tong . changda
Thanks David. Many times I couldn't think out the reason why,but simply find some ways to avoid it:-( In this case,I found if compile g_ether.o as module. So when this message appear, simply ifconfig usb0 down, then rmmod/insmod is ok.So my driver had to detect usb plug in and unplug action, use

[linux-usb-devel] pxa27x+rndis

2004-08-01 Thread tong . changda
I nearly finished porting pxa27x support rndis, but this message appear occasionaly during emunation process.(Same things happed to lubbock with 2.6.5) if you plug off usb cable then plug it on, after about 3 times or more, following message appear,then if you want usb work, you had to reboot lubb

[linux-usb-devel] pxa27x usbc support question.

2004-06-16 Thread tong . changda
I am porting pxa27x driver to linux-2.4.20 using gadget framework to support rndis. pxa27x driver nearly works. The driver init procedure is ok. The problems appear after windows 2000 pc send a set_configuration request.I could read out the configuration, interface, alterinterface from UDCCR as 2,0

Re: [linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)?

2004-06-02 Thread tong changda
You are absolute right! After comment off all debug message, It could do tcd/ip with pc windows 2k.Yes usb protocol require precise timing requirement. Thank you again!!! From: David Brownell <[EMAIL PROTECTED]> To: tong changda <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re

Re: [linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)?

2004-06-02 Thread tong changda
again for your board knowledge to save me lots of times to locate problem. Now I will continue to test rndis based on Intel Mainstone(pxa27x). Best regards, From: David Brownell <[EMAIL PROTECTED]> To: tong changda <[EMAIL PROTECTED]> Subject: Re: [linux-usb-devel] Did anyone h

Re: [linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)?

2004-05-29 Thread tong changda
te it further,any suggestion? Thanks From: David Brownell <[EMAIL PROTECTED]> To: tong changda <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)? Date: Fri, 28 May 2004 08:20:17 -0700 tong changda wrote: Hell

Re: [linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)?

2004-05-28 Thread tong changda
: disconnected vendor ID : 0x vendor: Linux 2.6.5/pxa2xx_udc From: David Brownell <[EMAIL PROTECTED]> To: tong changda <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)? Date: Fri, 28 May 2004 08:20:1

[linux-usb-devel] Did anyone had successful run rndis based on lubbock(pxa26x)?

2004-05-26 Thread tong changda
Hello. I have had kernel 2.6.5 successful running on lubbock. all usb-gadget related had kept sync with the latest one got from http://usb-gadget.bkbits.net:8080/gadget-2.6/, the windows driver had download from microsoft site, and using the linux.inf from the 2.6.6 kernel. I just made

[linux-usb-devel] usbser.sys programming?

2004-04-12 Thread tong changda
I know this is bad to ask this question here, but I am sure someone here could answer me for I am rather confused. usbser.sys is used as usb modem driver on Windows platform.I want to send vendor-specific or class specific request to the peer(xscale-based developboard), but I don't find any prog

[linux-usb-devel] usb cdc acm serial interface

2004-02-27 Thread tong changda
I want to develop usb modem support on xscale processor. the serial_fd/serial.c have two configurations. Can I use the simple serial configuration to support file download. and the other cdc configuration to support usb modem? Windows box call set_configure to switch function? for usb modem, th

[linux-usb-devel] Usb CDC understanding

2004-02-03 Thread tong changda
Hello I am new to usb, Now I got difficulity to understand usb class definitions for communication device by reading the spec pdf document. The reason I do that is I want to write USB modem driver firmware on intel xscale-based PDA. All I knew is On linux host side it is acm.o with usbcore