Skip to content
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

Device found but returning blank device info #241

Open
klarrieu opened this issue Aug 26, 2024 · 1 comment
Open

Device found but returning blank device info #241

klarrieu opened this issue Aug 26, 2024 · 1 comment

Comments

@klarrieu
Copy link

This was running fine for me but it recently stopped working. It looks like it's finding the device,

rtlamr2mqtt  | [2024-08-26 19:24:56] RTL SDR Device 0bda:2838 found on USB port 001:003 - Index: 0

but then returning blank data:

rtlamr2mqtt  | [2024-08-26 19:25:01] RTL_TCP: Found 1 device(s):
rtlamr2mqtt  |   0:  , , SN: 

which then appears to lead to the following (not sure if that's the reason):

rtlamr2mqtt  | Using device 0: Generic RTL2832U OEM
rtlamr2mqtt  | usb_open error -4
rtlamr2mqtt  | Failed to open rtlsdr device #0.

The error code appears to correspond to LIBUSB_ERROR_NO_DEVICE.

rtlamr works fine for me if I run it outside the docker container, so I'm not sure what is going wrong here.

Here is my rtlamr2mqtt.yaml:

general:
  sleep_for: 5
  verbosity: debug

mqtt:
  host: localhost
  user:
  password:
  ha_autodiscovery: true
  ha_autodiscovery_topic: homeassistant

meters:
  - id: <redacted>
    protocol: scm+
    name: meter_water
    format: "#####"
    unit_of_measurement: "ft³"
    device_class: water
    state_class: total_increasing

Any advice is much appreciated!

@JSkier21
Copy link

JSkier21 commented Nov 13, 2024

I wonder if something is preventing the container from getting a lock on it. Ditto on the setup for me too, and this just stopped working for me as well. Local machine is fine if ran is root.

Curious what distro and kernel you're running? I'm on Arch, 6.11.5-arch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@JSkier21 @klarrieu and others