Search found 32 matches

Go to advanced search

by psc
Fri Aug 08, 2014 10:10 pm
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 4169

Re: is usb connected (the software method)

It's still not working on my end. Since I am using INT0 (d+) and INT1 (-d) I was not able to write a custom IRS for INT0 (already used in usbdrv), but I was able to use IRS INT1 vector. But I have a trigger on INT1 even when powering my board from an external supply (USB not even connected). Is this...
by psc
Mon Aug 04, 2014 7:34 pm
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 4169

Re: is usb connected (the software method)

Still trying to figure this out. I tried using this piece of code:

Code: Select all

PCMSK0 |= (1 << PCINT0);
PCICR |= (1 << PCIE0);

ISR(PCINT0_vect)
{
   usbConnected = 1;
}


I am using PCINT0 = D-: is it the right way?
by psc
Fri Jul 25, 2014 6:55 pm
Forum: V-USB
Topic: ATTINY441
Replies: 2
Views: 2046

Re: ATTINY441

What I'm worried about is that XTAL2 is the same pins as INT0.
Will also use SPI, then on what pins I should connect D+ / D-?

From a post on avr freaks:
Rather than enabling pullups by setting bits in the PORTx register, the tiny841 has a separate PUEx register.

Any hints?
by psc
Fri Jul 25, 2014 5:43 pm
Forum: V-USB
Topic: ATTINY441
Replies: 2
Views: 2046

ATTINY441

Can anyone confirm that this "new" ATTINY is supported by VUSB:
http://www.atmel.ca/devices/ATTINY441.aspx

Thanks for your time!
Cheers
by psc
Fri Jun 13, 2014 4:55 pm
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 4169

Re: is usb connected (the software method)

Yes I have a standalone mode (powering my circuit from another source than USB). I want the same firmware to work without the USB calls. So if I understand correctly, I can:

- use UsbPoll()
- watching for a pin change (D- or D+)

Any code example?
by psc
Fri Jun 13, 2014 4:42 am
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 4169

is usb connected (the software method)

Hi all, I am trying to detect if there's a USB cable connected (i am using the v-usb midi firmware by horo if it matter). I am wondering what's the best method. I cannot change the pcb so I am looking for a software solution... Any insight would be useful (using register?, a special variable in v-us...
by psc
Tue Dec 22, 2009 5:57 pm
Forum: V-USB
Topic: USB MIDI Interface
Replies: 93
Views: 78544

Re: USB MIDI Interface

solata10, V-USB-MIDI can send but also receive midi: void usbFunctionWriteOut(uchar * data, uchar len) { //if(data[0] == 11 && data[3] == 99 && data[2] == 1) {... } i would recommend to use MIDI Non-Registered Parameters: http://www.philrees.co.uk/nrpnq.htm don't forget to: #define U...
by psc
Wed Sep 09, 2009 7:13 pm
Forum: V-USB
Topic: Could not find USB device "LEDControl" with vid=0x16c0 pid=0
Replies: 5
Views: 2791

Re: Could not find USB device "LEDControl" with vid=0x16c0 pid=0

Hi Kuba, this error: [ 197.065664] usb 2-1: device not accepting address 6, error -71 has nothing to do with libusb-config. you need to see something like this in dmesg: [ 1727.956432] usb 3-2: new low speed USB device using uhci_hcd [ 1728.119279] usb 3-2: configuration #1 chosen from 1 choice [ 17...
by psc
Tue Sep 08, 2009 6:45 pm
Forum: V-USB
Topic: Could not find USB device "LEDControl" with vid=0x16c0 pid=0
Replies: 5
Views: 2791

Re: Could not find USB device "LEDControl" with vid=0x16c0 pid=0

Hi Kuba, You can see the error in the ouput of dmesg: [ 197.065664] usb 2-1: device not accepting address 6, error -71 I don't know exactly what is the problem but for sure, before attempting to ./set-led on, you have fix this error. the usb connection (vcc, d-, d+, gnd)? 3.6 V zener diodes or volta...
by psc
Mon Sep 07, 2009 10:25 pm
Forum: V-USB
Topic: Could not find USB device "LEDControl" with vid=0x16c0 pid=0
Replies: 5
Views: 2791

Re: Could not find USB device "LEDControl" with vid=0x16c0 pid=0

plug your device (via usb) and do "dmesg". what do you get?
pat
by psc
Mon Sep 07, 2009 10:23 pm
Forum: V-USB
Topic: 20 MHz driver
Replies: 1
Views: 1369

Re: 20 MHz driver

Hi, Replace the folder named "usbdrv" in your project (Powerswitch?) with the one from http://www.obdev.at/products/vusb/download.html You need to tell the compiler what clock to use: F_CPU = 20000000 avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) ..... Here's for your inf...
by psc
Thu Sep 03, 2009 8:17 pm
Forum: V-USB
Topic: V-USB tutorial
Replies: 1
Views: 1761

V-USB tutorial

hi,

i wrote a tutorial for V-USB:
http://www.workinprogress.ca/v-usb-tuto ... mega-tiny/

i hope it will help people using V-USB.
patrick
by psc
Fri Apr 24, 2009 6:11 pm
Forum: V-USB
Topic: alternative to usbSetInterrupt with HID
Replies: 5
Views: 2444

Re: alternative to usbSetInterrupt with HID

Hi Christian, I am trying to save times in communication between the firmware and the host. The host application is sending CMD_POLL every 10 ms: nBytes = usb_control_msg(x->dev_handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN, CMD_POLL, 0, 0, (char *)buffer, sizeof(buffer), 10); The fir...
by psc
Thu Apr 23, 2009 10:52 pm
Forum: V-USB
Topic: USB MIDI Interface
Replies: 93
Views: 78544

Re: USB MIDI Interface

Hi Horo, How nice! From 8 ms to 2 ms just by changing the bmAttributes. It's working very well, however i have this warning(?) when plugging the device: [ 8848.352583] usb 1-2: new low speed USB device using uhci_hcd and address 14 [ 8848.456365] usb 1-2: config 1 interface 1 altsetting 0 endpoint 0...
by psc
Wed Apr 22, 2009 11:14 pm
Forum: V-USB
Topic: USB MIDI Interface
Replies: 93
Views: 78544

Re: USB MIDI Interface

Hi Horo, Thank you for your update! :D About the speed, there is no way to make it faster when using usbSetInterrupt() (up to 8 bytes may be passed in one call) which take 8ms (homemade measurement). The only way i found was to get rid of MIDI_NOTEOFF since i only want to trig a sound percussion and...

Go to advanced search