Search found 481 matches
- Tue Aug 01, 2017 1:43 pm
- Forum: V-USB
- Topic: atmega8+V-USB to emulate PS3 joypad
- Replies: 28
- Views: 123683
Re: atmega8+V-USB to emulate PS3 joypad
As stated on the previous page reportBuffer [ 3rdrow ]=0b00010000;//ps home pressed. ( or 0b00000000 ) not pressed I dont have your descriptor but whatever your third row is button is. It's just the last button in the packet. This only works if the conditions are met as I listed above. buttons are c...
- Fri Jul 28, 2017 2:15 pm
- Forum: V-USB
- Topic: atmega8+V-USB to emulate PS3 joypad
- Replies: 28
- Views: 123683
Re: atmega8+V-USB to emulate PS3 joypad
You need to included the usb descriptor. I think raph puts its in devdesc or gampad h files.
You also have not added the code in the usbFunctionSetup?
Did you change anything? I can;t write the code for you but if you take a shot at it I will help.
You also have not added the code in the usbFunctionSetup?
Did you change anything? I can;t write the code for you but if you take a shot at it I will help.
- Wed Jul 26, 2017 4:11 pm
- Forum: V-USB
- Topic: atmega8+V-USB to emulate PS3 joypad
- Replies: 28
- Views: 123683
Re: atmega8+V-USB to emulate PS3 joypad
There is no simple solution just a lot of gotchas. Most of what you need is in this post. 4 main things need to happen. 1) usb descriptor must have buttons on first 3 reports. 2) third report is home button reportBuffer [ thirdrow ]=0b00010000; 3) you must reply to the controller request in the usbs...
- Fri Jul 21, 2017 4:12 pm
- Forum: V-USB
- Topic: data send getting interupted.
- Replies: 8
- Views: 46302
Re: data send getting interupted.
All of my issues were related to the global int flag. and this https://forums.obdev.at/viewtopic.php?f=8&t=10981 I was using a combination of atomic and cli to control int's. Now I just start and stop my INT0 directly and only, this allows use of interrupts to work fine for my code that needs it...
- Fri Jul 14, 2017 5:54 pm
- Forum: V-USB
- Topic: USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
- Replies: 2
- Views: 36363
Re: USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
It's ok, I solve my issue last night. My main issue was USB_PROP_LENGTH(12) needed USB_PROP_LENGTH(24). Thx for the link, I'll check it out and see if we used the same approach.
- Fri Jul 14, 2017 5:50 pm
- Forum: V-USB
- Topic: atmega8+V-USB to emulate PS3 joypad
- Replies: 28
- Views: 123683
Re: atmega8+V-USB to emulate PS3 joypad
Yes, I'm doing it.
- Wed Jun 28, 2017 2:48 pm
- Forum: V-USB
- Topic: data send getting interupted.
- Replies: 8
- Views: 46302
Re: data send getting interupted.
You should do 132 bytes for report out not 128. What I do is always use 128, in or out. For in I need to added the few bytes for address and what not (132) but its always the same. That's what I said, you just cut off the part of my text that said 132 In your API while you connect to your device, y...
- Tue Jun 27, 2017 4:40 pm
- Forum: V-USB
- Topic: Need some help understanding usbFunctionWriteOut()
- Replies: 1
- Views: 33340
Re: Need some help understanding usbFunctionWriteOut()
normally you just keep a counter as shown in the examples but you can also...
use the After-the-fact CRC checking
http://vusb.wikidot.com/examples
use the After-the-fact CRC checking
http://vusb.wikidot.com/examples
- Tue Jun 27, 2017 3:51 pm
- Forum: V-USB
- Topic: data send getting interupted.
- Replies: 8
- Views: 46302
Re: data send getting interupted.
here is the section for my send/recv. 0xa1, 0x01, // COLLECTION (Application) 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x26, 0xff, 0x00, // LOGICAL_MAXIMUM (255) 0x75, 0x08, // REPORT_SIZE (8) 0x85, 0x11, // REPORT_ID (17) 0x95, 0x79, // REPORT_COUNT (127) -- the max 0x09, 0x00, // USAGE (Undefined) 0xb2,...
- Tue Jun 27, 2017 3:44 pm
- Forum: V-USB
- Topic: Setup with ATMega2560
- Replies: 1
- Views: 30356
Re: Setup with ATMega2560
What watt diodes do you have on the +/- leads.
- Tue Jun 27, 2017 3:18 pm
- Forum: V-USB
- Topic: USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
- Replies: 2
- Views: 36363
USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
how can I make this dynamic. I need to set my product string via eeprom for a project I'm using. tried #define USB_CFG_DESCR_PROPS_STRING_PRODUCT (USB_PROP_IS_RAM | USB_PROP_LENGTH(12)) and #define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC | USB_PROP_IS_RAM) both allow the code to work....
- Mon Jun 12, 2017 6:27 pm
- Forum: V-USB
- Topic: stop v-usb usb interrupt without cli
- Replies: 0
- Views: 68741
stop v-usb usb interrupt without cli
IS there a way to stop the usb interrupt without using cli? cli causes lots of memory move issues that requires the ATOMIC_BLOCK for avr. I'd rather just disable usb ints then all.
- Tue May 30, 2017 3:52 am
- Forum: V-USB
- Topic: data send getting interupted.
- Replies: 8
- Views: 46302
Re: data send getting interupted.
I did sum sniffing and its a pid stall. When a device receives a request that is undefined, is inappropriate given the current setting or state of the device, or uses values that are inappropriate for the particular request, then a Request Error exists. The device handles a Request Error by returnin...
- Fri May 26, 2017 3:42 am
- Forum: V-USB
- Topic: data send getting interupted.
- Replies: 8
- Views: 46302
data send getting interupted.
I'm trying to send data to my device via the usb.dll usbSetReport function. I set up my usbFunctionWrite to watch for my report ID then a command on byte 2. I return 0 to tell the driver to expect more (bytesRemaining). This most of the time works but some times dies. When it dies it just stop and d...
- Sat May 13, 2017 3:23 am
- Forum: V-USB
- Topic: re-writing boothid to work with 328 (full size)
- Replies: 0
- Views: 68695
re-writing boothid to work with 328 (full size)
Not sure if anyone else here ran in to this but you can not use either the commend or gui tool to flash more then %87 of the mega328 code. The NRWW is apparently in the way. If your main project is under %87 used flash, it works fine. Once it hits 7800 it will die. See the link below for the detaile...