GithubHelp home page GithubHelp logo

papouchcom / spinel.net Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 2.0 274 KB

Balíček knihoven a ukázkových aplikací pro práci se zařízeními komunikujícími protokolem Spinel (I/O moduly Quido, teploměry TQS a senzory THT2 a TH2E, displeje TDS), pro platformu Microsoft .NET

Home Page: https://www.papouch.com/

C# 79.08% CSS 1.94% XSLT 7.61% Visual Basic .NET 11.38%
quido spinel tqs papouch rs232 rs485 serial-port communication measuring home-automation

spinel.net's People

Contributors

papouchcom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

luboshl n9

spinel.net's Issues

Enhancement: CmdSetOutputs

Hi,

I would appreciate to have the library extended with the CmdSetOutputs method, which will set outputs in one instruction (batch). Ideally with parameter such as List<Tuple<byte,bool>> for setting some outputs to true and others to false.

Reason for this is that setting outputs in a sequence of commands CmdSetOutput results in small time delay between particular output changes.

Thank you for understanding.

Best Regards,
Adam Rak

Event inputs changed suddenly stop firing

Hi,

I have encountered a problem, where at some random time Papouch.Spinel.Spinel97.Device.Quido stops firing event EventQuidoInputsChange OnInputsChange.

At the start of the application I subscribed to this event, called StartListen() on Papouch.Spinel.Spinel97.Device.Device and called CmdSetAutonotify to true on Papouch.Spinel.Spinel97.Device.Quido.

Afterwards, I did not make any changes regarding the settings above. After few hours of normal firing it stops. Quido was reacting for setting outputs without any problem.

Restarting the application (which includes disconnecting and connecting to Quido) resolved this issue for now.

Have you ever encountered such issue? Is there any option to check/know that this state happened?

I am using Quido ETH 8/8 with two inputs.

Here are some timestamps of the fired event:

2019-02-05 09:41:25,375 - inputs changed S1: False; S2: False
2019-02-05 09:41:27,807 - inputs changed S1: True; S2: False
2019-02-05 09:41:28,639 - inputs changed S1: False; S2: False
2019-02-05 09:41:28,772 - inputs changed S1: True; S2: False
2019-02-05 09:41:28,916 - inputs changed S1: False; S2: False
2019-02-05 09:41:28,938 - inputs changed S1: False; S2: True
2019-02-05 09:41:29,091 - inputs changed S1: True; S2: True
2019-02-05 09:41:29,151 - inputs changed S1: False; S2: True
2019-02-05 09:41:29,311 - inputs changed S1: False; S2: False
2019-02-05 09:41:29,545 - inputs changed S1: False; S2: True
2019-02-05 09:41:29,589 - inputs changed S1: True; S2: True
2019-02-05 09:41:29,611 - inputs changed S1: True; S2: False
- afterwards there is silence until I restarted the application

I am using version from commit 216c1e8 (or newer).

Thank you in advance.

Adam Rak

Connect to QUIDO from 2 APIs from same PC (ipv4)

Hello,

I would like to ask if it is possible to connect from 2 APIs on the same PC to 1 QUIDO. I tried to use the demo and it is not able to do such a thing (second DEMO GUI throws):
CONNECT - err: [ci.Open() = false]

Why do I need it? Because I want view I/O status of QUIDO in user friendly GUI and simultaneously changing things from another APIs.

What is the purpose of "adr=254"? Is it what I need?

Thank you in advance.

Best Regards
Aleš Novotný

Registration to the Event PackedReceive needed

Hi,

According to my observation, I need to be registered to Papouch.Spinel.Spinel97.Device.Device.EventSpinelPacketReceive, to receive Events from EventQuidoInputsChange.

Repro steps:

  1. Try commenting-out QuidoDemo_CS FormMain.cs line 209 quido.OnPacketReceive += new Papouch.Spinel.Spinel97.Device.Device.EventSpinelPacketReceive(PacketReceive);
  2. After connecting to the Quido and setting Autonotify and Listening to Enable, I do not receive EventQuidoInputsChange.

Best Regards,
Adam Rak

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.