Controller for mobile control and monitoring via short message services

35 downloads 1183 Views 257KB Size Report
is written in C++ and allows sending and receiving of sort messages through mobile operator SMS Center (SMSC) or SMS to E-mail or E-mail to SMS gateways.
~

~

@ITELSIKS 2003

Serbia and Montenegro, NI$, October 1-3, 2003

Controller for Mobile Control and Monitoring via Short Message Services Rosen S. Ivanov' Absrracr - The aim of proposed controller is to enable mobile access to s m a l l office and home office (SOHO)appliances ria WAP and SMS commands. The appliances and sensors can be connected to RS 485 network or to local U 0 ports. The software is written in C++ and allows sending and receiving of sort messages through mobile operator SMS Center (SMSC) or SMS to E-mail or E-mail to SMS gateways. Keyword5 - Mobile Control, Mobile Monitoring, SMS com-

mands.

I. INTRODUC~ON

The design of proposed controller is based on Beck's System on Chip SC12 [21. The SC12 is complete embedded PC with 80186 controller, DRAM, Flash Disk, IDE interface, Serial Interfaces, Ethernet controller, full TCPIIP stack with API for UDP and TCP sockets, many servers (HTTP, FTP, Telnet, PPP, UDP Config) and clients (PPP, DHCP). Real Tiine Operation System (RTOS) challenges maximum delivery from 16-bit CPU@20MHz in order to achieve high performance for TCPIIP communications and task switching. This architecture enables the reduction of size, power consumption, cost of controller and number of additional components as shown in Fig. 1 .

Wireless Internet access is expected to be the next big market in telecommunication world. Mobile Internet combines two of the fastest growing industries: wireless communications and Internet. Mobile data transfer requires development of a lot standards, protocols and mobile network hardwarelsoftware. The big investments in this process leads to enlargement of price of mobile Internet services. The clients expected fast data transfer for attractive prices, but this is impossible at this moment. Wireless Application Protocol (WAP) was developed for turn a mass-market mobile phones into a network-based smartphone. Because of low data transfer rates and relatively big account prices WAP has many servers but still little clients. To increase data transfer rate WAP over General Packet Radio Service (GPRS) can be used if your mobile operator support this service. While we waiting for GPRS and Universal Mobile Telecommunication System (UMTS), a familiar wireless data transfer technology like Short Messaging Service (SMS) can he used in many applications. SMS is a globally accepted wireless service that enables the transmission of alphanumeric or binary messages between mobile subscribers via SMSC. It is low cost and easy to use solution for wireless connectivity.

Legends: BS

II. HARDWARE DESIGN

MSC SMS

0-7803-7963-2/03/$l7.00 02003 IEEE

Mabite Smtchng CeOler Shon Message Sewices

SMSC SMS Center

The proposed controller (RS-MC 02) is stripped version of RS-MC 01 described in [ I ] . The latter allows mobile access to networked (RS 485 and Bluetoothm interfaces) appliances and sensors from GSM with WAP. RS-MC 02 support only RS 485 interface, but can control and monitor appliances, sensors and SOHO devices via WAP a s well via SMS commands.

' Rosen S. lvanov is with the Department Computer Systems and Technologies, Technical University of Gabrovo, 4 H. Dimitar. 5300 Gabrovo, Bulgaria. E-mail: [email protected]. This work was supported in pan by the Bulgarian's Ministry of Education and Science.

Bare Sfam"

BSC Base Stailon COnfmllel GMSC Gateway MSC

Fig. 1. Controller architecture and system configuration

III.SOFIWARE DESIGN The software is build as a set of separate processes and tasks called managers. The objects of RTOS like semaphores, events and messages are used to guarantee synchronization between tasks and access to critical resources. An overview of the controller's software is shown in Fig. 2.

I08

B. Receive SMS via GSMphone

First, use c o m m y d AT+CMGL=O to get received unread (new) messages. If new message has been received GSM modem returns an answer in following format:

+CMGL=,