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
371a3c3cf1
Stop early if listening mode is set for auto and no meters.
2020-09-25 21:35:17 +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
71ef2b2784
Improved locking.
2020-09-18 21:22:08 +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
78a353de59
Restore event loop start and disable getconfig in amb8465 reset.
2020-08-19 20:45:38 +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
24a42cbadc
Improve logging when testing ttys.
2020-06-29 18:33:55 +02:00
Fredrik Öhrström
f3e2968833
Added reset of amb8465 to admin-tool.
2020-06-29 16:35:58 +02:00
Henry N
776287c011
amb8465: Find next start 0x44, after out of sync
...
Should fix problems in #116
2020-05-27 13:12:52 +02:00
Fredrik Öhrström
76d76d1276
Disable format-truncation warning that is somewhat flaky in gcc.
2020-05-26 09:34:17 +02:00
Fredrik Öhrström
950778d7bc
Detect out of sync data from amb8465.
2020-05-25 19:05:45 +02:00
Henry N
fddeab4841
amb8465: rx timeout to resync telegram ( #117 )
...
* rx timeout 2 sec in telegram
If the reader is out of sync, next meter start bytes will add to the rest of telegram before. Typically are 7 ms between two chunks of received data. If detected a delay of 2 seconds or more between the rx data, then assume it is the first block of new telegram.
This should fix the issue #116 .
2020-05-25 09:28:31 +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
866e163d3b
Merge branch 'master' into HenryNe-patch-cs-print
2020-05-09 08:25:15 +02:00
Henry N
0159f4c449
amb8465: Print rssi after full command frame
...
Just to have the same order as before.
2020-05-08 22:20:10 +02:00
Henry N
585bec9e39
amb8465: Print checksum errors from responses
2020-05-08 22:11:26 +02:00
Henry N
8d283533c3
amb8465: Print rssi in dBm
2020-05-08 22:06:33 +02:00
Henry N
c229cb3d0f
amb8465: Update rssi from transparant data
...
Update rssi from transparent rx data.
Print rssi only after get an update of rssi (CMD_DATA_IND or transparent RX).
2020-05-08 22:02:22 +02:00
Henry N
60ddad6e1d
amb8465: Fix: RSSI is only in CMD_DATA_IND
...
Byte for rssi is only injected in responses from CMD_DATA_IND.
rssi is -2 bytes before end, because -1 byte is the CheckSum.
Fix calculation for frame_length.
frame_length = 1 byte start (0xFF) + 1 byte CMD (0x8A) + 1 byte len (0x7A) + payload_len + 0/1 byte RSSI + 1 byte Check Sum = 4 + payload_len.
PS: The old code was working, because rssi_expected_ was always true (1).
2020-05-08 21:56:20 +02:00
Henry N
b955c692d5
amb8465: Fix: Update config RSSI_Enable = false
...
Bugfix: Update local "rssi expected" to false, If RSSI is not set in config.
2020-05-08 21:38:09 +02:00
Henry N
a8f7517290
amb8465: Print config UART_CMD_OUT_ENABLE
2020-05-08 21:29:02 +02:00
Fredrik Öhrström
7635b11f5f
Try to detect.
2020-03-22 18:43:09 +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
4c27f6c11c
Refactor parsing.
2020-01-27 09:29:40 +01:00
weetmuts
bb7927f8f1
Added checks to handle corrupted telegrams.
2019-11-04 00:35:00 +01:00
weetmuts
cae1144283
Improved testing.
2019-11-03 22:00:18 +01:00
weetmuts
28d5495882
Added support for stdin and file.\n
2019-11-03 16:31:30 +01:00
weetmuts
f48b182dfb
Make safe copy of Telegram for each potential meter listener.
2019-09-06 11:48:52 +02:00
weetmuts
bd63a73d0a
Updated README and some debug strings.
2019-06-16 22:07:22 +02:00
weetmuts
22bca9752c
Fix bug in AMB8564 dongle code, receiving T1 now works!
2019-06-11 17:49:54 +02:00
weetmuts
ff32981c13
Added support for meters that might transmit using different link modes.
2019-06-06 17:28:20 +02:00
weetmuts
1111ea01bd
Add support for listening to S1 and S1-m telegrams.
2019-05-21 10:34:09 +02:00
weetmuts
e4d0dfda4e
Added support for --n1a to --n1f linkmodes for imst dongle.
2019-03-05 22:56:41 +01:00
weetmuts
58206443a5
Rename CommandLine to Configuration.
2019-02-24 14:08:51 +01:00
weetmuts
a182fa0974
Work on macosx build.
2019-02-23 21:36:00 +01:00
weetmuts
8e67e2eb70
Moved sources into src.
2019-02-23 13:53:52 +01:00