background image

 

 

Module RF450 

  

U077.0.2-MRF450 

8

7.0 Communication 

Protocol 

Communication between the module and host is packetized. Each packet begins with a start-of-
packet (SOP) indicator, followed by the length of the packet message, followed by the message, 
and terminated with a checksum calculated over the message.  All multi-byte fields are 
interpreted in little-endian format; the LSB is stored in the lowest address and the MSB is stored 
in the highest.  A diagram of the packet format follows. 

Table 4. Packet Format Diagram 

3

..

n

n + 1 

SOP

 

Message Length

 

Message

 

Chksum

 

0x3C LSB MSB 

Chksum 

Region 

 

 

The checksum is calculated by subtracting the 8-bit sum of the message bytes from 0xFF.  In 
this way, the checksum of a packet can be easily verified by summing the message bytes and 
checksum.  The result of a valid packet is 0xFF. 

Handshaking 

The synchronization scheme between the module and host varies depending on the 
communication channel selected.  In either scheme the packet structure remains constant. 

7.1 SPI 

In SPI mode the module is a slave device.  As such, it cannot initiate communications.  All 
communication is controlled by the host.  The module utilizes a buffer for all packets to the host.  
F0 (P1.9) is used to communicate the buffer status to the host.  When F0 is low, there are no 
packets available for the host.  When F0 is high, at least one packet is available. 

The host must check the state of F0 prior to initiating a SPI transfer.  If F0 is low the transaction 
will be handled as a write.  No data will be shifted out to the host during the transaction.  If F0 is 
high the transaction will be handled as a read.  The module will shift the buffered packet to the 
host.  Data shifted from the host to the module will be ignored.  The polarity of this signal may be 
configured (see Pin Mode parameter). 

In order to prevent SPI slave overflows, a second control signal is implemented.  F1 is utilized as 
a CTS (clear to send) signal.  The host must check the state of F1 prior to initiating a SPI 
transfer.  If F1 is asserted the SPI slave interface is busy completing a previously requested 
command and any new request will be silently discarded.  As soon as nSS is asserted, F1 is 
asserted.  F1 remains asserted until the requested command completes.  The polarity of this 
signal may be configured (see Pin Mode parameter). 

Due to the structured nature of SPI the likelihood that the module and host lose sync is low.  No 
additional facilities are provided in this mode. 

7.2 UART 

In UART mode, both the host and module can initiate communications.  In this mode no special 
handshaking is required. 

In this mode it is potentially possible that the module and host lose sync due to the fact that the 
SOP byte can occur as valid data.  In order to recover from this condition the protocol also 
provides some simple event timeouts.  There is no timeout associated with waiting for the SOP 
indicator.  Once the SOP has been detected an inter-byte timer is started.  If the inter-byte 
timeout expires an error message is sent to the host and the current packet is discarded.  A last-
byte timer is also maintained.  This last-byte timer must elapse before an error message is sent.  
This ensures that an error message is not sent until the host has completed. 

Summary of Contents for MRF450

Page 1: ...2014 Cervis Inc MRF450 User Manual U077 0 2 MRF450...

Page 2: ...Canada To reduce potential radio interference to other users the antenna type and its gain should be so chosen that the equivalent isotropically radiated power e i r p is not more than that necessary...

Page 3: ...smit Mode 7 7 0 Communication Protocol 8 7 1 SPI 8 7 2 UART 8 7 3 Acknowledgement 9 8 0 Messages 10 8 1 Get Set Parameter 10 8 2 Transmit 12 8 3 Receive 13 8 4 Error 14 List of Figures Figure 1 MRF450...

Page 4: ...Module RF450 U077 0 2 MRF450 ii Table 9 Receive Message Structure 13 Table 10 Error Message Structure 14...

Page 5: ...User Manual 2014 Cervis Inc iii Notes and Observations...

Page 6: ......

Page 7: ...st abide by all applicable Federal State and Local laws concerning installation and operation of the equipment Failure to comply could result in penalties and could void user authority to operate the...

Page 8: ...dio is designed to operate in the 450 470 MHz band with a maximum output power of less than 15 dBm The radio can operate on any center frequency in the band with a resolution of 1 kHz The center frequ...

Page 9: ...P1 1 VDC 3 3V P1 2 VDC GND P1 2 TMS IN P1 3 Enable IN High P1 3 VDC GND P1 4 OC Flag OUT Low P1 4 TCK IN P1 5 SPI SCK IN P1 5 VDC GND P1 6 SPI SDI UART RX IN P1 6 TDO OUT P1 7 SPI SDO UART TX OUT P1 7...

Page 10: ...pecial accessories Install the RF adapter cable by plugging the MCX plug into the MCX jack on the module RFE2 Affix the RP TNC end of the adapter cable to the housing of the host device utilizing the...

Page 11: ...at a logic low level when idle CHPA clock phase is 1 meaning that data is latched on the rising edge of the clock and changed on the following edge The SPI port requires that nSS be asserted at least...

Page 12: ...the error percentage Results greater than 4 typically do not work 1 5 0 RF Characteristics The OTA structure is formatted as in Table 3 Table 3 OTA Structure Format 0 4 5 6 7 n n 1 n 2 Preamble Sync P...

Page 13: ...ost and module has restrictions The host may only issue transmit requests when a manual event occurs on the host for example when a button is pressed There is no limit to the number of transmit reques...

Page 14: ...ifted out to the host during the transaction If F0 is high the transaction will be handled as a read The module will shift the buffered packet to the host Data shifted from the host to the module will...

Page 15: ...70 s 7 3 Acknowledgement Every packet sent to the module will result in a response packet sent back to the host In addition the module will generate a message to the host when an RF packet is received...

Page 16: ...ional Set if present The following table describes the available configurable parameters Table 7 Configurable Parameters ID Parameter Bytes Default Description 0x0000 Channel 2 0x0000 Sets the operati...

Page 17: ...bling stripping on an address field that was not present in the transmitted packet will result in erroneous payloads stripping will be performed on the specified byte locations regardless of location...

Page 18: ...ply Transmit ID 0x10 Reply 0xA0 0 1 2 n ID Options Payload 0x10 The Options field is binary encoded and defined as in the following table Bit Option Description 0 Message ACK If set send an ACK messag...

Page 19: ...ructure Receive ID 0x20 Reply 0xB0 0 1 2 ID Options Time 0x20 The options field is binary encoded and defined as Bit Option Description 0 Message ACK If set send an ACK message to this receive request...

Page 20: ...0 Error Message Structure Error ID 0xFF 0 1 ID Error 0xFF The Error field is an enumerated type with the following definitions Error Name Description 0 No Error No Error 1 No SOP SOP is missing 2 Leng...

Page 21: ...User Manual 2014 Cervis Inc 15 Visit our Web site at www cervisinc com 2014 Cervis Inc All rights reserved Content is subject to change without notice...

Reviews: