Commit Graph

35 Commits

Author SHA1 Message Date
skarg ba20c1cc03 Corrected problem in MS/TP state machine where device was sending PFM frames to itself (destination address same as source address) when solemaster is true (Thank you to John Stachler!). 2007-09-28 23:38:54 +00:00
skarg 62a7475817 Trimmed unnecessary code from MS/TP receive FSM. Updated rs485 for AVR and ARM. 2007-09-07 05:42:53 +00:00
skarg 794362580b Corrected bug in WAIT_FOR_REPLY state of MS/TP Master Node. 2007-09-05 23:12:23 +00:00
skarg 8aa905ce68 Corrected unit test builds on Linux. 2007-08-31 22:05:02 +00:00
skarg fd91a35a5c Changed input buffer size check to be more correct and maintainable. 2007-08-31 21:04:14 +00:00
skarg 22b3118ead Added thought provoking comment. 2007-08-31 00:23:07 +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 53f2fc3f35 Updated the unit test make files. Fixed the init sections of MS/TP monitor (rx_fsm) modules. Corrected the rx_fsm code to check the correct return value of the read. Fixed the return value of the RS485 prototypes. 2007-08-18 16:14:06 +00:00
skarg 31d78501c0 Modified while testing the AT91SAM7S port. Needed to include MS/TP Silence Timer in ISR, and didn't want to call a function. 2007-08-18 00:04:33 +00:00
skarg f1deb0b1fe Tweaked the Atmel ARM7 MS/TP settings. 2007-08-09 23:53:18 +00:00
skarg 77e55bcbd4 Cleaned up compiler warnings on Win32 from Borland compiler. 2007-07-19 21:51:46 +00:00
skarg d13b0ce854 Modified the Win32 datalink for MSTP to be more effecient by using semaphores for dataready signals. Also increased task priority. Still not fast enough - needs to respond to PFM and Token within 20ms to be compliant. 2007-07-16 17:03:08 +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 ed6c26e924 Modified the makefile for demo/server to work with BACnet MS/TP with a USB RS-485 from SerialGear. Still in testing, but it compiles, runs, and receives frames. Might be an issue with timing. 2007-07-14 00:41:35 +00:00
skarg b6324bce5b Moved the MS/TP state machine files to the root directory since they are common between Linux and Windows builds (and perhaps others as well). It was getting to be too much work to maintain a nearly identical version in each port. 2007-07-14 00:20:31 +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 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 2dd0cd5d69 Working on MS/TP port to PIC18F series microcontroller. 2006-08-14 20:59:09 +00:00
skarg dafc55bf9f Working on the Datalink MS/TP layer - no working yet. 2006-08-14 13:59:07 +00:00
skarg dee63d45bc Changed all the C++ comments to C comments using comment.sh script. 2006-02-19 01:32:09 +00:00
skarg d6a891f0d1 running the indent on the files. 2006-02-18 23:11:25 +00:00
skarg b1d46ffa8c ran the indent program on the source files to make them consistent. 2006-02-18 22:34:36 +00:00
skarg fb8d423bde corrected unit tests 2005-06-18 23:36:08 +00:00
skarg 4646df1188 modified while adding pic18 support 2005-04-20 17:09:26 +00:00
skarg fe5b2f86e7 Modified to compile correctly using MicroChip C18 compiler (mcc18), although I had to turn on all optimizations to fit it into the 18F252 32k code space (88% full). 2005-04-13 20:52:18 +00:00
skarg b6c2937da1 Moved some functions around to reduce amount of prototypes 2004-10-03 21:48:41 +00:00
akchu e5274a8881 1) Created MSTP_Create_And_Send_Frame function.
2) Moved MSTP_Create_Frame call out of rs485.c and into mstp.c
3) Modified all previous calls to RS485_Send_Frame calls to call
MSTP_Create_And_Send_Frame instead.
2004-10-03 17:20:48 +00:00
akchu b27c45d756 Changed TRUE->true, FALSE->false, "stdint.h"-><stdint.h>,
"stdbool.h"-><stdbool.h> to make code C99 compliant.
2004-10-03 16:17:22 +00:00
skarg 9a9e31ace6 Initial revision 2004-09-22 19:08:48 +00:00