Commit Graph

47 Commits

Author SHA1 Message Date
skarg 781da0b53b Fixed MSTP dropped packets on Linux by fixing usage of ptheads condition variable. Turns out that condition variables cannot be used on their own. They need to be paired with a shared state such as a flag variable protected by a mutex. 2014-11-15 22:03:17 +00:00
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 cf882642a8 Changed Ringbuf API: Ringbuf_Pop_Front is now Ringbuf_Pop, and now it copies the buffer into parameter and returns boolean. Original method was not safe since it returned a pointer to the element but freed the buffer element. Changed Ringbuf_Get_Front to Ringbuf_Peek with no change in functionality, to make names more consistent.
Updated all the MS/TP datalink layer implementations that use Ringbuf library.
2013-01-08 20:48:34 +00:00
skarg 5aa78916ae Fixed Nikola Jelic's name in comments, originally written in Cyrillic script. 2012-09-27 19:24:50 +00:00
vasyl-tkhir 2f73bcae44 BACnet router added. 2012-09-27 14:36:11 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg 9f0dfeed1c Fixed Linux datalink call to Master Node FSM which was not doing immediate transitions, and could lose whole messages. Thank you, Nikola Jelic! 2011-09-02 14:35:16 +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 2f008a9a2b No need for sched_yield in master_fsm_task due to select in getting the byte. No need for Timer_Mutex since only one task ever uses timer functions. Thank you, Nikola Jelic! 2011-08-19 18:05:45 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
skarg b863996349 Added yield to lower CPU usage when no characters are arriving. 2011-05-10 22:00:32 +00:00
skarg 267f5c03b3 Corrected the Linux MS/TP and RS-485 modules. Thank you to Никола Јелић! 2011-05-10 15:44:53 +00:00
skarg 3f22c7e5ff Increased the default values for Tusage_timeout and Treply_timeout for testing on Linux. 2011-01-18 19:45:52 +00:00
skarg d6e74ba51b Fixed compiler warnings when compiled MS/TP datalink on Linux. 2011-01-14 15:34:28 +00:00
tbrennan3 53d0a1510c The beginning of doxygenation, for the Linux port:
As a first step, added an @file description for each file.
2010-02-14 05:46:31 +00:00
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg 6adf97553f Updated code to handle Borland 5.5 Compile. 2009-07-29 17:53:32 +00:00
skarg 134bbade5d Removed extra debug printf in MS/TP module. 2009-02-27 22:36:49 +00:00
skarg 0ffbb64c13 Indented with standard indent rules. 2008-08-23 12:38:26 +00:00
skarg 1142eb7202 Converted the Linux MS/TP datalink module to use semaphores (pthread conditions) instead of sockets or queues. Copied module from Win32. Untested. 2008-08-10 13:51:32 +00:00
skarg b310bd055a Indented with indent.sh script. 2008-08-05 13:53:57 +00:00
skarg 2b55f1aabf Testing MS/TP on Linux. Queues not working yet... 2008-07-27 17:29:37 +00:00
skarg c6b60cc676 Testing MS/TP on Linux. 2008-07-27 15:27:17 +00:00
skarg cf9d15631a Indented using indent script. Corrected any C++ comments using the comment script. 2008-03-10 21:00:48 +00:00
skarg e208feedae Corrected a couple of comparisons, and made the socket init more complete. 2008-02-20 22:35:20 +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 e7a49d79ee Converted the linux build to use BACnet library. Moved some BACnet address functions to bacaddr.c/h. 2007-08-23 18:56:38 +00:00
skarg e16ae6eded Updated dlmstp project on Win32. Added rx_fsm.mak for Borland. 2007-08-23 00:34:38 +00:00
skarg 4f42b20590 Modified the MS/TP Master Node state machine to handle Data Expecting Reply in a more appropriate manner. Updated the MS/TP monitor rx_fsm, and updated the linux and windows dlsmtp for new functionality. 2007-08-23 00:28:14 +00:00
skarg eabe6dee96 Converted SilenceTimer on MS/TP datalink to be a function so that it can be atomic on 8-bit microcontrollers. 2007-08-19 12:30:51 +00:00
skarg 519e9fd31b Converted comments from c++ to c. 2007-07-26 14:25:25 +00:00
skarg 038f719a44 Corrected rx_fsm MS/TP monitor demo. 2007-07-24 23:15:23 +00:00
skarg 382766d7c4 Modified the API between mstp and dlmstp to better handler multiple MS/TP ports. 2007-07-16 14:19:49 +00:00
skarg d9e1af4b2e Added buffers for MSTP port structure. 2007-07-14 01:07:48 +00:00
skarg 3d54a5cd50 Corrected compiler warning. 2007-07-03 05:18:36 +00:00
skarg 3869b55fea Updating Win32 MSTP datalink layer. Testing. 2007-07-03 00:44:48 +00:00
skarg c1be9b7adf Compiled MS/TP for server demo using sockets. Doesn't seem to keep up with token passing. Still investigating. 2007-07-02 16:47:16 +00:00
skarg 5435d46621 Rewriting the dlmstp for Linux to use sockets. In progress, not compiling. 2007-07-02 14:41:59 +00:00
skarg 63300e86bd MSTP on Linux appears to be function for the server demo, but dlmstp needs to be rewritten to use posix queues or sockets, and multiple threads for the state machines. 2007-07-01 01:23:12 +00:00
skarg 758b32de29 Modified the server to work with MSTP datalink. Still in progress. 2007-06-30 23:36:54 +00:00
skarg 0e3c2e01af Updated dlmstp to be consistent with other datalink layers. 2007-06-30 23:11:58 +00:00
skarg ade401f44b Modified the MS/TP datalink on Linux to be able to run correctly as a datalink layer when built with the demos. 2007-06-30 22:47:23 +00:00
skarg 3ceed4535e Corrected the RS485 initialization for MS/TP on Linux. Added args to functional unit tests. 2007-06-30 22:30:13 +00:00
skarg 1824d4a95e Testing the MS/TP datalink layer on Linux. 2007-06-29 22:46:19 +00:00
skarg 250cc92e00 Added MS/TP to Linux using the USB->RS485 from SerialGear. Tested Receive only using the rx_fsm.c and rx_fsm.mak functional test. Works as an MS/TP network monitor. 2007-06-29 21:22:46 +00:00