Coder Social home page Coder Social logo

Nasa protocol notes about esphome_samsung_ac HOT 13 OPEN

lanwin avatar lanwin commented on July 28, 2024
Nasa protocol notes

from esphome_samsung_ac.

Comments (13)

lanwin avatar lanwin commented on July 28, 2024 3

Hi @sredfern, yes my plan is to write that down. But unfortunately my time is pretty limited and so currently I focus on fixing and adding features. The best documentation for now is the nasa.cpp as you find yourself.

The messages numbers come from Samsungs SNET application. Its free to download and is build to monitor, update and error discovery for samsung devices. Its written in Microsofts .NET. .NET per default did not compiles in binary, instead it compiles to IL (which is more generic the binary). IL can be compiled back to .NET languages like C#. You can do that yourself with software like ILSpy.

The NASA protocol itself is pretty generic (other than the non NASA protocol). Its more or less a generic data transfer protocol. So in large parts SNET itself is designed pretty generic for a wide range of heating and cooling devices.

They designed the software that it uses something like a mapping file for each device type to be able to map the messages to the UI. This are the XML files. When you install SNET you can find one in "C:\Program Files (x86)\S-NET pro2\Projects\RuleScript\NASA.ptc".

Unfortunately not all messages are mapped in that files. And also some messages you can only find in the non generic parts of the SNET codebase and some messages are not defined anywhere.

from esphome_samsung_ac.

Foxhill67 avatar Foxhill67 commented on July 28, 2024 1

I hope it is ok, when I post this here but I have created the requested notes at the newly started Samsung EHS Wiki at wiki.myehs.eu. There is not a lot of info on the site (yet) other than the said protocol description but I would be happy about any contributions that help us better understand these class of Samsung products.

I have created attached Excel sheet, based on the NASA.ptc file. Tried to fill some of the gaps with information I got from my SAMSUNG EHS Split heat pump. Feel free to add these details to the Wiki!
NASA.xlsx

from esphome_samsung_ac.

betaphi avatar betaphi commented on July 28, 2024 1

No problem, not a Wiki expert, but I will probably manage to add the info myself ;-)

Thank you! :-)

I am also working on a solution to get the NASA messages via MQTT to HomeAssistant, fork from @lanwin ESPhome solution. Just ran into a small issue with the end byte accidentally also appearing in the data part, thus prematurely terminating the raw data processing. I will log a separate issue for that. Do you have a link to your EHSMonitor, may be you have tackled this issue already?

Yes, the NASA decoding is working flawlessly in EHSMonitor. You can find it here. Please don't get discouraged by the fact it is written in Swift, as it is perfectly able to run under Linux.

And thanks for the link to the WiFi Kit, looks promising. I'll see if it helps to fill even more gaps in the list of codes.

I'm glad I could help :-)

from esphome_samsung_ac.

Foxhill67 avatar Foxhill67 commented on July 28, 2024 1

And: the WifiKit source is quite extensive, can you pinpoint the file(s) where I can find the additional variable information? <

All NASA variables are defined in NasaConst.java

Found it, thanks!

from esphome_samsung_ac.

betaphi avatar betaphi commented on July 28, 2024

I hope it is ok, when I post this here but I have created the requested notes at the newly started Samsung EHS Wiki at wiki.myehs.eu. There is not a lot of info on the site (yet) other than the said protocol description but I would be happy about any contributions that help us better understand these class of Samsung products.

from esphome_samsung_ac.

betaphi avatar betaphi commented on July 28, 2024

Thank you @Foxhill67
That file is very helpful. There are also more variable informations available via the source code of the Samsung WiFi Kit available here.

As I am very busy currently, having released EHSMonitor, a NASA->MQTT Monitor for the EHS Mono HT Quiet (and possibly other heat pump models as well) and as I'm working hard on a EHS control application, it would be super nice of you to add this info to the Wiki yourself.

from esphome_samsung_ac.

Foxhill67 avatar Foxhill67 commented on July 28, 2024

No problem, not a Wiki expert, but I will probably manage to add the info myself ;-)

I am also working on a solution to get the NASA messages via MQTT to HomeAssistant, fork from @lanwin ESPhome solution. Just ran into a small issue with the end byte accidentally also appearing in the data part, thus prematurely terminating the raw data processing. I will log a separate issue for that. Do you have a link to your EHSMonitor, may be you have tackled this issue already?

And thanks for the link to the WiFi Kit, looks promising. I'll see if it helps to fill even more gaps in the list of codes.

from esphome_samsung_ac.

Foxhill67 avatar Foxhill67 commented on July 28, 2024

Added table with NASA message numbers to the Wiki https://wiki.myehs.eu/. Table is bit wide but does contain all relevant information.

from esphome_samsung_ac.

betaphi avatar betaphi commented on July 28, 2024

Thank you @Foxhill67
By the way: This is probably not the best way to communicate. You can contact me via the "eMail this User" button at https://wiki.myehs.eu/wiki/User:Betaphi
It would be great if you could also add the additional variable informations from the WiFi Kit source code...

from esphome_samsung_ac.

lanwin avatar lanwin commented on July 28, 2024

Hey guy, thank you for your great work! Can you please keep me updated here when you found something useful?

There are still a lot open questions. Like we found that WifiKit is adding an offset to the room temperature (like -2°) but it did not seems to be the same value for everyone.

@betaphi and thanks for finding the WifiKit source. I did not know that its available somewhere. But it seems that its not as easy to read (from a first look).
I will add a link to your protocol description to the readme soon.

from esphome_samsung_ac.

Foxhill67 avatar Foxhill67 commented on July 28, 2024

Thank you @Foxhill67 By the way: This is probably not the best way to communicate. You can contact me via the "eMail this User" button at https://wiki.myehs.eu/wiki/User:Betaphi It would be great if you could also add the additional variable informations from the WiFi Kit source code...

@betaphi : I agree to move our communication about the Wiki to the Wiki page itself, but I cannot find the 'eMail this user' button on the link you provided. Can you recheck? And: the WifiKit source is quite extensive, can you pinpoint the file(s) where I can find the additional variable information?

from esphome_samsung_ac.

betaphi avatar betaphi commented on July 28, 2024

@Foxhill67 You probably have to be logged in in order to see the respective button. However the eMail is just [email protected]

from esphome_samsung_ac.

DerTiger1 avatar DerTiger1 commented on July 28, 2024

And: the WifiKit source is quite extensive, can you pinpoint the file(s) where I can find the additional variable information? <

All NASA variables are defined in NasaConst.java

from esphome_samsung_ac.

Related Issues (20)

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.