4af9518ce5
correct fprintf format type for size_t
2012-07-24 23:11:02 +09:00
9ef64d0fb5
added contributor
2012-07-10 19:52:47 +09:00
69373692b1
Merge pull request #14 from jakubovsky/master
...
Few improvements
2012-07-09 08:03:41 -07:00
b95f29fcc8
mbus_connect() and mbus_disconnect() return 0 on success and -1 otherwise
2012-07-09 12:33:32 +02:00
5f9052b284
Renamed mbus_recv_frame_dummy() to more descriptive mbus_purge_frames()
2012-07-09 10:48:13 +02:00
e70c07e8f3
TCP and serial specific data structs renamed.
2012-07-06 11:29:46 +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
d7f63586c6
Merge pull request #13 from lategoodbye/master
...
Few bugfixes
2012-07-05 06:30:52 -07: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
34255c7237
free_auxdata() added to mbus_handle interface for freeing context specific data
2012-07-04 19:08:51 +02:00
645e5eb482
mbus_serial_connect() is ready
2012-07-04 18:38:50 +02:00
c848090f56
Rebuilding M-Bus context structs in progress
...
- changed local library file includes from <> to ""
- get rid of 'if (is_serial)' conditions
- mbus_context_serial() and mbus_context_tcp() allocates memory and initialize context specific function pointers
- simply mbus_connect() called instead of mbus_connect_tcp() or mbus_connect_serial()
- context specific data can still be accessed via (void* auxdata) pointer
- strdup(3) to copy host IP into TCP context struct
2012-07-04 17:18:36 +02:00
9f9e0fc008
Fixed mbus_recv_frame() return value to -1 when invalid m-bus handle
2012-07-03 17:17:10 +02:00
5d079254cc
Extended mbus_recv_frame() error codes, improved collision handling
...
- handling TCP connection reset and read(2) timeout
2012-07-03 14:35:07 +02:00
2093b4a9c0
Merge remote-tracking branch 'upstream/master'
2012-06-23 14:29:14 +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
0d610b6a27
- fixed check of mbus_sendrecv_request and mbus_recv_frame
...
- initialize memory in mbus_sendrecv_request
- used defines for special address instead of magic numbers
2012-06-20 00:21:28 +02:00
82aec2ff97
repo cleanup, no need for .in files in the repository
0.8.0
2012-06-18 21:11:49 +09:00
d3e4decf59
maintenance updates for new release 0.8.0
2012-06-18 21:08:10 +09:00
34e3e3f8f9
cleaned up debian packaging directory
2012-06-18 21:06:44 +09:00
9e637e7752
added debian packaging files
2012-06-18 21:04:59 +09:00
d8819cb21f
Merge pull request #12 from lategoodbye/master
...
Improved serial communication
2012-06-11 20:40:00 -07:00
7c304b34a0
Always wait until complete frame has been transmitted
2012-06-11 21:22:31 +02:00
2f5476c3a5
Removed sleep workaround
2012-06-10 19:23:59 +02:00
f492e97186
Improved model mapping
...
- added und fixed mapping
2012-06-10 19:19:46 +02:00
1a742682c7
Merge pull request #11 from lategoodbye/master
...
More bugfixes for scan and data readout
2012-05-29 17:59:53 -07:00
49b49d077b
Sync behaviour from serial to TCP connections
2012-05-29 21:34:20 +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
c2f7c0d48e
Improved wildcard search results (still not all meters were found)
...
- sleep 1 second after each init frame
- select secondary address with enabled FCB bit
2012-05-29 20:51:34 +02:00
989eada28a
Improved model mapping
...
- initialize result buffer
- added new mappings
- added und fixed man codes
2012-05-29 20:33:09 +02:00
0cb23161e7
Added receive timestamp for each data record in XML output
2012-05-29 20:17:05 +02:00
9fd35b781b
Improved collision detection for scan
2012-05-29 19:39:56 +02:00
ad4d307b57
Fixed endless loop in receive function in case of a incomplete frame
...
(limit = 3 timeouts)
2012-05-29 19:15:52 +02:00
198a0df8f0
Merge pull request #10 from lategoodbye/master
...
A lot of bugfixes especially for serial connections
2012-05-20 05:47:30 -07:00
dd97141f21
Removed directory test from building (not so good idea)
2012-05-20 13:03:03 +02:00
cc39adc36a
Fixed bug in wildcard search
...
- use valid reply to receive select result
2012-05-20 04:08:15 +02:00
56bbccc0c1
Added a new function to select a device by it's secondary address
2012-05-20 03:58:16 +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
ef630f2e5d
Added a new function to select a device by it's secondary address
2012-05-20 03:52:15 +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
1fb68d1e05
Fixed primary address scan
...
- scan only normal addresses (0-250)
- show collisions in scan result
2012-05-20 03:35:04 +02:00
eb96afcd7c
Added new messages after changing baud rate
2012-05-20 03:31:05 +02:00
a60277a5e6
Merge branch 'master' of git+ssh://git@github.com/lategoodbye/libmbus.git
2012-05-20 03:25:30 +02:00
f41b982093
New events for wildcard search
2012-05-20 03:22:02 +02:00
67af972e69
Added a new product name database
2012-05-20 03:12:10 +02:00
45ebed05b7
Added error message in case of invalid parameter
2012-05-20 03:05:26 +02:00