Author Topic: Event when report send from Device  (Read 1161 times)

nouri2015

  • Newbie
  • *
  • Posts: 4
    • View Profile
Event when report send from Device
« on: June 13, 2011, 05:37:14 am »
Hello Roman
I need a event that active when report send from device.
nrHid1AfterReceive event, actives continuously but i want to active, when data is update from device.
do you have any solution for this problem?
thank.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Event when report send from Device
« Reply #1 on: June 13, 2011, 08:29:56 am »
Hello

Please show me data that you get in several calls of nrHid1AfterReceive event.
You can compare data portions between two calls and if they are different make needed tasks.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

nouri2015

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Event when report send from Device
« Reply #2 on: June 14, 2011, 04:46:08 am »
Hello
Thanks for your reply.
You suppose, the HID Device send this string: "Test", character by character(1 byte report) with specified delay between 2 character;
The software call "GetReport" function, continuously and received this string for example: "TTeSSStt", how i can determine, what is this?
For additional information:
I am HID Device designer, in the micro controller firmware  there is an interrupt, that i can know,  the data is received, but in the PC application, i have to call
"GetReport" method continuously;
I need a event, when the data is received, this event be active.
Thanks again.

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Event when report send from Device
« Reply #3 on: June 14, 2011, 03:50:21 pm »
Hello

Please run HIDDemo and show me its output log.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

nouri2015

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Event when report send from Device
« Reply #4 on: June 15, 2011, 06:40:35 am »
Hello Romam
Excuse me, the HID device has been problem.
Thanks a lot.

nouri2015

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Event when report send from Device
« Reply #5 on: June 19, 2011, 04:23:23 am »
Hello Roman
How much delay need to, between two report(2 byte for any report) for USB1.1 Full Speed that software recieve data correctly?

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: Event when report send from Device
« Reply #6 on: June 19, 2011, 11:45:52 am »
Hello

It seems like you want to program the device firmware.

I don't know :-(
You need refer to  USB 1.1 HID profile specification.
Also possible it depends on windows HID drivers.
Possible you can compare with existing USB 1.1 HID devices (like mouses or keyboards)

nrComm Lib HID solution does not have any limitations on time intervals. If system HID driver works correctly, nrComm works correctly too.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.