Comments (8)
Try to set --resetafter=<time>
to something very high - year or something, but dongles sometimes hangs and this was implemented for that reason. You can also play around with --alarmtimeout=<time>
and --alarmshell=<cmdline>
from wmbusmeters.
Many thx - very helpful.
How should I see such alarms in the log which would trigger alarmshell action ?
Any hints on solving it properly with snap based OS (ubuntu core) where all rootfs is read only and I can not delete permanently or disable any kernel modules ?
Any plans to support wmbusmeters in conda ?
from wmbusmeters.
alarmtimeout is time interval where no telegrams are received, say, if you know that your meter reports every 10 mins, then you can set it to 20 mins - that means that you are not receiving two cycles of telegrams, then you can set alarmshell - what action to do. for that you need to think how to achieve what is needed. One option to try is to install usb-reset snap and try to call it, but no idea if it will work - you need to test.
conda is not in plans currently, but if you are willing to create and maintain it, you are more than welcome to create PR 😄
from wmbusmeters.
Ok many thx I will play with alarm stuff over the weekend. I am thinking to simply reset the wmbusmeters (sudo snap restart wmbusmeters) as this always fixes the issue manually.
from wmbusmeters.
Unfortunately wmbusmeters in snap ubuntu core is still failing in spite of all above recommendations.
I see this in log:
(serialcmd) closed /bin/sh pid=8579 fd=5 (rtlwmbus)
[2023-10-09_17:29:48] Lost 00000001 closing rtlwmbus[00000001]
(serialcmd) closed /bin/sh pid=8579 fd=-1 (rtlwmbus)
No wmbus device detected, waiting for a device to be plugged in.
[2023-10-09_17:29:48] (shell) invoking /bin/pidof failed!
And this in dmesg:
[Mon Oct 9 17:29:47 2023] usb 1-1.2: dvb_usb_v2: found a 'Realtek RTL2832U reference design' in warm state
[Mon Oct 9 17:29:47 2023] usb 1-1.2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[Mon Oct 9 17:29:47 2023] dvbdev: DVB: registering new adapter (Realtek RTL2832U reference design)
[Mon Oct 9 17:29:47 2023] usb 1-1.2: media controller created
[Mon Oct 9 17:29:47 2023] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[Mon Oct 9 17:29:47 2023] i2c i2c-11: Added multiplexed i2c bus 12
[Mon Oct 9 17:29:47 2023] rtl2832 11-0010: Realtek RTL2832 successfully attached
[Mon Oct 9 17:29:47 2023] usb 1-1.2: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[Mon Oct 9 17:29:47 2023] dvbdev: dvb_create_media_entity: media entity 'Realtek RTL2832 (DVB-T)' registered.
[Mon Oct 9 17:29:47 2023] r820t 12-001a: creating new instance
[Mon Oct 9 17:29:47 2023] r820t 12-001a: Rafael Micro r820t successfully identified
[Mon Oct 9 17:29:47 2023] rtl2832_sdr rtl2832_sdr.0.auto: Registered as swradio0
[Mon Oct 9 17:29:47 2023] rtl2832_sdr rtl2832_sdr.0.auto: Realtek RTL2832 SDR attached
[Mon Oct 9 17:29:47 2023] rtl2832_sdr rtl2832_sdr.0.auto: SDR API is still slightly experimental and functionality changes may follow
[Mon Oct 9 17:29:47 2023] Registered IR keymap rc-empty
[Mon Oct 9 17:29:47 2023] rc rc0: Realtek RTL2832U reference design as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/rc/rc0
[Mon Oct 9 17:29:47 2023] rc rc0: lirc_dev: driver dvb_usb_rtl28xxu registered at minor = 0, raw IR receiver, no transmitter
[Mon Oct 9 17:29:47 2023] input: Realtek RTL2832U reference design as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/rc/rc0/input12
[Mon Oct 9 17:29:47 2023] usb 1-1.2: dvb_usb_v2: schedule remote query interval to 200 msecs
[Mon Oct 9 17:29:47 2023] usb 1-1.2: dvb_usb_v2: 'Realtek RTL2832U reference design' successfully initialized and connected
[Mon Oct 9 17:29:48 2023] audit: type=1400 audit(1696865388.918:54): apparmor="DENIED" operation="exec" profile="snap.wmbusmeters.wmbusmeters" name="/usr/sbin/killall5" pid=5565 comm="wmbusmeters" requested_mask="x" denied_mask="x" fsuid=0 ouid=0
Any further hints ?
from wmbusmeters.
Upon restart wmbusmeters in snap I see this log:
(serial) event loop stopped!
Notice! Wmbusmeters daemon (pid 0) is running and it might hog any wmbus devices.
Notice! Wmbusmeters daemon (pid 0) is running and it might hog any wmbus devices.
Notice! Wmbusmeters daemon (pid 0) is running and it might hog any wmbus devices.
Notice! Wmbusmeters daemon (pid 0) is running and it might hog any wmbus devices.
[2023-10-10_15:21:47] (shell) invoking /bin/pidof failed!
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
Notice! Other wmbusmeters (pid 0) is running and it might hog any wmbus devices.
[2023-10-10_15:21:47] Started config rtlwmbus[00000001] listening on t1,c1 using fq 868.95M
(rtlwmbus) using command: /usr/bin/rtl_sdr -d 0 -f 868.95M -s 1.6e6 - 2>/dev/null | /usr/bin/rtl_wmbus
(serialcmd) opened /bin/sh pid 6404 fd 8 (rtlwmbus)
(main) regular reset of rtlwmbus will happen every 36000000 seconds
(serialcmd) closed /bin/sh pid=6404 fd=8 (rtlwmbus)
(wmbusmeters) version: 1.14.0
(config) store meter files in: "/var/snap/wmbusmeters/common/logs/meter_readings"
(config) using device: rtlwmbus:868.95M:t1,c1
(config) number of meters: 233
[2023-10-10_15:22:18] Started config rtlwmbus[00000001] listening on t1,c1 using fq 868.95M
(rtlwmbus) using command: /usr/bin/rtl_sdr -d 0 -f 868.95M -s 1.6e6 - 2>/dev/null | /usr/bin/rtl_wmbus
(serialcmd) opened /bin/sh pid 6570 fd 5 (rtlwmbus)
(main) regular reset of rtlwmbus will happen every 36000000 seconds
from wmbusmeters.
This issue is stale because it has been open for 2 month with no activity. Remove stale label or comment or this will be closed in 1 month.
from wmbusmeters.
This issue was closed because it has been stalled for 1 month with no activity.
from wmbusmeters.
Related Issues (20)
- Driver for Eltako DSZ15DM three-phase electricity wired mbus meters HOT 5
- Low bandwidth remote source HOT 11
- Axima Qualcosonic - q400 driver does not work
- Meter Overview HOT 2
- seg fault in meters.cc line 682 HOT 5
- I've add meter Maddalena evo868 (in fact it is Electo SJ) and it is not recgnised HOT 3
- mfct: (IMT) INTEGRA METERING, Switzerland (0x25b4) type: Water meter (0x07) ver: 0x01 HOT 6
- No Telegram HOT 3
- Problem with shell command
- New Tauron AMIPlus meter
- wmbusmeters: command not found
- Cannot decrypt this frame HOT 4
- Kamstrup Heat meter can't parse energy HOT 2
- Key extraction from Kamstrup Wireless MBus Dongle HOT 3
- Water 5.5 Qundis HOT 7
- Negative water flow direction is displayed incorrectly HOT 16
- Add support for mfct: (GWF) Gas u Wassermesserfabrik, Switzerland HOT 4
- Handle compressed telegrams HOT 3
- Some kamstrup compressed telegrams cannot be parsed. HOT 12
- Metersit G4 support (169 MHz Gas Meter with AMB3665) HOT 3
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 wmbusmeters.