Commit Graph

54 Commits

Author SHA1 Message Date
Sven Rebhan 85f025ad22
chore(inputs.modbus): Add device or controller information to error messages (#16114) 2024-11-04 15:55:54 -06:00
Sven Rebhan f06111499e
feat(inputs.modbus): Allow grouping across register types (#16040) 2024-10-24 10:50:16 -05:00
Paweł Żak 6c48fbb1f2
chore: Fix linter findings for `revive:enforce-map-style` in `plugins/inputs/[a-m]*` (#16042) 2024-10-21 13:11:11 +02:00
Sven Rebhan 52d30f9a3a
chore(inputs.modbus): Add more debug information for request grouping (#15959) 2024-10-02 10:26:35 -05:00
Paweł Żak 453d32bd81
chore: Fix linter findings for `revive:comment-spacings` (part 2) (#15897) 2024-09-19 11:03:28 +02:00
Sven Rebhan d160276552
feat(logging): Add 'trace' log-level (#15695) 2024-08-01 00:32:24 +02:00
Sven Rebhan 80891a6413
fix(inputs.modbus): Avoid overflow when calculating with uint16 addresses (#15146) 2024-04-12 14:31:33 -05:00
Sven Rebhan f77049855b
feat(inputs.modbus): Add workaround for unusual string-byte locations (#14764) 2024-02-14 07:21:18 -07:00
Paweł Żak ae7fbc5082
chore(linters): Replace 'fmt.Errorf' with 'errors.New' wherever possible (#14698) 2024-02-08 11:32:30 -06:00
Sven Rebhan ea3e6dfb91
fix(inputs.modbus): Split large request correctly at field borders (#14388) 2023-12-06 06:55:49 -07:00
Sven Rebhan 96b9845853
feat(inputs.modbus): Add per-metric configuration style (#13507) 2023-06-30 12:47:16 -06:00
Sven Rebhan 56aac4f0e1
fix(inputs.modbus): Fix optimization of overlapping requests and add warning (#13486) 2023-06-23 07:53:57 -06:00
Sven Rebhan 2006086262
feat(inputs.modbus): Allow to convert coil and discrete registers to boolean (#12825) 2023-03-13 12:18:02 +01:00
Sven Rebhan 0a0cbc24d5
feat(inputs.modbus): Add RS485 specific config options (#12786) 2023-03-07 11:29:59 -07:00
Paweł Żak 5b2346dfa0
chore: Fix linter findings for errorlint (part5) (#12731)
Co-authored-by: Pawel Zak <Pawel Zak>
2023-03-01 22:18:35 +01:00
Sven Rebhan 150f0cd3a7
feat(inputs.modbus): add workaround to enforce reads from zero for coil registers (#12408) 2023-01-09 12:35:46 -07:00
Sven Rebhan 7df97486d4
fix(inputs.modbus): fix default value of transmission mode (#12367) 2022-12-09 11:23:51 -07:00
Sven Rebhan eea9021771
fix(inputs.modbus): Fix Windows COM-port path (#12339) 2022-12-06 15:47:58 +01:00
TimurDela edb2358764
feat(inputs.modbus): optimize grouped requests (#11106) 2022-11-30 09:31:41 -07:00
Sven Rebhan 6cfae2a1fd
fix(input.modbus): Add workaround to read field in separate requests (#12235) 2022-11-18 11:53:36 +01:00
Sven Rebhan 2ade360728
feat(inputs.modbus): Optimize requests (#11273) 2022-11-14 20:31:50 +01:00
Paweł Żak 6816aefcd5
chore: fix linter findings for unparam and revive.unused-parameter (#12150) 2022-11-08 12:04:12 -07:00
Mya 716394e55d
fix(inputs.modbus): add slave id to failing connection (#12038) 2022-10-20 09:24:17 -06:00
Joerg Epping 589447abaf
feat(inputs.modbus): add config option to pause after connect (#11983) 2022-10-18 12:42:18 -06:00
Sven Rebhan d637a665e8
fix(inputs.modbus): Do not fail if a single slave reports errors (#11785) 2022-09-15 15:42:47 -06:00
Sebastian Spaink d67f75e557
docs: Remove warning not to remove go:embed (#11797)
Co-authored-by: Joshua Powers <powersj@fastmail.com>
2022-09-13 12:47:58 -05:00
Joshua Powers 8c49ddccc3
chore: update to go1.19.1 (#11776) 2022-09-08 12:49:36 -06:00
Joshua Powers 2fc19fa308
chore: correctly spell embed (#11200) 2022-05-27 07:13:47 -06:00
Sven Rebhan 56eb914998
chore: Embed sample configurations into README for inputs (#11136) 2022-05-24 08:49:47 -05:00
Sebastian Spaink b355be5ccb
feat: migrate input plugins to new sample config format (M-Z) (#10926) 2022-04-11 16:32:25 -05:00
Martin Reindl 0e1031356e
fix: re-enable OpenBSD modbus support (#10385) 2022-01-07 07:19:19 -07:00
Sven Rebhan 31cbd2e504
fix: Make telegraf compile on Windows with golang 1.16.2 (#10246) 2021-12-08 15:10:31 -07:00
Sven Rebhan 99ddb467e9
feat: Modbus add per-request tags (#10231) 2021-12-08 12:19:13 -07:00
Sven Rebhan 9787f4ac45
feat: Modbus support multiple slaves (gateway feature) (#9279) 2021-12-02 16:06:06 -06:00
Joshua Powers ce46506e19
fix: do not build modbus on openbsd (#10047) 2021-11-09 16:05:42 -06:00
Sven Rebhan cf605b5d9a
feat: Modbus connection settings (serial) (#9256) 2021-10-19 15:12:13 -06:00
Marius Bezuidenhout 1afbff8904
feat: Modbus Rtu over tcp enhancement (#9570) 2021-08-03 17:09:51 -04:00
Sven Rebhan 2e7b232073
Modbus refactor (#9141) 2021-05-27 16:58:46 -04:00
Sven Rebhan 9853bf6c54
Get rid of deprecated internal.{Duration,Size,Number} (#8969) 2021-04-09 13:15:04 -04:00
Sven Rebhan 8e7da355b3
Linter fixes (unhandled errors) -- Part 1 (#8992) 2021-04-08 11:43:39 -05:00
Paweł Żak 099ccda3f9
Linter fixes - gosimple (#9046) 2021-03-25 13:57:01 -04:00
Paweł Żak 38c61c07ef
Revive fixes - part 4: (#8981)
empty-lines

Co-authored-by: Pawel Zak <Pawel Zak>
2021-03-12 14:21:51 -06:00
Antonio Garcia 7ed98c7e5c
fix: reading multiple holding registers in modbus input plugin (#8628) 2021-02-26 11:45:33 -05:00
Paweł Żak d9736d543f
Revive fixes - part 2 (#8835)
* Revive fixes regarding following set of rules:
[rule.if-return]
[rule.increment-decrement]
[rule.var-declaration]
[rule.package-comments]
[rule.receiver-naming]
[rule.unexported-return]
2021-02-16 18:19:50 -05:00
Paweł Żak ba66d4facb
Revive fixes - part 1 (#8797)
* Revive fixes regarding following set of rules:
[rule.blank-imports]
[rule.context-as-argument]
[rule.context-keys-type]
[rule.dot-imports]
[rule.error-return]
[rule.error-strings]
[rule.indent-error-flow]
[rule.errorf]
2021-02-08 11:18:40 -05:00
SoerMan 05378980a3
Add FLOAT64-IEEE support to inputs.modbus (#8361) (by @Nemecsek) (#8474) 2020-11-30 16:22:57 -05:00
Franz-Josef Kaiser d233b4c27f
Fix/extend support of fixed point values on input (modbus plugin) (#7869)
* Add input float types FIXED/UFIXED (#7317)
2020-07-27 16:48:44 -04:00
Daniel Nelson d1f109b316
Update modbus readme 2020-04-21 11:27:35 -07:00
Sven Rebhan 1006c65587
Add retry when slave is busy to modbus input (#7271) 2020-04-21 11:21:27 -07:00
Sven Rebhan 3650d74de2
Add possibility to specify measurement per register (#7231) 2020-03-30 13:30:42 -07:00