Giter VIP home page Giter VIP logo

device-plugwise-perl's People

Contributors

hollie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

oar-team

device-plugwise-perl's Issues

Possible problem with error message handling

During long-time testing the Stick stopped responding after receiving an error message and the software did not recover automatically.

Related message:
Sep 14 11:54:10 nessie be.lika.xpl-plugwise[88]: xPL::Dock->plugwise_process_response: Received response code with error: 000001C400E1
Sep 14 11:54:10 nessie be.lika.xpl-plugwise[88]: at /Library/Perl/5.12/xPL/IOHandler.pm line 213

To be examined, tested and fixed.

Indentification pattern "0011..."; (The device connected to ... does not appear to be a Stick)

When connecting a Stick to a Plus device that has been reset (power reset sequence),
the 0011 return reply is shorter, resulting in Device::Plugwise refusing to talk to the stick, making it impossible use Device::Plugwise to send commands to set up a link.

On one Stick I get the following reply with a link:
RECV 0011 000D 000D6F00029008C4 01 01 9F0D6F00029C44B9 1D9F FF
And this reply without a link:
RECV 0011 001B 000D6F00029008C4 01 00

I suggest changing the pattern on line 333 of Device/Plugwise.pm as follows:

333c333
<         =~ /^0011([[:xdigit:]]{4})([[:xdigit:]]{16})([[:xdigit:]]{4})([[:xdigit:]]{16})([[:xdigit:]]{4})/

---
>         =~ /^0011([[:xdigit:]]{4})([[:xdigit:]]{16})([[:xdigit:]]{4})(?:([[:xdigit:]]{16})([[:xdigit:]]{4}))?/

This adds a "(?:" ... ")?" around the 2 last elements (network_key(16) & short_key(4))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.