Hi Roman,
as rule of thumb you have never to exceed 1 frame/s, this give you good chance to avoid to loose data. Anyhow the RS485 isn't a peer-to-peer datalink and so there is a collision avoidance done in software.
If too many frames are on the network the CA may cut-out them and you will loose that data, at same time it may be that some nodes gets dirty data and so are not able to process the action. In Souliss there is no ACK and retransmit at protocol side.
To get it working you should use openHAB as the binding allow you to create sequences and cross check the state to retransmit in case of failure.
If you want to do it distributed over nodes you should publish topic without data, each topic shall give a single action (like close the window shutters) and you should send it multiple times to be sure.
You can also use LastIn to capture nodes state and verify that all has executed that action.
More, RS485 has a 24 byte maximum frame size, so for sure you are not transferring all of your data.
Dario.
From Mobile.
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/ec465d43-c766-4954-91c8-8ee2f3c37c30%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Anyhow the RS485 isn't a peer-to-peer datalink and so there is a collision avoidance done in software.If too many frames are on the network the CA may cut-out them and you will loose that data, at same time it may be that some nodes gets dirty data and so are not able to process the action. In Souliss there is no ACK and retransmit at protocol side.
Dario, if you have some time, can you briefly explain how the RS485 communication is implemented in Souliss?[...]
Hi Damiano,
isn't related and use an easier collision avoidance based on previous transmission.
I've never heard about but use a token pass in Souliss would increase the performances.
Dario.
From Mobile.
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/CAPeQo8ATusPu-3nkNNL7g%2BR4MYRHYF5UB495KqgOCKqYH6tGtg%40mail.gmail.com.
[...]
use a token pass in Souliss would increase the performances.
[...]
I've never heard about [...token pass...]
Hi Damiano,
I'm not young enough to don't know about token ring :)
I wasn't aware of that library.
Back to your question, is enough to change the driver to insert that library in Souliss, but anyhow there are several people using RS485 with Souliss and I've never heard of big problems.
Actually there are houses with tens of nodes in RS485, most has short and multiple buses connected via Ethernet/WiFi.
As rule of thumb keep the number of rs485 nodes on a bus lower than 10 and the distance within 10-15 meters and things should be fine.
Keep in mind that the RS485 is quite slow compared to other media and we run at 11k92 bps.
I will ask Gabriele to share its experience.
Dario.
From Mobile.
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/CAPeQo8BK1D5bAVE9_Bj7%2BiOKXuJSQxGvovzMJxCfDrfaL8DCmA%40mail.gmail.com.
SApp sometime is not refeshing or sending the message. This has nothing to do with RS485 and it happens with Eth nodes also.
I have no idea why but is much more frequent whith poor wifi signal.
On the other hand I have a highly distributed network but unfortunately I don't use publish/subscribe at the moment.
All my code is based on RemoteInput and SendData..
Tipically my leaf nodes have no logics.. Just standard T12 for example. And I keep these ON by periodically sending AutoCmd + N via RemoteInput or activating them via OpenHab rules.
Honestly this architecture works very reliable since almost two years.
I use it for several lights, HVAC system, irrigation system and night lights in the garden.
Let me know if you need additional help.
Let me suggest you to use a semi-centralized network, with esp8266 as Wifi to rs485 bridges and as logic solvers.
You set all esp8266 as gateway and using lastin/persistance you can manipulate all the other nodes and monitor the result.
Your idea is feasible but isn't easier to be applied.
Dario.
From Mobile.
--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/03954f88-123b-44c3-8f39-8603af6e346f%40googlegroups.com.