Introduction to Home Bus
Abstract
This application note introduces the MAX22088, Analog Devices' first Home Bus transceiver, which complies with the Home Bus System (HBS) standard requirements while improving communication in harsh environments.
Introduction
A home automation or office network involves at least one controller and one remote device. A typical network will involve multiple controllers and devices. Devices range from heat, ventilation, and air conditioning (HVAC) units to lighting control or basic home appliances. The Home Bus standard, published in 1986 as the ET-2101, was designed to ease communication between these multiple different devices connected to a single bus.
History of the Home Bus Standard
As home and office automation gained in popularity, various companies and universities in Japan recognized the need for a standardized communication to maximize the potential of these systems. In 1981, the Home Bus standard was formally created and, in 1986, it was standardized in Japan by the Electronic Industries Association of Japan (EIAJ) as ET-2101. A supplement to the ET-2101 (ET-2101-1) was later published in 1990.
In 2000, an Extended Home Bus standard was published by the ECHONET Consortium. The Extended Home Bus standard, most commonly in use today, allows for faster data rates, larger buildings, longer cables, and more flexible software than the original ET-2101 standard.
Modern Home Bus has largely been limited to HVAC systems, but the Home Bus standard may be useful in other areas that require a multidrop bus and power-over-data, such as digital signage or other control systems in small- to mid-sized buildings.
The Home Bus Standard
Home automation (HA) systems are designed to allow a mutual exchange of information at any time from any room in a home or building among various appliances, equipment, or security devices. The Home Bus standard was defined to standardize this communication for easy installation and use in a home or office. Figure 1 shows a typical HA/Home Bus network2.
To better simplify communication between controllers and devices, the Home Bus standard utilizes the Open Systems Interconnect (OSI) model Layers 1-3 and layer 7 to standardize the physical (PHY) and low-level logic for communication, as shown in Table 1.
OSI Model | ||
Layer | Function | ET-2101 Home Bus Application |
7 | Application Layer High-level application programming |
Command specifications for communication on a multi-node network |
6 | Presentation Layer | Not used |
5 | Session Layer | Not used |
4 | Transport Layer | Not used |
3 | Network Layer Structure and management of a multi-node network including addressing and traffic control. |
Controlled data transmission over a multi-node network to avoid data collisions or lost data. |
2 | Data Link Layer Transmissions of data frames between two nodes connected by a physical layer. |
Reliable transmission between two nodes (typically a host/controller and a remote device). |
1 | Physical Layer Raw signal transmission over a physical medium. |
Physical medium constraints ensure reliable data link transmission. |
Physical Layer of a Home Bus System (Layer 1)
Home Bus communication is transmitted over a single twisted-pair cable in a bus system topology. Cables up to 200m were allowed in the original ET-2101, while the Extended Home Bus standard allows cables up to 1km for medium-sized buildings (e.g., larger homes, apartment buildings, and condominiums, etc.).
In Home Bus communication, data and power (up to 36V) are transmitted over a single pair of wires to a device connected to the bus. Power is inductively coupled on to the Home Bus line from the controller. The Home Bus data lines, H+ and H-, are inverted with each data bit, as shown in Figure 2, ensuring that the power/common-mode offset (not shown in Figure 2) remains DC balanced.
Home bus data is transmitted using a baseband transmission at 9.6kbaud ±0.13%. Higher data rates are possible using Extended Home bus. A typical Home Bus waveform is shown in Figure 23.
Note that the waveform is encoded using alternative mark inversion (AMI) and negative logic with a duty cycle of 50%. Similar to a more standard version of AMI that uses positive logic, a defined input logic sets the Home Bus lines to either a positive or negative state, alternately, in AMI encoding. Negative logic AMI dictates that the Home Bus lines are toggled on an incoming '0' logic state, instead of a '1'. Using Figure 33 as a reference, Table 23 shows the minimum receiving and transmitting voltage levels between the H+ and H- lines.
Logic | Receiving Level Threshold | Transmitting Level Threshold |
0 | VLL = 0.6V | VLL = 0.6V |
1 | VHH = 1.4V | VHH = 2.5V |
Like early Ethernet technology, the Home Bus standard uses the carrier-sense multiple access with collision detection (CSMA/CD) method for transmission protocol. Packet priority and collision detection procedures are outlined in some detail in the extended Home Bus documentation.
Like standard UART communication, Home Bus does not include a transmitted clock and uses a START-STOP synchronization to decode data on the bus. A single Home Bus character contains 11 bits in total, as shown in Figure 43, 4. Data is transmitted LSB-first and has even parity.
Data Link Layer of a Home Bus System (Layer 2)
A packet on the Home Bus network takes one of the two following forms: a data packet or a command packet. As shown in Figure 53, a data packet contains a priority code (PR), source address/self-code (SC), destination address/destination code (DC), control code (CC) (bit 4 of the CC byte must be '0'), byte count/data length code (BC) (1 to 256 bytes), data bytes, a frame check code (FCC), a dummy code, and ACK/NACK response bits for error detection and control. A command packet is similar to a data packet but includes up to 255 command and operation codes instead of data (Figure 63) before the FCC.
Network Layer (Layer 3) and Application Layer (Layer 7) of a Home Bus System
Layers 3 and 7 of the OSI model arethe network layer and application layer, respectively.
The network layer performs larger-scale network routing functions and handles delivery issues. A network includes at least two nodes, connected by a common medium. Each node on a network has an individual address and each node connected on a network can communicate with any other node by providing both a message and the address of the destination node. A number of layer-management protocols include routing protocols, group management, network-layer information and error, and network-layer address assignment are defined in the ISO 7498/4 and belong to the OSI model layer 3 network protocol1.
While not much data is available on the Home Bus application of Layer 7, the Extended Home Bus standard defines layer 7 in terms of three items: the header code (HD), common system commands, and the communication sequence3. The HD code is defined to delineate extended Home Bus systems from standard systems. Common system commands include basic commands forms, operation codes, and operand codes. The Extended Home Bus standard also includes a detailed description of two basic communication sequences: basic communication and a startup communication sequence.
MAX22088 Home Bus Transceiver
Analog Devices has recently introduced the MAX22088, its first Home Bus transceiver. The MAX22088 complies with the Home Bus standard requirements while improving communication in harsh environments. The MAX22088 is designed to optimize a Home Bus network by eliminating the need for a large AC-block inductor on remote devices (reducing size requirements for HA network components and appliances). It is configurable to operate up to 200kbps with adjustable receiver thresholds and dynamic cable termination for improved communication. The MAX22088 is rated for operation up to ±8kV Contact Discharge and ±15kV Air Gap ESD Protection and survives up to ±1kV surge events with selected external components.
The MAX22088 has been designed for operation in Home Bus systems but is not only limited to those networks. The MAX22088 can be used to transmit data over any compatible system. For example, Analog's Application Note 7226: How to Transmit UART Packets Using Home Bus System (HBS) Compatible Transceiver, highlights the use of the MAX22088 with standard UART protocol.
Analog also offers the MAX22088 evaluation board to simplify testing and quickly integrate the MAX22088 in an existing Home Bus system.
参考电路
1 Wikipedia (n.d.). OSI Model. In Wikipedia.com. Retried March 19, 2020 from https://en.wikipedia.org/wiki/OSI_model
2 Hamabe, Ryuji. (2007, Jan 2) Home Network (HBS, IEEE1394). https://www.fit.ac.jp/~hamabe/intro/HBS.html cached version: http://webcache.googleusercontent.com/search?q=cache:LsUfo5p6uTgJ:https://www.fit.ac.jp/~hamabe/intro/HBS.html&client=firefox-b-1-d&hl=en&gl=us&strip=1&vwsrc=0
3 Echonet Consortium. (2002). Part III Transmission Media and Lower-Layer Communication Software Specification. https://echonet.jp/wp/wp-content/uploads/pdf/General/Standard/Echonet/Version_2_11_en/spec_v211e_3.pdf
4 Hamabe R, Murata M, Namekawa T. (1986). Home Bus System (HBS) Interface LSI and ITS Standard Protocol Example. IEEE Transactions on Consumer Electronics (Vol CE-32, Issue 1, Feb 1986). ). https://ieeexplore.ieee.org/document/4071330
5 S. Sugihara, S. Kobatake, H. Shirai, H. Oowada, K. Yoshitimo. (1989). HBS-standard-compatible home bus protocol controller. IEEE Transactions on Consumer Electronics (Vol 35, Issue 3, Aug 1989). https://ieeexplore.ieee.org/document/44324