Wykres commitów

94 Commity (678a3a8a0a82f5ac31a3e068d82e1f3e32dc0f0c)

Autor SHA1 Wiadomość Data
Damian Wrobel a2de4d4b9b Fix accessing empty string
Fixes the following crash:
 (gdb) bt
 #0  0x00005555555738d0 in abort@plt ()
  #1  0x0000555555589888 in std::__replacement_assert (__file=<optimized out>, __line=<optimized out>, __function=<optimized out>, __condition=<optimized out>) at /usr/include/c++/9/x86_64-redhat-linux/bits/c++config.h:2533
 #2  0x00005555555d1e37 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::front (this=0x7ffff7a226d0) at /usr/include/c++/9/bits/basic_string.h:1123
 #3  0x00005555555ce8c5 in doesIdMatchExpression (id=..., match=...) at src/util.cc:513
 #4  0x00005555555cea92 in doesIdMatchExpressions (id=..., mes=...) at src/util.cc:560
 #5  0x000055555558aa56 in MeterCommonImplementation::isTelegramForMe (this=0x555555661c28, t=0x7ffff7a227b0) at src/meters.cc:188
 #6  0x000055555558c0e0 in MeterCommonImplementation::handleTelegram (this=0x555555661c28, input_frame=...) at src/meters.cc:289
 #7  0x000055555558c87a in MeterCommonImplementation::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >)>::operator() (__closure=<optimized out>, input_frame=...) at /usr/include/c++/9/bits/stl_algobase.h:465
 #8  std::_Function_handler<bool(std::vector<unsigned char, std::allocator<unsigned char> >), MeterCommonImplementation::MeterCommonImplementation(WMBus*, MeterInfo&, MeterType, int)::<lambda(std::vector<unsigned char, std::allocator<unsigned char> >)> >::_M_invoke(const std::_Any_data &, std::vector<unsigned char, std::allocator<unsigned char> > &&) (__functor=..., __args#0=...) at /usr/include/c++/9/bits/std_function.h:285
 #9  0x00005555555da01f in std::function<bool (std::vector<unsigned char, std::allocator<unsigned char> >)>::operator()(std::vector<unsigned char, std::allocator<unsigned char> >) const (__args#0=..., this=0x7ffff7a22c70) at /usr/include/c++/9/bits/std_function.h:685
 #10 WMBusCommonImplementation::handleTelegram (this=this@entry=0x555555661b40, frame=...) at src/wmbus.cc:3328
 #11 0x00005555555fbf7b in WMBusRTLWMBUS::processSerialData (this=0x555555661ad0) at /usr/include/c++/9/bits/stl_algobase.h:465
 #12 0x00005555555cb001 in std::function<void ()>::operator()() const (this=<optimized out>) at /usr/include/c++/9/bits/std_function.h:685
 #13 SerialCommunicationManagerImp::eventLoop (this=0x5555556617c0) at src/serial.cc:795
 #14 0x00007ffff7f554e2 in ?? ()
 #15 0x0000000000000000 in ?? ()

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
2020-03-02 16:21:33 +01:00
weetmuts f99dbadf88 Added --usestderr option. Added version 0x7c to iperl. install.sh now adds user to wmbusmeters group. 2020-02-22 21:16:24 +01:00
weetmuts 126a503870 Fix bug when trimming frame A telegram which is a multiple of 18 bytes. 2020-02-16 20:58:59 +01:00
weetmuts 9700d9da1a Added fields tests for t1 meters. 2020-02-06 18:22:05 +01:00
weetmuts 7f7fb464c2 Added buffer length checks. 2020-01-31 12:44:23 +01:00
weetmuts a6c73e10db Add aescmac for more security modes. 2020-01-28 16:15:11 +01:00
weetmuts 4c27f6c11c Refactor parsing. 2020-01-27 09:29:40 +01:00
weetmuts cf7efb8127 Added support for meterfilestimestamp 2019-12-11 18:56:34 +01:00
Fredrik Öhrström 260e53e046
Merge pull request #42 from skazi0/izar
Diehl/Sappel IZAR Water meter support
2019-11-10 08:02:22 +01:00
weetmuts 28d5495882 Added support for stdin and file.\n 2019-11-03 16:31:30 +01:00
Jacek Tomasiak 573c999cff Add custom PRIOS key support 2019-10-29 21:48:37 +01:00
weetmuts 7876804a0b Add recovery when rawtty gets out of sync. 2019-10-28 22:10:29 +01:00
weetmuts 30543f6217 Added support for additional static json info. 2019-10-20 19:19:17 +02:00
weetmuts 425430f8e3 Add support for raw serial input. 2019-10-15 14:32:32 +02:00
weetmuts cd4820a357 Added support for negative id match rules. 2019-09-16 16:32:24 +02:00
weetmuts 911b0f766c HUP now triggers daemon to reload config files. 2019-06-11 18:49:26 +02:00
weetmuts 5559052799 Added support for id=8765* matching. 2019-06-06 18:16:24 +02:00
weetmuts ff32981c13 Added support for meters that might transmit using different link modes. 2019-06-06 17:28:20 +02:00
weetmuts ba75bca37c Error should print on syslog. 2019-05-04 22:01:38 +02:00
weetmuts 787ecae509 Rewired vario heatmeter to kwh. 2019-05-04 08:52:25 +02:00
weetmuts 01642e931f Improved serial command logging to print readable text. 2019-04-04 18:18:27 +02:00
weetmuts fcf1368b5e Macosx fix. 2019-04-03 19:13:59 +02:00
weetmuts 927bee871f Handle wrong group memberships better with info messages. 2019-04-03 18:57:18 +02:00
weetmuts 43f0d9b051 Exit and print info when background rtl_wmbus process fails to start. 2019-04-03 17:31:51 +02:00
weetmuts 6fc79697c3 Added early exit if rtlwmbus child process terminates. 2019-04-02 19:23:21 +02:00
weetmuts 113b5ace28 Fixed crash on abrupt end of data. 2019-03-15 14:21:50 +01:00
weetmuts 7e72fe0f3f Added support for multiple comma separated ids. 2019-03-05 21:19:05 +01:00
weetmuts 87c4cb9256 Added support for id * wildcard. 2019-03-05 18:38:54 +01:00
Fredrik Ohrstrom 83c6a3fefc Fixed bug. 2019-03-04 12:34:19 +01:00
weetmuts a242fa9d23 Properly parses qcaloric telegrams. 2019-03-01 15:41:11 +01:00
weetmuts f399686b8b Added working parse of qcaloric. 2019-02-28 19:38:43 +01:00
weetmuts 8b0c3d8d29 Moved some forgotten log lines from printf to verbose 2019-02-26 23:40:44 +01:00
weetmuts f214390c41 Added rtlwmbus:<freq> support 2019-02-26 22:47:12 +01:00
weetmuts b4092bcdff Updated README and small fixes. 2019-02-26 09:33:10 +01:00
weetmuts b69b27707c Now rtlwmbus seems to work. 2019-02-25 22:03:20 +01:00
weetmuts b6d89334b7 Added logfile support. 2019-02-24 15:20:55 +01:00
weetmuts 58206443a5 Rename CommandLine to Configuration. 2019-02-24 14:08:51 +01:00
weetmuts 1b7dee6c3d Daemon mode now works. Run 'make install' then insert dongle. 2019-02-24 09:58:31 +01:00
weetmuts b68cadfdc8 More work on running as daemon. 2019-02-23 23:11:09 +01:00
weetmuts 9f36535527 Allow ../../simulation.txt 2019-02-23 22:06:50 +01:00
weetmuts 205d360e29 Work on macosx build. 2019-02-23 21:34:31 +01:00
weetmuts bca2e93b3c Work on macosx build. 2019-02-23 21:33:46 +01:00
weetmuts ff06425bf9 Tests for config files. 2019-02-23 21:21:17 +01:00
weetmuts 8e67e2eb70 Moved sources into src. 2019-02-23 13:53:52 +01:00