Commit Graph
100 Commits
Author SHA1 Message Date
john30 57dba2cba4 add "done" to result for successful BC+MM messages without other result 2014-12-10 21:32:40 +01:00
john30 ba2b404900 added prepareSlave for answering requests 2014-12-10 21:31:44 +01:00
john30 98a4be5f84 fixd dump to file with direct buffer, moved more complex method implementation from .h to .cpp file 2014-12-10 20:46:19 +01:00
john30 fa61067a0f file mode 2014-12-07 19:05:04 +01:00
john30 33fbe411dc Merge branch 'master' of git://github.com/yuhu-/ebusd 2014-12-07 18:09:16 +01:00
john30 665a9ee3b9 Merge branch 'master' of git://github.com/yuhu-/ebusd
Conflicts:
	src/ebusctl/ebusctl.cpp
	src/ebusd/Makefile.am
	src/ebusd/baseloop.cpp
	src/ebusd/baseloop.h
	src/ebusd/bushandler.cpp
	src/ebusd/bushandler.h
	src/lib/ebus/message.cpp
	src/lib/ebus/message.h
	src/lib/ebus/port.cpp
	src/lib/ebus/symbol.cpp
	src/lib/ebus/symbol.h
	src/lib/ebus/test/test_data.cpp
	src/lib/ebus/test/test_message.cpp
2014-12-07 15:19:45 +01:00
john30 51bf3dcd4e documentation 2014-12-07 14:59:13 +01:00
john30 41152a4031 file mode 2014-12-07 14:57:05 +01:00
john30 1a138dfe1c added polling by priority 2014-12-07 14:49:44 +01:00
john30 a8c1343218 added polling by priority 2014-12-07 14:45:33 +01:00
john30 dc6f5a0980 removed misleading SymbolString copy constructor 2014-12-07 14:44:14 +01:00
john30 2663c0ca76 avoid copying SymbolString 2014-12-07 14:24:38 +01:00
john30 0a87e9d853 avoid copying SymbolString 2014-12-07 14:23:55 +01:00
john30 3599378364 removed getReceivedData() 2014-12-07 10:00:57 +01:00
john30 d33cede5ea store last value in Message with update time 2014-12-07 10:00:26 +01:00
john30 4ffc6155a1 fixed escaping and crc 2014-12-07 09:43:49 +01:00
john30 8089dab4b4 solved todo 2014-12-06 23:50:31 +01:00
john30 f3f2e1a451 removed debug code 2014-12-06 23:49:00 +01:00
john30 8ef8418702 added cyc command 2014-12-06 23:43:04 +01:00
john30 5bbdcac5d4 store received data 2014-12-06 23:42:41 +01:00
john30 c0c1cf3966 allow passive messages to be found as well, added leadingSeparator to decode(), fixed default part for passive set 2014-12-06 23:41:14 +01:00
john30 97d4e40172 added set 2014-12-06 22:26:58 +01:00
john30 e173ba6ad5 removed commented stuff 2014-12-06 22:26:13 +01:00
john30 0325625a56 avoid cancelling request if part of the message is repeated 2014-12-06 22:01:12 +01:00
john30 c5c9c436dc extended raw logging to also include sent symbols, added optionas for and implemented: send+lock retries, lock counter, bus acquisition+slave receive timeout, switched to directly receiving bytes instead of queuing them, only send SYN when send is complete, adjusted default timeouts to include 2*1,2% tolerance 2014-12-06 21:48:33 +01:00
john30 62fc5046e2 added optional direct buffer to write to (instead of queuing the data), extended raw logging to include sent symbols 2014-12-06 21:24:24 +01:00
john30 c4812bd16c reduced DataField::read() and ::write() to a single SymbolString, adjusted BusHandler accordingly, fix for BusRequest::notify, added define for and corrected send timeout, added syn after failed send, fixed cleanup, reduced logging 2014-12-06 16:54:32 +01:00
john30 b0749c8662 fixes for get+hex 2014-12-06 16:54:14 +01:00
john30 f5a9f2b1d1 code style 2014-12-06 16:45:20 +01:00
john30 382da6215c reduced DataField::read() and ::write() to a single SymbolString, adjusted message accordingly 2014-12-06 16:44:52 +01:00
john30 b831df5eca corrected prepareMaster() 2014-12-06 15:33:46 +01:00
john30 1c63392869 unified output 2014-12-06 15:26:53 +01:00
john30 d71a9623e7 unified output 2014-12-06 15:26:33 +01:00
john30 fe66df7afa added missing code, formatting 2014-12-06 15:23:23 +01:00
john30 482e849a1e use result code 2014-12-06 15:22:41 +01:00
john30 2bd88f45db fix for walking through added messages 2014-12-06 13:46:52 +01:00
john30 73b74f1602 implemented get 2014-12-06 13:02:16 +01:00
john30 38f0ddbe78 simplified message type detection 2014-12-06 12:47:48 +01:00
john30 0e1e724f62 reworked result codes, added new base type VTI (vaillant specific time), added support for replacement value for time types 2014-12-06 12:47:01 +01:00
john30 15249302fb reworked result codes, added new base type VTI (vaillant specific time), added support for replacement value for time types 2014-12-06 12:46:15 +01:00
john30 9cea334407 better ==, added commented code for debug, added todo 2014-12-06 12:35:41 +01:00
john30 73d4d423d6 started implementing get&hex 2014-12-03 23:04:18 +01:00
john30 8b9d935cbf started implementing get&hex 2014-12-03 23:03:20 +01:00
john30 09b2d969be added SymbolString(SymbolString), optimized 2014-12-03 23:02:30 +01:00
john30 508eedbe51 added optional bool wait to remove() and next(), added remove(item) 2014-12-03 23:01:42 +01:00
john30 0cb6095fb5 added optional bool wait to remove() and next(), added remove(item) 2014-12-03 23:01:31 +01:00
john30 53a5b0b809 changed address option to hex, added answer option 2014-12-03 20:58:02 +01:00
john30 eff24a8b06 added hex type 2014-12-03 20:57:22 +01:00
john30 c9015eb4f4 fixed storage for messages by name only 2014-12-01 22:15:30 +01:00
john30 671aa54468 pass log function instead of Logger to avoid dependencies, started decodeMessage for get 2014-12-01 22:14:01 +01:00
john30 3b99ca0b4d corrected #define 2014-11-30 20:25:12 +01:00
john30 3da2c42c0e added getPollPriority() 2014-11-30 20:18:35 +01:00
john30 377c9c61c0 changed from m_isActive to m_isPassive, made defaults more flexible (every char besides r/w/p/0-9 can be used for defining messages to listen to - aka cyc), fix for defaults field list and duplicate message definitions, multiple message types now need to be separated by comma, optimized finding messages 2014-11-30 20:12:59 +01:00
john30 46fb6763bc do not override name when referencing templates, added DataField::dump() 2014-11-30 20:05:35 +01:00
john30 7d46a58ba5 switched to using priority in getMasterNumber() 2014-11-30 20:03:58 +01:00
john30 31145bb057 added check for decode via loaded MessageMap 2014-11-30 20:02:16 +01:00
john30 4649d74fa4 removed commented code 2014-11-30 10:24:39 +01:00
john30 43b50875f9 added defaults, allow poll priority as number only, verbose print csv error position, splitted id into pbsb+id again, moved printErrorPos to data.h 2014-11-30 10:23:50 +01:00
john30 fb3574de8c added defaults, added printErrorPos 2014-11-30 10:22:36 +01:00
john30 f94c981bdc use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream 2014-11-29 20:17:59 +01:00
john30 0f2fb3c27e use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream 2014-11-29 20:17:18 +01:00
john30 9affddf19b use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream 2014-11-29 20:16:16 +01:00
john30 ab3508c187 start switching to BusHandler and MessageMap, move raw logging and dumping to Port and avoid permanent open/close on ofstream 2014-11-29 20:15:06 +01:00
john30 d90dbe8507 introduced BusHandler for managing all possible message transfer types 2014-11-29 20:13:25 +01:00
john30 036036e626 use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream 2014-11-29 20:11:38 +01:00
john30 29f60af55c use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream 2014-11-29 20:10:57 +01:00
john30 bd4d36b27f simplifed Thread and fixed some cleanup 2014-11-29 19:05:20 +01:00
john30 637800125c changed default arg for push_back 2014-11-29 19:04:16 +01:00
john30 11d43843c0 renamed a method, pass some class instances as reference 2014-11-29 19:03:21 +01:00
john30 cfe7f99510 simplifed Thread and fixed some cleanup 2014-11-29 19:01:40 +01:00
john30 b3b19d199e simplifed Thread and fixed some cleanup 2014-11-29 19:01:15 +01:00
john30 7783af84c9 replaced by BusHandler 2014-11-29 18:50:08 +01:00
john30 02a04f00e2 removed unused files 2014-11-23 20:53:40 +01:00
john30 eb8fed70a3 removed unused files 2014-11-23 20:52:10 +01:00
john30 8b3f72211e added message.h/cpp 2014-11-23 20:26:51 +01:00
john30 1a1d02b418 fix for uninitialized member 2014-11-23 20:26:15 +01:00
john30 922217602b added FileReader 2014-11-23 20:25:48 +01:00
john30 4141f8e091 more result codes 2014-11-23 20:23:43 +01:00
john30 59700b0084 added some real examples 2014-11-23 15:18:48 +01:00
john30 da6a5563a6 fix for prepare() 2014-11-23 15:18:30 +01:00
john30 0068a5f8f7 fix tests 2014-11-23 14:56:56 +01:00
john30 4d68d443e4 introduced DataFieldTemplates,a dded missing type HTI, added reading of "_types.csv" 2014-11-23 14:54:27 +01:00
john30 97f050fb16 introduced DataFieldTemplates,a dded missing type HTI, switched to UTF8 encoding 2014-11-23 14:53:22 +01:00
john30 9a5fb321a6 introduced DataFieldTemplates,a dded missing type HTI 2014-11-23 14:50:03 +01:00
john30 2922d25539 introduced DataFieldTemplates,a dded missing type HTI 2014-11-23 14:41:08 +01:00
john30 42ee567e63 introduced DataFieldTemplates,a dded missing type HTI 2014-11-23 14:40:18 +01:00
john30 d19d89a0b0 introduced MessageMap, nicer method names 2014-11-23 13:33:31 +01:00
john30 ea63e9d461 use result_t, added getMasterNumber(), documentation 2014-11-23 13:32:38 +01:00
john30 6e0ddb1e8b removed pt_masterDataID again 2014-11-23 13:31:23 +01:00
john30 aa443d1eb7 adjusted to included weekday on write 2014-11-22 20:57:51 +01:00
john30 3a34267bee using namespace std; 2014-11-22 20:56:53 +01:00
john30 d97bc1bc34 Merge branch 'master' of git://github.com/yuhu-/ebusd 2014-11-22 20:46:25 +01:00
john30 f509d68912 write weekday in BDA/32 and HDA/32, added constant, small fixes, added test cases for HDA 2014-11-22 20:42:39 +01:00
john30 24e46f5b44 store bit count separately, added ignored type (IGN), moved field length definition from part to type and allow adjusting length for bit types, added PartType masterDataID, simplfied 2014-11-22 19:17:30 +01:00
john30 1f33218692 removed absolute positions, fix for part def 2014-11-22 13:37:24 +01:00
john30 e18d3af04f removed absolute positions, fix for part def 2014-11-22 13:36:28 +01:00
john30 2317bd206f removed absolute positions, fix for part def 2014-11-22 13:36:01 +01:00
john30 60f29cecd4 Merge branch 'master' of git://github.com/yuhu-/ebusd 2014-11-22 10:08:42 +01:00
john30 9ba0036191 added data length 2014-11-22 09:59:31 +01:00
john30 64e353737c added check for prepare, print error pos 2014-11-22 09:58:51 +01:00