XPL Protocol


xPL is an open protocol intended to permit the control and monitoring of home automation devices. The primary design goal of xPL is to provide a rich set of features and functionality, whilst maintaining an elegant, uncomplicated message structure. The protocol includes complete discovery and auto-configuration capabilities which support a fully "plug-n-play" architecture - essential to ensure a good end-user experience.

xPL benefits from a strongly specified message structure, required to ensure that xPL-enabled devices from different vendors are able to communicate without the risk of incompatibilities. [1]

Communications between xPL applications on a Local Area Network (LAN) use UDP on port 3865.[2]

xPL development has primarily occurred in the DIY community, where users have written connecting software to existing protocols and devices. Some examples include bridges to other home automation protocols like Z-Wave[3] and UPB.[4] Commercially, the Logitech SqueezeCenter software for the Squeezebox supports xPL.[5]

Architecture

Different devices communicate using xPL within a local network. They all broadcast their messages on the IANA registered UDP port 3865 for the other devices to handle.

As on modern operating systems only one program can listen to a given port, there is a need for a hub forwarding the messages to all devices on the same machine. The devices register to the hub on a private UDP port and the hub then forwards all incoming message to these private ports.

HUB

A hub is the first xPL component required on a machine running xPL devices.

All devices send a heartbeat message to the hub on a regular basis (typically 5 minutes). When disconnecting, they also can send a special heartbeat end message for the hub to radiate them out of his list.

The hub forwards all messages to every device in its list. There is no filtering of messages: a blind redistribution of all messages is carried out.

XPL device

Applications add functionality to a home automation solution such as light control, sun rise/set, weather information and so on.

A device chooses a free UDP port and sends heartbeat messages from that port to the hub on the IANA registered UDP port 3865.

From that time, the devices listens for messages on its private port but sends messages as broadcast on the xPL port 3865. The message types are one of the following:

  • command, targeted to control other devices
  • status, generally as an answer to a command
  • trigger, used to notify a change in a device's state

An extensive list of applications can be downloaded from the net. Tooklits are also provided for users wishing to develop their own devices.

Bridge

It is assumed that your network protocol is UDP/IP but this is by no means a requirement. If you wish for your XPL message to cross from one transport medium to another (UDP/IP to RS232 for example) then you will need a Bridge.

Rules

On Windows, xPL HAL processes incoming xPL messages and executes scripts to perform a wide variety of tasks. Configuration is done either through a Windows-based Manager or via a browser. xPL HAL also includes an xPL Configuration Manager.

On Linux or Mac OS, xpl-central monitors all xPL messages and can trigger other messages based on a set of rules stored in an XML file.

Transmission media

The xPL protocol can operate over a variety of transmission media, including Ethernet, RS232 and RS485.

Ethernet

All xPL devices broadcast their messages over UDP, on IANA registered port 3865.

But, as only one application can listen at a time to a given port, the xPL protocol uses a hub to retransmit all broadcast messages to the different applications on the same machine. The applications subscribe to the hub on a free port by sending heartbeat messages which specifies the port they are listening to. In turn, the hub forwards all xPL broadcast messages it receives to every application in his list.

Protocol

Lite on the wire, by design

Example

xPL Messages are line based, with each line ending with a linefeed (ASCII: 10 decimal) character. The following is an example of a typical xPL Message:

xpl-cmnd
{
hop=1
source=xpl-xplhal.myhouse
target=acme-cm12.server
}
x10.basic
{
command=dim
device=a1
level=75
}

Message Structure

All messages are made out of:

  • The message type (xpl-cmnd, xpl-stat or xpl-trig)
  • The header block, inside curly braces, containing:
    • hop=n, the hop count which is incremented each time the xPL message is transferred from one physical network to another
    • source=vendor_id-device_id.instance_id, which serves to identify the sender of the message
    • target=vendor_id-device_id.instance_id, which serves to identify the destination of the message
  • The message schema, in the format class.type
  • The message body, inside curly braces, containing name=value pairs[6]

In the header block, the target name is replaced by the wildcard symbol "*" for broadcast messages. This is the case for tigger and status messages.

Message Schema

xPL uses well defined message schemas to ensure that applications from different vendors can interact sensibly. Message Schemas are extensible, and define not only the elements which should be present in a message, but also the order in which they appear.

This allows simple devices and applications to parse messages more easily.

All of the existing message schemas can be found on the xPL project home page. Developers looking to create a new schema are invited to do so. [7]

See also

References

  1. ^ "About the Project". The xPL Project Web Site. Retrieved 23 April 2012.
  2. ^ Lansell, Mal. "xPL Primer". xPL Monkey Web Site. Retrieved 23 April 2012.
  3. ^ Lansell, Mal. "xPLMonkey Z-wave Page". xPL Monkey Web Site. Retrieved 23 April 2012.
  4. ^ Duprey, Gerald R Jr (5 July 2008). "UPB4Java V1.2c - Java API for the UPB automation protocol". xPL4Java Web Site. Retrieved 23 April 2012.
  5. ^ "SqueezeboxWiki xPL Page". SqueezeboxWiki. Retrieved 23 April 2012.
  6. ^ "XPL Specification Document". The xPL Project Web Site. 3 August 2011. Retrieved 23 July 2015.
  7. ^ "xPL Project Documentation". The xPL Project Web Site. 3 August 2011. Retrieved 23 July 2015.

Official

Development

Other

Read other articles:

Temple OwlsFounded1927 (1927)Defunct2014UniversityTemple UniversityConferenceThe AmericanHome stadiumSkip Wilson Field (Capacity: 1,000)NicknameOwlsColorsCherry and white[1]   College World Series appearances1972, 1977NCAA regional champions1977NCAA Tournament appearances1959, 1963, 1968, 1972, 1973, 1975, 1976, 1977, 1978, 1981, 1983, 1984, 2001 The Temple Owls baseball team was a varsity intercollegiate athletic team of Temple University in Philadelphia...

 

 

Bagian dari seriIslam Rukun Iman Keesaan Allah Malaikat Kitab-kitab Allah Nabi dan Rasul Allah Hari Kiamat Qada dan Qadar Rukun Islam Syahadat Salat Zakat Puasa Haji Sumber hukum Islam al-Qur'an Sunnah (Hadis, Sirah) Tafsir Akidah Fikih Syariat Sejarah Garis waktu Muhammad Ahlulbait Sahabat Nabi Khulafaur Rasyidin Khalifah Imamah Ilmu pengetahuan Islam abad pertengahan Penyebaran Islam Penerus Muhammad Budaya dan masyarakat Akademik Akhlak Anak-anak Dakwah Demografi Ekonomi Feminisme Filsafat...

 

 

Patung Ino dan Melikertes di Taman Versailles. Dalam mitologi Yunani, Melikertes (bahasa Yunani: Μελικέρτης) adalah anak dari Athamas dari Boiotia dan Ino, putri Kadmos. Melikertes disebut juga sebagai Palaimon (bahasa Yunani: Παλαίμων). Dalam Mitologi Ino membesarkan bayi Dionisos sehingga membuat Hera marah. Hera kemudian membuat suami Ino menjadi gila dan mengejar-ngejar Ino. Ino yang dikejar-kejar oleh suaminya kemudian menjatuhkan dirinya dan Melikertes ke laut....

Bagian dari seriIlmu Pengetahuan Formal Logika Matematika Logika matematika Statistika matematika Ilmu komputer teoretis Teori permainan Teori keputusan Ilmu aktuaria Teori informasi Teori sistem FisikalFisika Fisika klasik Fisika modern Fisika terapan Fisika komputasi Fisika atom Fisika nuklir Fisika partikel Fisika eksperimental Fisika teori Fisika benda terkondensasi Mekanika Mekanika klasik Mekanika kuantum Mekanika kontinuum Rheologi Mekanika benda padat Mekanika fluida Fisika plasma Ter...

 

 

2012 2022 Élections législatives de 2017 dans le Finistère 11 et 18 juin 2017 Type d’élection Élections législatives Postes à élire 8 sièges de députés à l'Assemblée nationale Campagne 22 mai au 10 juin12 juin au 16 juin Corps électoral et résultats Inscrits 689 419 Votants au 1er tour 384 710   55,80 %  5,5 Votes exprimés au 1er tour 377 215 Votes blancs au 1er tour 5 513 Votes nuls au 1er tour 1 982 Votants au 2d tour 322...

 

 

Species of plant in the family Myrtaceae Syzygium klampok Botanical illustration Conservation status Endangered  (IUCN 3.1)[1] Scientific classification Kingdom: Plantae Clade: Tracheophytes Clade: Angiosperms Clade: Eudicots Clade: Rosids Order: Myrtales Family: Myrtaceae Genus: Syzygium Species: S. klampok Binomial name Syzygium klampok(Miq.) Amshoff Synonyms[2] Eugenia klampok (Miq.) Koord. & Valeton Jambosa glabra Zoll. ex Koord. & Valeton Jambosa klampok...

العلاقات البحرينية السورينامية البحرين سورينام   البحرين   سورينام تعديل مصدري - تعديل   العلاقات البحرينية السورينامية هي العلاقات الثنائية التي تجمع بين البحرين وسورينام.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: و�...

 

 

† Человек прямоходящий Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:Синапсиды�...

 

 

Urwasiउर्वशीLukisan Urwasi karya Raja Ravi Varma.Tokoh dalam mitologi HinduNamaUrwasiEjaan Dewanagariउर्वशीEjaan IASTUrvashīAsalIndraloka (swarga)GolonganBidadari Urwasi (Sanskerta: उर्वशी; Urvashī) adalah seorang bidadari dalam mitologi Hindu. Ia tinggal di kediaman Dewa Indra. Konon di antara para bidadari, dialah yang paling cantik. Dia menjadi permaisuri Raja Pururawa, leluhur Dinasti Candra atau Candrawangsa. Rashtrakavi Ramdhari Singh 'Dinkar' perna...

British professional wrestling promotion This article is about the British professional wrestling promotion. For all other uses, see All Star Wrestling (disambiguation). All Star WrestlingAcronymASWFoundedOctober 1970StyleBritish wrestling(Mountevans rules)HeadquartersBirkenhead, EnglandFounder(s)Brian DixonOwner(s)Joseph AllmarkFormerlyAll Star PromotionsBig Time WrestlingSuper Slam WrestlingWrestling Enterprises of BirkenheadWebsitesuperslamwrestling.co.uk All Star Wrestling (ASW), also kno...

 

 

ObservatoryEl Leoncito Astronomical ComplexDome of the Jorge Sahade Telescope at CASLEOAlternative namesCASLEO OrganizationNational Scientific and Technical Research CouncilObservatory code829LocationSan Juan Province, ArgentinaCoordinates31°47′55″S 69°17′44″W / 31.7986°S 69.2956°W / -31.7986; -69.2956Altitude2,483 metres (8,146 ft)Established1983 (1983)WebsiteEl Leoncito Astronomical ComplexTelescopesJorge Sahade Telescope2.2 m reflecto...

 

 

All cities in the United States and Canada with at least one team in the MLB, MLS, NBA, NFL, or NHL as of 2021Professional sports leagues in the United States includes major professional sports leagues, other highest-level professional leagues, and minor leagues. Based on revenue, the major professional sports leagues in the United States comprises the following: Major League Baseball (MLB), National Football League (NFL), National Basketball Association (NBA), National Hockey League (NHL), ...

CNN International Asia PacificDiluncurkan1 September 1985 (CNN International)1 Agustus 1989 (CNN International Asia Pacific)JaringanCNN InternationalPemilikCNN Global(Warner Bros. Discovery)SloganGo ThereNegara Hong Kong TaiwanWilayah siarAsia Tenggara, Oseania, Jepang, Korea Selatan, Hong Kong, Makau dan Taiwan (kecuali Tiongkok Daratan dan Korea Utara)Kantor pusatHong KongTaipei, TaiwanSitus webCNN.comCNN Asia CNN International Asia Pacific adalah edisi Asia-Pasifik dari jaringan ...

 

 

ArthurGenreDrama komediPotongan kehidupanPenyelesaian masalahEdutainmentPembuatMarc BrownPengembangKathy WaughSutradaraGreg BaileyPenggubah lagu temaJudy Henderson & Jerry de Villiers Jr.Lagu pembukaBelieve in Yourself oleh Ziggy Marley and the Melody MakersPenata musikRay FabiNegara asalAmerika SerikatKanadaBahasa asliInggrisJmlh. musim25Jmlh. episode253 (493 segments) (daftar episode)ProduksiProduser eksekutifMarc Brown (Musim 10–25)Micheline Charest (musim 1–4)Carol Greenwal...

 

 

Sebuah Cincin Townend (Townend ring) adalah cincin cowling sempit dipasang di sekitar silinder dari sebuah mesin pesawat radial untuk mengurangi drag dan meningkatkan pendinginan. Contoh pesawat dengan cincin Townend adalah Douglas O-38, Vickers Wellesley, yang Westland Wallace dan Gauntlet Gloster. Referensi Pranala luar Wikimedia Commons memiliki media mengenai Townend rings. The Spotters Glossary Chapter 1, Engineering Science and the Development of the NACA, Low-Drag Engine Cowling, by J...

Sporting event delegationDominican Republic at the2020 Summer OlympicsFlag of the Dominican RepublicIOC codeDOMNOCDominican Republic Olympic CommitteeWebsitewww.colimdo.org (in Spanish)in Tokyo, JapanJuly 23, 2021 (2021-07-23) – August 8, 2021 (2021-08-08)Competitors64 in 11 sportsFlag bearers (opening)Prisilla RiveraRodrigo MarteFlag bearer (closing)Prisilla RiveraMedalsRanked 68th Gold 0 Silver 3 Bronze 2 Total 5 Summer Olympics appearanc...

 

 

Article connexe : Liste des circonscriptions législatives de la Somme. Liste des députés de la Somme. Ve République XVIIe législature (2024-) Article connexe : Élections législatives de 2024 dans la Somme. Circonscription Nom Parti Groupe Suppléant 1re circonscription François Ruffin PD! Hayat Matboua 2e circonscription Zahia Hamdane LFI La France insoumise Lucas Boutillier 3e circonscription Matthias Renault RN Rassemblement national Michel Billet 4e ci...

 

 

بلدة فولتون الإحداثيات 43°09′46″N 84°40′22″W / 43.1628°N 84.6728°W / 43.1628; -84.6728   [1] تقسيم إداري  البلد الولايات المتحدة[2]  التقسيم الأعلى مقاطعة غراتيوت  خصائص جغرافية  المساحة 35.8 ميل مربع  ارتفاع 224 متر  عدد السكان  عدد السكان 2484 (1 أبريل 2020)[3]...

Opposing side to the Central Powers The Triple Entente1907–1918Entente in blue; Central Powers in orange Principal Entente Powers:  France  United Kingdom  Kingdom of Italy[a] (from 1915)  Russian Empire[b] (until 1917)  United States[c] (from 1917)  Empire of Japan Associated allies and co-belligerents: 1914: Australia Canada India Newfoundland New Zealand South Africa Serbia Belgium Monteneg...

 

 

Former Roman fort in The Netherlands This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Albaniana Roman fort – news · newspapers · books · scholar · JSTOR (January 2017) (Learn how and when to remove this message) Albaniana was the name the ancient Romans gave a settlement on the southern banks of Rhine ri...