Re: [linux-usb-devel] Can two computers communicate through usb port?

2004-08-23 Thread shino korah
One way to do it is to use NET2280 card. This has a B type connector. Check the usb-gadget driver --Shino --- geng wentao [EMAIL PROTECTED] wrote: i have an idea: usb is supported by linux kernel 2.4.20, can two computers communicate with each other if i write some driver(software)

Re: [linux-usb-devel] first code

2004-02-25 Thread shino korah
#define USB_SKEL_VENDOR_ID 0x045e #define USB_SKEL_PRODUCT_ID 0x0039 --- DeLeTe [EMAIL PROTECTED] wrote: Hi, I'm new in kernel programming and i would like to do a simple code witch can detect and plug/deplug usb device. So I read usb-skeleton.c and there is some line I don't understand:

Re: [linux-usb-devel] USB Driver

2004-01-26 Thread shino korah
Start with usb-skelton.c file. --- [EMAIL PROTECTED] wrote: Hi I am currently a senior electrical engineering student at the university of Texas at Austin. I am working on a project that involves interfacing a USB port to a Motorola 6812 running an student written OS. I would

Re: [linux-usb-devel] SOS with a simple usb device driver.

2004-01-19 Thread shino korah
Did you change the permission for your device? I think if you try as root you should be ok. Or else you need to change permission to read and write. --Shino --- Gary Chen [EMAIL PROTECTED] wrote: Hi, I need to write a simple usb driver for a linux settop box to read and write to and from a 128

[linux-usb-devel] usb bulk read queuing

2003-03-24 Thread shino korah
Hi I'm using 2.4.18-3 (Redhat 7.3) . I have a USB 2.0 device which does DMA read and write. My problem is my dma usb read is very very slow. Is it because my kernel doesn't support bulk queuing for read? My DMA USB write takes 20ms whereas read takes 350ms. Any help will be appreciated

[linux-usb-devel] usb-skelton.c and 2.5 kernel

2003-02-11 Thread shino korah
Hi I tried compiling usb-skelton.c in 2.5 kernel and its giving compilation errors. I tried on 2.5.35 and 2.5.40. Is there anything I need to setup before I will get this compiled? Some of the errors on 2.5.35 are gcc -DMODULE -D__KERNEL__ -I/usr/src/linux-2.5.35/include -O2 -Wall -c -o

Re: [linux-usb-devel] descriptors - newbie

2003-02-10 Thread shino korah
Message - From: shino korah [EMAIL PROTECTED] To: Rpik [EMAIL PROTECTED] Sent: Sunday, February 09, 2003 5:50 PM Subject: Re: [linux-usb-devel] descriptors - newbie It will be already be setup. u have to read it and do accordingly --- Rpik [EMAIL PROTECTED] wrote: Does my device

Re: [linux-usb-devel] Doubt on Packet reception by Linux USB Device Driver.

2003-01-25 Thread shino korah
--- Rupesh S [EMAIL PROTECTED] wrote: ** Proprietary ** Hi, I'm in the process of understanding the CDCEther USB-ethernet driver, I could find that the usb_read_bulk_callback() is been registered to the USB Subsystem by the driver. 1) Does kernel invoke this callback function

[linux-usb-devel] Transfer buffer question

2002-12-19 Thread shino korah
I have a USB device doing DMA.I'm using bulk read and write.If I need to write e.g. 200k bytes of data. Can I create the urb-transfer_buffer to 200k and put the data in there? Or Am I restricted to only 4k and break 200 k to 4k blocks and send it. what is the best way to do bulk read and write if

[linux-usb-devel] USB debugger

2002-12-02 Thread shino korah
Hi, Please help me to find some usb debuggers like usb sniffer/usb snoopy etc. I searched on the web and I could find those for windows not for Linux. Is there anything available for Linux.Any pointers will be helpful. Thanks in advance Shino

Re: [linux-usb-devel] About Basics of Linux USB Device Driver

2002-11-21 Thread shino korah
Use usb-skelton.c, It's there in your kernel source code. --- Rajendra Kumar [EMAIL PROTECTED] wrote: Hi All, I am new to USB Device Drivers. I am theoratically aware of USB architecture and Linux USB Subsystem. Now I want to write USB Device Driver (i.e. Client Driver) for my USB Device.

[linux-usb-devel] USB-skelton.c

2002-11-15 Thread shino korah
Hi I'm writing a driver based on usb-skelton.c.This is my problem I need to read/write chunks of data, but in the skel_write() function(usb-skelton.c) the maximum data I can read/write is 512.What is teh best way to add this feature? 1. split data as 512 chunks inside this function and

[linux-usb-devel] Bulk write(Newbie)

2002-09-29 Thread shino korah
I'm trying to write using BULK OUT and read using BULK IN. If I try this in a loop I get device or resource busy error. If I use an array of write and read urb structures and use the urb which is !EINPROGRESS , Will that resolve my issue? What is the best way to get around this? Thanks Shino

[linux-usb-devel] usb_control_msg

2002-09-24 Thread shino korah
I'm using the usb-skelton.c to write a usbdriver for a USB device. I want to use usb_control_msg function to read/write registers. If I want to read usb control register at 0x80 , how do I fill in the paarmeter list request? request_type =USB_DIR_IN|USB_TYPE_VENDOR|USB_RECIP_DEVICE index =

Re: [linux-usb-devel] USB mouse doesn't work (2.4.19 and 2.5.24)

2002-07-16 Thread shino korah
--- David Brownell [EMAIL PROTECTED] wrote: But the mouse doesn't work. And you know this -- how? I did a cat on /dev/input/mice and moved mice it didn't put any garbage. mouse doesn't work I meant in Xwindows it doesn't move at all. # od -c /dev/input/mice (move

[linux-usb-devel] USB mouse doesn't work (2.4.19 and 2.5.24)

2002-07-15 Thread shino korah
Hi I have NEC USB 2.0 card and I'm trying to make my usb mouse to work. I have all the drivers loaded correctly including usbcore,ehci,uhci and system is detecting a usb mouse and loads hid and mousedev.o files. But the mouse doesn't work. I have tried with 2.5.24 and 2.4.19 kernel in both

Re: [linux-usb-devel] Driver for USB 2.0 (NEC)

2002-07-09 Thread shino korah
, 9 Jul 2002 15:09, shino korah wrote: This is the error messages I'm getting if i do /sbin/modprobe usb-uhci modprobe: Can't locate module usb-uhci I have these modules in /lib/modules/2.5.24/kernel/usb That seems unlikely. Perhaps you meant uhci-hcd or usb-uhci-hcd? Show me

Re: [linux-usb-devel] Driver for USB 2.0 (NEC)

2002-07-07 Thread shino korah
modprobe is looking at a different place. how can I amke the mod probe to see these modules. Thanks in advance Shino --- Kristofer T. Karas [EMAIL PROTECTED] wrote: On Sat, 2002-06-29 at 20:27, shino korah wrote: I want to use EHCI-HCD driver for my NEC USB 2.0 PCI card. I chose to use 2.5.12 kernel

Re: [linux-usb-devel] Driver for USB 2.0 (NEC)

2002-06-29 Thread shino korah
to use or..how I can fix this. Thanks in advance Shino --- Kristofer T. Karas [EMAIL PROTECTED] wrote: On Fri, 2002-06-28 at 17:37, shino korah wrote: I have a PCI card with USB 2.0 controller from NEC. it has only windows driver. I'm trying to write a driver for this. Just