Using AtUsbHid.dll

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Furum,

I started working with AT90USB1287 some weeks ago, using AVR STK 501. I've made some additional connections to have possibility using USB channel. I've made own software for the AVR device and Win XP, based on the Atmel example (HID) using AtUsbHid.dll. Everithing is working, but the driver generates file "debug-fifo.txt" when the Atmel device sending some data. I tried with MVC++ and with the Borland C++Builder but results are the same. Is anybody knows how to switch off the ganaration of the "debug-fifo.txt" file? Thanks in advance.

Last Edited: Wed. Dec 27, 2017 - 07:06 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello svetlozar,

did you find an answer to your question? I also have the problem with the debug_fifo.txt-file.

Greetz
Lars

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello svetlozar,

Good to know you get them working.
I found I could not make "Firmware Upgrade" work, that
means demo code could not change chip to boot loader
mode and get error message box alltime.

Did you get this feature working and how? May I have
more details on this fix you did? Or should I run this
PC HID demo in specific style?

Thanks.

Ben

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Most likely the DLL was compiled with debug features, probably so no one uses it in a commercial project...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks. What means, "probably so no one uses it in a commercial project..."

How could we update firmware in the field ?
My question is setFeature API call in HID PC demo
did not work, how can I fix it?
Do you have more information on API setFeature?

Thanks.

Ben

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I was also shocked when I found a debug_fifo.txt file in my application's directory. There wasn't any simple method to switch it off so I decided to make some "corrections" in asm and finally I got a atusbhid.dll which didn't generate that unwanted file.

If anybody wants it I can send you - just mail me andrzejwic@poczta.fm.

Greetz,
Andy

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using the atusbhid.dll as well with Borland C++ Builder. I found this article very useful for using the VC++ DLL in a Borland project:

https://svn.origo.ethz.ch/eiffel...

I, too, am having the same issue with the debug_fifo.txt. Andy: I just sent you an email to see if you can email me the modified code. Other than that little glitch it seems to be working amazingly well.

Also, is there any way to know how many bytes were written to the endpoint using readDevice? The function returns 0 for failure, 1 for success. It would be nice if it simply returned the number of bytes written from the device. I'm new to this USB stuff, so maybe their is something I'm missing.

Thanks!
Dave

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kanke123 wrote:
setFeature API call in HID PC demo
did not work, how can I fix it?

This feature worked for me right out of the box. Have you tried it with the AVR sample projects on the device side? I used the AT90USB162/82 HID Keyboard project sample code from the AVR web site here:

http://www.atmel.com/dyn/product...

...and it worked without any trouble at all.

- Dave

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mysky wrote:

If anybody wants it I can send you - just mail me

Thanks Andy - it works great!!!

- Dave

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

Can you share the dll, also is it 64bit or 32 bit dll.

 

It would be great if you could attach it here.

 

Thanks,

Xxplorer

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That post is almost 10 YO, I doubt that anyone is listening.

 

You have a thread already on this, please stop spamming all threads with the same question!

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have gone through all the related post, but no one has replied to this specific query, sorry if it wasted your time n efforts, but if there could be a proper reply then would not needed to post it again.
Also thanks if you could reply with the solution.

Topic locked