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
Running in production mode: #21
Comments
I'm having the same issue here on a raspberrypi, following the instructions in the wiki.... Any traction? It took me several hours to get a max485 wired up in a slave mode on the pi's UART. |
There are multiple things which could be wrong in this scenario, here are a couple things to try:
|
@nebulous thanks for the response! Output of the mojolicious command... Yikes! Using cardump, here's a small log of what I'm sniffing.
Does this look about right? I'm not 100% sure I've got the AB lines on the right pins, but when they're reversed, I don't get any "decent" data off the tty. |
If You may try running infinitude again with potentially better results now that cardump has reset your serial device. |
I've got everything jumpered right now on a prototype board. My signal is coming from a cat6e run from the AB terminals inside my air handler, and I'm using one of the twisted pairs. Honestly, I'm far more suspicious of the non TP bellwire the installers left in place between the thermostat and the air handler. Question: Does infinitude ever write to the bus, or only 'snoop' in read mode? |
Hah. I had my system in 'checkout' mode. When I reran cardump, things came right up, and I haven't seen any resync issues. |
ANNNND it works. cardump did the trick! 👍 |
I'm still getting some 404's though, specifically when the front-end is asking for systems, status, notifications, energy, etc. |
neither cardump or infinitude write to the bus presently. I haven't had time to invest in that particular rabbit hole yet. There is some promising work by @acd called Infinitive which attempts to emulate a SAM (https://www.github.com/acd/Infinitive). |
This is so strange. After a reboot, things were broken again, and cardump is now refusing to sync. I even soldered things up into a bonified protoboard and tried that out. eventually, while hot-connecting things --- with jumpers! -- things start to work. So strange. |
oh good lord, the tty is the wrong baud rate. |
pi@raspberrypi:~/infinitude $ ./infinitude daemon -m production
Using /dev/ttyUSB0 serial interface
[Mon Oct 31 11:51:54 2016] [info] Listening at "http://*:3000"
Server available at http://127.0.0.1:3000
Mojo::Reactor::EV: Timer failed: Can't call method "emit" on an undefined value at /usr/local/share/perl/5.20.2/Mojo/IOLoop/Stream.pm line 72.
Mojo::Reactor::EV: Timer failed: Can't use an undefined value as a symbol refere nce at /usr/local/share/perl/5.20.2/Mojo/Reactor/EV.pm line 34.
[Mon Oct 31 12:17:58 2016] [error] Can't use an undefined value as a symbol refe rence at /usr/local/share/perl/5.20.2/Mojo/Reactor/EV.pm line 34.
The text was updated successfully, but these errors were encountered: