Page 1 of 1

hid-mouse in Ubuntu

Posted: Mon Oct 27, 2008 7:03 pm
by bearing
I have successfully tried the hid-mouse example under Windows XP; the device is recognized and the mouse pointer starts to move in a big circle.

However, in Ubuntu nothing seems to happen when i plug it in; dmesg says nothing, and no messages are appended in the log files. I'm quite new to both Linux and Ubuntu so i don't really know how to proceed from here.

I activated DEBUG_LEVEL 2. Here is a command log:

Code: Select all

bjn@bjn:~/avr/avrusb-20081022/examples/hid-mouse/firmware$ stty -F /dev/ttyS0 19200
bjn@bjn:~/avr/avrusb-20081022/examples/hid-mouse/firmware$ stty -F /dev/ttyS0
speed 19200 baud; line = 0;
-brkint -imaxbel
bjn@bjn:~/avr/avrusb-20081022/examples/hid-mouse/firmware$ cat /dev/ttyS0

(then I plug it in and get the following:)

�01:

02:

03:

23: c3 00 ff 07 00 cd db

02:

02:

...


Then it just keeps iterating the main loop; "02: <CR> <LF>" is written in a fast rate. (Actually so fast that dmesg shows a bunch of: "[ 4588.651402] ttyS0: 1 input overrun(s)".)

Posted: Mon Oct 27, 2008 9:00 pm
by bearing
Problem solved. I am using a USB-hub. After disconnecting the hub and connecting it to a different USB-port everything is working.

Is there a unix command which would make things work without manually disconnecting and changing USB-port?

Posted: Thu Oct 30, 2008 1:50 pm
by gert
Hi Bearing

To my knowledge (as a Debian/Ubuntu/OpenWRT user) there is no issue with AVR-USB other than bulk transfer from low speed devices (e.g. CDC).

What you describe sounds more like an electrical problem (i.e. zener diodes).

Best
Gert

Posted: Thu Oct 30, 2008 6:27 pm
by bearing
Hi Gert,

I think that when the device (during buggy development ;) ) did something illegal the kernel stopped looking for devices on that USB-port. Later, when the bug was fixed and the device was connected to a different USB-port everything worked as it should.

It is easier to write a command in the terminal than to move the physical connector.

problems to drive hid-mouse in windows

Posted: Mon Jul 27, 2009 12:53 pm
by alix202003
i dont know why this example doesnt work at all for me .i've tried it one hundred times but actually i think i dont know

which file must be added to compile hid mouse driver successfully . so could you send your own hid mouse project for me to fix this problem with the complete files such as project and usbdriv files because im not familiar very much with winavr and vusb with some more descriptions .

thank you for your attention . :?: :?: :?: :?: :?: :?: :) :)

Re: problems to drive hid-mouse in windows

Posted: Tue Aug 04, 2009 9:39 am
by Guest
hi all
thank you for your assistance

all things solved and i found the answer