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

HomeMaticBidCoS: sendFix behaviour contradicts documentation #282

Closed
avanc opened this issue Mar 29, 2017 · 6 comments
Closed

HomeMaticBidCoS: sendFix behaviour contradicts documentation #282

avanc opened this issue Mar 29, 2017 · 6 comments

Comments

@avanc
Copy link

avanc commented Mar 29, 2017

Since the following commit, a fix is send if sendFix is false:
Homegear/Homegear-HomeMaticBidCoS@5f048d7

The reason is not clear. However, the documentation should be adapted:
https://github.com/Homegear/Homegear-HomeMaticBidCoS/blob/master/misc/Config%20Directory/homematicbidcos.conf#L94

@hfedcba
Copy link
Member

hfedcba commented Mar 30, 2017

Hey,

what exactly should be corrected? The default value is false - I just checked again. I changed the behavior of sendFix, because it seems the default setting now covers more LAN gateways - I'm not sure about that fact though.

Cheers,

Sathya

@avanc
Copy link
Author

avanc commented Mar 30, 2017

Hi,

if I see a parameter called sendSomething and it is set to true, I would guess something is send. If sending the fix is needed by more LAN gateways, than I would change the default to true.

But what realy confused me, that the documentation in the configuration says:
If sent packets are not received by the devices (you get error messages, that packets were not received after 3 retries), set sendFix to true.

This is not valid anymore, as I have to set sendFix to false to send the fix :-)

@avanc
Copy link
Author

avanc commented Mar 30, 2017

Let me create a pull request, maybe I can make my point more clear.

@hfedcba
Copy link
Member

hfedcba commented Mar 30, 2017

sendFix sends nothing. It enables a fix needed for sending packets on some LAN gateways. So sendFix = true means, sendFix is enabled. When setting it to false packets are being sent without the fix enabled. Only one setting works.

@avanc
Copy link
Author

avanc commented Mar 30, 2017

Sorry, I'm still confused.

What is normal/standard? Doing

payload.push_back((bidCoSPacket->controlByte() & 0x10) ? 1 : 0)

or not?

Before commit Homegear/Homegear-HomeMaticBidCoS@5f048d7, I had to set sendFix=true.
After the commit, I have to set sendFix=false to get the same behaviour as before.
So some user intervention is needed for some people and I want to make sure that not everybody falls into this.

Maybe a note like

Please note that the meaning of sendFix changed!
If you had set it to true you have to set it to false now.

in https://github.com/Homegear/Homegear-HomeMaticBidCoS/blob/master/misc/Config%20Directory/homematicbidcos.conf#L98 might help when other people merging old and new configuration.

@hfedcba
Copy link
Member

hfedcba commented Mar 30, 2017

What is normal/standard? Doing

With sendFix = true there is one less byte in the packet.

Maybe a note like

I added a note ;-).

@hfedcba hfedcba closed this as completed Mar 30, 2017
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

No branches or pull requests

2 participants