// rev.h Revision 1 - baseline for PC3 In theory compatible with all existing sites Revision 2 Added 'bulk add users' button with many options Added 'search' button to users screen allowing search for any type of data Added submenu for parking - compatibility with early parking system in Melbourne Added 'monitor only' selection for technician monitoring Added operator_less_access function to stop editing, deletion or creation of operators with more access than current Made parking zones load in with access levels Fixed bug in archive file which made directory change to drive A: and mucked things up Removed additional extra data files from backup which weren't needed Status working for doors and lift levels Revision 3 Changed operation of parking zones and people counters Created People Counter entry in hardware menu and in device menu with live status Created parking groups entry in hardware menu and in device menu with live status Removed people counters and parking from setup menu made automatic conversion of operator types for these changes and logging of new actions Created drop-down list in users for site codes (general firmware) Lengthened connect time for modem connections to 90 seconds Revision 4 Card parameters for mag-stripe cards Support for general alarm controller including status reporting Parking report Revision 5 Release candidate. Includes all PIG and Alarm status reporting for new firmware Revision 7 Fixed bug at Wang with reporting of exit requests etc. Fixed problems with 'remember windows' thingo so that windows don't move too far. Revision 8 Controller access levels added Revision 9 Modifications to access level stuff for Jack Gallagher Club Key Revision 10 Fix up loading of timezones for Jack Gallagher Club Key Revision 11 Fix up general firmware format for keys for Jack Gallagher Club Key so he can upgrade properly Revision 12 Fix up reporting of door status for normally open switches Fix up scanning of odd-numbered length keys in the Club Key data file Revision 13 Fix up reporting of long imprinted numbers for keys Optimise download of CALs and DALs so they don't do it unnecessarily Revision 14 Fix up downloading of deleted holidays and timezones. Changes for Brazil/universal firmware - door options, dual technology etc Changed General flag to Universal[general] and made other options less accessible Added 'do not press this button' button! Fixed 'month change' incorrect problem - minus one month. Added duress digit for dual technology system by adding 1 to PIN number Revision 15 Fixed up entry/exit door reporting for brazil/universal Revision 16 Fixed up problem where on a card system editing a user sometimes deleted the wrong one Added 'sort' checkbox to history report screen Fixed up problem with access levels/parking zones integration for Edgecliff Centre. Revision 17 Fixed up problem where on a key/universal system changing a users access level to 0 didn't remove the user Added 'another report' button to the history report display screen Stopped deletion of users who didn't exist in a controller with univeral firmware Revision 18 Fixed up problem where CALs were only being recalculated for the first controller on an access level edit Revision 19/20 Added MessageBeep(-1) to alarm messages to make the PC speaker beep as well as sound card Enabled editing of areas from PIG addition screen Added editing of inputs for floor destination reporting and intercom for lifts Made reports able to be run multiple times while retaining data from previous report specification Made CALS only load into controllers when doing a full reload Fixed problem with menus not working due to incorrect optype file on an upgrade Fixed problem where spurious extra info for doors on upgrade from dos version Fixed problem where login window kept moving slightly each time logon or logoff Fixed problem for Jack Gallagher with long lines of information coming for access levels club key Revision 21 Lots of stuff for firedoor control Various fields for HLI at 601 Pacific Highway Fixed problem where users being sorted 'in the background' with club key system Fixed problem for Vangren re loading of PIN numbers into universal controllers (incorrect deletion) Revision 22 Fixed problem where users with numbers greater than 32767 on card systems and universal were assigned user number 0 and being lost. Revision 23 2 port pig field added to controller screen lots of changes for HLI at 601 Pacific Highway Revision 24 Fixed problem with card numbers too long at 7-15 macquarie place Fixed problem with reporting of users with access to various lift access levels Revision 25 Fixed up various problems with conversion of existing access levels and holidays PC2 Made it possible to not display bad key reads (user id 0) for Chris Begg Revision 26 Fixed up problem with reporting of lift access levels/relays 7-15 Mac place Revision 27 Added 'new format' and 'old format' buttons to user screen for Wayne (Hildebrandt) Made modem initialisation happen on startup with modem system to stop bogus online messages Fixed list of relays in firedoor controller not selecting correct one after edit. Fixed list of exit request inputs in firedoor controller not being refreshed correctly. Made area 'pulse time' work for alarm. Revision 28 Automatically assigns registration system to controller 1 if undefined Revision 29 Fixes problem with modem initialisation which crept into rev 27 Introduces track 1 card reading options for magstripe cards Revision 30 Fixes problem with report size greater than 16000 reports Revision 31 Fixes problem where registration reader events causing GPF with universal firmware Revision 32 Fixes small problems with bootstrap loader. Fixes problem where alarms don't download properly with universal firmware Revision 33 Changed so with universal firmware card parameters always download - not dependant on controller type Revision 34 Removed 'arm', 'disarm' and 'normal' buttons (which didn't work anyway) from the devices/areas screen Added reporting for areas and pigs Revision 35 Supports 400 pigs 10 areas per controller Added 'display long card' option for aba card systems with general firmware Fixed up bulk add users - imprinted number now works, cards can be added with sitecode Revision 36 Added remote expiry feature. Revision 37 Fixed remote expiry feature so it doesn't affect existing systems. b Revision 38 Advanced holidays - holiday periods, automatic detection of firmware type etc. Revision 39 Bug fixes for QBE Rhodes - alarm status reporting Revision 40/41 Make credentials display etc. Revision 43 - incorporates PIG-2 support as well as lots of other stuff. Revision 44 - fixed bug where upgrading to a new version of PC3 removed all the card numbers (AAARGGH!!!) Revision 45 - up to 254 areas supported Revision 46 - automatic download after reader offline event 601 pacific hwyw Revision 47 - fix up bug with editing of two lift banks with the same names Revision 48 - added the ability to sort user reports by data 1 and data 2 by name or card number added fbt report added activation/deactivation to bulk add screen Revision 49 - added support for input/relay boards on 'pig' type controllers Revision 50 - added support for programmable inputs on door controllers Revision 52 - added attendance reporting for Bermel added 'use-count' reporting in user list and bulk add for Mainline Revision 53 - added support for touching pigs to register on 4-door controller Revision 54 - time and attendance reporting module added Revision 55 - fixed problem where first transaction lost when running PC3. Revision 56 - diagnostics flag added for magstripe systems (parameter 10) made sorting by imprinted numbers on a character basis rather than by no. Revision 57 - fixed bug in timetable report stopping long names from being processed properly. Fixed bug where start date in reports getting corrupted when a report is cancelled. Revision 58 - added password timout functionality Revision 59 - fixed up a few glitches with reporting of door status for programmable input controllers Revision 60 - allowed selection of two line versus one line reporting format for transactions Revision 61 - fixed problem where external interface was not saving user data file always Revision 62 - fixed problem with archiving of history logs post y2k Revision 63 - Support for 3 alarm relays for Wayne Kennedy Hildebrandt Revision 64 - support for input isolate/deisolate events Revision 65 - revamped arming and disarming transactions to make them more sensible. Now when any attempt to arm is made (by PC, user at reader, input or timezone) it is recorded as an 'attempt to arm' and the buzzer timer is started. At the expiration of the buzzer time one of 2 new transactions is generated - a 'successful arming' transaction or a 'failed arming' transaction. Revision 66 - report window font size resized to 9 points to fit alarm transactions in. Revision 67 - fixed bug for channel 10 - limited to 256 access levels Revision 68 - importing lock.dat doesn't overwrite existing records Revision 69 - door option for 300ms pulse Revision 70 - fixed problem with door access levels > 256 (again - channel 10) Revision 71 - global antipassback media centre Revision 72 - fixed problem where reports didn't print more than 256 access levels added option to sort access levels alphabetically Revision 73 modem options for no wait for response, timeout Revision 74 archive data fixed up for year 2000 problem Revision 75 changed the modem timeout routine for QBE insurance Revision 77 Pigs all changed to inputs ` Support for lots of relays on pig controllers Revision 78 More changes for universal R2 firmware. Sent to Sid (Thyme software) for PNG Revision 79 Universal R2 firmware - number of readers for PIG firmware Revision 80 Site code support for Universal R2 firmware - 10000 users in ordinary chip Revision 81 2 port pig button in alarm options for backward compatibility Revision 82 Info button for controllers added plus dynamic updating of the fields here Programmable description for door alarms (Lex Arrow Security) Revision 83 Lookup table for input calculator fixed up to incorporate IN1-IN8, OUT1-4, PIG1-2 Revision 84 Transaction count added to history report for media centre Revision 85 Made door options button accessible when editing a pig controller Fixed problem where duplicate inputs on different controllers can't be added Revision 86 Increased memory allocation for door access levels for channel 10. Revision 87 Incorporated Simplex file format as export external interface Revision 88 Fixed bug in delete door changed routine in convert card utility to allow removal of sitecodes (arrow comms qld) Revision 89 Introduced validation of other setup data to stop modem problems on conversion of old data Revision 90 Allowed long sitecodes to be programmed (>8 bits). Modifications for Chipnet interface to allow different processing of received cards through the external interface. Revision 91 Many changes for new controller type - with programmable relays (pig-outs) Revision 92 Fixed bug where no longer remembered last operator Revision 93 Fixed lots of bugs relating to pig-relays Revision 94 Fixed bugs in display of alarm area, changing of area on input Revision 95 Armed led added Revision 96 Fixed up tab order on area screen and reporting of door events rectified with R4 firmware Revision 97 Removed 'de-isolated' message on inputs, various other memory leaks fixed Revision 98 Fixed up problem with display of access levels. Revision 99 Several changes: - check if registration controller is online when registering - added 'arm all' and 'disarm all' buttons to area - display of internal controller date and time in 'controller info' - fixed up PIG tamper messages so now searches for relays and door pigs also - fixed up door status reporting - introduced the ability to save the last bootstrap loaded file Revision 100 Made area automatically disarm when a full controller download is done. z Revision 101 Made 'random pin digits' work properly in technician/site (previously wasn't saved) Revision 102 Fixed problem when registering cards on R3 firmware - was taking the wrong reader Revision 103 Made imprinted number and card imprinted number unsigned long instead of char[6] Revision 104 Timed antipassback features added Revision 105 Status for lift, firedoor and pig all fixed up R2 firedoor adjustments made Revision 106 Fixed bug sorting of users by imprinted card number Revision 107 Report history - search by card number feature added. Revision 108 Card options - additional card format for bermel cards added Revision 109 Stop operators from clicking close button if they don't have the ability to shut down Revision 110 Fixed problem with 'T' accelerator on temperature sensors mucking everything up Revision 111 Fixed problem with description of 'exit request text' in programmable relays Fixed bug with default setting of user type in bulk add users Revision 112 Added ability to customise logo, name etc to about screen and report printouts Fixed bug where R2 firmware firedoors were being loaded with an erroneous exit request number if the exit request isn't defined Fixed bug where R3 door status not always displayed even though inputs defined Fixed bug where archive of history data didn't delete files even though asked to Split comms functions off (PC4) First release of Advent Revision 113 Fixed problem where comms decryption sometimes didn't work (bug in C compiler) Revision 114 Added error message if start date entered in history report is later than end date Added registration code for touching keys/swiping cards/pigs via shared data file Revision 115 Added initialisation of local database location for server when relocating a data file Added verification of printrec when printing a report Revision 116 Fixed problem with printing (hopefully) - size of text in footer Revision 117 Changed timing on scanning of text file reads so only scans once per second Revision 118 Added com parameters for fast download and no dtr Revision 201 Fixed problem with 'inactive users' report Controller report fixed up for R3 firmware - display of relay trigger time instead of door Default settings for R3 door set to 0 rather than random Added 'door' icon Fixed problem when minimizing main window caused xvt error Added 'access level' icon Revision 202 Fixed problem if 'customise' selected but no logo filename specified crashing during Help/About Fixed stack overflow problem occurring during key/card registration Changes to fix problems with external interface USQ (atoi instead of atol in import routines) Added 'macro' commands and all associated logic Revision 203 Changed method of indexing areas - all areas load into controllers via their index rather than area number Added 'storman' export of transactions Import of units and areas Import of users (including up to 20 areas per user) Automatic disarming and arming of units Revision 204 Introduced programmable scan time and made local controller database and local comms databse not 'commit' when written to attempt to speed up performance on network systems. Revision 205 Alarm window Ability to set font size 'Proportional' setting under Admin/Titles Font saved (per workstation) Print setup saved (per workstation) Heaps of other changes for self storage - armed and disarmed windows, tamper windows Automatic sizing of windows Alarm window supported Macros all work Import of inputs for self storage applications Revision 206 Several other changes including bigger stack size to try to solve problem of stack overflow on NT Revision 207 Fixed bugs with deletion of areas. Imprinted numbers as strings Support for over 32768 users External interface 'P' and 'M' import options for Pulse Software and Member Magic Revision 208 All areas always display even if two have the same name. In the 'disarmed' window, areas which are in alarm display with an 'A', disarmed areas display with a 'D' Added radio buttons to devices/areas screen to allow different sorting of areas. Stopped allowing processing of events during reading of transaction database - should stop 'stack overflow' and hangs. Moved printrec_init into printing routine instead of startup so that startup is faster and doesn't fail when an invalid printer is default. Revision 209 Changed 'time set' routine so that it sets the time based on the current workstation time at the time of download rather than at the time that the command was sent from the server. Added the ability to restrict users from the override buttons (depending on operator type) Changed description of tz in devices/areas to 'masking TZ' Removed 'r1' registration code for key registration - now if universal firmware always reads the rego reader Added additional card parameters holroyd council - allow undefined cards, enforce length etc Revision 210 Made access levels for R3 firmware work properly. Fixed problem where invalid data in the controller date and time caused a GPF in the display of controller info. Revision 211 Introduced checking of commands for validity to stop invalid data from stopping a download. Stopped allowing processing of events during reading of comms database - should REALLY stop 'stack overflow' and hangs. Made Hardware/Areas and Hardware/Inputs windows bigger Made sorting of Hardware/Alarms/Inputs work properly with areas as numbers and made window bigger Added more information (controller, area, index, pig number etc) to Devices/Areas and Devices/Areas/Input screens Made area and input windows bigger so more of the list can be seen In Hardware/Inputs/edit input now have a field to display the actual pig number and port On same screen also now have area list makes more sense; the (obsolete) area number doesn't appear in the drop down and the list is sorted according to the setting in Technician/Features/Display areas as numbers Added pig timing parameter to hardware/controllers/input options for R2 firmware (must be supported by firmware) Revision 212 Added CAL report and also Technician/Utilities/Clear-Create CALs Changed CAL programming so that it clears cals when all doors in a controller are removed from a CAL Fixed problem introduced in rev 211 which stopped time set commands being downloaded. Fixed 'master clock' which hadn't been adapted for advent i.e. the midnight time synchronisation Added 4 'auxiliary alarm relays' for lighting control to area setup (Vangren self storage) Added 'download status' field to controller info screen to show how many commands still outstanding. Fixed install so rev.h is included with installation. Revision 213 Made default settings more sensible Revision 214 Added PTI interface for Space Control systems Revision 215 Fixed problem where a lock.dat filename greater than 20 characters was deleted Fixed up small problems with PTI interface Revision 216 Added global antipassback option to disable under technician/site Revision 217 Added fclose for local.dat on opening Added transaction processing to avoid deadlock in comms routine Revision 218 Changed import routine for selfstorage to program lift access levels as well Revision 219 Made the default backup directory saved as part of the setup; fixed problem when archiving to drive A: Revision 222 Automatic backup routine added (requires PKZIP in the directory) when BACKUP flag set Fixed time problem if setting time on a Sunday (set the day of week to 0 rather than 7 which mucked up date and time things) Revision 223 Slowed down background routine to only run every 10ms (was 5ms) Fixed up problem with triggering of doors with R3 firmware - incorrect relay being triggered Allowed display, control and editing of R3 'relays' in the devices/doors menu (if desired) Added global buzzer relay and ability to make auxiliary lighting relays flash Added delay to print.c to allow NT to print to terminal Added process_events to delay routine to stop system from clogging up Revision 224 Licensing of product introduced - server and workstation. Backup and restore functions added via PKZIP (which must be in the same directory as the program) Option added to check lock file on startup or automatically override (under Technician/Site). Disabled 'close' buttons on all windows Added all the keyboard shortcuts and stopped them from working when not logged in Added Backup/Restore menu Changed file_convert routine so that can convert backwards i.e. shrink the size of data files if necessary Made backups and restorals of database work with zip files When deleting a controller automatically delete corresponding doors, areas and inputs Revision 225 Fixed problem with backup/restore not proceeding - must run in foreground on win98 Added message processing to event_handle_record and checked all transaction file reading and writing routines to ensure consistency between reading and writing. Basically whenever waiting for a file must process events; whenever reading from a file don't process events. Disabled licensing code for issue to Vangren. Revision 226 Re-enabled licensing Changed help functions to use pdf Revision 227 Replaced pkzip and pkunzip with zip and unzip (open source freeware versions). Revision 228 Inserted debug for Vangren Revision 229 More debug. Added 'nobackground' flags to system to stop problem of no comms happening. Revision 230 More debug plus added watchdog relay for Vangren Revision 231 Changed bootstrap routine so it stops polling during bootstrap Removed all instances of 'comms_display' Revision 232 Changed timer_set routine to cope with (ignore) clock() value of -1 Moved auxiliary relay routine to the end of event_handle Introduced checking of negative values in timers once per minute to fix freezing problem Revision 233 Removed the debugging stuff Fixed problem with restore where it couldn't find the restore (unzip) program name unless restoring from the same directory Revision 234 Added settings for automatic backup - optionally turn off, do it at a time and specify location Added 'number of relays' field for lift controller Revision 235 Changed startup routine so splash screen displays customised logo and product name. Revision 236 Interim release Many many changes related to the addition of locations - controller ID, single location mode etc. Introduced reloading of databases so that multiple workstations can be used for programming. Locations, controllers, doors, import from PC3. TAFE import introduced. Revision 237 Released for TAFE Lidcombe. To do: modification as per PC3 for relay outputs for individual alarm inputs. - modification as per PC3 for overriding timezone - modification as per PC3 for file saving/backup etc Revision 238 Method of writing files modified to minimise corruption and allow multiple operators and workstations Changed 'restore' routine to remove paths so restores to desired directory. Added calculation and conversion of inputs for fire door controller. Intercom and floor destination inputs for floors done by calculator Timezone override commands for doors and floors added Cancel overrides added Follow relay for alarm inputs added Devices menu bug fixed ABA card user report fixed up Beta release to Derek UK with muster report Revision 239 Fixed up problem with display font not being saved properly Muster report only option if antipassback is enabled Improved speed in TAFE data import Extended size of data1 and data2 fields to 21 characters Revision 240 Fixed problem with comms not initialising properly Revision 241 Really fixed problem with comms not initialising properly Revision 242 Made backup and restore commands 'junk' paths so they go to the right place when restoring. Revision 243 Introduced priority for commands - when a download is done that controller is given priority so it downloads completely Also devices commands are inserted at the start of the queue so happen immediately too. Revision 244 Release interim sent to Harrington St QBE Revision 245 Changed antipassback updating of users so no status window shows (and changes focus on screen) Revision 246 Fixed problem with titles. Fixed problem with reports when multiple locations. Revision 247 Little change for updating status with new R3 firmware Revision 248 Fixed display of controller pig relays under R3 firmware for single location mode Revision 249 Fixed input board numbering so floor destination reporting works. Fixed a little bug causing GPFs when pig tamper messages come through from an unallocated area Revision 250 Put in code to detect and correct an invalid location of the data files Revision 251 Added 'remote database' checkbox to allow local or remote data file location. Revision 252 Modified licensing - take account of self storage bit, max users, max controllers Added 'add' and 'delete' buttons to self storage user screen to allow adding and deleting of units per user Changed muster report to list users inside first and list users with headings Changed time and attendance report to run faster if only selected users are requested New report - time and attendance tally by 'data 1' Fixed problem with list of doors in history report where controller doesn't exist Added relay control commands to macro programming. Fixed problem where registration of pigs timed out instantly when trying to register from calculator Half finished global event stuff Bootstrap loader now works Revision 253 Made registration controller and reader 'local' settings rather than global Fixed problem with bootstrap where the file already exists in the local directory Made remote directory for data files work properly Made title file a local one rather than shared so individual to each workstation Revision 254 Global event stuff complete Revision 255 Local setting for last operator rather than global Fixed problem where adding doors to a new controller second door added got lost (invalid controller id) Added midnight cancel of overrides (previously erroneously omitted) Introduced local transaction queues to speed up operator response times Revision 256 Fixed problem with override of tz on R3 doors/relays Made workstation only reload if programming enabled except if controllers or locations If workstations offline don't write to them Locations named under workstation status Fixed up user issues with indexing under pcweduse and pcwuser Fixed up user issues with user_ap_update not using the correct user causing duplications Introduced verify user database command to eliminate duplicate users Status messages during loading added Revision 257 Fixed bug with multiple workstations/file sharing. Removed debug stuff unless setups/debug ticked for file transfer status in program window Fixed problem when door window closed too quickly Revision 258 Fixed small bug with display of units under users if the press 'cancel' in the unit selection Revision 259 Added support for presco base 12 cards. Controllers now allow the presco format to be defined and the user screen allows the conversion to the base 12 representation for convenience. Requires presco firmware 384 or greater. Revision 260 Reversed sense of 'presco * disarms/arms' - incorrect Changed timing routines to use TimerCount i.e. all delays now accurate in ms - attempting to rectify XP problem Added additional state in comms routine to emulate PC3 - attempting to rectify XP problem Fixed problem with resizing of comms and program window causing xvt errors Changed timing routines may also make a difference with the 'midnight failure' error at Fair Trading Revision 261 Changed more timing routines Fixed up program.c not writing to intermediate (.LOC) files Revision 262 Made midnight forgive work properly Removed 1 second timer interrupt and instead made file transfer happen every half second when comms idle Revision 263 Fixed the XP problem in the UK - comms routine error with a proper checksum but incorrect message type Revision 264 Added reinitialisation of comms for Chris Begg in attempt to make more tolerant to com port problems Revision 265 Added the ability for the 'direct' com port to have an associated phone number also Added us date format option in technician/site Fixed problem with adding doors immediately to controllers with intervening reload of controllers/locations Revision 266 Fixed reporting problem with locations Made reload database messages not dowload to offline workstations Modem connection for remote sites works Added parameters for dialup retries, stay online time after last transaction and modem connection wait time Added display of connection time counting during connection waiting time. Lots of changes in the server/workstation status display Revision 267 Branch for QBE homebush alarm reporting Added 'pulse relay' for alarm areas to toggle status of alarm area when arming or disarming via a pulse Added calc and R2-style 'follow relay' settings for individual alarm inputs Revision 268 Added commsdb_load_lc to startup code to reinitialise the comms database on startup Also added validity check for server/client number 0 - sets it to 1 Revision 269 Chris Begg release - modified reporting where names are too long Revision 270 Fixed up title stuff when there is no title.dat Revision 271 Fixed quickwin error problem Revision 272 Made it so that local files can be changed in size but database ones only by the server application Revision 276 Added global pig tamper timeout for Vangren melbourne port melbourne ss site Revision 277 Fixed title problem in 276 Revision 279 Fixed up R3 controller "CONTROLLER_HAS_RELAYS" problem Revision 280 Fixed up problems found by Wayne Kennedy DFT at Tamworth - indexing of PIG inputs wasn't working properly - doors with same name causing problems - not being found uniquely in pcweddn Revision 281 Fixed up problem with loading of relays into R3 controllers Revision 282 Fixed up heaps of problems arising from controller number/contid confusion Revision 283 Fixed up problem with event_offline not including contid (comms.c) Changed backup routine so it doesn't check the auto backup directory when trying to do a manual backup/restoral (backup.c) Fixed up problem with spacing out of transaction details in event.c (event.c) Revision 284 Added dual technology readers for Derek UK Revision 285 Made door names 40 characters long Default for lift bank is relays to stop confusion if no controllers assigned to a lift bank yet Added floor actions to macros Revision 286 Fixed problem of GPF when attempting to upgrade from a workstation edition - now creates an error and exits. Made it so that 'pc setup' screen is displayed if starting up with the CTRL key pressed. Revision 287 Made default for all log records 0 to stop possible gpf resulting from incorrect random data. Added checking of message length during decryption so can't overwrite a damaged message Revision 288 Fixed up problem with indexing with remote servers showing server offline when it isn't Revision 289 Fiddled with pig tamper timeout stuff for Vangren Melbourne. Revision 294 Fixed up relay assignment not being saved in hardware/alarms/areas with R3 firmware Fixed up global lighting relays not being saved properly Added 'occupancy count' option for self storage Added 'vacant' checkbox to devices/areas screen Made all controller operations in memory only; written to disk on exit. Improves speed/performance. Made work with revision 1.01 file types checking file integrity and automatically backing up Made floor relays 'reverse relay contacts' instead of 'fail-safe' to fix confusion re 4-way relay boards Added controller downloaded message when controller finished downloading Added lots of new icons Revision 295 Fixed problem with registration of keys not working properly Made user screen in task_win not screen_win Revision 297 Fixed problem where workstations having errors converting files Revision 298 Final fixed problem with workstation converting files. Made it only reload local controllers when editing controllers This may cause issues with incorrect controller and location updating on workstations. Information which doesn't cause an update on control.dat and location.dat (e.g. firmware revision etc) won't show up on workstations. Could fix this in a future version by forcing a reload before opening controller screen etc. Ditto only reloads pigs and areas when editing. Means status may be incorrect on workstation screens. Ditto doors, relays, inputs, lift floors. Revision 299 Removed requirement for debug to be on to display selfstorage diagnostic messages when operating via external interface. Changes in external interface for Storman - S command for adding users now allows multiple pins per unit if downloaded in a single batch - no longer differentiating between 'A' and 'B' and 'C' pins thus allowing alphanumeric area names Revision 300 Changed all global relay functions (watchdog, auxiliary alarm relays) to work with relays as well as doors Added global door forced/dotl relay functions Added watchdog timer time setting Created selection for individual sounds under Technician/Site Revision 301 Full stuff with extended access levels and timezones. Remembers positions of alarm and log window Drop down lists for leds, relays etc Global forced entry and dotl functions ALlows selection of sound Watchdog relay time setting Hardware/alarms/areas allow selection of the 'armed state' of an area after a full download Revision 302 Fixed problem with upgrade of door names. Revision 303 Added drop down list for antipassback relay. Administration/windows to default positions added Changed menu to say 'download to controllers' instead of 'download controllers' for clarity Immediate changes in font displayed in all windows. Pig registration wizard added to utilities Area/Input reindexing added to utilities Revision 304 Individual selection of presco card format per reader Revision 305 Fixed problem with 'Reports-users with access to' Revision 306 Fixed problem where whenever used a toolbar button it made the associated window go to default settings Made user deletion not show a status window when deleting after editing an access level Recorded whether an access level has changed during editing and only recalculates if it's changed Added macro buttons 5-9 and A-Z Revision 307 Fingerprint module support added Revision 308 Pig registration delete button under utilities now deletes pig relays too. Pig registration doesn't require the registration controller to be set any more Pig registration added normally closed checkbox as an option Pig registration added default descriptions for alarm, restore, normal, abnormal Pig registration arm on download true by default Pig registration - window with registered pigs scrolls to last item added Pig registration - single area option added Revision 309 Pig registration - fixed up normally closed and report status change Pig registration - when registering pig relay made default of same relay as follow relay Revision 310 Allow location to be changed under controllers Revision 311 Make 'cancel overrides' command also set alarm areas to the correct status Revision 312 Fixed up problem where name of door access level not being changed Made it so that editing a lift access level it only downloads if the access level has changed Made it so that operator access level permisssions require all valid access levels Revision 313 Added optional non-movement of alarm areas from armed to disarmed/in alarm window Revision 314 Fixed bug where alarm areas appear twice in the disarmed and armed lists Revision 317 Fixed reporting problem - hang if lines > 80 characters in length. Revision 318 Lots of changes for universal universal firmware in R3 screens. Fixed problem if more than 10 site codes. Revision 319 Added Administration/Workstation settings for all settings which are local to each workstation. Revision 320 Fixed problem with units displaying multiple times in the disarmed and armed windows if they're in alarm Revision 321 If the backup directory doesn't exist under technician/site it sticks the stuff into the default location Made pop-up for auto register appear in the middle of the screen. Revision 322 Gates 1-9 icons added. Attempt to fix problem when upgrading if rectangles for windows are invalid. Auto backup now should create default directory if it doesn't exist. Revision 323 Lots of changes Parking etc for universal universal firmware Revision 324 Global events now incorporate users Revision 325 Support for 255 parking zones Fixed up backup filename issues causing bogus 'failed to backup' messages Revision 326 Reloads modem connected location database when doing a modem connection Connects to remote sites when command issued even if controllers are inactive Revision 327 Added new export transaction types for area armed, disarmed, in alarm for storman applications Changed so matches 'CONNECT' to try to work with more modems Revision 328 Added tamper option for readers with universal firmware Added option for controller offline alarms not to report technician/site Revision 329 Added timetrak export format for JoMark NZ Revision 330 Added 4 extra data fields for UK plus allowing sorting, searching on these fields Fixed problem with card options being mucked up sometimes on conversion from old file (other_setup_data = {0}) Added report width setting under workstation. Revision 331 Made local controllers sychronise with controller database in terms of activity Made transaction processing based on locations work by comms server number not location number Revision 332 Fixed problem with R3 alarm controllers not reporting door names correctly. Revision 333 Fixed problem with 'invert lift LED' sending incorrect command (27) to controller - should be 55*23. Made lift level intercom input and fdr input longs instead of ints for pigs Changed new controller editing screen so that R3 universal lift firmware works Added new floor screen allowing editing of relay number Lots of changes for R3 universal lift firmware R3 relays now display the debugged unpacked name plus ditto for R3 lift relays. Revision 334 Improved online/offline synchronisation of controllers to remove inconsistencies. New status message for universal door and universal lift controllers under controller/info. Stopped being able to log in again once logged in. Closes status window after midnight check of unused timezones. Sets the 'p2_nopigs' parameter automatically based on use of expansion relay and input boards. Fixed negative percentage being displayed during bootstrap download on real big chips. Fixed problem with lift access levels only being loaded into the first controller in a bank when created. Changed door numbering for R3 lift firmware so floors report correctly. Fixed problem with overriding floor timezone from devices/floors screen. Revision 335 Fixed problem with user reports not working properly due to non-initialisation of currtz. Revision 336 Changed edit controller (new) screen so that lift bank edit button works properly Added location fields for stay online time for modem and hang up if all empty Added new export field for vision leisure Revision 337 Fixed problem with modem hanging up for Brook St Toowoomba project Revision 338 Importing units via lock.dat (access ezy) makes alarm relay A 'pulse' 30 seconds instead of latch Revision 339 Reports screen fixed up. Revision 340 Added individual checkboxes to invert LEDs and changed LED logic Added the ability to access the licensing program from the help menu Revision 341 Added global alarm input follow relays. Alarm normal/abnormal/alarm/restore transactions now update pig status Global follow relays require area armed or if disarmed, status change reporting enabled. Revision 342 Fixed problem with reports on pigs where port a or b wasn't listed Made downloading of transactions not be optimised i.e. if it's already in the queue leave it there This to solve problem where multiple 10 and 14 commands in the queue - optimisation sometimes left last user off Fixed issue with StorMan staff pins not deleting existing one when changing a PIN. Fixed up pulse club interface so it downloads users Fixed problem with card options sometimes having rubbish in them Added relays to controller report Revision 343 Fixed up alarm inputs and areas in controller report Added 'billing report' functions Changed vision leisure export functions to wait for file to be available rather than ignoring if can't open Attempt to fix real time clock issues Revision 344 Controllers are now universal by default Changed time routines to all read the cmos clock rather than the dos clock. Revision 345 Fixed problem introduced in 344 with self storage interface Revision 346 Added imprinted number to import using 'u' command if controllers defined as 'card' only All time functions now utilise int 1A to read and set the CMOS real time clock via dos protected mode interrupts Revision 347 Fixed up problem with 16 bit site codes not being interpreted properly if over 32767 Revision 348 Site codes get copied properly when doing a multiple add of users When doing a bulk add, data2 gets inserted properly Revision 349 When doing a bulk add imprinted numbers > 32767 get inserted properly. When doing an import adds the lift access level as well as the door access level. When doing an import data1 no longer truncated at 8 chars Revision 350 Added 'wiegand format' for magstripe cards - requires Universal 474 or greater. This optionally splits a magstripe number into two 16-bit quantities. Revision 351 Widened status bar field for workstation ID to W-99 for over 9 workstations/comms servers Fixed up problem with downloading of site codes > 32767 Added saving of window positions for the armed and disarmed windows Removed 'no dtr' and 'fast comms' entries from com port setup window Changed it so that a scan time of 0 is not possible - always makes it 1 if set to 0 inadvertently Revision 352 Fixed small problem with site codes > 32767 Revision 353 Added 'next' and 'previous' buttons to alarm areas Revision 354 Changed width of titles on user report to make them line up properly Revision 355 Added special indexing for Centurion and also default settings for centurion download Revision 356 Technician/Utilities/reindex inputs and areas restarts area numbering and indexing from 0 Technician/Features - changed selfstorage box and made the ability for vacant and occupied areas to have a defined timezone and arm/disarm at start/end Reports/Users/By expiry added Revision 357 Fixed expiry report so it doesn't show users who are expired already Revision 358 Fixed up bug in selfstorage vacant/occupied areas Added 'vacant' and 'occupied' radio buttons to devices/areas screen Fixed up indexing feature for areas and inputs so it works properly and also reindexes the area numbers Revision 359 Modified 'P' interface for caravan parks to add expiry date and time Revision 360 Changed routine for external interface when checking for existing PIN number Revision 361 Debugging added to sort out caravan interface for RMS Revision 362 Debugging for 'P' external interface removed Code for photo id started New method for storing global data (ini file) Setup/users screen auto adjustment for number of data fields as well as everything else New 'Z' command added in import routine for RMS Revision 363 Added P command for deleting user Revision 364 Fixed up prob with 363 displaying size of user record on startup Added P command for updating user status Revision 365 Fixed up problem with display of ABA card numbers for NSW TAFE Photo id integration complete but not enabled Added 'startup minimised' setting for workstation for NSW TAFE Revision 366 Changed time setting so when set on server it sets the time on all the workstations and controllers correctly. Fixed problem where 'invalid images directory' message displayed on technician/site screen if photo ID not enabled Made editing operator on workstation properly affect operators on all workstations. Fixed problem with upgrade where door access levels have an extended timezone in them not converting to new tz format. Fixed problem with door access level - when deleting doors, didn't always delete from all controllers Licensing introduced for photo id feature - ADVPHOTO 1.0 Workstations controller status updates when requested for firmware revision Fixed problem when downloading a just-entered controller from workstation controller online messages over and over again Added feature where if directory doesn't exist (due perhaps to network drive being offline) it just keeps trying until it gets online. Automatically insert trailing backslash into path for remote database Don't check for existence of database directory when doing PC setup - allows configuration if network drive not available Automatically make client at least 2 if it's a workstation. Importing of locations now works for timezones, lift banks, controllers, doors, areas, inputs, pigs and relays When doing an import of doors where the input numbers need to be adjusted it now only asks once if it's a conversion from PC3 or Advent. Revision 367 Master clock sets the workstation time as well. Mucking around to try to fix controller offline/online messages on workstations Global upgrade logic works - command under Technician/Utilities on server to force an automatic upgrade of all workstations Slight improvement to download speed (commandcounter variations) Revision 368 Reference build for USQ Revision 369 Fixed issue where invalid images directory message displayed even if photo ID not turned on. Revision 370 Implemented startup minimise Revision 371 Changed user report so it shows list of access levels for all users Added additional field at end of vision export so that it adds in the antipassback status of the user (for RMS) P|RESET made it work for RMS (and all other external interfaces) Liftbanks now R3 (universal) by default Revision 372 Added compatibility with universal 468 and 469 for reading iKey number option Added selection of report type for self storage report Revision 373 Fixed up expiry of users added via rms interface Revision 374 Fixed up problem when upgrading from PC3 sometimes door names get lost Revision 375 Trying to fix problem at DFT with controller offline messages Revision 376 Changed logic of online/offline and workstation reloading of databases to fix DFT and multiple controller online messages Added new checkbox under technician/workstation to allow auto selecting of 'all lifts in bank' Added macro buttons 11-20 for 160 Clarence St. Revision 377 Added macro buttons B1-B4 Made macro names appear in numerical order of button name Revision 378 Added debugging to reindex areas and inputs to provide better feedback. Fixed up problem with users expiring in the future. Fixed up problem with global antipassback and R3 firmware. Revision 379 Made lift banks created in R3 format by default Revision 380 Added 'caravan' licensing for 'z' command in external interface and user expiry date and x in P command Revision 381 Added 'allow access to undefined cards' checkbox under technician/site to make it easier to find. Revision 382 Fixed problem with duplicate Storman users and users disappearing. Revision 383 Added user activation and expiry dates to storman interface Revision 384 Changed controller messages from PC activation to report as 'PC ###' rather than 'Operator ###' Fixed up possible problems with external interface (member magic etc) not deleting existing users, timezones and access levels properly due to backup files. Instead individually remove existing entries. Improved speed of access level loading when editing an access level - doesn't delete twice Improved speed of lift access level loading when editing an access level - doesn't fixup twice Changed the way that loading happens after modification of an access level. Now calculates after the access level has changed and loads new access levels if necessary; deletes all users who don't have that access level in that controller any more. Revision 385 Allows setting of the background timer interval to tweak processor usage. Revision 386 RMS version 6 and 7 interface (LRA external interface) added. Must have CARAVAN turned on. Requires two additional com ports (or virtual com ports) in the machine. Revision 387 Change to the way that member magic imports extended timezones - tz's over 20 are assumed to be extended Revision 388 Added 'report status change' option to relays Added 'generate alarm for user's transactions' to users IP settings and delays set up for lantronix devices Revision 389 Fixed bug in connection routine when doing direct connection (Thyme software) Revision 390 Fixed problem with display of elevator floor status if elevators not last in controller list Changed display of user list to display XX for expired users Revision 391 Changed status reporting of inputs - tamper flag now masked out on INPUT_STATUS_EVENT so correctly shows status - inputs to which tamper doesn't apply now don't incorrectly display 'in tamper' for status - with R2 firmware this makes follow relays work better Revision 392 Fixed problem of lift timezones being lost at 12.05am if an erroneously defined door or relay exists for those controllers Revision 393 Added new utility to allow changing of site code for all users at once (technician/utilities) Added scroll lock functionality to stop scrolling of windows Revision 394 Added new field for 'pulse relay' for universal firmware Revision 395 Added new total number of users for each report Fixed possible problem with reader parameters for lift system Added 'rqe retriggers' option (only for firmware rev 396 and above) Fixed up problem with global follow relay - now works even if other inputs are in alarm and only follows when in alarm Revision 396 Fixed up problem with PTI interface for Storage King Scoresby Revision 397 More fixes for PTI interface. Change self storage interface to always store the unit number with the user even if the unit doesn't exist. Changed for both PTI and normal interfaces. Revision 398 Added new option 'muster by data 1' under administration/workstation. This causes the muster report (who's inside) to be sorted by the contents of 'data 1' (usually the company) Revision 399 Fixed problem with R3 lift firmware incorrectly reporting intercom triggering Changed storman interface so that undefined areas work properly including deletion of pins Revision 400 Changed reporting of controller number under devices/doors to show correct controller number (not contid) Changed controller report to show correct location name and controller number Added new utilities to allow import and export of comma-delimited user file under Technician/Utilities Revision 401 Expanded size of log files for any one day to 500,000 (was 100,000) due to issue at West End Quay Revision 402 Added dynamic changing of alarm area window depending on controller type (85 Harrington St mix of r2 and r3 alarm) Revision 403 Added 4 more user data fields and the option of displaying fields 1-4 in the log (west end quay) Added new report 'users expiring by a particular date' for Garry Oldroyd Changed users with access to report to not include access levels for Garry Oldroyd Revision 404 Changed help/about copyright to be 2001-2004 for Doug Parry of StorMan. Added new area reporting options for history reports Fixed problem with display of XX for access level for non-expired pre-2000 users Revision 405 Added new 'per user' parking feature for special firmware Fixed problem with selection of R3 relays where different controllers have relays with the same name Lots of changes for user-based parking firmware Revision 406 Made reloading comms work when doing on a local workstation Revision 407 Changes for multiple com ports Revision 408 Fixed some multiple com port bugs Revision 409 Changed multiple com ports to allow timeout if buffer full Revision 410 Debugging to fix problem of Lantronix crashing Advent when unplugged Also fixed problem of lift dropdown in history report screen Revision 411 Fixed more Lantronix-related bugs Revision 412 Made failure of a com port non-modal - reports in log instead of modal dialog