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
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
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
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
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
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
88916fe82d
Add IPv6 support ( #53 )
2019-07-17 17:04:22 +04:00
Victor Antonovich
2aa063db79
Add command-line and config options to set an TCP socket address ( #53 )
...
Still no IPv6 support though.
2019-07-16 11:14:37 +04:00
Victor Antonovich
caec364ac1
mbusd 0.4.0
2019-07-08 13:45:36 +04:00
Victor Antonovich
c582e6f052
Move queue_next_elem() outside of the switch
block ( fix #52 )
2019-07-08 13:24:45 +04:00
Dustin Lundquist
5c064928ae
modbus: read only a single frame at a time
...
When multiple modbus frames were queued in the socket buffer
conn_read() would read until it completely drained the
kernel's socket buffer or filled the connection buffer. The first modbus
frame in the buffer is then processed and sent to the tty, then the
buffer is reused for the reponse after it is received from the tty
possibly overwritting any subsequent modbus request frames already read.
Avoid this by maintaining pre-connection length to read, so we only read
a single modbus frame at a time.
2019-01-25 14:13:12 -08:00
Victor Antonovich
b5e3c5324a
Implement tty reconnect with exponential backoff
2019-01-04 19:28:22 +04:00
Victor Antonovich
d507507d29
Try to reinit tty on EOF ( #41 )
2019-01-04 12:54:48 +04:00
Victor Antonovich
076120bf6c
Force set tty CLOCAL mode flag (trying to address #41 )
2019-01-03 20:45:52 +04:00
Victor Antonovich
77f1ccd345
Merge branch 'master' of https://github.com/3cky/mbusd.git
2018-04-26 13:55:47 +03:00
Victor Antonovich
fb4f8fb569
Handle incorrect Modbus/TCP data length header field #31
2018-04-26 13:10:57 +03:00
dwyer-employee
8f2ccf1ec0
Modbus RTU Exception Forwarding ( #29 )
...
Add checking for Modbus exception codes returned by RTU slaves
These PDUs are now forwarded to the TCP client.
2018-03-26 13:12:43 +03:00
NickMa
fb3d6d6489
Cmake gitlabci ( #25 )
...
* gitlabci: hardcoded the debian systemd path
* cmake: no failure on forced SYSTEMD_SERVICES_INSTALL_DIR
* gitlabci: added fedora target
* gitlabci: added fedora package
* gitlabci: added another fedora package
* gitlabci: fedora changed rpmbuilder
* fedora...
* fedora package name try4
* rpmdevtools detection
* gitlabci: changed rpm detection
* gitlabci: rpmbuilder detection
* rpmbuilder added references
* gitlabci: changed the expiration timespan to 6months
* removed always false comparison (dbglvl is unsigned)
2018-03-05 17:19:52 +03:00
Nick
cae88552d3
more automake cleanup
...
removed the last *.am and *.in files
2017-11-29 22:32:08 +01:00
Nick
d6cec7305b
Merge branch 'master' into feature_cmake
2017-11-29 15:52:23 +01:00
Victor Antonovich
3ea208491a
Add support for read configuration from file
2017-11-29 15:30:24 +03:00
Victor Antonovich
7fb5309551
Systemd service file generation using autotools
2017-11-23 13:09:03 +03:00
Nick
d26f68ee05
added initial support for cmake
...
Note: make install is currently not supported
2017-11-22 09:46:28 +01:00
luuloe
3e7fefc926
* systemd-support: log to stderr in non-daemon mode to ensure log entries are pushed to journal right away (stdout is buffered)
2017-11-02 11:45:52 +00:00
luuloe
bcc355c6be
* systemd: SIGINT and SIGTERM signals return exit(0) to allow clean termination
2017-11-02 07:57:25 +00:00
luuloe
e45f616520
* updated automake to install systemd unit file
2017-10-29 20:37:42 +00:00
James Jarvis
fe1060b339
Added to man page and cfg header
2017-02-16 16:55:58 -06:00
James Jarvis
54fffd0895
Applied sysfs gpio RS-485 directional control patch from APRS World
2017-02-16 16:34:31 -06:00