Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Best-effort multihop forwarding

The rmh module implements a multihop forwarding mechanism.

Routes must have already been setup with the route_add() function. Setting up routes is done with another Rime module such as the route-discovery module.

The hop-by-hop reliable multi-hop unciast primitive is similar to the best-effot multi-hop unicast primitive except that it uses the reliable single-hop primitive for the communication between two single-hop neighbors.

Channels

The rmh module uses 1 channel.

Data Structures

struct  rmh_callbacks
 
struct  rmh_conn
 

Files

file  rmh.h
 
    Multihop forwarding header file

 

Macros

#define RMH_ATTRIBUTES
 

Functions

void rmh_close (struct rmh_conn *c)
 
void rmh_open (struct rmh_conn *c, uint16_t channel, const struct rmh_callbacks *u)
 
int rmh_send (struct rmh_conn *c, linkaddr_t *to, uint8_t num_rexmit, uint8_t max_hops)
 

#define RMH_ATTRIBUTES
Value:
{ PACKET_ADDR_ESENDER, PACKET_ADDRSIZE }, \
{ PACKET_ADDR_ERECEIVER, PACKET_ADDRSIZE }, \
{ PACKET_ATTR_TTL, PACKET_ATTR_BIT * 5 }, \
{ PACKET_ATTR_MAX_REXMIT, PACKET_ATTR_BIT * 5 }, \
RUC_ATTRIBUTES

void rmh_close ( struct rmh_conn c)
void rmh_open ( struct rmh_conn c,
uint16_t  channel,
const struct rmh_callbacks u 
)
int rmh_send ( struct rmh_conn c,
linkaddr_t to,
uint8_t  num_rexmit,
uint8_t  max_hops 
)