Commit Graph

27 Commits

Author SHA1 Message Date
c2a3f4b871 Fix event handling after moving callbacks to mbus handle 2013-10-13 21:56:15 +02:00
55d4c0fba2 Remove trailing whitespace
Signed-off-by: Stefan Wahren <info@lategoodbye.de>
2013-09-13 17:53:33 +02:00
8b9d6e735e sync mbus-tcp-request-data-multi-reply with serial
make init_slaves and parse_abort static
fix return value of parse_abort
remove unused variables
free resources before exit
2013-07-01 08:16:20 +02:00
a61714d26d Added frame option to mbus-serial-request-data-multi-reply
Improved parsing
2013-06-28 14:10:15 +00:00
4d85dad403 change TCP port datatype from int to uint16_t
because int doesn't match the range
add range check in every TCP binary
2013-05-12 21:26:38 +02:00
f6601ca40f print all errors on stderr in all binaries 2013-04-26 08:18:17 +02:00
e248d6e421 replace address parameter checks with new helper functions 2012-12-31 13:44:03 +01:00
404e245af5 replace magic number with define 2012-12-20 20:42:10 +01:00
dc948566db remove unnecessary POSIX header 2012-12-10 21:26:48 +01:00
606d238a6d Merge branch 'master' of
git+ssh://git@github.com/lategoodbye/libmbus.git

Conflicts:
	mbus/mbus-protocol-aux.c
2012-10-04 22:43:06 +02:00
501b105d01 unify m-bus slave init 2012-09-01 22:52:55 +02:00
c86ed10af7 Fixed result check for mbus_connect 2012-07-13 23:01:29 +02:00
5f9052b284 Renamed mbus_recv_frame_dummy() to more descriptive mbus_purge_frames() 2012-07-09 10:48:13 +02:00
78a6013d75 mbus_recv_dummy() instead of while loop. 2012-07-06 11:21:24 +02:00
6b2d43617f Merge remote-tracking branch 'upstream/master' 2012-07-06 11:14:47 +02:00
433744c80a Fix problem with multiple selected devices (secondary address)
- resend SND_NKE to ensure all devices are deselected, because the first
SND_NKE could get lost
2012-07-04 21:21:01 +02:00
736181b35e Revert "Fix problem with multiple selected devices (secondary address) resend "
This reverts commit 1fa5e202fb.
2012-07-04 21:15:55 +02:00
1fa5e202fb Fix problem with multiple selected devices (secondary address)
resend
2012-07-04 21:14:00 +02:00
ec50ab9286 Examples from bin directory updated. API usage updated in mbus-protocol-aux.h. 2012-07-04 19:49:54 +02:00
d025b27b07 - fixed check of mbus_sendrecv_request and mbus_recv_frame
- initialized memory in mbus_sendrecv_request
- used defines for special address instead of magic numbers
2012-06-20 00:23:25 +02:00
bf12395af9 Fixed segmentation fault in case of much XML output
Because of the multi telegrams it is impossible to use a fixed
buffer for XML output on the stack. Now the buffer is allocated on the
heap. These also leads to a change in return behaviour for all XML
functions, because it's possible that the buffer is NULL. For variable
data this buffer grows every time there are less than 1024 bytes left
for a new record.
2012-05-29 21:24:30 +02:00
69bc06eeb1 Improved readout by secondary address
- save 1 REQ_UD2 by selecting instead of probing seconday address
2012-05-20 03:55:36 +02:00
d12d7dd052 Fixed bug in multi telegram readout with secondary address
- init slave before selecting secondary address
2012-05-20 03:44:06 +02:00
90aec91bff Added frame tracing (hex format) via debug switch 2012-05-15 22:57:03 +02:00
7d482e47f7 use the max frame limit 16 also for serial multi-telegram transfers (some devices does not seems to stop reporting 'more data follows', so unless we set a hard limit it will loop forever. so this limit should probably be made a cmd line argument) 2012-05-13 16:39:48 +09:00
726f837d2d improved error handling 2012-05-13 16:34:12 +09:00
74bb173147 Added multi-telegram support for serial connection 2012-04-23 20:56:26 +02:00