Proposal.: Communication protocol and Device description for Home Automation Control Submitted By:...
-
Upload
ashlee-west -
Category
Documents
-
view
218 -
download
0
Transcript of Proposal.: Communication protocol and Device description for Home Automation Control Submitted By:...
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Proposal: JTC1 SC25 WG1 HES communication protocol and Universal Device Description Proposal: JTC1 SC25 WG1 HES communication protocol and Universal Device Description
Submission Title: Home automation control communication protocol and device descriptionDate Submitted: [March 2006]Source: China Home network standard committeeWeb: http://www.chinahomenetwork.orgVoice:[(86) 10-62571968], FAX: [(86) 10-62571968], E-Mail:[[email protected]]
Abstract: This contribution is a complete protocol stack for home automation control. It is intended to provide a physical layer 、 Network Layer 、 Application layer protocol between different home appliances for sharing the status 、 controlling the operation. It is based on proven technology, which can be implemented at low cost and can provide scaleable home network with robust performance and low power consumption for low data rate devices intended to communicate within the home. This contribution also provides a complete home device description file format to support universal description for the controlling language between NAU and Home appliances and user interface for controlling the Home appliances.
Purpose: Support Plug and Play for home appliances management
Notice: This document has been approved by MII of China as the China home network industry standard and published on June,2005.
SC25/WG1 N1207
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Home automation control protocol and device description proposal for SC25 WG1
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Home automation control communication Protocol
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Protocol Stack
UDCP : Universal Device Control Protocol
others
NETL : Network Layer
MACwireless
MACwired others
PhyWireless
PhyTwisted
Pair
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Wireless Phy
Frequency : 430-432MHz 、 779-787MHz 、 2.4G
bandwidth : 38.4kbit/smodulation : FSKpower: 10dBmRange: 30mChannel: 500kHz
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Wireless Phy frame format
Start sequence (Preamble) MAC frame
Training sequence Start bits
80/64/40/8 bits 8 bits 0-1024 bits
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Wireless Mac
• Media access: CSMA-CD• Frame type:
Data frame: data communicationManagement Frame: Network
managementControl Frame: support data and
management
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
wireless Frame format
Frame
length
Frame
Control
Duration
Frame Sequenc
e
Frame
header
CRC
Source
address
Dest. addre
ss
Frame
payload
CRC
2 byte
s
2 byte
s
2 byte
s
2 bytes
2 byte
s
6 bytes
6 bytes
0-104 byte
s
2 bytes
Header
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Physical Layer Protocol Based on Twisted Pair of Bus
Features: transmit rate: 10kbps Base band transmit: active state (logical zero) overrides idle state (logical one) in the channel Data Unit Format
Start bit
Eight data bits Parity Check bit
Stop bit
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Data Link Layer Protocol Based on Twisted Pair of Bus
Features: Provide acknowledged and unacknowledged Services Data Unit Format
Control area
Source address & Destination address
Network layer data unit
checksum
Control area includes priority bit, retry-flag bit, random bits, fragment area and address-type bit.
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Network Layer
• Support end to end communication over different communication media
• Network address ( UDS ) • Network packet format
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Network address: Device Id and Universal Device serial number
• UDS:6 bytes
Version Manufacture ID
Control gateway ID
Device ID
Bit47-45
(3 bits)
Bit44-32
(13 bits)
Bit31-8
(24 bits)
Bit7-0
(8 bits)
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Network packet Format
version
reserved
Type of Protocol
Destinatio
nUDS
Source
UDS
Packet length
Segmentation
flag
Segmentatio
n offset
CRC Payload
2 bits
2 bits
4 bits
48 bits
48 bits
10 bits
2 bits 12 btis
16 bits
0- 960 bits
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Universal Device Control Protocol :UDCP
• Application Protocol for Home network management ( device subscribe 、 unsubscribe) and device control ( control 、 check status 、 operation parameter configuration).
• Take Device files as the information base for home appliances control and management.
• Packet type: system management 、 data sharing 、 device control
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
UDCP packet
Destination address
control type Datagram
6 bytes 1 byte 1 byte
Relay flag CRC enable
Reserved Group address flag
bit7 bit6 bit5-1 bit0
Control Field
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
System Management
Type application length For
11 Device Subscribe confirm
7 bytes mobile->GWDevice->GW
10 Check for unregistered device
6 bytes broadcast by GW
17 GW Subscribe confirm
12 bytes GW ->device
05 Unsubscribe request
12 bytes mobile<->GW
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Data sharing
header
application length for
14 Request for device file
12 bytes GW->device
20 Request for device list
12 bytes mobile->GW
18 Request for voice file
12 bytes GW->device
15 Upload device file - device->GW
21 Upload device list - GW->device
19 Upload voice file - device->GW
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Device operation control
header application length for
01 Set the parameter of device (Set Data)
- -
02 Get the status (Get Data)
- -
06 Sharing the status automatically (Report)
- -
28 Show up (Keep alive) 6 bytes -
05 Confirm (ACK) 6 bytes -
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Device description File
for unified control command and interface
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Structure of device file
File header
Data structure
Char source
Icon source
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
File headerPosition Length ( Bytes
)For
0 1 Version
1 3 Type
4 2 Size
6 1 Size of file header
7 1 Country code
8 7 Company code
15 1 Version of file
16 2 Type code of device
18 2 Production model
20 2 Attribute of device icon
22 2 Pointer of expand source
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Data structure
• Tree for device features description
(Entry)
Power (SubDir) Operation (SubDir) Parameters (CallBack) Status (Image)
Entry
On (Command) Off (Command) Set Temperature (CallBackOne)
ImageEntryCallBack
Power_Img(FlagIcon)
Progress_Img(ValSpecIcon)
Temperature _Val(DigiNumber)
……
……
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Char source
Char string 1
• Pointer to non-ASCII characters
Char string 2
Char string 3
…………
Char string n
“ 洗碗”
0xDFB4
0xCDEB
0x0000
“洗”“碗”
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Icon source
icon 0(index= 0, 16x16 lattice)
icon 1(index =1 ,16x16 lattice)
…………………….
icon n(index =n, 16x16 lattice)
icon n+1
…………………….
•Pointer to bitmap of icons
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Type of basic structure
• Pointer operation
0000 0x01430001 0x4e41………0012 0x00000013 0x000a………………0022 0xbaa3
File header
data tructure
pointer 0x000a in 0x0013Original address of data structure is 00120012 + 0x000a = 0022
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Type of attribute
• Basic attribute of node and status map
site size ( bit ) region
Bit[0..7] 8 Index region
bit[8..11] 4 Size region
bit[12..15] 4 Type region
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Device file for omnipotence remote controller
• Device browse
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
• Device control
Device file for omnipotence remote controller
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
• Parameter set
Device file for omnipotence remote controller
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Interface between Device and NAU
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
• Device File could be either located in NAU( communication module) or in Appliance
NAU Home Appliance
Device file
Com
mun
ication Interface
Processor BoardRX
TX
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Communication
Com
mun
ication interface
Processor b
oard
RX
TX
Home appliance
Device file
NAU
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
TTL signal
GNDVCCTXRX
HW Interface between Appliance and NAU
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
• NAU acting as control command and status relay station
SW Interface between Appliance and NAU
NAU Home appliance
Control command
Device status
March 2006
Proposal.: Communication protocol and Device description for Home Automation ControlSubmitted By: China
Contact Information: [email protected]
Thanks!