Search found 481 matches

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: 5258

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: 5258

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: 9716

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: 9716

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: 9716

Re: HID Variable data length

0x96 is correct.
by ulao
Wed Mar 14, 2018 1:30 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 9716

Re: HID Variable data length

The host software can do anything you want in software obviously. It can not do anything driver wise (killing/resetting the port) unles you are low level like C or use devcon or like. Again though you are not showing your design. Say you create a loop in your code. while(x) checkForData(); in checkF...
by ulao
Tue Mar 13, 2018 5:34 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 9716

Re: HID Variable data length

I'm a CAN engineer actually, so I know what you mean in the way of CAN. I think what you are asking here is to tunnel CAN thru USB. You can do this very easily with Feature reports. With usb 1.1 you are limited to 512 message lengths. To send you pick a report ID call it 20. You then send the data a...
by ulao
Tue Mar 13, 2018 2:27 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 9716

Re: HID Variable data length

Things are a tab bit more clear now but there is still a void here? What you are attempting is perfectly fine but the data you acquire via usb does not get dumped to ISP, so you have time to format your data. For example, say you want to get x bytes of data from the usb, then write to CAN. Use a nor...
by ulao
Mon Mar 12, 2018 7:27 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 9716

Re: HID Variable data length

I'm working on a project for vehicle diagnostic via CAN bus. I'd like to use the V-USB library to do the communication Hi, honestly not trying to be wrong with you, I just don't follow and am curios. Can is a 12v LL and usb is 5, neither have anything in common other then two wires? USB bulk would ...
by ulao
Fri Jan 26, 2018 7:28 pm
Forum: V-USB
Topic: D+ and D- on different ports
Replies: 2
Views: 4305

Re: D+ and D- on different ports

This should be relatively easy by adding a
USB_CFG_IOPORTNAME1
and
USB_CFG_IOPORTNAME2
and just doing a rename in the correct files and pay attention to the changes where minus and plus pins are used.
by ulao
Mon Dec 11, 2017 7:43 pm
Forum: V-USB
Topic: ATmega328p with internal RC oscillator?
Replies: 9
Views: 8175

Re: ATmega328p with internal RC oscillator?

The 328's internal clock is not very accurate. v-usb requires a solid clock. You may get it to work by adjust the internal RC oscillator but this is going to take a lot of critical timing.. More on that here. viewtopic.php?t=8819

or go int free

https://cpldcpu.wordpress.com/2014/03/0 ... ree-v-usb/
by ulao
Tue Nov 14, 2017 6:38 pm
Forum: V-USB
Topic: Simultaneous In and Out interrupt transfers
Replies: 6
Views: 4997

Re: Simultaneous In and Out interrupt transfers

I have tried that but it didn't work out well for all systems. There is too much overhead in the OS that many times the application will be delayed and end up overrunning. One thing that helped was to set the thread to high priority but still had issues. If you close all other application it also wi...
by ulao
Tue Nov 14, 2017 6:36 pm
Forum: V-USB
Topic: v-usb not really good for control transfers after all.
Replies: 4
Views: 5258

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

Idea will not work because this function is only called based on the interrupt. I'd have to step back further. Unsure where to look at the moment, abandoning this idea for now.
by ulao
Fri Nov 10, 2017 7:49 pm
Forum: V-USB
Topic: Simultaneous In and Out interrupt transfers
Replies: 6
Views: 4997

Re: Simultaneous In and Out interrupt transfers

Oh... no this is not well documented. Personally I think a disclaimer should have been put up (or maybe there is). V-usb loosely supports data input. I guess it is sort of expect, being this is a FM implementation of a hardware protocol but yeah, its not designed to preform as well as a hardware usb...