Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wich hardware? #1

Open
delchrys opened this issue May 28, 2017 · 21 comments
Open

Wich hardware? #1

delchrys opened this issue May 28, 2017 · 21 comments

Comments

@delchrys
Copy link

Hello what kind of hardware is needed for this??
I've already made the rx/tx circuit from mikrocontroller.net.
Is it possible to direct put rx/tx from that circuit on the ESP8266??

kind regards,

Bert

@susisstrolch
Copy link
Owner

susisstrolch commented May 28, 2017 via email

@delchrys
Copy link
Author

Thanks doe tour reply.
Is the esp8266 running arduino code or not?
Can or be adjusted so it runs in arduino only?
Need to get the decoding part properly and the detection of the end/break

@susisstrolch
Copy link
Owner

susisstrolch commented May 29, 2017 via email

@delchrys
Copy link
Author

I have a new Uno with Wi-Fi so maybe I can load esp link on it and use that solution. Will try it soon

@delchrys
Copy link
Author

It also uses a esp8266 built in

@delchrys
Copy link
Author

did u use 5v ttl or did you alternate the voltage divider to work on 3.3V for the Rx/Tx levels?

@susisstrolch
Copy link
Owner

susisstrolch commented May 30, 2017 via email

@delchrys
Copy link
Author

Any chance you can tell which setting are modified to detect the EMS bus end of frame and such???
I have now succesfully flashed my ESP8266 with jeelabs esp link v3.0.14, now i only need the EMS part added.
Then i can add a voltage divider for 3.3V and put my data at the Rx pin, and then i'm a happy man. :)
Thanks for the help BTW

@delchrys
Copy link
Author

or can i supply 3v3 instead of 5V to the lm393 to get a 3v3 TTL??

@susisstrolch
Copy link
Owner

susisstrolch commented May 31, 2017 via email

@delchrys
Copy link
Author

I have already made the circuit to read out the bus. But it's 5v ttl what's coming out of the lm comparator. It was based on arduino for me. Bit now I'm running in some problems decoding the serial signal. So I was trying a workaround based on your ems esp8266 module. So I only need to connect my rx signal to the esp8266, bit it's 5v ttl and not 3v3ttl. So I have to change that.

The other question was how you modified the firmware of the esp8266 to decode the ems bus messages to temperature values and so on. I which file you changed that. So decoding the hex serial message to normal understandable text.

@delchrys
Copy link
Author

Sussisstrolch One question.
How can i see in github what changes there are made to the original fork of the jeelabs esp link.
It seems that the jeelabs esp link has developed further an would like to implement your ems esp link changes into the new jeelabs esp link firmware. Is that possible or do I have to compare all changes and change the whole thing?
I have not that much experience in github so I don't know if I'm going over my head now.

@susisstrolch
Copy link
Owner

susisstrolch commented Jun 14, 2017

most EMS related code is in ems.{c,h} and ems-uart.
Changes for esp-link itself are only the additional ems_init and replace of the rx/tx functions.
However, tx isn't implemented until now.
You may also want to look at the JAVA code, which contains the decoder part.
Sorry, but I don't find the time to roll up everything else. Maybe later this year...

@delchrys
Copy link
Author

How do you setup collectors when the ems connected to esp8266?
Do you do a tcp connection to the esp8266 up address?
Or do I need some other software also?

@susisstrolch
Copy link
Owner

susisstrolch commented Jun 16, 2017

This repo is WIP...
Have a look at https://github.com/susisstrolch/ems-esp-link, stable branch.
That's the version I'm running.
It also contains a JAVA app which polls the EMS-Link interface, decodes the protocol and pushes it to a syslog server.

I will set this repo to "private" the next days because I don't develop on this branch anymore.

@delchrys
Copy link
Author

Ah ok thanks. Is the collectord integration working or not? So can I install collectord on my pi to poll the esp8266 for data? Or is this not working in this got bundle?

@susisstrolch
Copy link
Owner

susisstrolch commented Jun 18, 2017 via email

@delchrys
Copy link
Author

So what is actually working in your firmware. Can I post the data to a mqqt server or make a get/post command to a raspberry pi ip address? All I really want is to update some values in my domoticz server. So when some data comes in of the ems bus it does an get or update command to a certain up address so a value in the database gets updated. Is that possible with the current stable build? Or do I have to rewrite something, if so which part? If it is possible the I'm done. The whole purpose is only to update some values I do not want to write to the ems bus. Only read out the 10sec interval messages.
Btw this is the last question I think, sorry for the inconvenience...

@delchrys
Copy link
Author

Damn another question. Is the stable build the most recent one, because my topnavigation bar shoe version 1.something rc1.
How can i create the bin files for flashing myself after for instance editing some of your build files?
Can't seem to understand how to do this with all of the github stuff. Just download the zip, edit the makfile and then I get bin files for flashing????

@susisstrolch
Copy link
Owner

susisstrolch commented Jun 20, 2017 via email

@delchrys
Copy link
Author

Haha Windows is garbage ok then I'm partly on my own I do both pi and Windows. I like to only add a function to the code so the java doesn't upload to syslog but the esp8266 does to my domoticz server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants