Giter Site home page Giter Site logo

Ble extension about extensions HOT 6 OPEN

siderolabs avatar siderolabs commented on July 30, 2024
Ble extension

from extensions.

Comments (6)

Preisschild avatar Preisschild commented on July 30, 2024 1

You should be able to just attach a device (per /dev path) to the container. I use a Zigbee USB stick with zigbee2mqtt in a container, and it works without issues.

Plug in the USB adapter, check the ID by using talosctl ls /dev/serial/by-id and use a hostPath volume to mount that path.

from extensions.

spammads avatar spammads commented on July 30, 2024

I don't think so. Bluetooth needs Kernelmodules. And i need Dbus to run.

from extensions.

myoung34 avatar myoung34 commented on July 30, 2024

Any ideas?
Its def not niche, i have a bunch of iBeacons Id like to capture data from

I have a container with priviledged, all caps, host network and mounted dbus, it still shows no BLE
Its not a serial device so it wont show up in /dev/serial

192.168.4.119: kern:    info: [2024-01-18T19:18:48.293803009Z]: usb 1-6.1.4: new full-speed USB device number 8 using xhci_hcd
 SUBSYSTEM=usb
 DEVICE=+usb:1-6.1.4

Im assuming it goes to /dev but im unable to find out where

In a privileged pod (only dbus mounted)

/ # lsusb | grep 0a12:0001
Bus 001 Device 008: ID 0a12:0001

and

βœ— k get node/server -oyaml | grep e0_0a12_0001
    feature.node.kubernetes.io/usb-e0_0a12

from extensions.

stereobutter avatar stereobutter commented on July 30, 2024

I'm believe for using bluetooth with talos you will have to build your own kernel (see https://www.talos.dev/v1.6/advanced/customizing-the-kernel/) with relevant kernel config parameters enabled (see e.g. https://github.com/torvalds/linux/blob/master/net/bluetooth/Kconfig).

I've also found some articles about running the BlueZ daemon inside a pod (e.g. https://medium.com/omi-uulm/how-to-run-containerized-bluetooth-applications-with-bluez-dced9ab767f6).

from extensions.

stereobutter avatar stereobutter commented on July 30, 2024

If/when talos gains the ability to load kernel modules signed with keys other then those generated (and thrown away) building the kernel it would also be possible to build a kernel with bluetooth as modules and package those in a talos system extension I think.

from extensions.

stereobutter avatar stereobutter commented on July 30, 2024

There is also an issue on pkgs already.

from extensions.

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.