Comments (2)
Hi @betaphi, yes your are right. The entire communication of NASA is based on messages. All units receive that messages and the ones with the desired destination address reacts to that massage. There are some generic addresses like Broadcast etc. Also that entire protocol is pretty generic. Its basically there to interchange variables (MessageNumber its Value).
Currently I have impl a very simple way of sending the messages. I put them in a queue and send them on the receiving thread when there is no more data available. This should reduce collections but costs some time (when there are a lot data available).
Inside the S-NET code there is a way of handling this. Each message have a packetNumber. That is basically and Integer witch is incremented for each messages that is getting sent.
In example when you change the target temperature you the a message of DataType::Request. Then other side generates a message of data type DataType::Response with the same packetNumber. So basically it should be possible to send a request, wait and check if the reponse comes and if not, resend the request.
I saw code inside the S-NET code but I did not tried it myself yet. I dont now if every request gets a response etc.
Also I noticed that between the messages there are something like filler bytes. The S-NET code calls them permeable, but I have no clue why they are there.
from esphome_samsung_ac.
Hello @lanwin, thank you for your response.
The interesting thing about the EHS ASHP is that while I (and others) have recorded the NASA-Stream, it never sends messages with other destinations than just broadcast. I find that pretty notable. Maybe you see different results with the air conditioners.
The preamble you mentioned (and I have noticed also) could in fact be a measure in order to combat collisions given that there is no clear master - slave pattern with NASA.
from esphome_samsung_ac.
Related Issues (20)
- Did I fry my 485 unit? HOT 6
- file example.yaml is all in errors when you try to get the firmware HOT 2
- [NASA] Automatic Cleaning HOT 12
- [Non-NASA] Unable to control AC HOT 11
- 120Ω needed on Nasa? - physical layer
- [NASA] Override Temperature Readings Of Indoor Unit HOT 2
- Control Samsung AC Windfree mode HOT 1
- Control Samsung AC Quiet mode HOT 1
- Control Samsung AC Purify mode HOT 1
- does this register contain COP or SCOP?
- [NASA] Control Beep Sound HOT 28
- [COMMON] The program size (2038817 bytes) is greater than maximum allowed (1835008 bytes) HOT 1
- Non Nasa test in esphome (Home Assistant) HOT 24
- Vertical swing mode not present - how to activate? HOT 3
- Different device but with known wire interface HOT 15
- [NonNASA] Warnings - Unsupported alt_mode 0 HOT 10
- Help identify protocol ar09nxfpewqneu HOT 1
- No Issue, just asking!
- [NASA] - compiler error on ESP-IDF HOT 4
- [NonNASA] I cannot control device from HA but it's receiving data HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome_samsung_ac.