skarg
3fca74bcfb
When MAC address length is zero, assume it is a broadcast. Updated the MS/TP to understand this.
2014-11-02 05:27:14 +00:00
skarg
ba3242aafd
indented using indent.sh script to get uniform looking code for release
2013-03-13 22:17:13 +00:00
skarg
79c37f7d09
Added a note to MS/TP FindNewSuccessor transition after BTL CR: if NS=TS-1, this node could send PFM to self!
2013-02-21 23:10:23 +00:00
skarg
f8450f40bb
In WAIT_FOR_REPLY state of MS/TP, changed next state of frame type TEST_RESPONSE to be DONE_WITH_TOKEN to match standard. Thank you, Eric Xu!
2012-10-17 22:33:01 +00:00
skarg
48e2c60ce2
indented to standard from script
2012-05-13 15:07:12 +00:00
skarg
26b5fdd3d0
Returned Tusage_delay to the MS/TP state machines to fix excessive Reply-Posponed messages when received packet is decoupled from immediate handling. Some BACnet routers do not handle Reply-Postponed correctly and drop the subsequent valid reply.
...
Added Slave Node FSM to linux/win32 MS/TP layer.
Added PDU queue to Linux MS/TP datalink layer.
2011-08-24 12:33:20 +00:00
skarg
3e1cb1847f
Indented project.
2011-08-17 02:27:11 +00:00
skarg
db95a8d1dc
Added test in MS/TP datalink for MAC Address in the Master Node range (0-127).
2011-03-01 23:06:24 +00:00
skarg
2a0bf4926a
Performed standard indent script indent.sh on project files.
2010-12-15 19:02:40 +00:00
bacpack
a639864cc8
In bip.c getter and setter functions of IP address and Port number expect and return values in the network byte order. All ntoh and hton were eliminated from bip.c.
...
All other modules changed to be consistent.
arm7 port left unchanged.
2010-11-04 13:30:26 +00:00
skarg
57781b40cb
Changed Tturnaround time in MS/TP modules to be a minimum of 2ms, or use a dummy transmit of 4 bytes while the transceiver is disabled. 1ms delay will always give smaller than 1ms of delay due to silence timer tick.
2010-10-18 20:42:26 +00:00
skarg
b54218939e
Added extra sub-state for MS/TP from Addendum 135-2008v. Tested with ports/bdk-atxx4-mstp/ code on the BACnet Development Kit. Clean compile on src/mstp.c, ports/at91sam7s and ports/atmega168, but untested. All other changes were not compiled or tested.
2010-10-07 15:52:45 +00:00
skarg
c04e69da8c
Fixed EOL, indent.
2009-10-24 17:02:59 +00:00
skarg
69fad0502a
Changed MS/TP idle state: when no-token timeout occurs, clear the receive frame flags in case a message was received and timeout occurred, which may cause MS/TP to stop working in optimized dlmstp loops which don't check for new events when either of those flags are set. Thank you, Jason!
2009-09-17 03:38:20 +00:00
skarg
4b422d6c1c
Changed modulo and division operations on 256 to bit shift using include/bytes.h macro to improve code size on architectures that don't do division natively.
2009-08-20 14:38:25 +00:00
skarg
dcd6cbed52
Updated Removed the unused state of MSTP_RECEIVE_STATE_HEADER_CRC. Hopefully this doesn't break too many implementations!
2009-07-17 16:02:31 +00:00
skarg
d9fea88227
Removed the unused state of MSTP_RECEIVE_STATE_HEADER_CRC. Hopefully this doesn't break too many implementations!
2009-07-17 15:41:37 +00:00
skarg
b85c4355d0
Indented according to standard indent rules for this project.
2009-04-18 20:50:04 +00:00
kingdl802
04d7ea9672
the list of include directories had to be updated because the
...
paths have changed.
2009-04-09 19:41:48 +00:00
skarg
75bd715bd4
corrected possible overflow in dlmstp.c for PIC and RTOS-32. Thank you Martin!
2009-03-06 11:04:51 +00:00
skarg
c7a5c05ac7
Moved send I-Am to a send module and out of iam.c.
2008-11-12 15:38:43 +00:00
skarg
3a0f109d66
Added h_npdu to demo lib and example projects.
2008-09-07 04:23:44 +00:00
skarg
10191b70de
Changed _Bool to be int8_t type rather than enum type. This should fix size compatibility with C++.
2008-08-25 15:34:16 +00:00
skarg
eb7196668c
Corrected the MS/TP TEST REQUEST state such that it now returns the data from the request per BACnet 9.3.5 which says "The data, if present, shall be that which was present in the initiating Test_Request." Thank you to Martin Labbe!
2008-03-09 13:52:48 +00:00
skarg
1477603af6
indented.
2007-11-29 16:39:48 +00:00
skarg
411d6c1b24
Indented.
2007-11-29 15:56:53 +00:00
skarg
35f2aaed00
Corrected race condition where the MS/TP Master Node FSM may miss the first packet since it may not run until after the first packet has arrived if the ReceivedValidFrame flag is set to false during MSTP_MASTER_STATE_INITIALIZE. Thank you to anand!
2007-11-16 13:27:51 +00:00
skarg
522d9f4f7d
Corrected poll station for sole master PFM transition.
2007-09-29 14:24:28 +00:00
skarg
e53f38dd40
Changed the MSTP_MASTER_STATE_ANSWER_DATA_REQUEST state to always send a REPLY_POSTPONED by
...
commenting out the section that checks for new packets to send. It was not the intent of the BACnet standard, but it makes the Master Node FSM compliant. It's either that or re-parse the message for a matching apdu and invoke id, and then defer if the next message does not match. The problem happens when an unconfirmed request (i.e. WhoIs) is followed immediated by a confirmed request (i.e. ReadProperty) before the device can respond to the unconfirmed request (i.e. the I-Am is queued in the Transmit buffer).
2007-07-14 00:09:16 +00:00
skarg
a18d338f00
Set the EOL-style to native for most files using svn propset command. Some files also had inconsistent line endings. Seems that subversion doesn't set the eol-style automatically when files are created unless it is configured for autoprops. The autoprops setting is local to the subversion installation and not the project.
2007-06-18 16:22:24 +00:00
skarg
9069c939da
Fixing indent oops which removed the contents of all these files.
2007-06-14 05:33:15 +00:00
skarg
ea4863ca25
Indented.
2007-06-14 05:14:26 +00:00
skarg
8026dc003b
Combined the interface set into the datalink_init for all the datalink layers. Changed all the demo programs to use datalink_init instead of specific datalink functions.
2007-05-25 01:08:42 +00:00
skarg
5dd8c6da91
Converted to standard indent style.
2006-10-07 14:13:34 +00:00
skarg
19c5a20205
Converted C++ comments to C comments
2006-10-07 14:12:16 +00:00
skarg
07a1077b2d
correcting the npdu encoding for handlers.
2006-09-22 21:16:20 +00:00
skarg
dd9b726b5e
corrected state transition in WAIT FOR REPLY state.
2006-09-21 11:17:10 +00:00
skarg
bb9351fa9f
moved rs485.h into ports.
2006-09-16 19:49:44 +00:00
skarg
310b4c1479
moved the mstp state machines into the ports directories since they will be custom for each port. Some ports will be single threaded while some will use an RTOS.
2006-09-16 17:48:52 +00:00
skarg
b632f158f4
Changed the MS/TP state machine to cheat a little in order to make the timing contraints.
2006-09-05 20:28:59 +00:00
skarg
42e0033c98
Fixed a few more bugs in MS/TP, and leaned it out some more.
2006-08-29 20:42:26 +00:00
skarg
3d0abf778a
indented
2006-08-29 10:48:04 +00:00
skarg
0f851d57f0
changed delays to yields.
2006-08-29 10:32:32 +00:00
skarg
23a8636b90
Added reset of SilenceTimer in the SendFrame part of MS/TP that had been missing. Refactored more master state machine states.
2006-08-28 21:13:37 +00:00
skarg
6b18bb8935
Finally got MS/TP communicating on ports/rtos32. I still need to verify that it is doing things correctly since it seems a little slow to respond to service requests. Still more work to do refactoring the state machine.
2006-08-25 21:36:56 +00:00
skarg
52ee5a5619
Getting the RTOS-32 port working again. Also getting the MS/TP state machine working. Soon!
2006-08-23 21:32:16 +00:00
skarg
b686fa7ca7
changed c++ comments to c comments using comment.sh script.
2006-02-19 01:33:30 +00:00
skarg
d6a891f0d1
running the indent on the files.
2006-02-18 23:11:25 +00:00
skarg
89e1d3cd70
Adjusted RTOS-32 port for common demo programs.
2006-02-05 03:02:49 +00:00
skarg
d7ed1480fe
Moved the demo objects into demo/object directory, and updated the makefiles and unit tests to handle the move.
2006-01-10 20:36:30 +00:00