Commit Graph
100 Commits
Author SHA1 Message Date
john30 2ca6be5f92 determine default log file location from localstatedir, determine default config directory from sysconfdir, moved sysconfdir default to autogen.sh, adjusted author and git location 2015-02-14 14:36:57 +01:00
john30 287bb859d0 unified result (start with "ERR:" on error, start with "usage:" on wrong number of args) 2015-02-14 14:32:39 +01:00
john30 0c0a137ef5 nicer error messages 2015-02-14 14:19:53 +01:00
john30 a16cb85bd0 comment 2015-02-14 14:19:22 +01:00
john30 8b8a25712c add define 2015-02-14 14:19:04 +01:00
john30 1e150844c3 use relative libs for dist, add missing files, add define for sysconfdir 2015-02-14 14:18:43 +01:00
john30 0e5e11e22b corrected 2015-02-14 14:17:12 +01:00
john30 15f79e4af2 Merge branch 'master' of github.com:john30/ebusd 2015-02-10 22:05:15 +01:00
john30 479434c8fe append to log file 2015-02-10 22:04:26 +01:00
john30 885e42d623 fixed help for find 2015-02-09 22:57:45 +01:00
John cabe15f34f Update README 2015-02-09 22:57:41 +01:00
john30 aa306d9131 reworked and optimized device handling and check network device address, log failed device open, avoid blocking threads with sleep(), optimized shutdown 2015-02-08 10:06:03 +01:00
john30 4404202609 set localstatedir to /var for default PID file location /var/run/ebusd.pid 2015-02-08 09:24:32 +01:00
john30 bc1fa51747 added WaitThread, removed unused detach() 2015-02-07 14:25:09 +01:00
john30 3133cfd2ad documentation 2015-02-07 11:40:09 +01:00
john30 be7a8e9828 updated copyright year 2015-02-01 13:12:29 +01:00
john30 095b12d517 nicer help 2015-02-01 13:07:11 +01:00
john30 e15c66919a nicer help 2015-02-01 13:06:42 +01:00
john30 0e8a669890 added command help, nicer implementation of quit and stop commands, nicer help 2015-02-01 13:04:15 +01:00
john30 5b373377a4 use constants for argp options, documentation, allow up to 25 masters, nicer help, better variable names 2015-02-01 13:01:35 +01:00
john30 b6ef8d747b documentation 2015-02-01 12:58:45 +01:00
john30 676a0e60c0 documentation 2015-02-01 12:58:30 +01:00
john30 a38cac7209 do not close stdout 2015-02-01 12:57:15 +01:00
john30 5d872e3bc6 added missing /run suffix to PID file path 2015-01-31 19:16:08 +01:00
john30 22b1138407 check for eof 2015-01-31 19:10:27 +01:00
john30 70609f1b03 added state command, nicer help 2015-01-31 19:04:14 +01:00
john30 e0f4c3609c added hasSignal(), log signal loss and acquisition 2015-01-31 19:03:31 +01:00
john30 430d72daed switched from Appl class to argp 2015-01-31 18:32:30 +01:00
john30 f00d49aa7b switched to argp, also allow "q" for quit, end on input shutdown, fix for checking stop and quit input, fix for checking ebusd answer 2015-01-31 18:32:01 +01:00
john30 fee4c2ab2c switched to argp 2015-01-31 18:31:13 +01:00
john30 a514e41cd8 switched to argp, also allow "q" for quit, end on input shutdown, fix for checking stop and quit input, fix for checking ebusd answer 2015-01-31 18:30:00 +01:00
john30 0d91dc1c44 dont reorder args 2015-01-31 18:21:17 +01:00
john30 5903204a4f formatting 2015-01-31 16:21:57 +01:00
john30 4a589681cc fix for checking quit message, also accept "q" as quit 2015-01-31 16:21:47 +01:00
john30 b39bbcba00 documentation 2015-01-31 16:04:24 +01:00
john30 bb36862823 corrected log help 2015-01-31 16:04:04 +01:00
john30 e007e85762 added PID file location to autoconf (i.e. use localstatedir/var), fixed empty PID file and permissions 2015-01-31 11:39:52 +01:00
john30 a8231fd5db removed unused files 2015-01-25 19:31:39 +01:00
john30 a7000b2342 removed outdated files 2015-01-25 19:29:23 +01:00
john30 dd6fc823e8 removed unused include 2015-01-25 19:15:46 +01:00
john30 8fb73a5f5d switched to new logging 2015-01-25 19:07:38 +01:00
john30 89349e7d21 reworked main loop, switched command line argument parsing to argp 2015-01-25 19:06:02 +01:00
john30 a721fe28dc reworked main loop, switched command line argument parsing to argp 2015-01-25 19:04:28 +01:00
john30 3b968afb41 added simple, fast, and efficient logging 2015-01-25 19:01:24 +01:00
john30 16c52e9a39 close socket as fast as possible if it was closed by the client 2015-01-25 18:50:12 +01:00
john30 0095c5d44d Merge branch 'master' of git://github.com/yuhu-/ebusd 2015-01-25 18:29:30 +01:00
john30 44957a6566 switched to autobrief 2015-01-18 12:40:54 +01:00
john30 fb99ac55a1 added listen stop 2015-01-18 12:23:16 +01:00
john30 1868e66c8b hide copy constructor, fixed skipped updates, nicer NetMessage notify/wait, nicer Connection cleanup, removed weird workaround with \r, documentation 2015-01-18 12:14:52 +01:00
john30 4b94a38c3c hide copy constructor 2015-01-18 12:08:58 +01:00
john30 50e24172b1 added lastChangeTime 2015-01-03 12:11:46 +01:00
john30 b04d5c2730 added common broadcast messages, removed outdated commands.csv 2015-01-01 13:39:53 +01:00
john30 d76d411b35 find reports anything by default 2015-01-01 11:55:20 +01:00
john30 bbd135398e fix for previous commit 2014-12-31 11:42:12 +01:00
john30 648588149d no longer read any file, added checks 2014-12-31 10:51:19 +01:00
john30 a865dfe322 return error when part or name was defined and part is last item 2014-12-31 10:47:22 +01:00
john30 3b13791c4d typo 2014-12-31 10:46:28 +01:00
john30 699ee88b5b fixed bounds check for time types 2014-12-31 09:59:54 +01:00
john30 b717a0561b fixed empty stored value for messages with value in master data 2014-12-31 09:18:44 +01:00
john30 2253060b8a neither update last found timestamp nor empty last found value if decoding failed, added decode() for combined master/slave decoding 2014-12-31 09:16:33 +01:00
john30 a7d404ee75 use optional "-c class" for find and read instead of having class as non-option argument 2014-12-31 08:30:41 +01:00
john30 7976222b0a adjusted to new structure 2014-12-31 08:01:23 +01:00
john30 be8ae316ed renamed isSet to isWrite 2014-12-31 07:42:41 +01:00
john30 df85caf71f ignore case in class and name 2014-12-29 22:31:22 +01:00
john30 98fb32cbfc Merge branch 'master' of github.com:yuhu-/ebusd 2014-12-29 21:56:53 +01:00
john30 f6c036c000 fixed poll priority queue order 2014-12-29 21:56:19 +01:00
john30 ec42fb5259 fix for multiple space delimiters in query, fix for checking invalid options, treat empty values as valid if last update time is fine, added verbose option and filtering options to find command 2014-12-28 17:34:24 +01:00
john30 cdf5df9804 added more filtering options to MessageMap::findAll 2014-12-28 17:31:57 +01:00
john30 cd38162772 do not use exit() in Appl to avoid memory leaks 2014-12-28 16:01:24 +01:00
john30 e6a4b774dd do not use exit() in Appl to avoid memory leaks 2014-12-28 11:00:38 +01:00
john30 db361dfd3e fix for keeping "no signal" state, avoid unnecessary log calls for non-error levels, added logging of unknown update messages in event level 2014-12-28 10:44:43 +01:00
john30 f68e0d6763 only support a single LogSink in Logger, added hasSink() and setAreaMask() and setLevel() to Logger 2014-12-28 10:40:44 +01:00
john30 5fcfb27d29 fix counter for reload 2014-12-28 10:36:47 +01:00
john30 6d1da2ed6f comment 2014-12-28 10:27:51 +01:00
john30 bf3680bbf4 use active message definitions for parsing other-initiated messages as well 2014-12-28 09:03:57 +01:00
john30 a376b14b4a corrected timeout for an addressed slave to answer to a message, removed unused variable 2014-12-27 18:11:54 +01:00
john30 58b8ce3950 added find command, added short commands r/w/f/h, allow dquote around command arguments for empty strings and strings with spaces 2014-12-27 16:15:48 +01:00
john30 3e9bdee2ed added bool completeMatch to MessageMap::findAll 2014-12-27 16:13:51 +01:00
john30 088d99d4bc allow replacement value for PIN type 2014-12-27 16:10:16 +01:00
john30 5cf1aec6df fix for findAll() 2014-12-27 14:14:41 +01:00
john30 ffd7d3ff18 fixed dt_hex in printSettings() 2014-12-27 13:56:51 +01:00
john30 7f00d18373 nicer cleanup 2014-12-27 13:38:23 +01:00
john30 c8e72126c7 nicer cleanup 2014-12-27 13:38:05 +01:00
john30 121ad369e8 solved TODO and fixed issue with concurrent access to BusRequest, added support for determining signal timeout 2014-12-27 13:37:42 +01:00
john30 ff7caba5ca fix for recv() when neither ppoll nor pselect are available 2014-12-27 13:34:38 +01:00
john30 6ac101f79b variable initialization 2014-12-27 12:41:18 +01:00
john30 f659788e39 fixed precision for derived types, fixed memory leaks, optimized 2014-12-27 12:40:41 +01:00
john30 81ecb0b89d added RESULT_ERR_NO_SIGNAL 2014-12-27 12:36:12 +01:00
john30 259fb11051 fixed cleanup and memory leaks, cosmetics 2014-12-27 12:35:53 +01:00
john30 72eb26805a made run() protected 2014-12-27 12:33:45 +01:00
john30 8d835ed7a9 notify all waiting threads in add(), added waitRemove(), cosmetics 2014-12-27 12:33:10 +01:00
john30 ffb71a56d3 do not modify iterator content in DataField::create() 2014-12-26 20:38:06 +01:00
john30 5b560ea27c deny matching any class if class is explicitly requested 2014-12-26 20:03:21 +01:00
john30 7a394bc13b allow empty field list, allow templates to override each other 2014-12-26 19:45:31 +01:00
john30 e75aedcf2b removed replacement value from bit types
deny replacement value for BTI, HTI, HTM
added replacement value support to BDA and HDA
2014-12-26 19:30:51 +01:00
john30 d7a9d505b7 added support for using hex values in value list 2014-12-26 14:22:52 +01:00
john30 6a46e8cbdb added BCD:2 BCD:3 BCD:4 2014-12-26 13:57:28 +01:00
john30 44b76a27d6 HDA is now in hex instead of BCD 2014-12-26 13:27:15 +01:00
john30 3720cc89ab Merge branch 'master' of github.com:yuhu-/ebusd 2014-12-25 12:09:50 +01:00
john30 dd4127f57b removed unused buffering in port and count dumped bytes instead of using tellp(), small fix in wait for bus after lost arbitration 2014-12-25 12:09:27 +01:00