SMS & NET OPERATED MONITORING AND CONTROL SYSTEM BY : MANSOUR ALRAMLAWI MAHMOUD ALALAWI MOHAMMED ALFEQAWI JALAL ALROUMI HAMDI JOUDEH SUPERVISOR: DR. HATEM ELAYDI INTRODUCTION Rapid Growth in technology. Fields of Industry, Communications, Control, Internet technology ….. And more. You can be anywhere anytime. You want to know Anything happening everywhere. ONE OF THE BENEFITS Remote Monitoring & Controlling Space Applications ……………... Home Applications Industrial, Natural Resources, Agriculture and others. OUR SYSTEM FUNCTIONALITY As a monitoring & control system for simple applications. FUNCTIONALITY As part of a large DCS. FEATURES PIC MCU Based SMS & Net Operated Stand Alone System Title Blocks Approach SYSTEM BLOCK DIAGRAM Saves time and effort. Easier to upgrade. Allows reuse of blocks. System Block Diagram SMS Block Parallel Central Block USART Wireless Controller Remote Device 2 Remote Device 1 Wireless Block USART Ethernet Block SMS SMS stands for( Short Message Service). Features of SMS: 1-can be Sent and Read at Any Time. 2-can be Sent to an Offline Mobile Phone. 3-Supported by 100% GSM Mobile Phones . SMS IN OUR PROJECT CONNECT SMS TO MCU Type of connection F-Bus -full duplex -Runs at bit rate of 115,200 bps. M-Bus -half duplex -Runs at bit rate of 9600 bps. AT COMMAND commands are the application layer of MBUS or FBUS commands AT commands work on devices that have a builtin GSM modem AT COMMAND VS. F-BUS Send message AT command AT+CMGS 972599378166 F-Bus SO WHY F-BUS F-Bus work with all kind of mobile devices especially old devices. AT commands don’t work with devices that don’t have built in GSM modem. MICROCONTROLLER PIC18F4550 MICROCONTROLLER PROGRAM Receive Message: Check sender number Transfer order central PICmicrocontroller synchronize the Wait USART store until message inmessage thetophone frame receive with If correct get order from message SEND MESSAGE Send message If Monitoring input change, incoming change data message from central frame Transfer input to mobile through according toF-Bus PIC number of input CONTROL REMOTE DEVICES OUTPUT MONITORING REMOTE UNIT INPUT NETWORK SUPPORT IN OUR SYSTEM First time to support stand alone Ethernet. No software needed to run the system. No extra hardware to connect with PC. Flexibility. Very short start up time. Can be improved to connect to the internet. ETHERNET MODULE ARCHITECTURE PC NEEDS NIC AND PIC NEEDS ENC ENC28J60 ADVANTAGES Supporting 10base_T 10 Mbps speed. Simpler interfacing with Microcontroller. connectable via SPI. Need only 5 pins to connect with PIC. Attractive price. MICROCONTROLLER OF MODULE Pic18F452 is installed. Full support for SPI module. Sufficient ram space. support enough speed for its duty. WEB PAGE PROGRAMMING WEB page is programmed as HTML code. Html code is saved in MCU as characters array in PIC Memory. The code Can be edited in the MCU to meet the coming request . WEB PAGE INTERFACING WEB PAGE INTERFACE CONTROL PAGE MONITORING PAGE CONTROL OPERATION Step 1 Sending control order ON/OFF Step 2 Change the state of the output port Step 3 Modify the HTML page Step 4 Return modified page MONITORING OPERATION Refreshing the value of input. Auto refresh in the web page. Changing the unit color if input status is changed. CONNECTING WITH INTERNET What we need ? Public IP address. Web-server with known IP. Reliable security. Wireless Block WHY WIRELESS? 1- Easy to deploy. 2- Easy to distribute. 3- No infrastructure required. WIRELESS BLOCK WIRELESS CONTROLLER The encoder and decoder are used in interfacing the TX and RX to the MCU and in addressing different devices. REMOTE DEVICE ADDRESSING The Encoder allows address assignment. Each device has its own address. Add. 00000011 Add. 00000000 Add. 00000001 INTERFERENCE Interference occurs since the channel is a half duplex SENDING CONTROL DATA Control data REQUESTING MONITORING DATA Monitoring data CENTRAL BLOCK INTRODUCTION Task: - To get the other blocks working all together. - To organize the flow of data among blocks. Features: - The heart of the system. - Acts like Master while the other PICs act like slaves. HARDWARE CONNECTION WAREHOUSE APPROACH Main Concept: - Using the Central PIC as a warehouse. - Whenever a block has data to deliver or needs data, it stores it in or takes it from the warehouse. - Each block has its own functionality and its own manner in requesting data. TYPES OF CONNECTION Two types of connection are used: 1- Parallel Connection: To connect the Central PIC to the SMS PIC. 2- USART module: To connect the Central PIC to both, the Wireless PIC and the Ethernet PIC. BUSY LINE Other blocks may communicate with the Central Block at the same time. Busy line is used to indicate that the Central PIC is in the middle of a session with one of the PICs. PARALLEL CONNECTION It consists of 10 lines, two way 8-pin data port and two control lines. USART OPERATION Wireless PIC & Ethernet PICs share the Central PIC’s RX. Connecting them together causes interference. AND gate is used for isolation. USART OPERATION NUMBER The Central PIC receives data from both Ethernet and Wireless PICs but can’t recognize from which one. USART Operation Number is used which upon it the Central PIC determines the source of the data. RESULTS The system was successfully designed and implemented. The system was successfully operated using SMS. It sent feedback SMS on the user number indicating changes in Inputs. The system was successfully operated on a Local Network by accessing its HTML page. CONCLUSION Nothing such as PERFECTION. (No ideal System). More work should be done. Block approach allows upgrading and improvement. Many improvements crossed our mind. FUTURE WORK Supporting dynamic IP addressing that allows the system to adapt to different LANs without the need to pre-define the Network. Connecting the system to the Internet and allowing wider range of monitoring and control. Developing a mobile phone application making monitoring and control using SMS an easier task. FUTURE WORK Implementing dynamic allocation of Remote Devices allowing a larger number of Remote Devices to be installed easily. Adding storage devices and creating data base for operation history. Interfacing our system to other devices such as Programming Logic Controllers (PLCs), Soft Starters and other systems allowing more complex operations. C l i c k t o e d i t c o m p a n y www.themegallery.com s l o g a n .