AMIS49587
http://onsemi.com
33
7 DETAILED SOFTWARE DESCRIPTION
Figure
29 depicts a typical PLC network with one master and 2 slaves. Each AMIS49587 is controlled by an external CPU
over a RS232 interface. See paragraph Serial Communication Interface Physical Layer Description for a description on
hardware signals and timings.
Figure 29. Typical PLC Network Architecture
AMIS49587
External CPU
RS232
AFE
MAC
layer
LCC
layer
PLC Slave or Server
AMIS49587
External CPU
RS232
AFE
MAC
layer
LCC
layer
PLC Slave or Server
AMIS49587
External CPU
RS232
MAC
layer
LCC
layer
PLC Master or Client
Po
w
e
r
Li
ne
AFE
Physical
Layer
Physical
Layer
Physical
Layer
This document describes how the RS232 frames need to be
composed to:
Get status information from the AMIS49587
Configure the AMIS49587
Send and Receive network data with the
AMIS49587
Get performance and data path statistics from
AMIS49587
7.1
CONFIGURE THE AMIS49587
The AMIS49587 can operate in different configurations:
Master or Client configuration: A Master is a client
to the data served by one or many slaves on the
power line. It collects data from and controls the
slave devices.
Slave or Server configuration: A Slave is a server of
the data to the Master.
Spy or Monitor configuration: Spy or Monitor mode
is used to only listen to the data that comes across
the power line. Only the physical layer frame
correctness is checked (preamble and SSD, see
the frame is correct, it is passed to the external
processor.
Not set configuration: No valid configuration
command has been passed to the AMIS49587 after
reset. No power line communication is possible.
This is the state of the AMIS49587 after a
hardware reset or after a reset command has been
sent to it.
Each mode has its own configuration parameters and
subset of commands.
7.2
OBTAINING STATUS MESSAGES
Opposite to all other commands over the serial interface,
the status message is retrieved from the AMIS49587 by a
hardware event only. To get the status message the serial
driver on the external CPU needs to pull the T_REQ HW pin
low, like described in paragraph Serial Communication
Interface Physical Layer Description.
Whenever the external controller sends a command to the
AMIS49587, the T_REQ HW pin should be pulled low to
get a new status message from the MODEM. Only when the
status message indicates that the buffer is not busy, the
command may be send. The AMIS49587 is the master on
the serial interface and needs to be queried to get access to
the bus.
The format of the status message depends on the active
configuration of the AMIS49587 (not set, slave, master or
monitor).
Table 35. SERIAL PORT STATUS FRAME LAYOUT
START
Status_Data