Search found 464 matches

Go to advanced search

by ulao
Wed Mar 21, 2018 9:00 pm
Forum: V-USB
Topic: HID Variable data length
Replies: 16
Views: 779

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

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

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

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

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

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

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

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: 6
Views: 646

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. https://forums.obdev.at/viewtopic.php?t=8819 or go int free https://cpldcpu.wordpress.com/2...
by ulao
Tue Nov 14, 2017 6:38 pm
Forum: V-USB
Topic: Simultaneous In and Out interrupt transfers
Replies: 6
Views: 752

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: 2
Views: 461

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

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...
by ulao
Fri Nov 10, 2017 6:38 pm
Forum: V-USB
Topic: check if USB is idle
Replies: 2
Views: 617

Re: check if USB is idle

check for the arrest usbPoll(); //issue at least one for the check below if (USB_INTR_PENDING & (1<<USB_INTR_PENDING_BIT)) // Usbpoll() collided with data packet { uint8_t ctr; // loop takes 5 cycles asm volatile( " ldi %0,%1 \n\t" "loop%=: sbis %2,%3 \n\t" " ldi %0,%1 \...
by ulao
Fri Nov 10, 2017 6:32 pm
Forum: V-USB
Topic: Simultaneous In and Out interrupt transfers
Replies: 6
Views: 752

Re: Simultaneous In and Out interrupt transfers

Yeah, not going to happen. This is an over,kill but explains why https://forums.obdev.at/viewtopic.php?f=8&t=11102 The v-usb consumes the entire CPU to handle NAK until the driver is ready. You will have no choice but to wait for it to do its thing before sending out. Simultaneous is not achieva...

Go to advanced search