Michał Morański
f32179a939
Avoid SIGSEGV in WMBusCUL::checkCULFrame
...
(cul) checkCULFrame "b2F4468506586269295620A17A2069F2"
(cul) no eol found yet, partial frame
(serial) received ascii "TMODE<0D><0A>b2F44685086625092957245C6A2069F2F6A06E0080000000000000000B9BF00000D0F0D11130512100F0F0F100F0F8E1F0F0E0D121310B241<0D><0A>b4E44B61065960200023732117A0E004005E4B5FD2A1E3DCCC84F38BDF21FD05D506BF685D50CB3AD9644F9FF7C893BF9DD0D2B64C85F703707B1965C69261E8CDF85046CDDC38F1336D67750E933854BA0C9A91240A18556E6064B<0D><0A>"
(cul) checkCULFrame "b2F4468506586269295620A17A2069F2TMODE<0D><0A>b2F44685086625092957245C6A2069F2F6A06E0080000000000000000B9BF00000D0F0D11130512100F0F0F100F0F8E1F0F0E0D121310B241<0D><0A>b4E44B61065960200023732117A0E004005E4B5FD2A1E3DCCC84F38BDF21FD05D506BF685D50CB3AD9644F9FF7C893BF9DD0D2B64C85F703707B1965C69261E8CDF85046CDDC38F1336D67750E933854BA0C9A91240A18556E6064B<0D><0A>"
(cul) bad hex for LQI and RSSI "MODE"
(cul) warning: the LQI and RSSI hex string is not properly formatted!
Thread 2 "wmbusmeters" received signal SIGSEGV, Segmentation fault.
0x571c718f in WMBusCUL::checkCULFrame (this=0xf0a03480, data=std::vector of length 339, capacity 339 = {...}, hex_frame_length=0xf07fe680,
payload=std::vector of length 0, capacity 0, rssi_dbm=0xf07fe6c0) at src/wmbus_cul.cc:336
336 uint lqi = lqi_rssi[0]>>1;
(gdb)
2024-04-14 15:16:56 +02:00
BIBOLV
d633ff9eaa
Changing links to new repo
...
Changing in links weetmuts to wmbusmeters
2023-03-11 17:43:07 +02:00
Fredrik Öhrström
41f4eca30a
Refactor WMBus to BusDevice.
2022-08-20 19:58:28 +02:00
Fredrik Öhrström
6571e4e024
Fix bug where a received telegram while setting the link mode during a reset caused wmbusmeters to fail.
2022-07-01 15:54:59 +02:00
Fredrik Öhrström
b221401aba
Merge pull request #513 from bb-froggy/debug/cuno
...
Allow CMD for CUL device
2022-05-25 20:02:04 +02:00
Fredrik Öhrström
368fe7a823
Update cul driver EOL.
2022-04-29 08:38:09 +02:00
Fredrik Öhrström
bf4ac2c0cc
Add detection and warning of longer telegrams broken by bad cul firmware.
2022-04-28 16:20:30 +02:00
bb-froggy
c4271bc43c
Allow CMD for CUL device
2022-04-09 19:51:26 +02:00
Fredrik Öhrström
05b987006f
Normalize copyright notices and add script for automatic extraction of copyrights.
2022-02-12 15:28:17 +01:00
Fredrik Öhrström
678a3a8a0a
Improve verbose messages when user is not member of dialout.
2021-10-16 20:20:33 +02:00
Fredrik Öhrström
b5f89eb61d
Add ability to send bytes to a bus.
2021-08-29 20:26:06 +02:00
Fredrik Öhrström
a26bac3932
Added detection of im871a firmware and support c1+t1 mode.
2021-03-18 22:44:50 +01:00
Fredrik Öhrström
21d3595a53
A device (mbus/wmbus/tty) can now have an alias. A meter spec can now refer to this alias.
2021-03-14 09:41:35 +01:00
Fredrik Öhrström
30c2926489
When looking for rtl_sdr/rtl_wmbus first look in the same dir as wmbusmeters was found.
2021-03-06 14:16:47 +01:00
Fredrik Öhrström
7c928ec2f3
Add support for checking plain MBUS frames.
2021-02-21 12:58:31 +01:00
Fredrik Öhrström
b53adbf5b7
Added parity setting to serials.
2021-02-13 15:58:38 +01:00
Fredrik Öhrström
658f283f2e
Added mbus rawtty driver.
2021-02-13 15:18:59 +01:00
Waldemar Faist
5dde4868c7
feat: support RSSI on CUL
2021-02-05 15:31:01 +01:00
Fredrik Öhrström
5e273ddb7e
Added donotprobe=<device> and fixed so that it does not probe if a device is specified or rtlwmbus is specified.
2020-11-01 15:18:13 +01:00
Fredrik Öhrström
171887e2f9
Fix bug where the rc1180 code detected anything as a rc1180 dongle.
2020-11-01 09:34:18 +01:00
Fredrik Öhrström
71dc60678b
Improve detection.
2020-10-26 16:32:28 +01:00
Fredrik Öhrström
f995f72239
Adjust cul driver.
2020-10-26 15:14:13 +01:00
Fredrik Öhrström
728bf66752
Add unique device id in addition to normal device id.
2020-10-25 15:28:52 +01:00
Fredrik Öhrström
40def6491b
Added wmbus_common_implementation.h
2020-10-25 08:21:26 +01:00
Fredrik Öhrström
5e938202c8
Update rc1180 code.
2020-10-24 16:16:50 +02:00
Fredrik Öhrström
c4226a8268
Added device and rssi_dbm to json.
2020-10-14 20:59:14 +02:00
Fredrik Öhrström
0c2eb722d1
Now auto detects any number rtlwmbus devices.
2020-10-07 21:40:33 +02:00
Fredrik Öhrström
8cc2123df0
Improved logic for configuring wmbus devices. Many changes.
2020-10-04 22:52:05 +02:00
Fredrik Öhrström
ef59dad7cd
Replaced sem_post/sem_wait with pthread_cond_signal_timedwait
2020-09-27 11:35:57 +02:00
Fredrik Öhrström
d443fd4ea2
Add partial support for RC1180.
2020-09-26 13:52:24 +02:00
Fredrik Öhrström
eb89c7b31d
Moved waitForResponse into common implementation.
2020-09-26 00:10:34 +02:00
Fredrik Öhrström
de24888b4e
Moved listenTo/onDissapear to common implementation.
2020-09-25 21:58:09 +02:00
Fredrik Öhrström
467d15845a
Moved command_wait into common implementation for wmbus devices.
2020-09-25 21:47:21 +02:00
Fredrik Öhrström
09821cf389
Rewrote locking from scratch switch to shared_ptr.
2020-09-21 21:55:21 +02:00
Fredrik Öhrström
69df7f022a
Detect and start wmbus dongles from within wmbusmeters.
2020-08-30 21:33:48 +02:00
Fredrik Öhrström
5038753906
Add alarm functionality.
2020-08-01 21:56:46 +02:00
Fredrik Öhrström
8191f45888
Inital work to add alarms.
2020-07-30 11:18:44 +02:00
Fredrik Öhrström
2cc26129b4
Fix build problems.
2020-05-11 11:59:47 +02:00
Fredrik Öhrström
2c366bf6a7
Added prototype for wmbusmeters-admin.
2020-05-09 21:56:37 +02:00
Fredrik Öhrström
7635b11f5f
Try to detect.
2020-03-22 18:43:09 +01:00
weetmuts
9ce676675a
Fix problem with rtl_sdr hanging when stopping daemon.
2020-02-26 11:02:47 +01:00
weetmuts
6e844dc1c2
Fix cul driver C1 mode.
2020-02-18 20:48:00 +01:00
weetmuts
b42c3f3af4
Improved cul driver.
2020-02-16 20:23:47 +01:00
weetmuts
a7c059d5df
Added proper CRC trimming for CUL driver.
2020-02-15 21:18:21 +01:00
weetmuts
0f74dba6e9
Added more debug information.
2020-02-06 19:01:48 +01:00
weetmuts
884aed37ba
Add eBZ wmbus meter.
2020-02-06 13:14:46 +01:00
weetmuts
1ae56f2480
Added sem_init to cul.
2020-02-04 16:08:15 +01:00
weetmuts
399f357496
Fix cul.
2020-02-04 14:46:48 +01:00
weetmuts
7b55c38fe9
Improved CUL driver.
2020-02-03 18:20:03 +01:00
weetmuts
9ed100cd07
CUL now supports setting different link modes.
2020-02-02 20:49:26 +01:00