Search found 450 matches

Go to advanced search

by ulao
Sun Sep 10, 2017 6:21 pm
Forum: V-USB
Topic: tell host we are busy?
Replies: 0
Views: 69

tell host we are busy?

Is there no way to tell the host that we are busy when a control transfer is sent?

I need to disable my USB interrupts for 150us. Though if the CT sends at this time, it gets errors because no ACK or NACK is sent. Is there a way to tell the host we are busy?
by ulao
Wed Aug 30, 2017 3:09 am
Forum: V-USB
Topic: control transfer - do they really take this long?
Replies: 1
Views: 81

Re: control transfer - do they really take this long?

The main reason this is an issue, is that the Control transfer is going past the SOF or USB poll and the normal poll data is getting corrupt.
by ulao
Tue Aug 29, 2017 5:57 pm
Forum: V-USB
Topic: control transfer - do they really take this long?
Replies: 1
Views: 81

control transfer - do they really take this long?

Image
I'm new to the usb signal, can anyone tell me if the driver is failing to NAK/ACK? This 2-8ms for sending a control transfer has to be wrong.
by ulao
Wed Aug 23, 2017 4:54 am
Forum: V-USB
Topic: output report go right to usbfunctinowrite?
Replies: 6
Views: 174

Re: output report go right to usbfunctinowrite?

Turns out I must have had a corrupt, partial or old version of the driver. I had no reason to suspect that but changing a define blew up the code. So after I re downloaded to fix that I figure I better come back to this bug. Sure enough that also fixes this issue.
by ulao
Wed Aug 23, 2017 4:20 am
Forum: V-USB
Topic: usb stall errors rondomly on ports.
Replies: 1
Views: 56

Re: usb stall errors rondomly on ports.

I did a little more investigation and I thing the randomness is fake. What I think it going on is that my code need to stop the USB interrupt for some code. This code runs along side the host code. When the int is off I 'think' the usb can't reply. I'd need to understand this better. How is usbFunct...
by ulao
Wed Aug 23, 2017 1:54 am
Forum: V-USB
Topic: usb stall errors rondomly on ports.
Replies: 1
Views: 56

usb stall errors rondomly on ports.

I have been noticing USB stall errors with usbLyzer. I have noticed a few things that, to my knowledge rule out firmware and hardware. Does anyone agree/disagree or have any wisdom to share? I have made 4 devices and they are on 1 4-port hub. The only thing about the device that differs is the produ...
by ulao
Sat Aug 19, 2017 1:52 am
Forum: V-USB
Topic: output report go right to usbfunctinowrite?
Replies: 6
Views: 174

Re: output report go right to usbfunctinowrite?

I did as you suggested but still have the same issue? What can I look at to further this investigation.
by ulao
Wed Aug 16, 2017 9:07 pm
Forum: V-USB
Topic: occasional stalls on every get/set report.
Replies: 1
Views: 98

Re: occasional stalls on every get/set report.

Well it turns out this is very common. When you make changes to the descriptor you need to reinstall the drivers for that device. Apparently the driver will cache the report config.
by ulao
Tue Aug 15, 2017 4:01 am
Forum: V-USB
Topic: occasional stalls on every get/set report.
Replies: 1
Views: 98

occasional stalls on every get/set report.

All of my get and set report will get stalls. The frequency of the stalls depend on the payload. The more payload, the higher the chance of a stall. This seems to point to some type of interference. If I do a test by sending 1 get report as often as I can with 1 byte of data, the occurrences is not ...
by ulao
Mon Aug 14, 2017 3:44 am
Forum: V-USB
Topic: output report go right to usbfunctinowrite?
Replies: 6
Views: 174

Re: output report go right to usbfunctinowrite?

Looks like we may have another bug here. if(usbRxToken < 0x10){ /* endpoint number in usbRxToken */ change it to this: if(usbRxToken == USBPID_OUT){ /* endpoint number in usbRxToken*/ so this works but breaks control sets where no_msg is used. After more headaches I noticed that the return is causin...
by ulao
Mon Aug 14, 2017 1:47 am
Forum: V-USB
Topic: output report go right to usbfunctinowrite?
Replies: 6
Views: 174

Re: output report go right to usbfunctinowrite?

Ok I finally found this Using Interrupt- and Bulk-Out endpoints Interrupt- and Bulk-Out endpoints are used to send stream type data to the device. When the host sends a chunk of data on the endpoint, the function usbFunctionWriteOut() is called. If you use more than one interrupt- or bulk-out endpoi...
by ulao
Sun Aug 13, 2017 10:56 pm
Forum: V-USB
Topic: output report go right to usbfunctinowrite?
Replies: 6
Views: 174

output report go right to usbfunctinowrite?

This is not making sense to me. I have a descriptor that uses a set, get, and 5 outputs. This descriptor is the FFB example by Microsoft. I can show all relevant code if needed but it will dramatically complete things. I rather step my way in to this mystery question at a time. So here is what I cur...
by ulao
Sun Aug 13, 2017 5:13 pm
Forum: V-USB
Topic: Mouse interface to AVR
Replies: 1
Views: 74

Re: Mouse interface to AVR

You can easily read the mouse with the avr (ps/2 ???) and send the data out as usb with v-usb.
by ulao
Sun Aug 13, 2017 5:11 pm
Forum: V-USB
Topic: Understanding USB better to use V-USB
Replies: 2
Views: 109

Re: Understanding USB better to use V-USB

use the wiki for a nice read up
http://vusb.wikidot.com/driver-api

the usb read and write are when the data needs to be done in chunks. From the setup you return USB_NO_MSG so the driver can use those read write functions. You must also set the define in the usb config.
by ulao
Tue Aug 01, 2017 1:43 pm
Forum: V-USB
Topic: atmega8+V-USB to emulate PS3 joypad
Replies: 28
Views: 10345

Re: atmega8+V-USB to emulate PS3 joypad

As stated on the previous page reportBuffer [ 3rdrow ]=0b00010000;//ps home pressed. ( or 0b00000000 ) not pressed I dont have your descriptor but whatever your third row is button is. It's just the last button in the packet. This only works if the conditions are met as I listed above. buttons are c...

Go to advanced search