!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

517 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant137 Servers

Load older messages


SenderMessageTime
25 Nov 2024
@hexa:lossy.network@hexa:lossy.network * I don't think we have any other openthread border router packaged up01:21:48
@spacekitteh:matrix.orgspacekittehmatter-server isn't a thread border router, is it?01:22:00
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/home-assistant-libs/python-matter-server 🤷01:22:11
@spacekitteh:matrix.orgspacekittehmatter is a higher level protocol, like TCP; thread is the IP + PHY layer01:22:55
@hexa:lossy.network@hexa:lossy.networkyeah01:22:58
@hexa:lossy.network@hexa:lossy.networksame as WLAN, only a transport01:23:19
@hexa:lossy.network@hexa:lossy.networkthe question is if it can handle an adapter that speaks thread01:23:51
@spacekitteh:matrix.orgspacekitteh * matter is a higher level protocol, like TCP; thread is the IP + MAC+ PHY layer01:24:08
@spacekitteh:matrix.orgspacekittehkinda, WLAN is just the MAC + PHY, you don't have to have it running IP, afaik01:24:23
@spacekitteh:matrix.orgspacekittehwhereas thread explicitly includes IPv601:24:43
@hexa:lossy.network@hexa:lossy.networkmaybe packaging up https://github.com/openthread/ot-br-posix would be worthwhile?01:25:14
@spacekitteh:matrix.orgspacekittehyeah that's what i'm currently trying to avoid, by asking if anyone is running it already :P01:25:29
@hexa:lossy.network@hexa:lossy.networkI see01:25:46
@spacekitteh:matrix.orgspacekitteh(specifically, avoiding the packaging it myself lmao)01:26:01
@hexa:lossy.network@hexa:lossy.networkot-br-posix is what home-assistant uses01:28:17
@hexa:lossy.network@hexa:lossy.networkhttps://www.home-assistant.io/integrations/otbr/ https://github.com/home-assistant/addons/tree/master/openthread_border_router01:28:22
@spacekitteh:matrix.orgspacekittehyep01:28:27
@hexa:lossy.network@hexa:lossy.networkand there are no github hits for ot-br-posix, soooo 😄 01:29:01
@spacekitteh:matrix.orgspacekittehindeed :(01:29:10
@hexa:lossy.network@hexa:lossy.network * and there are no github hits for ot-br-posix language:nix, soooo 😄 01:29:20
@hexa:lossy.network@hexa:lossy.network
$ ./result/bin/otbr-agent --help
Usage: ./result/bin/otbr-agent [-I interfaceName] [-B backboneIfName] [-d DEBUG_LEVEL] [-v] [--auto-attach[=0/1]] RADIO_URL [RADIO_URL]
    --auto-attach defaults to 1
RadioURL:
    forkpty-arg[=argument string]  Command line arguments for subprocess, can be repeated.
    spinel+hdlc+uart://${PATH_TO_UART_DEVICE}?${Parameters} for real uart device
    spinel+hdlc+forkpty://${PATH_TO_UART_DEVICE}?${Parameters} for forking a pty subprocess.
Parameters:
    uart-parity[=even|odd]         Uart parity config, optional.
    uart-stop[=number-of-bits]     Uart stop bit, default is 1.
    uart-baudrate[=baudrate]       Uart baud rate, default is 115200.
    uart-flow-control              Enable flow control, disabled by default.
    uart-reset                     Reset connection after hard resetting RCP(USB CDC ACM).
    region[=region-code]          Set the radio's region code. The region code must be an
                                  ISO 3166 alpha-2 code.
    cca-threshold[=dbm]           Set the radio's CCA ED threshold in dBm measured at antenna connector.
    enable-coex[=1|0]             If not specified, RCP coex operates with its default configuration.
                                  Disable coex with 0, and enable it with other values.
    fem-lnagain[=dbm]             Set the Rx LNA gain in dBm of the external FEM.
    no-reset                      Do not send Spinel reset command to RCP on initialization.
    skip-rcp-compatibility-check  Skip checking RCP API version and capabilities during initialization.
01:38:57
@hexa:lossy.network@hexa:lossy.network🫣01:39:01
@uep:matrix.orguepoops 01:39:31
@hexa:lossy.network@hexa:lossy.networkdoes that happen to you all the time, too?01:40:28
@spacekitteh:matrix.orgspacekittehcan you share the nix code for that? :301:40:59
@hexa:lossy.network@hexa:lossy.networkin a minute01:42:56
@spacekitteh:matrix.orgspacekittehcheers01:43:41
@hexa:lossy.network@hexa:lossy.networkcan't get it to install the systemd units 🤷01:50:00
@hexa:lossy.network@hexa:lossy.networkalso uses a vendored submodule for openthread01:50:23
@hexa:lossy.network@hexa:lossy.network
{
  lib,
  stdenv,
  fetchFromGitHub,
  cmake,
  ninja,
  pkg-config,
  avahi,
  cjson,
  http-parser,
  systemd,
  cpputest,
}:

stdenv.mkDerivation rec {
  pname = "ot-br-posix";
  version = "20230710";

  src = fetchFromGitHub {
    owner = "openthread";
    repo = "ot-br-posix";
    rev = "thread-reference-${version}";
    hash = "sha256-q7SHmFLfCUYPB7WEUSyYL6hI8/tbkkJkDJ0FBJVwffw=";
    fetchSubmodules = true;
  };

  postPatch = ''
    rm -rf third_party/{cJSON,http-parser}
  '';

  nativeBuildInputs = [
    cmake
    ninja
    pkg-config
  ];

  cmakeFlags = [
    "-Dsystemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
    "-DOTBR_SYSTEMD_UNIT_DIR=${placeholder "out"}/lib/systemd/system"
  ];

  buildInputs = [
    avahi
    http-parser
    cjson
    #systemd
  ];

  # greps /var/log/syslog in the build sandbox
  doCheck = false;

  nativeCheckInputs = [ cpputest ];

  meta = {
    description = "OpenThread Border Router, a Thread border router for POSIX-based platforms";
    homepage = "https://github.com/openthread/ot-br-posix";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ ];
    mainProgram = "ot-br-posix";
    platforms = lib.platforms.all;
  };
}
01:50:41

Show newer messages


Back to Room ListRoom Version: 6