Git Product home page Git Product logo

Comments (11)

john30 avatar john30 commented on May 24, 2024

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.

beam avatar beam commented on May 24, 2024

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.

beam avatar beam commented on May 24, 2024

Any idea?

from ebusd.

john30 avatar john30 commented on May 24, 2024

which interface are you using?

from ebusd.

beam avatar beam commented on May 24, 2024

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.

john30 avatar john30 commented on May 24, 2024

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.

beam avatar beam commented on May 24, 2024

Yes, when i boot on same PC linux it works, but under FreeBSD :(

from ebusd.

john30 avatar john30 commented on May 24, 2024

It'll probably be a difference in the handling of terminal devices in BSD compared to Linux.

from ebusd.

john30 avatar john30 commented on May 24, 2024

closed due to inactivity

from ebusd.

rousseldenis avatar rousseldenis commented on May 24, 2024

@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.

rousseldenis avatar rousseldenis commented on May 24, 2024

@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)

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.