Copyright Warning & Restrictions

The copyright law of the United States (Title 17, United States Code) governs the making of photocopies or other reproductions of copyrighted material.

Under certain conditions specified in the law, libraries and archives are authorized to furnish a photocopy or other reproduction. One of these specified conditions is that the photocopy or reproduction is not to be “used for any purpose other than private study, scholarship, or research.” If a, user makes a request for, or later uses, a photocopy or reproduction for purposes in excess of “fair use” that user may be liable for copyright infringement,

This institution reserves the right to refuse to accept a copying order if, in its judgment, fulfillment of the order would involve violation of copyright law.

Please Note: The author retains the copyright while the New Jersey Institute of Technology reserves the right to distribute this thesis or dissertation

Printing note: If you do not wish to print this page, then select “Pages from: first page # to: last page #” on the print dialog screen

The Van Houten library has removed some of the personal information and all signatures from the approval page and biographical sketches of theses and dissertations in order to protect the identity of NJIT graduates and faculty.

ABSTRACT

MUTUAL INTERFERENCE INVESTIGATION OF CEBus and X-10 POWERLINE SIGNALING

by Sajid Pallithotungal

Powerline control signaling using CEBus has great potential towards inexpensive . CEBus transmits at 10 kBps using spread spectrum in the 100-400 kHz band while X-10 sends 60 Bps using bursts of 120 kHz carrier on the power line. However, these two signals may destructively interfere when present simultaneously. X-10 is narrow band and interferes with the CEBus spread spectrum signal. This thesis looks into the mutual interference patterns of Power Line CEBus communication in the presence of

X-10 module signaling and visa versa. The investigation encompasses a series of tests and measurements on a Powerline CEBus- test bed. The test bed allows progressively attenuated signal levels of X-10 to interact with CEBus and vice versa.

Thus, the probability of success of CEBus and X-10 packets were studied at various levels of CEBus and X-10 in absolute as well as in relative terms in the ranges of approximately 0 to 20 dB. In general, the CEBus signal obstructs the X-10 signal. Weak strength X-10 does not have any effect on CEBus, but a weak strength CEBus does have a discernable adverse effect on X-10. For the same levels of attenuation, CEBus packets have a higher probability of survival than X-10, which can be attributed to the processing gain inherent to the CEBus spead spectrum signaling as well as to the lower detection threshold level of CEBus with respect to X-10. However, when a strong X-10 signal interferes with a weak CEBus signal some probability of CEBus packet loss was observed. Simulation studies further illuminated the interference behavior of the CEBus

X-10 cohabitating signals under that scenario. MUTUAL INTERFERENCE INVESTIGATION OF CEBus and X-10 POWERLINE SIGNALING

by Sajid Pallithotungal

A Thesis Submitted to the Faculty of New Jersey Institute of Technology in Partial Fulfillment of the Requirements for the Degree of Master of Science in Telecommunications

Department of Electrical and Computer Engineering

August 1999

APPROVAL PAGE

MUTUAL INTERFERENCE INVESTIGATION OF CEBus and X10 PO MANE SIGNALING

Sajid Pallithotungal

Dr. Constantine N. Manikopoulos. Thesis Advisor Date Associate Professor of Electrical and Computer Engineering New Jersey Institute of Technology

Dr. Yun-Qing Shi. Committee Member Date Associate Professor of Electrical and Computer Engineering New Jersey Institute of Technology

Dr. Dennis Karvelas. Committee Member Date Director MS in Telecommunications New Jersey Institute of Technology BIOGRAPHICAL SKETCH

Author: Sajid Pallithotungal

Degree: Master of Science in Telecommunication

Date: August 1999

Undergraduate and Graduate Education:

• Master of Science Telecommunications New Jersey Institute of Technology, Newark, NJ, 1999

• Bachelor of Science in Electronics Engineering Bombay University, India, 1990

Major: Electrical Engineering This thesis is dedicated to Dr. Homi Jehangir Bhabha ACKOWEGME

e auo wises o eess is sicee aeciaio a gaiue o is aiso C Maikoouos o is cosa suo a ecouageme ougou is eseac e wou aso ike o ak is esis commiee memes Si a Kaeas o akig ime o om ei usy sceues o eiew is wok

i AE O COES

Cae age 1 INTRODUCTION 2

1.1 Overview 2 2 CEBUS ARCHITECTURE AND PROTOCOLS 4

2.1 CEBus Architecture 4

2.2 Control Channel Signal Encoding 10

2.3 The CEBus Channel Access 11

2.4 Contention Detection and Resolution 13

2.5 Message Failure and Retransmission 14 3X-10 16

3.1 X-10 Architecture 16

3.2 X-10 Signal Encoding 17

3.3 Theory of Operation 17 4 SIMULATION MODEL 20

4.1 The Simulator 20

4.2 Network Model and Traffic Patterns 21

4.3 Relation between CEBus and X-10 Transmission 22

4.4 Performance Measure and Definitions 24

4.5 Analysis and Discussion Of Simulation Results 25 5 INTERFERENCE INVESTIGATION 26

5.1 Test Bed 26

5.2 Test Scenarios 27

5.3 : Test Measurements and Results 32 CONCLUSION 35 APPENDIX 37 REFERENCES 53

ii

IS O IGUES

igue age 2.1 Organization of CEBus 4

3.1 X-10 Messaging Format 15

3.2 X-10 Transmission synchronized to the power line zero crossing 17

3.3 X-10 Message takes 11 cycles 17

3.4 X-10 Full Packet 18

4.1 Relation between Frequency and time in one UST 22

4.2 (a) X-10 transmit 3 1-ms bursts of 120kHz every 16.7 ms and (b) CEBus transmits USTs each of 100microsec continuously 23

5.1 Attenuator-Bridge circuit 26

5.2 CEBus and X-10 transmitter and receiver on the same side of the power strip 27

5.3 X-10 transmitter on one side and CEBus transmitter and receiver on the same side along with X-10 receiver 28

5.4 X-10 transmitter on side and CEBus Transmitter and Receiver on the other side of the power strip along with the X-10 receiver 29

5.5 X-10 transmitter and CEBus Transmitter on one side and both the receivers on the other side of the power strip 30

5.6 Scenario 1:X10 statistics 31

5.7 Scenario 1: CEBus statistics 31

5.8 Scenario 2: X10 statistics 32

5.9 Scenario 2: CEBus statistics 32

5.10 Scenario 3: X 10 statistics 32

5.11 Scenario 3: CEBus statistics 33

5.12 Scenario 4: X10 statistics 34

5.13 Scenario 4: CEBus statistics 34

5.14 Unattenuated X-10 signal 38

5.15 Attenuated X-10 signal 39

viii IS O IGUES (Coiue

igue age 51 Uaeuae CEus 517 Aeuae CEus 1 51 Aeuae CEus siga (19 519 Aeuae -1 siga (19 3 5 acke eceie i eo s omaie oee oa 51 Message ougu s omaie oee oa 5 5 omaie oee oa o acke eg o 13 53 Message ougu s omaie oee oa (11 oa 7 5 Cae ougu s omaie oee oa 55 oage swee a (Sceaio 1 9 5 oage swee a (Sceaio 5 57 oage swee a (Sceaio 3 51 5 oage swee a (Sceaio 5

i IS O AES

ae age

1.1 Major characteristics of the Home Automation Groups 2

1.2 Symbol Duration for PL 8 CAE 1

IOUCIO

11 Oeiew

Over the past ten years a new industry called "home automation" has been developing.

This industry will create the next generation of consumer appliances. Not only is modem housing becoming more convenient to live in and more energy efficient, but also the primary value added by home automation is the integration of products and services for household use.

In America, several groups have attempted to develop home automation standards. The most focused of these are CEBus, X-10, Smart House, and Echelon. The

EIA (Electronic Industries Association) has taken the lead with the development of the

CEBus, the Consumer Electronic Bus. In 1984, a committee was made up of such major companies as , Philips, Panasonic, General instruments, Mitsubishi, RCA, and

Johnson Controls to develop a standard to facilitate communication between home appliances over various media. The primary goals of the CEBus are, it is profitable which makes it low cost, expandable, ease of operation, use distributed intelligence (have no central computer in order to operate), have an open architecture which means that any product manufacture may produce compatible devices on their own. It follows the

ISO/OSI seven layer network model [1].

X-10 was introduced in 1978. It uses power line carder transmission for system

control. It is a one-way open loop system with limited potential for intelligent home

control [2]. Echelon is similar to CEBus concept. It produced a specialized computer chip

called "O" which allows multiple devices to communicate through any medium. However, the primary difference is such issues as protocol, language and the proprietary

standards (i.e. it is not an open architecture and is owned by the manufacturer) [3]. Smart

1 House is developed by the National Association of HomeBuilders (NAHB). It is especially for new houses where a three multiconductor cable is installed during original construction in place of conventional house wiring. This cabling system combines power, control, telephone, and coaxial conductors and provides a dedicated six-wire bus throughout the house [4]. Table 1.1 shows the major characteristic comparison of home automation groups in the United States.

ae 11 Major Characteristic Comparisons of the Home Automation Groups CAE

CEUS ACIECUE A OOCOS

1 CEus Aciecue CEus oows e ISO/OSI see aye ewok moe wi some ayes eig u as sow i igue 1 Eac aye is esosie o oe asec o ewok commuicaio wi eac aye oy ae o ak o e ayes iecy aoe a eow i y eakig e moe io we-eie ieces imemeaio a suo ae geay simiie

11 Aicaio aye e iges ee is e aicaio aye a is esosie o wa e e use uimaey sees CEus as e iges ee eie wic is wa e e use wi see (ecause i may cases oeaio wi e asae o a o e eices eisig ucioaiy u wa e ogamme sees Aicaio aye wi aso oie e caaiiy o segme og messages io a sequece o soe ackes a o guaaee e-o-e message eiey ese ackes ae ae ow o e owe ayes o asmissio EIA as eie CA Commo Aicaio aguage o aow eices o commuicae ieigey wi eac oe e mai use o CA iiiay wi e o coo e aguage as umeous commas eie o uig eices o a o immig u a ow oeig a cosig us moe comicae acios suc as seig C eses o esoig o eeoe commas I is acuay ae ie ee ae aes o cosas wic ae ee eie o eese eice caegoies commas acio a esoses As ew eices ae eeoe y mauacues e aes wi e eae (ue EIAs coo o icue ose eices a ay ew ucios [5] A eae is ae o e o o e CA comma o ceae e Aicaio ooco aa Ui (AU wic is e asse o e ewok aye

3 4

igue 2. Organization of CEBus

2..2 aso, Sessio a eseaio ayes In the CEBus, the transport, session and presentation layers have been omitted to minimize packet length and device complexity. Some of their functions are handled by the application, network, and data link layers.

2.. ewok aye The network layer is responsible for all the functions described in the OSI reference model except for segmentation and network connections, where segmentation takes place

in the application layer and the flow control of the segments is handled by the network layer. The Network Protocol Data Unit (NPDU) is added to the front of the information 5 ie asse ow y e aicaio ee I eoms ouig o U ewee iee meia oug oues ee ae si is o eemie wic meia is o eceie e acke Seig a i i e ie esus i e coesoig meium eceiig e acke (assumig oe ige is ese o ase ackes acoss meia e as wo is eemie wee e acke is o e se usig oo ouig iecy ouig o iecoy ouig wi a eques o a eu I I oo ouig e acke is se o eey meium seciie i e es o e ie I iecoy ouig e acke is oy se o e meium wic oss e esiaio oe?

1 aa ik aye e ucio o e aa ik aye ( is iie io wo suayes e Meium Access Coo (MAC Suaye a e ogica ik Coo (C Suaye

ogica ik Coo Suaye (C e C Suaye oies e ieace o e ewok aye a amiises e asmissio a eceio o Us I eceies Us wee agai a eae is ae e U as a ie oma a may e o wo yes o seices uackowege o ackowege coecioess seices I uackowege seice a acke is se iy i e oes a i makes i o e esiaio Ackowege seices make use o a IACK a easmissio mecaisms o asmi a acke a ogica ik Coo Suaye aa Ui (U is geeae a asse ow o MAC Suaye wi is associae coo aamees I ackowege seice is use e C Suaye wais o e eceio o a IACK a i oe aies i ui symo ime i iiiaes a easmissio o e MAC ame We a ame is eceie y e MAC Suaye e U is emoe a asse o e C Suaye e C eae is e emoe om e U a e emaiig U is asse u o e ewok aye e ewok o eemie i ayoe ese is aeay asmiig We e ewok is ee e oe wais a ceai amou o ime eoe yig o asmi o aoi coisio oe sas y seig ou a eame I e eame suies iac e es o e acke is se I a coisio is eece asmissio is aoe a e ocess sas agai

15 ysica aye A e owes ee is e ysica aye I is iie io suayes Symo Ecoig Suaye a e ysica suaye is is wee CEuss geaes seg ies sice seea iee meia ae eie i e seciicaio wi e coice o wic meium o use u o e aiace esige A seaae ysica aye seciicaio eiss o eac iee meium A e ayes aoe e ysica aye ae ieica egaess o meium so e ewok is meium ieee Sigaig is oe o mos o e meia y swicig ewee a SUEIO a IEIO sae imes ewee cages eemie e iomaio eig coeye "Oe" i as oe "Ui Symo ime" (US "eo" is as wo USs e-o-ie as ee USs a e-o-acke as ou USs Eacy wa eies e sueio a ieio saes ees o e meium Aso sice caaceiig commuicaio see o a meium i is e seco is meaigess sice oe is a eo is ae o iee uaio aa aes ae usuay eie i ems o "oe is e seco" Saisicay e oea ougu i is e seco is aou wo-is e aue o oe is e seco ae 1 Symo uaio o e CEus seciicaio eies si meia wic may e use o cay e siga owe ie wise ai ie oic coaia cae aio equecy a iae e Symo ecoig suaye eeses ecessay ieace o e Meium Access Coo (MAC aye a e ysica aye o e meium e symos o a ame ae gie seiay o e SE Suaye o asmissio a eo eecio akes ace i is suaye

owe ie ( I is ikey o e e meium o coice o mos aiaces mea o eoi isaaios sice amos eey ouse a usiess i e wo is wie o eeciciy Sice owe ie is suc a as eiome wi oise a asies e om is is e sowes o a meia u si ae o aai a aa ae o 1 oe is e seco wi a US o 1gs asmissio use a 1 k caie o eoe a sueio sae a e ack o a siga o a ieio sae Uike -1 sysems wic asmis oy a e eo cossig us asmis egaess o e sae o e AC owe o e ie? eeoe asmissio ca si ake ace ee i owe is ese someig a ca e oe wi - 1

Iae o Sigeoom us (Sus Sus is a aem o ae a sige a-e emoe a asmis a ai CEus commas o oy e C o i e same oom u wi e oe ige i ace o asmi e Sus sigas oo us o oe o oe meia i sou e ae o coo ay CEus-comaie eice icuig igs a oe e ouse o e oo oee ou i e gaage Sus uses a 1-k iae cae a use-osiio sigaig o aai a aa ae o 1 oe is e seco A 5 s us o I is use o iicae a asiio om sueio o ieio y usig us so uses e a e emoes ie is ee 8 aio equecy us (us Currently used predominantly in the security industry, RF is another medium that would work well in retrofits. FCC regulations limit the strength of RF transmission, so whole house coverage may be possible without interfering with the neighbors' CEBus appliances.

wise ai (us TPBus promises to be the most useful high speed medium in the majority of installations.

Some houses may have extra telephone pairs that could be used in retrofits. TPBus runs

at a data rate of 10,000 one bits per second and uses a + 125mv peak to peak signal.

Similar to SRBus, TPBus uses 50-p.s pulses to indicate transition.

Coa Cae (Cus With the spread of cable TV, many houses are being wired with coax cable for television

distribution. Since, within the house, the TV signal isn't using the entire bandwidth of the

cable, there is plenty of room for adding control information plus high-quality audio and

video to the same cable. CXBus uses the same pulse width modulation used by PLBus,

with a UST of 100 ms, providing a data rate of 10,000 one bit per second.

ie Oics (Ous Fiber Optics is becoming the medium of choice where high data transmission rates and

low noise pickup are important. While some provisions have been made for this medium

in the CEBus protocol definition, very little work has been done on the physical details.

2..6 aye Sysem Maageme (SM Layer System Management (LSM) is the entity responsible for initializing variables and

processes and for keeping and reporting network status information. The LSM initializes 9 a maiais ee-o-ee ooco o eac aye a oies a ieace mecaism ewee o-aace ayes [1] e aye Sysem Maageme is coceuay aace o eac o e ayes a eoms aious ewok amiisaie ucios ie • eseig aye eiy o a kow sae • eaig a seig aamee aues iiee suaye • oiyig iee suayes o sigiica ees i e aye Sysem Maageme o i e oe aye o e oe

2.2 Control Channel Signal Encoding e siga ecoig o e coo cae wi e o eu o eo ( use Wi Ecoig usig e symos "1" "" "EO" "EO" ese symos ae ecoe usig a swe equecy caie coue o e owe ie e caie wi cosis o a siusoia waeom a is swe ieay om 3 k o k o 19 cyces ack o 1 k i oe cyce e ack o 3 k i 5 cyces uig a 1msec iea is caie swee eio eeses e soes symo ime ("1" o ui symo ime uig oge symo imes e caie swee eeas o a muie o e ui symo ime[ ] e ecoig o e symos wi e eome usig e SUEIO a IEIO saes o e meium uig e eame oio o e CEus message e esece o e equecy swe caie o e wi eese e SUEIO sae a e asece o e caie wi eese e IEIO sae uig e o-eame oio o e message e equecy swe caie coiuay asmie a ecoes e iee symos y eesig e ase o e caie swee is ca e see ceay i igue 3 I SUEIO1 a SUEIO ae use o eoe iee ase esios o e SUEIO sae e 1 they are opposite in phase, regardless of the value of the phase. In the Figure SUPERIOR 01 will be used to denote the phase of the carrier transmitted during preamble.

3 e CEus Cae Access The CEBus channel access protocol is a carrier sense multiple access with contention detection and contention resolution CSMA/CDCR. The protocol attempts to avoid contention by delaying a random amount of time after the end of the previous transmission before attempting channel access. Random wait is based on these factors: 1 Deference to other channel traffic in SUPERIOR STATE. 2 Prioritization 3 Round-robin queuing 4 Random start.

31 Sueio Sae eeece

A node, while transmitting as SUPERIOR state on the medium, will dominate any attempt for the transmission by any other transmitting node in the INFERIOR state. A node with a frame to transmit will defer its transmission until EOP symbol and a minimum of 10 unit symbol times. This mandatory channel quiet time allows an immediate acknowledge or a retransmission be sent without conflict for the channel.

3 ioiiaio

Figure 2.4 illustrates the priority and round-robin queuing delays. The EOP symbols defines the end of a previous transmission. 10 unit symbol times must follow each EOP before any new transmission can begin. Following these 10 unit symbol times is a slot of eig ui symo imes o ig ioiy asmissios Oeaig wi e as ou ui symo imes o a so is a so esee o saa ioiy asmissios iay oeaig wi e saa ioiy is a so esee o eee ioiy is sceme aows oes wi ige ioiy ames o seie e cae eoe oes wi owe ioiy ames

2.. Queuig a ouoi Sceuig e use o e ou-oi sceme wii e same ioiy ee esues a e coeig oes ae equa oouiy o access e cae Wii eac o e eig ui symo ime ioiy sos ae wo suiisios ou ui symo imes eac o uqueue a queue asmissios

Queue Sae Oce a asmiig oe comees a asmissio successuy e oe wi e ace i e queue sae om a uqueue sae e eec o eig i e queuig sae is o eeaey ee cae access o a uqueue oes a e same ioiy ee wic ae o ye ee ae o asmi a message I e queue oe coims a o oe uqueue oes aem o se a message uig e 4 US o is queue saes eay i may aem o se a message as eee

Uqueue Sae is sae occus i oe o e oowig wo cicumsaces I I i as o message o se a e meium is sese ie o e maimum cae access ime ( USs I oe o e queue oes comee a asmissio uig e oowig US sos 2 2..4 aomiaio Because more than one node may be in the same priority level and queuing state, the probability of contention still exists. A random delay of either 0, 1, 2, or 3 USTs is used for the control of each node's transmission start time, which results in reduction of contention probability during each of the priority queuing time slots (Figure 2.4 b). By this method, the channel throughput can be improved significantly.

2.4 Coeio eecio a esouio In the earlier section, steps taken to avoid contention were discussed. However, two or more nodes may still attempt to transmit a frame during the same time interval. To ensure reliable communication between Data Link Layers, a means of detecting contention and resolving in favor of one node is still required.

The use of SUPERIOR and INFERIOR states on the transmission medium enables contention detection. Any node, which senses a SUPERIOR state while sending an INFERIOR state, will defer its transmission. It becomes aware of the presence of one or more other transmitting nodes.

Contention will normally occur at the beginning of the transmission. Therefore, the Preamble, positioned at the beginning of the frame, serves to provide signal pattern and to shield the information from being lost during contention. The Preamble field is made up of a random sequence of bits, which is usually a function of the node address

and the number of ONE symbols already transmitted by the node [1 ].

Contention resolution involves the simultaneous transmission of more than one Preamble.

Since the node which drops into the INFERIOR state first is removed from contention,

the wining node is able to transmit free of contention. That is, contention has to be

resolved during the Preamble. The Preamble carries no information and its bits are not

included in the calculation of the checksum delivery of the frame will be successful. 13

A collision refers to overlapping transmissions after the Preamble. Although conflict over the channel during any part of the frame after the Preamble constitutes a breakdown of the channel access method, a sending node will abort its transmission and defer during any part of its frame. This will result in the reception of a bad packet.

Therefore, a retransmission will be required.

2.5 Message Failure and Retransmission

Message failure occurs when the received frame does not appear to be valid to the receiving node. If all required fields of the frame are not received properly, the frame will be rejected as being a fragment. In addition, a packet could be rejected if the checksum performed at the receiving node indicates faulty data. Noise on the channel and conflicting node transmissions could cause these message failures. Therefore a retransmission may be needed to guarantee a successful delivery. To increase the reliability of the network, an Immediate Acknowledgment (JACK) and retransmission mechanism could be used.

2.5.1 Immediate Acknowledgment (JACK)

The Immediate Acknowledgment mechanism enables the transmitting node to determine the success or failure across a single medium. It is invoked when the Network Layer requests acknowledged connectionless service.

When a message is received without errors, and an acknowledgment is requested, the receiving node forms an JACK frame. The TACK frame is sent out onto the local medium

within 2 USTs of the end of the LOP symbol of the originating frame. By immediately

responding within the minimum channel access time (10 UST), the receiving node is

assured of sending the JACK without having to contend for the channel. 14

2.5.2 Retransmission

If a negative acknowledgment is received, or if no IACK is received within 6 USTs at the originating node, then the originating node will begin a retransmission. Immediate channel access is achieved by beginning the retransmission before the minimum channel access time elapsed. All nodes counting the minimum wait time will hear the retransmission and defer to it. CAE 3

-1

31 0 Aciecue -1 was iouce i 197 I uses owe ie caie asmissio o sysem coo I is imiie a oes oie iegae ewok Is oucs o o commuicae o a -way asis I esey ocuses as moua a-o ye eices wic ae esige o oe ucios o o/o a ee coo o esisie a eacie oas e -1 oeaio is ase o 1 ee coes a 3 ume coes a ae comie io a sige comma acke O e 3 ume coes 1 eeses ui aess a e emaiig 1 eeses commas ike o o ec A ee coe is use o ieiy wic gou o uis wi eceie commas Comiig a ee coe wi a ui aess esus i 5 ossie aesses o -1 uis e sucue o e coe is sime e ee coe ecees e ume coe wic makes ie is us a sa sequece o wo is o a oa o eee is [](igue 31

4

igue . -1 Message oma

e uis ae is aesse y seig e ee coe a ui coe e oeaio es e uis o eec a comma Seea uis o e same ee coe ca e aesse simuaeousy y seig muie ui aesses eoe oe comma e a comma o seies o commas ae se o e uis e uis ememe 6 that they have been selected even after receiving a command, so as long as no new

addresses are send the same units will receive and carry out subsequent commands.

.2 0 Siga Ecoig X-10 transmission denotes "1" bits with three 1-ms burst of 120-KHz signal and "0" bits

with the lack of this signal. One bit is transmitted at each zero crossing of the 60 Hz

power line frequency. Each bit is transmitted plus its complement side by side. This

aspect is true for all letter code and unit code data bits. The start code uses a different

format. It is always the same two cycles sequence 1110. The transmitter releases a burst

at its own zero crossing, then sends it again 60 ° later: the second burst coincides with the

zero crossing of the third phase. Then another burst is sent 120 ° from the first, which

corresponds with the zero crossing of the second phase. This is shown in Figure 3.2.

. eoy o Oeaio All receivers are looking for a "start code" before anything else. This start code is defined

as 1110. For the receiver to consider accepting a full transmission it must first receive the

1110 in 4 adjoining, consecutive zero crossings. Once the start code has been received,

the next four true bits of data are compared to the letter code of the receiver's address.

Should the letter code not match, all further data will be ignored until the receiver detects

another start code. If the letter code match, the next five true bits of data are compared to

the number code. When both the letter and number codes match, the receiver will await a

function code. Time wise, this sequence, so far takes 11 cycles as shown in Figure 3.3

[6]. For reliable transmission this series is sent twice. The data string for the command

portion of the transmission also begins with a start code. After that, the code is again

checked for true complement relationships. 17

Figure 3.2 a) X-10 transmissions are synchronized to the power line zero crossings. b) during the next half cycle, c) A 0 bit is the opposite, with the bursts occurring during the second half of the cycle, d) Every transmission begins with a unique start code, which lasts two full AC cycles.

22 HALF CYCLES FOR A COMPLETE MESSAGE

Figure 3.3 X-10 Message takes 11 cycles

A "1" data bit is represented by three 1-ms bursts of 120 kHz signals, followed by silence

letter code comparison, and if the next 5 bits indicate that this code is the command for

Figure 3.4 X-10 Full Packet

"ON", then the receiver will switch on. A pause of 3 power line cycles is inserted between the identification data and function data. This means that a full and complete transmission consists of 47 cycles, or .7833 seconds [7]. (Figure 3.4) CAE

SIMUAIO MOE

1 e Simuao e simuao is iey escie i is cae e eiiios wic goe e aaysis a iscussio o e simuaio esus ae iouce ee e simuao o e sysem a ooco moe o e eeime was wie i C aguage usig C iay ucios oie y AS [] AS is a coiguae simuao esige o moe commuicaio ewoks I ca e moiie o simuae e CEus aciecue oose i e EIA saa eease i Ocoe 199 [1] a e -1 aciecue e aiues o a commuicaio ewok seciie y AS ca e iie io wo caegoies e is caegoy coais saic eemes o eame sysem aciecue a ooogy e seco caegoy coais yamic aiues a escie e emoa eaio o e moee sysem e eame aic aes a eomace measues e simuaio ioes wo asks sysem a ooco moeig a ewok coiguaio ee ae ou ogam ies eee o ieace AS a e CEus ewok ey ae ooco c ooco oios a e iu aa ie e ooco c ie seciies e eecuae a o e ooco seciicaio a ucios wic eese ooco ocess eecue y saios (oes I aso coais wo oe suouies a mus e icue wi e ooco moue e is i ooco wic iiiaie e simuao a eas e aues o e goa ooco-seciic aamees e seco ou ooco wic coais e ouu esus a e ooco- seciic iu aamees e eiiios o ooco-seciic symoic cosas a e ecaaios o o-saa saio aiues ae ou i e ooco ie e oios ie coais e oca oios suc as ecisio o umes e ye o o aiaes eeseig o asmissio aes e eg o aiioa

19 20 iomaio caie y messages a ackes e ye o asmissio ik a e ume o momes o e cacuae o saa saisics e iu aa ie coais e ime secio a e coiguaio secio wic eie e ackoe o e ewok I coais e ume o saios e ume o os e saio e ik ume a ye e oa ume o os a ei asmissio aes e isace mai esciig e isace ewee e oes e ume o messages e message eg e mea ieaia ime e ume o sees a eceies a oioa oo gou o oacas ye messages e ia segme cosiss o e ei coiios amey e oa ume o messages o e geeae e simuaio ime a e CU ime imi

4.2 ewok Moe a aic aes e owe ie ( o CEus oeaes a a aa ae o 1K/s e assumios use o eeo e moe ae as oows • Ieee oisso aia ocess a eac oe wi ae ackes/sec • e acke eg o CEus ae eoeiay isiue wi mea is • e e-o-e oagaio eay is igoe sice i is muc smae a e acke asmissio ime; • e i ae o e cae is c 1 OE is/sec • ee ae M oes o e ewok e oa ume o oes M uiie i e simuaio is 1 ee ae 9 oes o -1 a 9 oes o CEus o wic ee oes eac o IG SAA a EEE ioiy casses A CEus geeae messages ae symmeic o eac ioiy cass us eac o e 9 oes emoy e same aes(eg same aia ime o ge access o e meium e CEus omaie oee oa G wic is eie as e oa oee oa omaie y e cae caaciy C is cacuae usig e oowig 1 1

C length for the three types of messages, respectively. In this simulation study, packet length of 300 bits have been considered for the CEBus packets. The packet arrival rates for all three priorities are equal. Furthermore, the following studies involve equal message and packet length to reveal the queuing time effect. The X-10 normalized offered load is calculated using the following relationship:

x C where ;( λx stands for the arriving rate of packets, L— is the packet length and is equal to

44 bits, and Cx is the bit rate on the channel and is equal to of 60 bits/sec. All the simulations were run for a total of 5,000 messages.

4.3 Relation between CEBus and X-10 Transmission

CEBus powerline uses bursts of 120 kHz signal, know as the SUPERIOR state to send bits of information, similar to the way X-10 works. CEBus uses a swept frequency carrier coupled to the power line. The carrier will consists of a sinusoidal waveform that will beswept linearly from 203 kHz to 400 kHz for 19 cycles, back to 100 kHz in one cycle, then back to 203 kHz in 5 cycles during a 100~sec interval. The relation between time

and frequency during one UST is shown in Figure 4.1. In an effort to estimate the probability of interference, p, between CEBus and X-10 during one UST, we assumed the

following The presence of a filter of Q = 5. Then the probability of frequency being in the

range of 120 kHz + 12 kHz during one UST is calculated. 22

cycles

Figure 4.1 eaio ewee equecy a ime o 1 US e esece o e ie wi egae is cacuae oaiiy o ieeece e ousess o sea secum wic aows cosieae egaaio eoe a eo is

5/(3-1 + 1(-1 = =9 5

ecae So we assume i o e i e oe o 1 -3 I ou eeime we use a CEus acke o 3 USs Sice oe US akes 1sec e e woe acke wi ake 3msec uig is 3msec -1 I oe miiseco CEus asmis 1 USs o esimae e oaiiy o eo OE i case o a coisio ewee CEus a -1 ackes we may wie OE = 1 - E wee E is e oaiiy o o eo E = (1- wee is e ume o USs a coies wi e 1 k uss o -1 = E = (1- = (1 - ® = (1- 1 = 9 POE = I - E = 1 - 9 = eeoe e oaiiy o eo i CEus acke i case o coisio wi -1 acke is ake as % i ou eeimes 23

3 ms ( Figure 4.2 (a) X-10 transmits 3 1-ms bursts of 120 kHz every power line cycle or every 16.7 ms (b) CEBus transmit USTs each of 100psec continuously bursts * 10 USTs per burst = 60, and p is the probability of interference, which was assumed 10 -3

4.4 Performance Measure and Definitions

The traffic generator in LANSF generates the packets and places them in station's queue.

Once a packet is in a queue it waits until it reaches the top of the queue [9J. When a packet is on top of its queue it is ready to be transmitted. The time spent in the queue

awaiting transmission is called the queuing time. There are two types of delays. They are

message delay and packet delay. In addition, we can consider two different types of

throughput. Namely, channel throughput and message throughput.

Message delay which was measured as the time elapsed from the moment the message

was queued at the sending node to the moment the entire message is successfully

received at the destination (including the message queuing time) [101

Packet Delay was measured, as the time elapsing from the time the packet became ready

to be transmitted to the moment it is successfully received at its destination Message

throughput was calculated as the ratio of the total number of bits received at the

destination address to the number of bits generated at the source. 24 Cae ougu was measured as the ratio of the total number of information bits successfully transmitted through the link to the simulation time. This sometimes is also referred to as effective throughput of a link, in that it includes not only the bits that were received on the link, but also the bits that were successfully relayed to some other link.

4. Aaysis a iscussio O Simuaio esus

4.. CEus eomace i e esece o 0 Moues (aMessage ougu s oa The message throughput for the IG, STANDARD and DEFERRED priorities. It is clearly seen that the throughput starts to decrease when the load rises to 2, 0.85, and 0.6 for the IG, STANDARD and DEFERRED priorities respectively, in agreement with the corresponding observations for message delays.

( Cae ougu s oa The channel throughput vs. normalized offered load. It is seen the channel throughput

increases as the load increase, until it reaches a maximum of 0.6, 0.81, and 0.88 for 100

USTs, 300 USTs, and 540 USTs, respectively.

(c ume o ackes eceie i Eo The number of packets received in error increases as the number of X-10 packets

transmitted on the channel increases. However, it was found out to be less than 2%. CAE 5

IEEECE IESIGAIO

51 es e

A test was setup to study the interference pattern and the probability of successful transmission of CEBus and X-10 packets under different scenarios. The test bed is as shown in the figure 5.2

The test bed consists of the following components

• CEus asmie Transmits 32 byte long packets (test kit), which could be

interfaced with an ASCII terminal to control the device

• CEus eceie Used to receive the transmitter CEBus signal

• -1 asmie Used to generate X-10 signals.

• -1 eceie connected to a lamp, the successful transmission of a X-10 signal is

judged by counting the number of times the lamp switches on and off.

• aiae Aeuao ige Cicui This bridge circuit determines load that needs

to be applied between the two isolated power strips. In our calculation we used 20,

10, 5, 2 and 1 dB attenuation. However the graphs are plotted with the actual

observed attenuation.

• ie ie To isolate any noise or interference from the regular power sockets

• Secum Aaye a Oscioscoe to record all the voltage levels

• Aeuao ige The attenuator provides from 0 to 101 dB of signal frequency

attenuation, in 1 dB steps, between the power strips and is designed to match a 20

ohm load. Placing 20 ohm resistive loads on each power strip allows the line

impedance "seen" by the device under test (DUT) to be 10 ohms, per the CEBus test

specification

5 26

5..2 Test Scenarios Four different test scenarios were devised. Each scenario having different locations of the X-10 transmitter and receivers along with the CEBus transmitter and receiver. The unique combination of these scenario gave us a very good understanding of the X-10 and CEBus signals when they interfere with each other.

Figure 5.1 Attenuator-Bridge circuit

The test scenarios are four

1. CEBus transmitter and receiver one side of the power strip , X-10 transmitter and receiver both on the other power strip. This is as shown in the figure 5.2

2. CEBus transmitter, receiver, and X-10 receiver on one side of the power strip , X-10 transmitter one the other side. This is as shown in the figure 5.3 3. X-10 transmitter, receiver, and CEBus receiver on one side of the power strip, CEBus

transmitter one the other side. This is as shown in the figure 54 7

4. X-10 and CEBus transmitter on one side of the power strip and receivers on the other

side. This is as shown in the figure 5.5 9 30

Sceaio 4

MEMEIKq-AIMIMMEESMMESMEMMEi-aiEEK

CEus Siga Geeao

[

1 Siga eceie

CEus asmie

Secum Aaye

ie ie ie ie

Oscioscoe aiae Aeuao ige cicui

Om Om oa oa

1 Siga asmie 1 Siga Aaye

1 Siga Geeao CEus Siga eceie

owe-si owe-si

Figure 5.5 X-10 transmitter and CEBus Transmitter on one side and both the receivers on the other side of the power strip . es Measuemes a esus The voltage levels for all the different attenuation levels levels were measured and printed directly from the oscilloscope. All the plots for the 20db voltage readings are

available in the Appendix. The sweeps for all the values of 20db are also attached to the

Appendix. The plots for the success rate of X-10 and CEBus for all the four scenarios are as shown below. 3 33 34

The test bench was setup with extreme caution since most of the part of the circuit carried live AC Power. The X-10 receiver was a 20-Watts lamp, which would toggle between the ON/OFF State, every time an X-10 signal is generated. The probability of success of X-10 was measured by sending a fixed count of X-10 signal and then counting the number of times the lamp would switch ON and OFF.

The CEBus signal was generated using Intellion's (company specializing in the manufacture of devices, which controls equipment using Powerline as a medium of communication) CEBus test kit. The test kit is intelligent enough to feed the packet statistics to a PC using the serial port, which was then latter analysed. CAE

COCUSIO The study looked into the behavioral pattern of CEBus an d X-10 for different levels of

attenuation, the probability of success of CEBus and X-10 packets were studied. The

voltage levels and combined characteristics of both the waveforms were looked into.

Following are the conclusions from the test bed and the simulation studies done • Weak strength X-10 does not have any effect on CEBus, but a weak strength CEBus does have a discernable adverse effect on X-10. • For the same levels of attenuation, CEBus packets have a higher probability of survival than X-10, which can be attributed to the processing gain inherent to the CEBus speed spectrum signaling as well as to the lower detection threshold level of CEBus with respect to X-10. • However, when a strong X-10 signal interferes with a weak CEBus signal some probability of CEBus packet loss was observed.

Simulation studies further illuminated the interference behavior of the CEBus X-10 cohabitating signals under that scenario.

• Overall. CEBus network has been confirmed to perform well in terms of delays and message throughput in the presence of X-10 modules over the practical range of

normalized offered load.

• At high loads, substantial performance differences may occur, especially for DEFERRED and X-10, where their message throughput approaches zero, and only

HIGH priority packets get a chance to transmit.

• As the number of X-10 packets transmitted on the channel increases, the CEBus experience slightly higher delays. This is due to the fact that X-10 are much slower

than CEBus. CEBus transmit at rates of 10,000 one bits per second while X-10

35 36 • asmis a ae o oe i a eac eo cossig o e owe ie equecy owee a ig oas e -1 message ougu eceases asicay aoacig eo a ae o eec o e CEus eomace AEI Graphs from the simulation results and from the test bench are listed here. The graphs from the test bench show the waveform as seen on the Oscilloscope and the Spectrum

Analyzer.

37 ek S( 2.0 s 4 Acqs

A. 26.8.s eca g: 26.6s Waeom

C k—k .8 om ie

C Ami .2

w sigã amiue C eq • 6.8608k ow siga • amiue EU 5 M 20.0s: C 00m e: siki6goesaseeci: , eee eca W Sae Wm oma ie o e a i es O Iea Uiiies

Figure 5.14 Unattenuated X-10 signal ek So 1 MS/s Acsq [ I Seec Measueme

eio

equecy

• ow osiie esouio Wi C éi • 121.2121kHz. egaie ow M esouio . . . . 00m M 0.0s Ci 00m. —moe— o

e ec ig — ow eeece emoe Gaig Seu Saso Meas .i Measm O ees o C I isogam

igue . Attenuated X-10 signal ek o 00kSis 262 Aqs

eca Waeom

C k—k .6 6(2 om ie

Am .68 .,

(sae ae eca Wi Sae Wm I eee Sige Seq oma ie o e Ci es O Iea Uiiies

Figure 5.16 Unattenuated CEBus ek 1 M S/s 2 Acqs

Seec Measueme

eio _ equecy

osiie Wi

egaie Wi

M 0.0as Ci 880m —möe o

e ec g—ow eeece emoe Gaig Seu Saso Meas•mi Measm O ees o CI? isogam

Figure 5.17 Attenuated CEBus ek So 1 kSs Acqs I eca Waeom

e—c—a I om ie

Ci oom 00s. C 0 .

siom. : . Auosae W Sae Wm eee Sige Seq oma ie e es Uiiies . o e O easee

Figure 5.18 Attenuated CEBus signal (18.9dB) e k So 00kSs 33 Au]

eca Waeom

eca om ie

• .00 : 20.. e • • • uosae sae eca Sae Wm I eee ie Sige See oma Uiiies o e e es O Fpreadshee‘

igue . Attenuated X-10 signal (18.9dB) 44 40 USs ackes

Message ougu .2

0.8 -- IG 0.6 SAA EEE 0.4

0.2

0 2 4 omaie Oee oa

Figure 5.21 Message ougu s omaie Oee oa o .2 0 oa Cae ougu

- - +- - -

-

---- 1 USs

3 - USs

5 USs

I I I__ _ _1_1_ I I _ I_ 1 I 0.0 0. 0 omaie Oee oa Figure 5.22 Cae ougu s omaie Oee oa o acke eg o 00,00, a 40 USs 00 USs ackes

Message ougu

----- IG SAA EEE

I 0. . 2 2. . omaie Oee oa Figure 5.23 Message ougu s. omaie Oee oa o . 0 oa Cae ougu

+ 1±

1 USs 3Q USs 5 US

1__I111111 1 11 I Ii 0. 0 omaie Oee oa igue .24 Cae ougu s omaie Oee oa o acke eg o 00,00, a 40 USs Sceaio o: 20 aeuaio

0 2 20 0 Seies E . 0 20 equecy i K

Figure 5.25 oage swee a (Sceaio 1) Figure 5.26 oage swee a (Sceaio Sceaio : Aeuaio 20

2 20 gi 0 a 0 ,•Seies :6

E 0 20 2 equecy i K

Figure 5.27 Voltage sweep at 20db (Scenario 3) Sceaio 4: Aeuaio 20

2

20

SeiesI

0 0 00 200 00 400 00 600 equecy i K

Figure 5.28 oage swee a (Sceaio EEECES

1. The Electronic Industries Association's, EIA Home Automation System (CEBus), EIA Interium Standard, October 1992.

2. Davidson, K. "CEBus: Anew Standard in Home Automation," Circuit Cellar Ink; Aug./Sep. 1989, pp. 40-52.

3. Davidson, K. "Echelon's Local Operating Network," Circuit Cellar Ink; June/July 1991.

4. Stauffer, H. B. "Smart Enabling System for Home Automation," IEEE Transaction on Consumer Electronics, Vol. 37, No.2, May 1991.

5. Fisher, J. "Switched-On CEBus: A CAL Interpreter," The Computer Applications Journal, Feb. 1993, pp. 24-31.

6. Zarr, R. "Add a Serial X-10 Interface to your PC," The Computer Applications Journal, Issue #24, Jan. 1994.

7. Advanced Control Technologies Inc. (ACT), PowerLine Control Components, Reference Manual,

8. Gburzynski, and P. Rudnicki, The LANSF Protocol Modeling Environment, Dept. of Computing Science, University of Alberta, Edmonton, Alberta, Canada, 1991.

9. Pan, M and C. N. Manikopoulos, "Investigation of the PL Cebus Performance With and without Acknowledgment," Master's Thesis, Department of Electrical Engineering, New Jersey Institute of Technology, Newark, NJ, Oct. 1993.

10. Parkkam, S. R., and C. N. Manikopoulos, "Performance Evaluation of the Consumer Electronic Bus," IEEE Transaction on Consumer Electronics, Vol. 36, No.4, Nov. 1990, pp. 949-953.

11. Davidson, K. "CEBus Update," Circut Cellar Ink; Special #I84, pp. 2-10.

53