Modular microprocessor system for collection and processing of information from analogue and digital sensors (OKTOPORT) 1. 2. 3. 4. 5. 6. System purpose. Basic modules. Technical characteristics. Architecture of information net. Software. Applications. 1. System purpose The main task of smart information systems is collecting information from different (analogue and digital) sensors and further information processing. The large number of sensors, communications interfaces and necessity of short distance measurement request a developing of modular microprocessor system with network structure. OKTOPORT is developed to satisfy these requirements. The system is realized on smart technology and it is flexibility and multi functional. The basic purpose is collecting and processing of from temperature sensors in width range of measured temperatures; measurement from devises where the output signal is analogue (power) or digital. There are included tools for digital output management using special chips (electronic switches). OKTOPORT is suitable for distributed systems realizing for information collecting and information processing from distant devises. The specialized software includes: ¾ processing programs; ¾ programs for monitoring and documentation; ¾ programs for Internet; ¾ distributed data base. 2. Basic modules OKTOPPORT includes the following basic modules: ¾ RS485/422 – communication module, transforming interface RS232 in RS485 or RS422; ¾ OKTOPPORT–D – microprocessor controller, supporting 8 buses, realizing protocol 1-Wire Bus on Dallas Semiconductor. It is connecting with other modules by RS485, RS422 or RS232. The using on each of three interfaces is depends of network topology; ¾ OKTOPPORT–А - microprocessor controller, supporting 8 analogue inputs, intended for servicing of thermometers, realized with thermo resistors or thermo - pair. It is connecting with other modules by RS485, RS422 or RS232. The using on each of three interfaces is depends of network topology; ¾ OKTOPPORT-Т - microprocessor controller intended for measurement and management of thermo-objects and it has possibility for settings monitoring and settings changing. It supports interface RS232 for connecting with personal computer and one bus for 1-Wire Bus (Dallas Semiconductor) realizing. 3. Technical characteristics All of microprocessor modules (described in item 2) are using RISK processor AVR90S8535 with 8MHz and 8K FLASH. Microprocessor efficiency is 8 million instructions per seconds. OKTOPORT-D Each of modules includes programmer for processor memory programming (onboard FLASH programmer), using LPT port on personal computer. Each of modules local network communication uses one of three interfaces (RS485, RS422 or RS232). The interface chooses is setting by switches. Each of modules power supply is realized by two manners: ¾ from outside power 220V based on embedded block in the module; ¾ from interface cable (12 V and GND from personal computer). The communication module (RS485/422) is used for connection between operation station (personal computer) and OKTOPORT. The module transforms RS232 signals in RS485 or RS422. The communication is one directional (RS485) or two directional (RS422). The communication module can works as “master” or as “slave”. It is powered by constantly power 12V from personal computer and gives it (option) to the other devises from the network. The modules (included in OKTOPORT) are designed for low consumption and can work with power supplay 6V (6V power drop on power cable). Communication module The communication module is designed to support local network from type OKTOPORT with 1000 m length and included modules from OKTOPORT-D (A) type as follow: ¾ 31 modules in case of RS485 using; ¾ 16 modules in case of RS422 using. All of the modules include termination resistors (permitted or forbidden by micro switches) for long buses allowing. OKTOPORT-D includes 8 1-wire buses and in each of them can be connected to 16 devices (Dallas Semiconductor) from the type: ¾ DS1820 – electronic thermometer (from -55º to 125º C); ¾ DS2450 – 16 bits, two channels analogue (0-5V); ¾ DS2423 - 4 channel static electronic counter(to 4 MHz); ¾ DS2406 – two channel electronic switch (I/O); ¾ DS1990A - identification elements (Touch Memories). Each of 1 wire buses maximal length is 75 m. OKTOPORT-A supports 8 analogue inputs for thermo – resistors servicing, realized by thermo – resistors or thermo pairs. It is servicing different types of thermo – resistors or thermo pairs by embedded in the processor 4 channels 16 bits ADC. Each of the channels is galvanic isolated. OKTOPORT-T is intended for thermo-object measurement and management. It has possibility for setting monitoring and settings exchanging. The module realizes thermo regulator, working autonomous or connected by RS232 to the PC. The thermo regulation process is based on using of electronic thermometers DS1829 (1 to 16) and power output (to 440W, ~220V), processed by contactless relay sheme (synchronized by net frequency). The additional option in the module is registering on power ~220V in the net. OKTOPORT-T includes two digits display for temperature visualization and 4 –buttons keyboard for work’s settings. 4. Information network architecture Figure 1 shows block sheme on for instance system, based on OKTOPOPT type modules. RS 232 Communication Module Up to 16 m RS485 RS422 T1 Up to 256 m T16 TТ C1 1 1 3 2 OKTOPOR -D C16 4 5 ADC1 ADC16 SW1 SW16 6 7 Other 8 AIN1 2 OKTOPORT-A AIN16 3 31 Other devises of OKTOPORT-A or OKTPORT - D type Fug.1 Block schema on the system, based on OKTOPORT modules (TТ, T1-T16-thermometers; С1-С16-counter inputs; ADC1-ADC16-ADC; SW1-SW16-digital outputs; AIN1-AIN16-analogue inputs) 5. Special designed software The OKTOPORT software is modular and includes two types of modules: 1. User’s software (realized in PC). 2. System’s software (resident in FLASH memory on the module). The user software is based on high level program language Tcl/Tk and works under Windows95/98/2000/NT/XP. It includes the following modules: ¾ communication module – it realizes communication on the different interfaces (RS232, RS485 и RS422); ¾ data base service (Mk4Tcl); ¾ graphic module – it realizes tables and graphics on video display; ¾ printing module – it is using for text and graphic documents printing; ¾ configuration module – it is using for working modes configuration; ¾ user’s module – it is allowing additional options and processes (specific input information process, user’s menus, additional interfaces including - TCP/IP, WAP, etc) ¾ information security tools. The system software is resident on each of modules and includes procedures for service of the specific periphery. It is developed on ANSI C and Assembler for AVR90S8535. There are the following classes of procedures: ¾ communication; ¾ information blocks coding and encoding; ¾ for working on 1-Wire Bus and realizing specific commands to the periphery devices; ¾ basic result’s process (scaling, formatting, etc.) ¾ for modules and switched devices identification; ¾ testing procedures. 6. Applications The system TERMOCONTROL 01 (fig.2) is developed based on OKTOPORT. It is intended for monitoring and control of refrigerator complexes. Fig. 2. TERMOCONTROL 01 includes: ¾ Computer configuration (PC, printer, UPS); ¾ communication module; ¾ Two modules of OKTOPORT-D; ¾ 16 thermometers DS1820; ¾ Communication bus RS422 with backup power supplay 12V. ¾ Software TERMOCONTROL 01. The thermometers DS1820 measure temperatures from -55 to + 125 °С and installed in the refrigerators with common 1 –Wire Bus up to 300m. The length of the communication bus (from PC to the outermost module OKTOPORT-D) can reach up to 1000 m. The system is working continuously and in the power suplay breaking it is possible to work 20 min. The software TERMOCONTROL 01 includes: - User’s software (realized in the PC); - System software (resident in FLASH memory of the given module). TERMOCONTROL 01 has following: 1. Creation of dynamic table for the current state (current temperature) in each refrigerator in the system (fig. 3) Fig. 3 2. Forming of two type of reports: ¾ twenty-four hour, with measured temperatures for 24 hours from the last 24 hours and forms graphic and text document (fig.4); Fig. 4 Graphic report for one refrigerator. ¾ weekly report with measured temperatures for each of last 7 days in interval of 4 hours and forms graphic and text document (fig. 5). Fig.5 Common graphic report The system supports function for reports printing. TERMOCONTROL01 supports data base for all measured temperatures. Based on OKTOPORT can developing more applications connected with process and control of: • thermal objects; • pulse inputs processing (with frequency up to 4 MHz); • relay and analogue outputs; • distributed systems for access control. The further idea for system advance is the using of wireless communication (DECT) and adding of new sensors. Contact person: Dichko Bachvarov Phone. (359 02) 72-13-61 E-mail: dichko@clmi.bas.bg