[linux-usb-devel] USB Mouse

2004-12-14 Thread Jayaprakash Shanmugam
Hi All, I am emulating the USB mouse from a PPC based controller. ie PPC acts as a mouse. Currently, I am going through usbmouse.c. Is it enough to go through this file alone to send the X, Y co-ordinatinates to the host PC ? Or put it in a simpler way, how to send the mouse co-ordinates

[linux-usb-devel] USB mouse on linux

2004-12-28 Thread Jayaprakash Shanmugam
Hi All, I use MPC 8270 based board and it has an USB 1.1 device port available in it. I want to make this device to act as a mouse. I need to have mouse movement, left click , right click and the middle click events. To give you a general picture : I want to emulate the USB mouse using

[linux-usb-devel] PCI - USB 2.0 on 2.4

2005-01-21 Thread Jayaprakash Shanmugam
Hi All, I tried a PCI - USB 2.0 card (from D-Link, Ali based Chipset) on my PC which runs Redhat 9.0 (2.4 kernel). My linux detects the card and loads the driver. I tried my pen drive with it. It detects the drive and enumerates it. (It says the vendor ID, product ID etc.,) But when I

Re: [linux-usb-devel] PCI - USB 2.0 on 2.4

2005-01-24 Thread Jayaprakash Shanmugam
January 2005 5:06 am, Jayaprakash Shanmugam wrote: Hi All, I tried a PCI - USB 2.0 card (from D-Link, Ali based Chipset) on my PC which runs Redhat 9.0 (2.4 kernel). My linux detects the card and loads the driver. I tried my pen drive with it. It detects the drive and enumerates

[linux-usb-devel] PCI - USB - Device fails to enumerate. Roothub works.

2005-02-21 Thread Jayaprakash Shanmugam
Hi, I am using ISP 1561 PCI - USB controller in my project (with MVL 3.1). I am able to configure the root hub with ehci-hcd.o. But it is not enumerating when a device is attached (tried with mouse). When no devices are connected, the /proc/usb/devices lists the root hub's configuration.

[linux-usb-devel] PCI - USB2.0 RH Works but device fails while SetAddress.

2005-02-21 Thread Jayaprakash Shanmugam
Hi, I am sorry that I sent out the attachments in the last mail. Here they are for your convenience. I am using ISP 1561 PCI - USB controller in my project (with MVL 3.1). I am able to configure the root hub with ehci-hcd.o. But it is not enumerating when a device is attached (tried with

Re: [linux-usb-devel] usb harddisk error when setaddress(USB device not accepting new address=2 (error=-110))

2005-02-23 Thread Jayaprakash Shanmugam
Hi, Me too having similar kind of problem here. I have insmod the usbcore.o and ehci-hcd.o. Now the proc/bus/usb/devices says : T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 4 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS= 8

[linux-usb-devel] PCI - USB

2005-03-03 Thread Jayaprakash Shanmugam
Hello Everybody, I am working on the PCI-USB card on 2.4. Is there any link that has details of the PCI BIOS fixup routines and the details about PCI resource allocation ? I have ISP 1561 PCI - USB controller on my board (8270 based and running MV Linux 2.4). I was told that the kernel has to

[linux-usb-devel] Open USB Device

2005-03-11 Thread Jayaprakash Shanmugam
Hi All, I am new to USB world. I have a basic doubt. I wrote the USB driver by going through some tutorials. I compiled it and inmod it without any problems. Now, If I want to use my driver, I need a major number. There I got stuck up. I didnt have any major number used in my driver. So,

Re: [linux-usb-devel] Open USB Device

2005-03-12 Thread Jayaprakash Shanmugam
open it will check minor number and open the device file. One more suggestion is go thru USB code in Linux. I hope you understand this. Regards, Shalini G -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jayaprakash Shanmugam Sent: Saturday

[linux-usb-devel] Unrecoverable Error

2005-03-12 Thread Jayaprakash Shanmugam
Hi Group, I use PCI-USB ISP 1561 with 2.4 Kernel. It has got 2 OHCI and 1 EHCI. When I insmod usb-ohci.o it says Unrecoverable error and gets out. I did check my UE bit in the interrupt status register of the OHCI and it is set. The error gets printed from the hc_interrupt() in the

Re: [linux-usb-devel] Unrecoverable Error

2005-03-12 Thread Jayaprakash Shanmugam
Thanks David. I am one of the victims of Monta Vista. On Sat, 12 Mar 2005 08:22:27 -0800, David Brownell [EMAIL PROTECTED] wrote: On Saturday 12 March 2005 5:38 am, Jayaprakash Shanmugam wrote: Hi Group, I use PCI-USB ISP 1561 with 2.4 Kernel. It has got 2 OHCI and 1 EHCI. When I

[linux-usb-devel] Device not accepting address with EHCI-HCD

2005-04-03 Thread Jayaprakash Shanmugam
Hi All, I have a strange behavior here with my ISP 1561 PCI-USB card. 1) When I plug in our board (USB based), it works fine with OHCI (the PCI USB card has 2 OHCI and 1 EHCI core). 2) When I try to use the EHCI driver for this board, the device is not accepting the address. It says the

[linux-usb-devel] How to find out the device's operating speed

2005-04-03 Thread Jayaprakash Shanmugam
Hi Group, Can any of you tell me how to find out the USB speed at which the device is operating on ? I can get it from the /proc/bus/usb/devices. I guess the information put up there is taken from the descriptors given by the device. But how can I make sure that the descriptors given by the

[linux-usb-devel] USB Int Transfer - How ?

2005-05-26 Thread Jayaprakash Shanmugam
Hello All, I am using 2.4 based kernel. I have a usb device connected to the host. The device will send data to me over the interrupt endpoint. The host has to capture the data do some processing. I have a module in which I use the following code in the read function : FILL_INT_URB(urb,

[linux-usb-devel] VID PID based fixed minor numbers - How ?

2005-07-04 Thread Jayaprakash Shanmugam
Hello All, I have a USB driver that talks to four devices differentiated by their minor numbers (fixed minor numbers for everyone of the devices) In 2.4 Kernel - Probe () function : I used devfs_register() for all the devices as follows: for (i =0; i = 4;i++) { devfs_register(usb_devfs_handle,

Re: [linux-usb-devel] VID PID based fixed minor numbers - How ?

2005-07-07 Thread Jayaprakash Shanmugam
with me, if this is trivial. On 7/5/05, Greg KH [EMAIL PROTECTED] wrote: On Tue, Jul 05, 2005 at 07:39:49PM +0530, Jayaprakash Shanmugam wrote: Thanks for your reply. I just wanted to give some more information on my requirement. 1) In my driver (working in 2.4), I have fixed minor numbers

[linux-usb-devel] Re: VID PID based fixed minor numbers - How ?

2005-07-11 Thread Jayaprakash Shanmugam
, Ian Abbott [EMAIL PROTECTED] wrote: On 09/07/2005 03:50, Greg KH wrote: On Thu, Jul 07, 2005 at 09:20:44PM +0530, Jayaprakash Shanmugam wrote: I have one driver serving 4 devices at a time. Can't I have one fixed minor number for one device ? When read() / write() into the device, how

[linux-usb-devel] Re: VID PID based fixed minor numbers - How ?

2005-07-12 Thread Jayaprakash Shanmugam
I got this problem fixed by giving class_driver.name=driver-%d. Earlier I didnt have the %d with my name. On 7/11/05, Jayaprakash Shanmugam [EMAIL PROTECTED] wrote: Yes. Thats correct. Thanks for your suggestion. I will try it out. Currently I am stuck up in probe(). I have two devices

[linux-usb-devel] Control transfer for reading unknown size

2005-07-12 Thread Jayaprakash Shanmugam
Hello All, I use control transfer to read some bytes of data from a device. But I dont know how much data it is going to give me. If I give less number of bytes as size, the usb_control_msg() function skips data (returns when the size number of bytes is read). If I give more number of bytes

Re: [linux-usb-devel] USB issues : Device not accepting address

2005-07-12 Thread Jayaprakash Shanmugam
Is it your custom board ? Did you try with USB 1.1 ? In our case, it gives protocol error (-71) in USB 2.0 and works fine in USB 1.1. On 7/11/05, Ram [EMAIL PROTECTED] wrote: I can do ifconfig usb0 and assign an address to my usb0. But, why the device addess given by the host is not being

[linux-usb-devel] USB 2.0 Enumeration Intermittent

2005-07-27 Thread Jayaprakash Shanmugam
Hello All, We have our custom board (running on 2.6) on which a USB Hub ( Philips ISP 1521 ) connected to the Ehci-controller ( Philips ISP 1561) . When we insmod ohci-hcd, the hub enumerates properly as 1.1 device. When we insmod ehci-hcd, the hub sometimes enumerates as 2.0 device. But

[linux-usb-devel] USB 2.0 Bulk Transfer 1024 Bytes fails.

2005-10-29 Thread Jayaprakash Shanmugam
Hi All, We have a ISP 1561 based USB host (supports both ohci and ehci) in our board. When we have the ohci drivers for this host, we were able to transfer 1024 bytes of bulk data from the device connected to it. But, when we read the bulk data (1024 bytes) with ehci drivers installed, it

[linux-usb-devel] Interrupt Handler on 2.6 called just once

2005-11-09 Thread Jayaprakash Shanmugam
Hi all, I had a code that receives interrupt data from the device. It worked with 2.4 kernel. I migrated to 2.6 kernel and it now calls the Interrupt handler just once. On 2.4, I had the following and it was working. I got my USBH__vIRQHandler() function called for every 200 milliseconds.

Re: [linux-usb-devel] Interrupt Handler on 2.6 called just once

2005-11-10 Thread Jayaprakash Shanmugam
Thank you David and Alan for clarifying it. On 11/9/05, Alan Stern [EMAIL PROTECTED] wrote: On Wed, 9 Nov 2005, Jayaprakash Shanmugam wrote: Hi all, I had a code that receives interrupt data from the device. It worked with 2.4 kernel. I migrated to 2.6 kernel and it now calls

[linux-usb-devel] USB enumeration - host restart doesn't work.

2005-11-22 Thread Jayaprakash Shanmugam
Hi All, I have a MPC 8270 based board on which a Philips based ISP 1561 ( PCI - USB ) connected to it. I have a self powered device connected to the host. Whenever I restart the host alone, the device fails to enumerate and returns -71 (EPROTO) error. However, if I switch off both the host

Re: [linux-usb-devel] device not accepting address

2005-12-07 Thread Jayaprakash Shanmugam
-110 is the timeout error and your device it not accepting the SetAddress itself. What is your device ? On 12/7/05, driversbin driversbin [EMAIL PROTECTED] wrote: Hi, I am using a usb host-host cable from prolific (vendor id=0x067 product id=0x2501) . When I plug-in and out twice I start

[linux-usb-devel] rh_report_status crashes

2006-02-10 Thread Jayaprakash Shanmugam
Hello Everyone, I am using MPC 8270 based board with 2.6. It crashes at times. Sometimes the crash is from USB Host module. I have attached several crash reports here. Anybody can give me some pointers on what could be wrong ? I use control, bulk and interrupt endpoints in my application.

[linux-usb-devel] Bulk Transfer fails in USB 2.0

2006-02-28 Thread Jayaprakash Shanmugam
Hi All, I face a different scenario where the software on the host works if the device is in USB 1.1. If the device is configured as USB 2.0, the bulk_read from the device returns EOVERFLOW error. I am running 2.6.11 and the host has 2 EHCI cores and 1 OHCI core. ( Philips ISP 1561 ). The

[linux-usb-devel] 64 Bit Linux - USB KB

2006-05-14 Thread Jayaprakash Shanmugam
Hello All, I have 64 bit Linux connected to a USB KB emulator ( Cypress based USB device - Works as a KB in Windows 32/64 bits). Though the firmware gets enumerated as a HID device, the keystrokes are not received by the operating system. Is there any suggestion for me ? Thanks in advance.

[linux-usb-devel] USBKB Emulation not working

2006-06-07 Thread Jayaprakash Shanmugam
Hi, We have a Cypress based usb keyboard software that enumerates as a USB Keyboard and works properly in Windows 32 / 64 bit platforms. When it is connected to Linux, the device enumerates as a keyboard with proper configurations. But whatever keystrokes we send to the host are lost. I have

[linux-usb-devel] usbkb - does not work

2006-06-08 Thread Jayaprakash Shanmugam
Hi, We have a Cypress based usb keyboard software that enumerates as a USB Keyboard and works properly in Windows 32 / 64 bit platforms. When it is connected to Linux, the device enumerates as a keyboard with proper configurations. But whatever keystrokes we send to the host are lost. I

[linux-usb-devel] EHCI - unlink message

2006-10-18 Thread Jayaprakash Shanmugam
Hello All, I am using Philips ISP 1561 PCI - USB with PQ2FADS based board. I have a couple of USB devices connected to it. Both of them are working in high speed. In one of the devices, every 10ms bulk read request is called. The console prints the following message continuously. Can you

[linux-usb-devel] EP-0 returns timeout even when data is received by the device.

2007-05-12 Thread Jayaprakash Shanmugam
Hi All, I have a EHCI host connected to 4 USB devices (dev1, dev2, dev3 and dev4). I have two processes that make use of these devices through a kernel object. I have some vendor commands (through EP-0) to all the devices. Apart from this, dev1 has EP2 ( in ) bulk, dev2 has EP2 ( in )

[linux-usb-devel] usb_control_msg() returns timeout !!

2007-05-17 Thread Jayaprakash Shanmugam
Hello Group, I have two devices connected to a host. I periodically read bulk data from first device and pass it on to the second device via EP-2. Apart from this periodic data, the host sends some vendor commands through EP-0 of first device. Though these vendor commands are received