Author Topic: HAI - Button Detection  (Read 2479 times)

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
HAI - Button Detection
« on: March 18, 2012, 04:30:52 am »
I seem to be having a problem with Elve detecting when I run buttons on the HAI.  I am on version 1.1.0.76 - which I think is the latest stable release.  I checked the change logs for the beta and didn't see this issue listed.

Steps to reproduce:
(1) Create a button in HAI, give it a name.
(2) In Elve create a rule whose trigger is a given button number
(3) Set that rule to log whenever its run.
(4) Execute that button on the HAI
(5) log entry never appears


John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI - Button Detection
« Reply #1 on: March 18, 2012, 02:33:06 pm »
The event is there but it does not do anything at this time. Thanks for pointing this out.

I have sent a follow up to HAI asking how to capture the button event and am waiting for a response.
John Hughes
Codecore Technologies

broconne

  • Jr. Member
  • **
  • Posts: 92
    • View Profile
Re: HAI - Button Detection
« Reply #2 on: March 18, 2012, 07:39:35 pm »
Hi John -
  If its helpful, it seems to be documented here:  http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCYQFjAA&url=http%3A%2F%2Fkb.homeauto.com%2Fredirfile.asp%3Fid%3D342%26SID%3D&ei=JJlmT5qvL4eigwe15v2gAg&usg=AFQjCNGIZtWsyysQfS8mu-Z6nJ9hXGef2Q&sig2=HjCJA8_HAIQah2Id_j_MIg

Page 23 describes how you poll for system event messages.  Page 48, Appendix C, describes how to decode the system messages including button presses.

Let me know if you need a tester.



« Last Edit: March 19, 2012, 06:16:01 am by broconne »

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI - Button Detection
« Reply #3 on: March 19, 2012, 09:13:11 am »
Elve uses the HAI .NET SDK, not the low level protocol.

Unfortunately HAI's implementation of the SDK is less than desirable and not documented.
John Hughes
Codecore Technologies

John Hughes

  • Administrator
  • Hero Member
  • *****
  • Posts: 2852
    • View Profile
    • Codecore Technologies
Re: HAI - Button Detection
« Reply #4 on: March 20, 2012, 09:48:50 pm »
Thanks for the help. A fix has been posted. Please let me know if it works for you.
John Hughes
Codecore Technologies