Comments (11)
ebusd should already be compilable under FreeBSD.
AFAIK you need to use the "--with-argp-lib" and "--with-argp-include" options of configure pointing to argp-standalone directories.
from ebusd.
Hi, i installed https://www.freshports.org/devel/argp-standalone/ and no extra options needed for argp.
But i have to make some patches for code compilation:
diff --git a/src/ebusd/network.cpp b/src/ebusd/network.cpp
index 7d586c6..13e9505 100644
--- a/src/ebusd/network.cpp
+++ b/src/ebusd/network.cpp
@@ -28,6 +28,10 @@
#include <poll.h>
#endif
+#ifndef POLLRDHUP
+#define POLLRDHUP 0x2000
+#endif
+
using namespace std;
int Connection::m_ids = 0;
diff --git a/src/lib/ebus/device.h b/src/lib/ebus/device.h
index 3a8892e..71b0047 100644
--- a/src/lib/ebus/device.h
+++ b/src/lib/ebus/device.h
@@ -23,6 +23,8 @@
#include <iostream>
#include <fstream>
#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <sys/socket.h>
#include <netdb.h>
#include "result.h"
diff --git a/src/lib/utils/tcpsocket.cpp b/src/lib/utils/tcpsocket.cpp
index 27ed4a8..81ef810 100644
--- a/src/lib/utils/tcpsocket.cpp
+++ b/src/lib/utils/tcpsocket.cpp
@@ -20,6 +20,7 @@
#include <cstdlib>
#include <fcntl.h>
#include <arpa/inet.h>
+#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
Now i can run ebusd, but can't read from /dev/ttyU2.
When i start ebusd TX and RX LEDs on adapter are on (which is diferrent from when i connect it to linux, where only incoming LED is blinking), but nothing is shown in ebusd.
No idea what to do now.. :/
from ebusd.
Any idea?
from ebusd.
which interface are you using?
from ebusd.
I bought this https://www.mikrocontroller.net/topic/346833#4405093 .
Scheme is at the begging of threat. It's eBUS<->USB (FT232R) adapter.
from ebusd.
well, the interface works, I know that.
I can only assume that you have problems with the serial communication to the device.
I'm not familiar with BSD, so I guess you'll have to find out yourself...
from ebusd.
Yes, when i boot on same PC linux it works, but under FreeBSD :(
from ebusd.
It'll probably be a difference in the handling of terminal devices in BSD compared to Linux.
from ebusd.
closed due to inactivity
from ebusd.
@john30 Could you please explain a little bit how to configure before launching make as I have argp.h not found error ?
Many thanks
from ebusd.
@john30 Could you please explain a little bit how to configure before launching make as I have argp.h not found error ?
Many thanks
Ok, found how to do it.
./configure --with-argp-lib --with-argp-include
from ebusd.
Related Issues (20)
- [bus error] device status: host comm error: framing HOT 1
- homeassistant log error: Invalid value for number.ebusd_700_continuosheating_tempv: -25.0 (range 0.0 - 100.0) HOT 2
- Statistic attributes for warnings/errors on bus
- HA Addon ebusd / tado / no MQTT data refresh HOT 3
- Cannot set WLAN client 64 char password HOT 2
- ebusd Valliant Arotherm polling problem HOT 3
- Has 23.3 stopped my heat pump running properly? - 5kW Arotherm Plus HOT 41
- Docker-Compose EBUSD_READONLY leads to "cannot combine readonly with answer/generatesyn/initsend/scanconfig" HOT 3
- device_class not propagated as expected to MQTT HOT 2
- MQTT readable fields not published if write of one field exists HOT 4
- Datei fΓΌr Vaillant 18.v32.csv HOT 10
- unit of measurement 'None' in device class ('temperature') HOT 1
- Using --mqttchanges occasionally misses changes. HOT 13
- Wrong default name template in entites MQTT autodiscovery in HA HOT 1
- Vaillant VMS SolPumpPower reported in kW instead of % in Home Assistant (MQTT) HOT 1
- Since update to Build: 20240317 : Lots of Warnings : host: errors: protocol HOT 2
- Conditional message ignored if slave-address unfilled HOT 3
- [bus error] send to fe: ERR: arbitration lost HOT 1
- Condition '>0' does not work
- Feature request: Accept multiple identical configuration lines that differs only for the master address HOT 1
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 ebusd.