Commit Graph

170 Commits

Author SHA1 Message Date
skarg a51298876f changed public function from static in Linux port of BACnet/IP. 2012-05-22 19:29:00 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg 9e8c2b0927 Added explicit datalink_cleanup to all demo applications.
Moved bip_cleanup() to port specific files.
This works better for bacnet-stack DLLs.
2012-02-10 22:12:15 +00:00
skarg 0f0c41d347 Added usleep for Tturnaround time before RS485 Transmit. Added tcdrain to wait for write to have written before returning. Thank you, Nikola Jelic! 2012-01-21 01:46:46 +00:00
skarg 087584e85e Corrected baud rate setting for mstpcap demo utility. Thank you, Michael D! 2011-11-26 16:32:17 +00:00
skarg 109bfed70d Updated makefile for mstpsnap. 2011-11-17 03:03:33 +00:00
skarg 81a3ec52e5 Updated file to correct compiler errors and warnings. 2011-11-17 03:02:51 +00:00
skarg 3641e7b40c Updated some Device_Init functions. 2011-10-04 15:57:40 +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 7f109b0abe Corrected compile errors. 2011-08-19 17:40:29 +00:00
skarg 0fe647a678 removed Reader_Mutex, IOMutex, rs485_read_task and placed select inside of getting characters call to reduce CPU usage. 2011-08-19 16:33:07 +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 e85ab0b49f Changed RS-485 in linux port to use FIFO instead of Ringbuffer. Added FIFO to library build. 2011-05-10 16:29:49 +00:00
skarg 1d4e487b29 Adjusted for linux builds without RS485 specific terminal I/O settings. 2011-05-10 15:52:52 +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
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 298038c0d8 Corrected compile error. 2010-08-20 21:56:18 +00:00
skarg 0a02accdb1 Removed deprecated property. 2010-06-26 03:54:22 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
tbrennan3 f92316649b Started a Doxygen module for DataLink layer, for the default DataLink templates and for BACnet/IP. 2010-03-24 03:41:39 +00:00
tbrennan3 a18ca597e5 Added ability to get "my" netmask from the OS-specific network code, so we could construct subnet broadcasts from source addresses.
(Haven't hooked up code to actually do that, yet.)
2010-02-15 21:18:57 +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 38a182261d Added comment to describe timeGetTime. 2010-01-21 21:53:30 +00:00
skarg 5ced5d6f1f Fixed a socket leak. Thanks Piotr! 2009-12-30 15:16:14 +00:00
skarg e37fd2d56b Updated comment. 2009-11-19 18:21:56 +00:00
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg 967b86721f Updated some old demos for the new RP handling. 2009-08-23 03:36:11 +00:00
skarg db61a1122f Ran indent script. 2009-07-29 18:06:33 +00:00
skarg 551f2767e0 Ran fixup script. 2009-07-29 18:05:07 +00:00
skarg 6adf97553f Updated code to handle Borland 5.5 Compile. 2009-07-29 17:53:32 +00:00
skarg adf0f282e7 Added delay and flush to correctly flush RS485 buffer. 2009-07-27 18:48:06 +00:00
skarg f30a21a032 Converted mstpcap to use timer rather than sleep for timing. 2009-07-27 17:50:09 +00:00
skarg b85c4355d0 Indented according to standard indent rules for this project. 2009-04-18 20:50:04 +00:00
skarg 134bbade5d Removed extra debug printf in MS/TP module. 2009-02-27 22:36:49 +00:00
brayra 9a2f058623 Added usleep(30) to RS485_Check_UART_Data allowing the process to give up time to the system,
rather than hogging the processor.
2009-02-27 16:33:16 +00:00
skarg c23b6c2742 Corrected grammar. 2009-02-20 16:00:19 +00:00
skarg 552fe5e717 Added Added "--help" command line option to mstsnap. 2009-02-20 15:58:30 +00:00
skarg 209f63b1dc Adding time stamp to mstpcap file name. Untested. 2009-02-15 13:27:41 +00:00
skarg eb5838c3d5 Cleaned up some makefiles. 2009-01-17 12:49:47 +00:00
skarg a4cd23761c Added optional local print for mstp monitor. 2008-11-29 14:37:49 +00:00
skarg d1a1c1c8a6 Indented. 2008-11-24 12:48:09 +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 23d2cd6592 Corrected compilation on linux - added conditional min macros. 2008-10-29 03:49:43 +00:00
skarg 2797764d65 Corrected the MS/TP capture to limit data to the input buffer. (again) 2008-10-28 18:14:00 +00:00