You are on page 1of 5

Proceeding of the 2009 International Conference on Space Science and Communication

26-27 October 2009, Port Dickson, Negeri Sembilan, Malaysia

EMBEDDED ETHERNET MICROCONTROLLER


FOR OPTICAL MONITORING
Mohamad Syuhaimi Ab-Rahman, Mohamad Najib Mohamad Saupe, Aswir Premadi, Kasmiran Jumari
Spectrum Technology Division, Computer and Network Security Group,
Department of Electrical, Electronic, and System Engineering,
Faculty of Engineering and Built Environment, Universiti kebangsaan Malaysia,
43600 UKM Bangi, Selangor, Malaysia
syuhaimi@vlsi.eng.ukm.my, najibsaupe@gmail.com, aswirp@vlsi.eng.ukm.my, kbj@vlsi.ukm.my

Abstract—In this paper, we presented the embedded Ethernet Formerly, microcontroller has a limited connectivity option
microcontroller for optical monitoring. This design is used for for data communication between personal computer (PC) and
fiber monitoring in the FTTH system. The embedded Ethernet microcontroller. These two devices usually are connected by
microcontroller is used to control the 1x8 optical switches where using serial port interface. This type of interfaces it’s has some
this switch is to reroute the optical signal in the FTTH system.
weakness where it’s only permitted only one user to control
These systems consisting of two primaries part communicating
each other: i)A server consisting of a microcontroller the microcontroller and the user need to be in close proximity
PIC18F97J60 with built-in embedded Ethernet controller module with the microcontroller. Enabling a microcontroller to
and ii) a client computer. In this system, a microcontroller system communicated with personal computer (PC) by other interface
is act like web server that store the web pages in their memory, a e.g. Ethernet network, will give the developer and end-user an
client computer can access this web page using web browser to ability to monitor and control the microcontroller operating
monitor and control the microcontroller where the device with greater flexibility [1].
microcontroller is used to control the path of the optical signal by
using optical switch. Today, Microchip Inc, ones of the microcontroller
manufacturers have developed a single chip microcontroller
Keywords-microcontroller for optical switching, ethernet integrated with built-in Ethernet controller [2]. This
microcontroller, optical switching. improvement will make microcontroller easily to be connected
with PC through Ethernet network. Until today, Ethernet is the
most widely deployed network and are scalable from the
I. INTRODUCTION simplest to most complex network up to 248 network mode,
that why Ethernet is compelling for embedded application
Today, quite often a remote monitoring is necessary in because it will enabling a microcontroller to communicate to a
FTTH system. This application is used to control the ubiquitous data communication network. The Ethernet
monitoring device at the faraway location. The engineer at the technology is based on standard IEEE 802.3 that ensure
Central office is capable to control the device without going to reliability of network connection and data transmission and this
the site location. The conventional way to control the device will ensure interoperability. Once the system connected to a
and client computer is by using serial port. This connection is network, it can be monitor and controlled through internet.
limited only to the fixed length. While the Ethernet maximum cable length is 100meter,
communication over internet removes any previous distance
Internet is the biggest place where the information and data
barrier [3].
swap over. The internet network has been increasing from day
to day, and it already installed in many office and industrial In this paper, we want to propose an embedded Ethernet
buildings. It is the big network that has great advantages for microcontroller for optical monitoring. This design is used to
the remote monitoring and controlling. As internets are being control the optical path in the optical network for monitoring
more and more easily accessible to anyone nearly everywhere system. In FTTH network where optical fiber is used as
in the world today, it has become a preference in embedded medium for data transmission, the optical fiber forms an optical
microcontroller for remote monitoring and controlling. The waveguide for optical signal. Optical switch is used in this
combining of an Ethernet controller with the microcontroller system if there has a requirement to switch the optical signal
from a first optical waveguide to a second optical waveguide.
has become the hottest choice for the intelligent system today.
In other word, optical switch is a switch that enables optical
Now, every device has microcontroller as a heart in their
signal in optical fiber or integrated optical circuit to be
system. This is because microcontroller is a low–cost selectively switched from one circuit to another. In optical
embedded system where used by application that require communication, any connection or aligning for the first group
computing power delivered within a small form factor to of optical fiber with any one of a second group of optical fiber
control and monitor the consumer appliance, mobile robots, can be made by using the optical switch to enabling an optical
machinery, appliances, etc. signal to propagate through optical interface junction from one

978-1-4244-4956-9/09/$25.00 ©2009 IEEE 51


Figure 1. Proposed system

fiber to the other. There is a lot of telecommunication both Media Access Control (MAC) and Physical Layer
application that utilizes the optical switching such as networks transceiver (PHY) module. The five major functional block of
protection, network restoration, equipment and device this Ethernet module consists:
redundancy, and performance monitoring.
1. The PHY transceiver module that encode and decode
This paper will demonstrate the embedded Ethernet the analog data that is present on the twisted pair
controller to control the optical switch for optical monitoring interface and send or receive it over the network.
system. The microcontroller with internet connectivity is used
2. The MAC module that implement IEEE 802.3
to control the optical switch over internet network to control
compliant MAC logic and provide Media Independent
optical path. This design will have a great advantage for the
Interface Management (MIIM) to control the PHY.
optical communication application such as network protection
and network restoration in the FTTH system. It will give a user 3. An independent, 8-Kbyte RAM buffer for storing
to control the switching between line and to control the packet that has been received packets that are to be
switching time between the lines. In our design here, the transmitted.
PIC18F97J60 microcontroller system will act like a server and
host the web page for optical switch controlling application. 4. An arbiter to control access to the RAM buffer for
This web page can be accessed by user to control the optical storing packet that has been receives and packet that is
path through the internet network. This system can control the to be transmitted.
switching application either in manual mode or automatic 5. The register interfaces that function as an interpreter
mode. The system proposed is shown in the figure 1. of command and internal status signal between the
A. Microcontroller module and the microcontroller’s SFRs.
PIC18F97J60 is the latest microcontroller manufacture by The PHY module provides separate output to drive the
Microchip. It is a microcontroller with built in Ethernet standard Ethernet indicator, LEDA which multiplexed with
module. The design of PIC18F97J60 has meet all of PORTA pin RA0 and LEDB multiplexed with RA1. See
specification require by IEEE 802.3 and completely compatible [2] for more detail on the PIC18F97J60 hardware feature.
with 10/100/1000 Base-T network. These microcontrollers
B. Optical switch
need 2.35V to 3.3V direct current to operate. It has 3808Kbyte
static RAM, and 128Kbyte flash program memory, plus The optical switch used in this design is P1S18B-LDD
capable to address of up to 2Mbyte by using external memory manufacture by Omron’s [4]. This is a mechanical optical
bus. PIC18F97J60 is a 100 pin TQFP device with 70 general switch designed to switch an optical route of 1x8. An optical
purposes inputs outputs ports and the unique about this route is switched when an electromagnetic actuator move the
microcontroller is because of its built-in Ethernet controller prism according to an externally generated and applied input
module. control signal. This P1S18B-LDD model is optically passive,
operating independently of data rate, data format, and optical
In order to connect to the internet, a web server requires signal direction.
four main part of the hardware: the media access controller
(MAC), network physical interface device (PHY), isolating This optical switch contains an electronic interface board
magnetic and physical jack that connect to the network system. that converts TTL input signal to the switch’s optical channel
This microcontroller comes with the full implementations of position. Three channel input terminals (D0, D1, D2) is uses as
channel switch and one strobe input terminal. When power is

52
apply to this optical switch, the high level need
n to supplied to microcontroller system designn here will act as a HTTP web
strobe input terminal at the same time, if not, the switch doesn’t server module. When the pow wer is supply to the board, the
work properly. In the table 1 below show the optical switch LCD will display the status annd the IP address of the board.
configuration for the optical switch. The chaannel address input We can access the HTML weeb pages store in the embedded
(D0, D1, D2) need to set to the appropriatee value if want to Ethernet system by inserting the IP address that has been
choose a specific channel. See [4] for more detail on P1S18B- assign to this board using web browser on Personal Computer,
LDD. laptop or PDA as long as it connnected to the internet.
TABLE I. Optical switch configurration
CHANNEL INPUT TERMIINAL
D0 D1 D2
1 0 0 0
2 0 0 1
3 0 1 0
4 0 1 1
5 1 0 0
6 1 0 1
7 1 1 0
8 1 1 1

C. Embedded Ethernet system


The initial designs of this system, especiallly with the regard
to the hardware, based on the microchipp PICDEM.net 2
Development board. This board used use u PIC18F97J60 Figure 2. Web paage store in board memory
microcontroller with bidirectional Ethernnet and USART Figure 2 above show thhe web pages store in the
connectivity. In figure 3 show the developm ment board that has microcontroller system mem mory. User can control the
been design to use with 1x8 optical switchess. LCD module on operation of the optical switchh by using these web pages to
this board is used to display the status of o the board. Any send the instruction to the boarrd. Once the instruction from the
additional data and web page are store in thhe 256Kbyte serial web pages is received, the micrrocontroller will run the specific
EEPROM, this board is connected to internnet through RJ-45 algorithm to control the opticaal switch. The switching of the
port and DB9 socket is use for serial RS-2332 communication optical switch can be control either
e by manual or auto mode.
with the PC. In manual switching, user can determine
d which line or channel
This board required 9 - 12volt directt currents (VDC) to route the optical signal and for auto mode, the user need to
regulated power supply to operate. Four pin from input/output select the switching time between the channel and
port on microcontroller is connected to thhe optical switch, microcontroller will automaticcally switching the channel by
three pin is used as data control for the opticcal switch and one ascending sequence from chaannel 1 to channel 8. For this
pin is used for the strobe pin. The em mbedded Ethernet board we have specified thee switching time between the
channels either 10second, 30 seecond or 60 second.

Figure 3. Experiment boards

53
output. When the client inserts the address of the board, the
II. SOFTWARE web page will be appear. These web pages will send the HTTP
In this design, software environment are divide into two request to the board using GET or POST request method. The
parts, the first part is C programming language. These language GET method is a simplest method where all data is in memory
is use to design the microcontroller algorithm to control the at once and it automatically decodes compare to POST method.
optical switch. C language has become popular choice for
microcontroller programming compare to assembly language. III. EXPERIMENTAL SETUP
This is because C language is more systematic and easy to We have already test the capability of our system to
arrange compare to assembly language. The second part is the control the optical switch by internet network through
web programming language, it consist of the HTML, AJAX extensive experiment. This experiment is done by connecting
and CSS language. This web programming language is used to the optical switch with the embedded ethernet board. The
design the GUI for the optical switch application. The input of the optical switch is connected to the optical source
communication between the board and the PC client in the and the eight line of the optical switch output is connected to
network is accomplished by using Transmission Control the power meter FOT-600 to measure the insertion lost and
Protocol/Internet Protocol (TCP/IP). compare the result with the datasheet specification. FOT-600
A. Ethernet Communication [6] is a Optical Loss Test Set used to measure the loss in the
This design used TCP/IP as a communication protocol optical network. For the single unit of this device, it can
between the board and the PC client in the network. TCP/IP is generate the optical laser in several wavelengths for testing
a widely used communication protocol for internet. It allows purpose and has one power meter for measure the loss. In this
Total location independence and interoperability to any experiment, we test the switching in the manual mode
embedded application. In our design for Ethernet operation and the switching of the optical switch is control
communication is based on Microchip TCP/IP stack over internet.
application for communication between the physical network
When the power is supply to the board, the optical switch
port and application we want to use. This board application is
configured as the web server or HTTP server stores the web at default condition will be at channel 1. This because the zero
pages content in local memory where it capable to serving logic at the address input (T1, T2, and T3) is assign to the
HTML page to web browser through the network. By this channel 1. In figure 5 shows the insertion loss measure at the
application, we can use this board for status monitoring, remote channel 1 and in figure 6 shows the insertion loss measure at
management, and data retrieval application. channel 4. For this test, we used 1550 nm wavelength as a
source for optical signal and we use 2 unit FOT-600 for the
B. Web bases application testing, where for the first unit is to generate the optical source
The web page is used as a GUI which runs on remote client and measure the loss in the channel 1 and the second unit is to
computer to communicate between the user and the board. It measure the loss in the other channel. In figure 4 below show
allows the web server module to accept data from user through the experimental setup for the switching testing.
a network. This data can be used to control system memory or

Client PC
Ethernet Board Connect to Internet

Web browser

FOT-600

Optical Input Signal

Optical Output Signal

Figure 4. Experiment configuration

54
Figure 5. FOT-600 measure loss at terminal 1

Figure 6. FOT-600 measure loss at terminal 4.


IV. RESULT AND DISCUSSION of the Ethernet communication in the embedded system has
improved remote monitoring, control, diagnostics, and data
To validate the system, we performed some evaluation by
collection application to the next level. The proposed Internet
measuring the insertion lost and compare the result with the
datasheet specification. From the optical switch datasheet Based Embedded system here is a complete hardware and
specification, the insertion loss is state at 2.0dB; this value is software for switching application. This intelligent unit is
measured without the connector. The results obtained are perfectly suited for optical switching where it plays a major
summarized in table 2. process in the optical networking.
REFERENCES
TABLE II. Insertion loss measurement
[1] Imran Ahmed, Hong Wong, and Vikram Kapila, “ Internet-Based
Optical Insertion Loss Remote Control using a Microcontroller and an Embedded Ethernet”
channel From datasheet Experimental result Proceeding of the 2004 American Control Conference
Channel 1 2dB 2.51dB [2] PIC18F97J60 Family Data Sheet, Microchip Technology Inc., 2008,
Doc. no. DS39762D.
Channel 2 2dB 4.26dB [3] The microchip webseminar website, [Online]. Available:
Channel 3 2dB 3.53dB http://techtrain.microchip.com/webseminars
[4] The Omron electronic Component website,2008 [Online]. Available:
Channel 4 2dB 3.88dB http://www.components.omron.eu/
Channel 5 2dB 3.54dB [5] Hong Wong and Vikram Kapila, “ Internet-Based Remote Control of a
DC Motor using an Embedded Microcontroller,” Proceeding of the 2004
Channel 6 2dB 3.73dB
American Society for Engineering Education annual Conference
Channel 7 2dB 3.09dB &Exposition
Channel 8 2dB 3.25dB [6] EXFO. 2006. FTB-400 Universal Test System User Guide. EXFO
Electro-Optical Engineering Inc, Canada.

V. CONCLUSION
Today, embedded system with Ethernet connectivity has
become popular choice for the system design. The advantage

55

You might also like