Search found 26 matches
Hello I try to use powerswitch and delphi example (download from forum "delphiLibUSB-win32") However it seems does not work fine (compile, but when I run it software cant find any usb device, when I try run project in debug mode it raise acces violation at adress 0x00(...) . Does anyone h...
- Thu Oct 25, 2007 8:19 pm
- Forum: V-USB
- Topic: How to send 8Byte data to device
- Replies: 2
- Views: 3302
Rockna wrote:I know about how to send data from device to host.
But I don't know how to send data 8 byte from host to device.
Please help me about example code both host and device
most basic example - PowerSwitch I think.. See it's source code: commandline/powerSwitch.c
Hello at all I have a question on AVR USB: Is it possible to read also data from a controller over USB with this projekt or is it only possible to programm a controller?? lg jippi Of course it is possible.. The AVRDoper, USBasp and other similar programmers are based on AVR-USB driver (there is AVR...
Great, thanks a lot. Are you or anyone else able to point me to a good beginner's guide in IR transfer with AVR chips. I don't really understand how to make it work without using the USART. If you don't need a HID class device, than you can make it on one AVR. Some example (non AVR-USB, author wrot...
Both are possible.. It depends what you want to do.. I mean how much 'non USB' work AVR has to do and how you'll make it work If 'other jobs' for uC are frequently, then there can be problem with iterrupts (USB host sends packets to device every 1ms as I remember).. I've had such a problem with my p...
I want to compile AVR-CDC (Source code from http://www.recursion.jp/avrcdc/) for ATMEGA8 or MEGA32 with WinAVR.
Please help me.
And what problems do you get?
There are precompiled hex files for atmega8 (AVR-CDC/avrcdc/cdcmega/)..
hi, i'm building the powerswitch right now but i don't know how i should use the linux software on windows with mingw does anyone can tell me? grtz ben As I remember, you don't need mingw. Just install LibUSB-Win32 and it should work. Also you can see my gPowerSwitch program. It works on Windows, b...
- Sun May 06, 2007 1:20 pm
- Forum: V-USB
- Topic: AVR USB Hidkeys Keyboard to Mouse
- Replies: 1
- Views: 3306
Hi, I'm new to this and I've been looking at the code. I'm wondering if anyone has any starting suggestions for using the code for a mouse implementation. I've already built together a report descriptor format, which I think will work. Here's my buttons based 'mouse': http://szczuka.eu/avr/mouse-bu...
Hi, I'm trying to build a mouse type device, and I was wondering if I could see how you( ksz) implemented it. Thanks! Sorry for late response. Off course you can, here you'll find sources: http://szczuka.eu/avr/mouse-buttons/ Note, that I'm not developing it any more, so "it is AS IS" EDI...
Grendel wrote:How big is ir.data dimensioned ? I could see that overflowing if it's smaller than 253.
It is 64
Change to 256 doesn't help..
Well, on two tinys connected via USART it just works..
No dmesg's errors, everything is OK..
Thanks for help any way!
no.. Still after few packets from remote the device 'disapears' from usbview, here's some of debug now (as you can see, there are some strange otputs, eg.: 10: 00 002: 01 00 00, this 002: is my 02: prefix..) ... 5 27 00 04 0d 00 09 f6 10: 00 002: 01 00 00 5 27 00 04 0d 00 09 f6 10: 00 002: 01 00 00 ...
I'm not sure the code for vector 5 is OK. The SEI as a first instruction is inserted manually ("#APP" and "#NOAPP" framing) and the compiler comments that the function is "naked". That would indicate that no PUSH instructions have been emitted as it would be appropriat...
If "__attribute__ ((interrupt))" does not change anything, I'd be suspicious. Try to compile the module with the "-S" option to gcc. this will print the assembler source code. Then look at the code where the sei() instruction is. If it's among the first instructions of the ISR, ...
Putting a sei() into your ISR is too late. You must use __attribute__ ((interrupt)) instead of __attribute__ ((signal)) for your ISR. Don't know how the appropriate macro has been renamed in recent versions of AVR-Libc. it is __attribute__ ((interrupt)).. This (instead of ISR() ) don't change anyth...
You must make sure that your interrupt service routines can be interrupted by the USB interrupt. Timing is VERY critical for AVR-USB, the interrupt handler must be called with only a couple of cycles latency. First of all, sorry for delayed response, couldn't do it earlier.. How can it be done? by ...