Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Issue #64 #65

Merged
merged 1 commit into from
Feb 12, 2013
Merged

Fix for Issue #64 #65

merged 1 commit into from
Feb 12, 2013

Conversation

mstovenour
Copy link
Collaborator

Add logic to process the PLM command "user reset to factory defaults". Also added log message if other unknown PLM commands show up.

Add logic to process the PLM command "user reset to factory defaults".  Also added log message if other unknown PLM commands show up.
@krkeegan
Copy link
Collaborator

This looks good to me. Such an odd error to discover, I never would have thought of this.

Does this mean that 0x54 Button Event Report also needs to be added?

@mstovenour
Copy link
Collaborator Author

Good question. I’ll try to get that event to fire, however I think that it only fires if the PLM is reconfigured so that it doesn’t automatically enter linking mode. In this configuration the PLM notifies the application about the button presses and the application must ask the PLM to enter linking mode. Otherwise I don’t think the PLM will fire those events. At least I’ve never seen it and I do a lot of manual linking with the i2CS devices. My guess is that so long as we don’t reconfigure the PLM for that mode we will never see the events.

From: krkeegan [mailto:notifications@github.com]
Sent: Sunday, February 10, 2013 11:56 PM
To: hollie/misterhouse
Cc: Michael Stovenour
Subject: Re: [misterhouse] Fix for Issue #64 (#65)

This looks good to me. Such an odd error to discover, I never would have thought of this.

Does this mean that 0x54 Button Event Report also needs to be added?


Reply to this email directly or view it on GitHub #65 (comment) ..

https://github.com/notifications/beacon/Nvoh7bM6g31WX2NN_lw41eAvTHkE7b8rQyEU1Fz8dw8fitr7C7pDein4aPni0LSa.gif

@mstovenour
Copy link
Collaborator Author

BTW, this is a fundamental flaw in the PLM – application protocol. That protocol should have 02-command-length-payload. Then even if an unknown command springs into existence, future PLM type for instance, then MH would at least know how many bytes to throw away and could ignore the command. With this protocol if there is an unknown command we will not know how many bytes to toss. We could start tossing until we get another {02+command we recognize} but that would be only marginally better given that a command payload can contain 02 as well. I study protocols like this for a living. This is a particularly bad one but not the worse I’ve seen my own company engineer.

From: Michael Stovenour [mailto:michael@stovenour.net]
Sent: Monday, February 11, 2013 6:54 AM
To: 'hollie/misterhouse'; 'hollie/misterhouse'
Cc: 'Michael Stovenour'
Subject: RE: [misterhouse] Fix for Issue #64 (#65)

Good question. I’ll try to get that event to fire, however I think that it only fires if the PLM is reconfigured so that it doesn’t automatically enter linking mode. In this configuration the PLM notifies the application about the button presses and the application must ask the PLM to enter linking mode. Otherwise I don’t think the PLM will fire those events. At least I’ve never seen it and I do a lot of manual linking with the i2CS devices. My guess is that so long as we don’t reconfigure the PLM for that mode we will never see the events.

From: krkeegan [mailto:notifications@github.com]
Sent: Sunday, February 10, 2013 11:56 PM
To: hollie/misterhouse
Cc: Michael Stovenour
Subject: Re: [misterhouse] Fix for Issue #64 (#65)

This looks good to me. Such an odd error to discover, I never would have thought of this.

Does this mean that 0x54 Button Event Report also needs to be added?


Reply to this email directly or view it on GitHub #65 (comment) ..

https://github.com/notifications/beacon/Nvoh7bM6g31WX2NN_lw41eAvTHkE7b8rQyEU1Fz8dw8fitr7C7pDein4aPni0LSa.gif

krkeegan added a commit that referenced this pull request Feb 12, 2013
@krkeegan krkeegan merged commit 6d42b70 into hollie:master Feb 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants