DirkEngels / PlugWeb-Driver

PlugWeb Driver for PHP
http://www.dirkengels.com
3 stars 0 forks source link

Wrong Checksum #4

Open freemann opened 12 years ago

freemann commented 12 years ago

When i request PowerInfo from my devices, some of them doesn't response.

I found that for the devices that didn't response, the checksum was wrong: sendstring (without checksum): 0012000D6F0000C3A6FC(20) generated checksum for the above string: FC0A(4)

Combined send string is: 0012000D6F0000C3A6FCFC0A (24)

sendstring (without checksum): 0012000D6F0000D3198D(20) generated checksum for the above string: 1BE(3) Combined send string is: 0012000D6F0000D3198D1BE (23)

The last string is 1 char to short and so i got no response from the circle.

Whats happening here?

DirkEngels commented 12 years ago

Hi,

Thank you for reporting this bug. I will investigate the cause of this bug. My first idea is that the result is trimmed because of a 0 I guess, but I have to look into it. I hope to be able to do this within a week.

Kind regards,

Dirk Engels

On Thu, 16 Feb 2012 08:24:19 -0800, freemann wrote:

When i request PowerInfo from my devices, some of them doesn't response.

I found that for the devices that didn't response, the checksum was wrong: sendstring (without checksum): 0012000D6F0000C3A6FC(20) generated checksum for the above string: FC0A(4)

Combined send string is: 0012000D6F0000C3A6FCFC0A (24)

sendstring (without checksum): 0012000D6F0000D3198D(20) generated checksum for the above string: 1BE(3) Combined send string is: 0012000D6F0000D3198D1BE (23)

The last string is 1 char to short and so i got no response from the circle.

Whats happening here?


Reply to this email directly or view it on GitHub: https://github.com/DirkEngels/PlugWeb-Driver/issues/4

freemann commented 12 years ago

Hi Dirk,

Check: http://www.domoticaforum.eu/viewtopic.php?f=39&t=7208&p=54138#p54138

With regards, Marco

DirkEngels commented 12 years ago

Hi Marco,

Thank you for sending me a link to the forum. This weekend I will dive into it and write a patch for it, so we don't need to execute and external python script for generating a correct CRC checksum.

Kind regards,

Dirk Engels

On Thu, 16 Feb 2012 09:36:07 -0800, freemann wrote:

Hi Dirk,

Check: http://www.domoticaforum.eu/viewtopic.php?f=39&t=7208&p=54138#p54138

With regards, Marco


Reply to this email directly or view it on GitHub:

https://github.com/DirkEngels/PlugWeb-Driver/issues/4#issuecomment-4005405