process data connection channels in ulan network for home
play

Process Data Connection Channels in uLan Network for Home Automation - PowerPoint PPT Presentation

LAN Protocol Data Exchange in Home Control Application Process Data Connection Channels in uLan Network for Home Automation and Other Distributed Applications Pavel P sa pisa@cmp.felk.cvut.cz Petr Smol k petr@smoliku.cz


  1. µ LAN Protocol Data Exchange in Home Control Application Process Data Connection Channels in uLan Network for Home Automation and Other Distributed Applications Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek – bohacma8@fel.cvut.cz Jan ˇ Stefan – honza.stefan@gmail.com Pavel Nˇ emeˇ cek – pavel.nemecek1@gmail.com Czech Technical University in Prague Faculty of Electrical Engineering 13th Real-Time Linux Workshop – October 20 2011 Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  2. µ LAN Protocol Data Exchange in Home Control Application Presentation Contents µ LAN Protocol 1 Origin and Initial Target Applications uLAN Protocol Overview Higher Level Protocol Layers Data Exchange in Home Control Application 2 Is uLAN Protocol an Option? uLan Connection Network (uLCN) Devices Designed for DAMIC Home Automation System institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  3. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers HPLC Project by PiKRON Ltd. next generation of High Pressure Liquid Chromatography (HPLC) design in 1992 need of control and data acquisition solution for instrument sets instruments do not require so fast command/data exchange for basic setups data types – simple one scalar variable setup (wavelength, flow rate) but even gradient time program and detector data stream (25 Hz in our case) sampled data grouping possible examination of instrument type and available institution-logo properties/variables Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  4. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers Requirements on the Protocol Selection connection to data acquisition/chromatography system on PC multimaster/direct device to device communication/coordination direct analysis start mark distribution forming high pressure gradient by two pumps etc. simple design without need to collect list of next devices to pass token possibly deterministic media access physical link layer well known and much spread RS-485 no mo vendor lock-in or lawyers intentionally introduced minefield option to have open implementation and“standard”definition institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  5. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers The First Generation Design Limitations Intel-8051 based controllers due to its availability and price only single UART hardware for communication low computational power but offer multi-drop (9-bit per character) – Intel µ LAN net (see i82C510 UART) allows to interrupt only only on address characters if not selected Transfered character D0 D1 D2 D3 D4 D5 D6 D7 D8 start bit stop bit char begin Figure: 9-bit Character Format institution-logo character transfer takes 11 bit times Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  6. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers Character Values Mapping data characters (address bit clear / bit 8 = 0) address and control characters (bit 8 = 1) 0 · · · 0 x 64 to address target module/device/instrument 0 broadcast/general address 0 x 75 · · · 0 x 7 F range have control and data delimiters above 0 x 80 used used by master to inform about bus control release institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  7. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers µ LAN Frame Format Data frame format DAdr SAdr Com 0 to MaxBlock uL_End, XorSum or of data bytes uL_Arq, uL_Beg uL_Prq or uL_Aap Figure: µ LAN Frame Format initial frame send by master after media allocation but one or more frames can directly follow allows immediate“slave”device reply without media arbitration special control and synchronization sequence frame can request single character acknowledge institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  8. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers More Detailed Control Characters Codes Name Value Description DAdr 100h General address DAdr 101h .. 164h Destination node address uL Beg 175h Begin of unaddressed frame uL END 17Ch End of frame uL ARQ 17Ah End with acknowledge request uL PRQ 179h End with proceed request uL AAP 176h End with acknowledge and proceed request uL ERR 17Fh Error without release of bus LAdr 181h .. 1E4 Release of bus by node uL ERR 1FFh Error, abort and release bus institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  9. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers Media Access Arbitration determinism required, distributed arbitration RS-485 does not allow dominant-recessive based solution at full bit rate intended at least partial bandwidth distribution influence by Philips/NXP IIC solution but in arbitration phase only Bus request and release LAdr delay first delay delay delay transfer of data release (LAdr-Adr-1) connect Adr (Adr shr 2) (Adr shr 4) frames beginning of bus by mod 16 + 4 mark and 3 and 3 +1 and 3 +1 with DAdr of LAdr=Adr +1 first frame or 80h Figure: uLan Media Access Arbitration institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  10. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers The Protocol Overhead 10 nodes with addresses 1 · · · 11 considered full Tx saturation from all nodes supposed message length of 256 B and communication speed of 19200 Bd 1 . 6122 s to send 10 messages (one from each station) arbitration and control characters overhead 10 % (50 % if start, B8 and stop bit counted) but for 8 byte messages overhead is 300 % (550 %) but could provide advantage to can for data bitrate/bus length institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

  11. Origin and Initial Target Applications µ LAN Protocol uLAN Protocol Overview Data Exchange in Home Control Application Higher Level Protocol Layers Overview of uLAN Higher Level Protocols Network Control Messages (uLNCS) – check and change module/node assigned network address, identification and production serial number Dynamic Address Assignment (uLDY) the mechanism to unveil newly attached nodes from new serial product number appearance, assign them free network address and detect node disconnection or switching off uLan Object Interface Layer (uLOI) the mechanism to retrieve list of device supported readable and writable variables/properties, their names and data types institution-logo Pavel P´ ıˇ sa – pisa@cmp.felk.cvut.cz Petr Smol´ ık – petr@smoliku.cz Frantiˇ Process Data Connections in uLan Network sek Vacek – fanda.vacek@volny.cz Martin Boh´ aˇ cek –

Recommend


More recommend