Search found 162 matches
- Mon Sep 14, 2009 8:53 pm
- Forum: V-USB
- Topic: Beginner's Post
- Replies: 2
- Views: 2917
Re: Beginner's Post
It's defined in asmcommon.inc: ;---------------------------------------------------------------------------- ; Processing of received packet (numbers in brackets are cycles after center of SE0) ;---------------------------------------------------------------------------- ;This is the only non-error ...
- Mon Sep 14, 2009 2:51 am
- Forum: V-USB
- Topic: [Solved] HID doesn't work if reportbuffer exceeds 8 bytes
- Replies: 2
- Views: 2910
Re: HID doesn't work if reportbuffer exceeds 8 bytes
Welp, from usbdrv.h: USB_PUBLIC void usbSetInterrupt(uchar *data, uchar len); /* This function sets the message which will be sent during the next interrupt * IN transfer. The message is copied to an internal buffer and must not exceed * a length of 8 bytes. The message may be 0 bytes long just to i...
- Wed Sep 09, 2009 11:32 pm
- Forum: V-USB
- Topic: How to use Native Language in Device Name?
- Replies: 1
- Views: 2328
Re: How to use Native Language in Device Name?
See USB 2.0 specs, chap. 9.6.7 String Descriptors. The Laguage Identifiers document is located here
- Fri Sep 04, 2009 6:59 am
- Forum: V-USB
- Topic: v-usb and CodeVision
- Replies: 9
- Views: 8594
Re: v-usb and CodeVision
You are welcome For development check out the Teensy boards. Be aware that his code examples don't implement a full USB state machine in the interrupt, they are good for learning tho. As an alternative take a look at the Atmel USBkey board. Atmel has example source code for the USB chips online, you...
- Tue Sep 01, 2009 1:49 am
- Forum: V-USB
- Topic: v-usb and CodeVision
- Replies: 9
- Views: 8594
Re: v-usb and CodeVision
Well, w/o knowing the details of what you need I really don't know (you may get away w/ a AT90USB82, as low as $1.80 @ 100 quantity). Just making sure you're aware of native USB AVRs The main problems w/ V-USB are 1. USB 1.1 (slow) and 2. it needs a guaranteed low ISR latency. Depending on your devi...
- Mon Aug 31, 2009 8:31 pm
- Forum: V-USB
- Topic: v-usb and CodeVision
- Replies: 9
- Views: 8594
Re: v-usb and CodeVision
For pro-development I'd suggest to check out the Atmel chips that come w/ a USB module like the Atmega16U4.
- Mon Aug 31, 2009 6:31 am
- Forum: V-USB
- Topic: v-usb and CodeVision
- Replies: 9
- Views: 8594
Re: v-usb and CodeVision
Why ? WinAVR and AVR Studio are free, professional high performance tools.
- Thu Aug 27, 2009 10:12 am
- Forum: V-USB
- Topic: How to know if device has been connected to the USB ?
- Replies: 10
- Views: 7748
Re: How to know if device has been connected to the USB ?
On a 2nd thought -- the SOFs also go away if the device is suspended, that could be a problem. Am afraid that the only really safe way to detect a disconnect is monitoring the VBus signal.
- Thu Aug 27, 2009 8:21 am
- Forum: V-USB
- Topic: How to know if device has been connected to the USB ?
- Replies: 10
- Views: 7748
Re: How to know if device has been connected to the USB ?
Hm, that's probably because V-USB doesn't detect the disconnect. Forgot about that In order for this to work you could enable the SOF counter (see USB_COUT_SOF in usbconfig-prototype.h) and monitor the SOFs. If they stop comming you are disconnected and could manually reset the driver with this func...
- Mon Aug 24, 2009 8:20 am
- Forum: V-USB
- Topic: How to know if device has been connected to the USB ?
- Replies: 10
- Views: 7748
Re: How to know if device has been connected to the USB ?
Christian, could you flag this for inclusion w/ the next release please ?
- Thu Aug 20, 2009 1:39 am
- Forum: V-USB
- Topic: How to know if device has been connected to the USB ?
- Replies: 10
- Views: 7748
Re: How to know if device has been connected to the USB ?
I tested the variable usbConfiguration in the main loop. It doesnt change at all. If i disconnect or re-connect the device , it remains the same. Is there something i did wrong ? No, the driver has a bug (oversight actually), usbConfiguration doesn't get cleared if a reset happens on the bus: Chris...
- Thu Aug 13, 2009 10:01 pm
- Forum: V-USB
- Topic: Lost connection with PC: any way to restore?
- Replies: 14
- Views: 9815
Re: Lost connection with PC: any way to restore?
You can reconnect automatically if you connect the D- pull up resistor to an I/O pin instead of Vcc. See the USB_CFG_PULLUP_* macros in usbconfig.h . To reconnect, issue usbDeviceDisconnect(), wait 1-2s, then issue a usbDeviceConnect().
- Thu Aug 13, 2009 9:54 pm
- Forum: V-USB
- Topic: How to know if device has been connected to the USB ?
- Replies: 10
- Views: 7748
Re: How to know if device has been connected to the USB ?
Usually the last thing the host does during enumeration is setting the configuration. You can check if the variable usbConfiguration is not zero for an indication if the device is plugged in and enumerated. Christian, usbConfiguration should be cleared during a reset condition (usbPoll(), where usbD...
- Thu Aug 13, 2009 2:13 am
- Forum: V-USB
- Topic: Knowing when a transfer is complete.
- Replies: 5
- Views: 4426
Re: Knowing when a transfer is complete.
Try this (see usbPoll()):
Code: Select all
extern volatile uchar usbTxLen ;
tx_complete = (usbTxLen & 0x10) ;
- Tue Aug 11, 2009 7:24 am
- Forum: V-USB
- Topic: usb interrupt ( answered )
- Replies: 3
- Views: 3467
Re: usb interrupt
Use
to disable the interrupt and
to re-enable it.
Code: Select all
USB_INTR_ENABLE &= ~_BV( USB_INTR_ENABLE_BIT ) ;
to disable the interrupt and
Code: Select all
USB_INTR_ENABLE |= _BV( USB_INTR_ENABLE_BIT ) ;
to re-enable it.