Commit Graph

182 Commits

Author SHA1 Message Date
Victor Antonovich 2c462b7560 Tag Docker images with `latest` tag 2024-03-28 00:23:37 +03:00
Victor Antonovich ac927aa19a Update Docker publish workflow 2024-03-27 23:55:11 +03:00
Victor Antonovich 91f8e35eae mbusd 0.5.2 2024-03-27 18:44:59 +03:00
Victor Antonovich 0cf2cb0c56 Add Docker info to README 2024-03-27 18:25:25 +03:00
Victor Antonovich 9cee2351f4 Add docker image publish github workflow 2024-03-27 16:38:59 +03:00
JP Meijers a5239439e3
Change Dockerfile to install required packages for linux serial.h (fixes #103) 2024-02-21 17:15:17 +03:00
Victor Antonovich 5b59f5b92f Fix building on older gcc versions (#100) 2023-12-27 13:30:47 +03:00
Victor Antonovich 3bed375c44 Refactor log file name command line option parsing 2023-12-25 17:58:48 +03:00
Victor Antonovich 2b32d097d2 Move string trim functions to util.c 2023-12-25 17:55:55 +03:00
Victor Antonovich 8591a2f1c1 Move CRC calculation function to modbus.c 2023-12-25 16:34:09 +03:00
Victor Antonovich d6e6b74a53 Default log file name changed to /var/log/mbusd.log 2023-12-25 13:00:12 +03:00
kpr0th 7475bdf141
Logging fix and enhancement (#90)
* Logging fix and enhancement

Corrected issue where loglevel in mbusd.conf wasn't parsed correctly. Added support for logfile in mbusd.conf.  Updated README and mbusd..conf.example to true-up with "-h" output and new logging options.

* Updated README

Sync'd up verbiage in the usage details with the usage summary.

* Additional adjustments to sync up README w/ -h output
2023-12-25 12:52:43 +03:00
Victor Antonovich 68f988051c Rename `tty_(set|clr)_rts` to `tty_set_(tx|rx)` 2023-11-27 16:48:47 +03:00
Victor Antonovich b03d50b58c Improve documentation 2023-11-27 16:21:31 +03:00
Victor Antonovich 20c87df994 Add `rts_1` config value as an alias for `rts` 2023-11-27 15:43:34 +03:00
Cían Hughes 4ee7e8a834
Add new flag (-r) to support inverted RTS flow control\n\nThis is useful if you have a MAX485 connected to a Raspberry PI where you pull want RST low to transmit (#98) 2023-11-27 15:14:38 +03:00
Victor Antonovich b07681842f Add pyserial as a dependency for github workflow 2023-09-29 18:16:45 +03:00
Victor Antonovich b464ec9676 Update version to 0.5.2 and year to 2023 2023-09-29 18:09:00 +03:00
Victor Antonovich 6517dea57f Make use of Linux RS-485 support #97 2023-09-29 18:04:09 +03:00
Victor Antonovich 0f7a8c50fb Update .gitignore 2023-09-29 17:20:23 +03:00
Victor Antonovich 18fb6d086e Fix tests for changes in pymodbus API 2023-09-29 17:19:51 +03:00
Victor Antonovich 4e5c7e3781 mbusd 0.5.1 2022-08-18 20:35:49 +03:00
vicencb 874ce63806
Do not segfault when closing last connection (#83) 2022-04-06 17:19:08 +03:00
Victor Antonovich 06ccb29384 Fix crash due to missing logw() argument (fixes #84) 2022-04-06 16:26:26 +03:00
Victor Antonovich 7c268600b6 Add support for more complex serial port device names (fixes #81) 2022-02-17 13:12:04 +03:00
Jakob Schlyter 55889a7292
Add simple Dockerfile for running mbusd containerized (#79)
* init

* simplify

* explicit gcc not needed

* do not clone repository, copy source from cwd (or we cannot build releases)
2021-11-15 14:04:04 +03:00
Victor Antonovich cb9576a5a0 Remove travis.yml 2021-11-15 13:09:24 +03:00
Victor Antonovich 16e68947ce Move to Github Actions build status badge 2021-11-15 13:08:32 +03:00
Victor Antonovich bf98aa6382 Install Twisted as test dependency into github build workflow 2021-11-15 13:01:40 +03:00
Victor Antonovich dd71375628 Install socat as test dependency into github build workflow 2021-11-15 12:53:52 +03:00
Victor Antonovich af0534d18f Install python and test dependencies into github build workflow 2021-11-15 12:31:10 +03:00
Victor Antonovich 868d605f5d
Add Github Actions build file 2021-11-12 18:50:16 +03:00
Victor Antonovich 1efb812013 Fix for "Resource temporarily unavailable" error in tty read() (#78) 2021-11-12 18:04:31 +03:00
Victor Antonovich 4cd68c1bb8 Update version to 0.5.1 and year to 2021 2021-11-12 12:20:48 +03:00
Victor Antonovich a2272c5793 Parse replyonbroadcast config option value #75 2021-07-06 16:37:36 +03:00
Victor Antonovich 6a95a732d4 Merge pull request #75 from dgoo2308/feature-reply-on-broadcast 2021-07-06 15:15:36 +03:00
Danny b22ffa0856 feature-reply-on-broadcast 2021-06-19 12:37:55 +07:00
Victor Antonovich 432b7a1a8f mbusd 0.5.0 2020-11-28 13:47:32 +04:00
Victor Antonovich 252aa45e5d Improve serial port config handling and logging 2020-08-13 20:43:03 +04:00
Victor Antonovich 461ce8baa0 Do not wait for a reply for RTU broadcast address #61 2020-08-13 17:39:30 +04:00
Victor Antonovich ad58141b87 Fix division by zero error for default serial port speed 2020-08-13 11:52:18 +04:00
Victor Antonovich c6301d4250
Merge pull request #63 from KrystianD/feat-baudrate
Show an error when trying to use unsupported baudrate
2020-08-13 11:23:27 +04:00
Victor Antonovich 3742d8d8c5
Merge pull request #62 from KrystianD/master
Add more baudrates
Fixes #60
2020-08-13 11:17:37 +04:00
Krystian Dużyński 32344e5f94 Fix log message (baudrate to speed) 2020-08-12 00:35:02 +02:00
Krystian Dużyński d24b257c13 Make use of baudrate 0 as indicator of default baudrate, show error when trying to use unsupported baudrate 2020-08-12 00:28:23 +02:00
Krystian Dużyński 965ff443c8 Remove unused resppause member 2020-08-12 00:27:48 +02:00
Krystian Dużyński 4bf9d94713 Add more baudrates 2020-08-12 00:08:58 +02:00
Victor Antonovich 5eb74fa568 Fix GCC C99 compatibility error 2020-05-22 16:56:31 +04:00
Victor Antonovich f5becef211 Take into account tty parity bit in the timing calculations (#59) 2020-05-22 15:47:50 +04:00
Victor Antonovich 0c1dcb727d Add online network requirements to the systemd service file (fix #58) 2020-05-21 13:59:53 +04:00