Search found 476 matches

Go to advanced search

by ulao
Fri Sep 21, 2018 5:46 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

No the usb poll rate is not going at 1. Not only is that just embarrassing thing to say, it's technically impossible. You would need to prove this with a usb analyzer. A script is not suffice. Again, this setting is for the enpoints 1 in this case. If you are talking about control transfers then sur...
by ulao
Fri Sep 21, 2018 1:35 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

#define USB_CFG_INTR_POLL_INTERVAL 1 /* If you compile a version with endpoint 1 (interrupt-in), this is the poll * interval. The value is in milliseconds and must not be less than 10 ms for * low speed devices . */ Again, your not understating things. All the info is right in front of you. 1) This ...
by ulao
Thu Sep 20, 2018 3:03 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

You already asked that... You seem to be failing at understating here. As mentioned a few times now... 1) The poll rate/refresh rate/speed/whatever you want to call it is 8ms or 125Hz. 2) There is no way to change this other then hacking the driver. So you said I was able to get 1ms , if you explain...
by ulao
Thu Sep 20, 2018 1:12 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

I mean the refresh rate. There is no such thing as a USB refresh rate, this is rubbish, define what you claim if you want help.The default USB polling rate is 125 Hz, which means every 8 milliseconds but it is possible to increase the USB polling rate via driver hacking. Can i use more than 2 inter...
by ulao
Wed Sep 19, 2018 8:43 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

The only way to change the poll rate is to hack the driver. So what do you mean my refresh rate, there is no such setting? v-usb Supports multiple endpoints: one control endpoint, two interrupt/bulk-in endpoints and up to 7 interrupt/bulk-out endpoints I have not clocked the usb data trasfer but I t...
by ulao
Wed Sep 19, 2018 6:03 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

What is the fastest poll rate for interrupts. On v-ubs you must use 1.1 high speed spec. That is going to be 10ms. but all Os's show 8ms in my experience. The fastest i got is 1ms. For what? You will never see this on usb 1.1 interrupt data and most certainty not on v-usb. Maybe with control transf...
by ulao
Wed Sep 19, 2018 2:16 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

Your picking apart my post without understanding it. let me put it another way, Interrupts, .............8ms (poll), .............8ms (poll), .............8ms (poll), .............8ms (poll) Will always poll and will always get data if the device is ready. The host does not wait. control transfers. ...
by ulao
Tue Sep 18, 2018 6:52 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

Yeah but your still asking to hack up USB, and I'm telling you, you will have a hard time getting away with this. v-usb didn't invent USB so changing the paradigm is unwise. My suggestion is to work with it not against it. I need to configure the usn every 2 bytes and not send the rest till the data...
by ulao
Tue Sep 18, 2018 3:19 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

Ok but the function is not called based on bytes it's called based on the poll rate and then the size of the payload. I'm not going to make any rash assumptions here but I'm staring to think you're missing how USB works. If you want to configure the ADC on a time interval use timers. If you want to ...
by ulao
Mon Sep 17, 2018 7:32 pm
Forum: V-USB
Topic: modify usbFunctionRead
Replies: 22
Views: 208

Re: modify usbFunctionRead

the entire reason for usbFunctionRead is when data exceeds 8 bytes, so if you have 2 there is no need to call it.

but, if you want to change that you will have to modify usbdrv.cpp. Undesired bugs will occur.
by ulao
Mon Aug 20, 2018 7:17 pm
Forum: V-USB
Topic: v-usb not really good for control transfers after all.
Replies: 4
Views: 1053

Re: v-usb not really good for control transfers after all.

Just want to add that the solution is no good once you have multiple devices. The flag is set off for any traffic. I guess I'd have to wait for the correct matching address but it may be too late at that point.
by ulao
Wed Aug 01, 2018 1:55 pm
Forum: V-USB
Topic: v-usb not really good for control transfers after all.
Replies: 4
Views: 1053

Re: v-usb not really good for control transfers after all.

I was able to find a solution. In the asm includes for your chip just add a flag. I used 0 for flag set, 1 for flag not set. waitForJ: clr r3; sts _Control_Data, r3 //sbi PORTB, 2; ;debug //cbi PORTB, 2; ;debug debug it to see how it works. It constantly sets a flag when any data goes over the usb b...
by ulao
Wed Mar 21, 2018 9:00 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 1350

Re: HID Variable data length

512 is the max (usb 1.1 spec) , weather v-usb can do it, i'm not sure.
by ulao
Fri Mar 16, 2018 5:07 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 1350

Re: HID Variable data length

v-usb only uses one interrupt and it does not disable it at any time. I see no issues.
by ulao
Thu Mar 15, 2018 1:42 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 1350

Re: HID Variable data length

0x96 is correct.

Go to advanced search