various cosmetic changes related to ieee802154
This commit is contained in:
parent
de61a8e009
commit
a99275ec1a
@ -3,7 +3,7 @@
|
|||||||
==================================================
|
==================================================
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
===========
|
||||||
|
|
||||||
The i8sak app is a useful CLI for testing various IEEE 802.15.4 functionality.
|
The i8sak app is a useful CLI for testing various IEEE 802.15.4 functionality.
|
||||||
It also serves as a starting place for learning how to interface with the NuttX
|
It also serves as a starting place for learning how to interface with the NuttX
|
||||||
@ -30,7 +30,8 @@ _sticky_, meaning, if you set the endpoint short address once, any future
|
|||||||
operation using the endpoint short address can default to the previously used
|
operation using the endpoint short address can default to the previously used
|
||||||
address. This is particularly useful to keep the command lengths down.
|
address. This is particularly useful to keep the command lengths down.
|
||||||
|
|
||||||
## How To Use
|
How To Use
|
||||||
|
==========
|
||||||
|
|
||||||
The i8sak app has a series of CLI functions that can be invoked. The default
|
The i8sak app has a series of CLI functions that can be invoked. The default
|
||||||
i8sak command is ``i8`` to make things quick and easy to type.
|
i8sak command is ``i8`` to make things quick and easy to type.
|
||||||
@ -47,6 +48,11 @@ This will tell the MAC layer that it should now act as a PAN coordinator using
|
|||||||
PAN ID CD:AB. For now, this function assumes that we are operating a non-beacon
|
PAN ID CD:AB. For now, this function assumes that we are operating a non-beacon
|
||||||
enabled PAN, since, as of this writing, beacon-enabled networks are unfinished.
|
enabled PAN, since, as of this writing, beacon-enabled networks are unfinished.
|
||||||
|
|
||||||
|
Configure PAN coordinator short address and EP short addres::
|
||||||
|
|
||||||
|
i8 set saddr 0A:00
|
||||||
|
i8 set ep_saddr 0B:00
|
||||||
|
|
||||||
Next, on the same device, run::
|
Next, on the same device, run::
|
||||||
|
|
||||||
i8 acceptassoc
|
i8 acceptassoc
|
||||||
@ -117,7 +123,7 @@ similar to the following::
|
|||||||
Dest. Address - 0xDEADBEEF00FADE0C
|
Dest. Address - 0xDEADBEEF00FADE0C
|
||||||
Src. Address - 0xDEADBEEF00FADE0A
|
Src. Address - 0xDEADBEEF00FADE0A
|
||||||
Command Type - Association Response
|
Command Type - Association Response
|
||||||
Assigned SADDR - 0x000C
|
Assigned SADDR - 0x000B
|
||||||
Assoc Status - Successful
|
Assoc Status - Successful
|
||||||
|
|
||||||
3a) ACK
|
3a) ACK
|
||||||
|
@ -458,9 +458,9 @@ static void mac802154_notify_worker(FAR void *arg)
|
|||||||
* This function is called in the following scenarios:
|
* This function is called in the following scenarios:
|
||||||
* - The MAC receives a START.request primitive
|
* - The MAC receives a START.request primitive
|
||||||
* - Upon receiving the IEEE802154_SFEVENT_ENDOFACTIVE event from the
|
* - Upon receiving the IEEE802154_SFEVENT_ENDOFACTIVE event from the
|
||||||
* this radio layer, the MAC checks the bf_update flag and if set
|
* this radio layer, the MAC checks the beaconupdate flag and if set
|
||||||
* calls function. The bf_update flag is set when various attributes
|
* calls function. The beaconupdate flag is set when various
|
||||||
* that effect the beacon are updated.
|
* attributes that effect the beacon are updated.
|
||||||
*
|
*
|
||||||
* Internal function used by various parts of the MAC layer. This function
|
* Internal function used by various parts of the MAC layer. This function
|
||||||
* uses the various MAC attributes to update the beacon frame. It loads
|
* uses the various MAC attributes to update the beacon frame. It loads
|
||||||
@ -778,7 +778,7 @@ static void mac802154_purge_worker(FAR void *arg)
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static int
|
static int
|
||||||
mac802154_radiopoll(FAR const struct ieee802154_radiocb_s *radiocb,
|
mac802154_radiopoll(FAR const struct ieee802154_radiocb_s *radiocb,
|
||||||
bool gts, FAR struct ieee802154_txdesc_s **txdesc)
|
bool gts, FAR struct ieee802154_txdesc_s **txdesc)
|
||||||
{
|
{
|
||||||
FAR struct mac802154_radiocb_s *cb =
|
FAR struct mac802154_radiocb_s *cb =
|
||||||
|
@ -146,7 +146,9 @@ int mac802154_req_associate(MACHANDLE mac,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get a uin16_t reference to the first two bytes. ie frame control field */
|
/* Get a uint16_t reference to the first two bytes. ie frame control
|
||||||
|
* field
|
||||||
|
*/
|
||||||
|
|
||||||
iob->io_data[0] = 0;
|
iob->io_data[0] = 0;
|
||||||
iob->io_data[1] = 0;
|
iob->io_data[1] = 0;
|
||||||
@ -879,7 +881,7 @@ static void mac802154_assoctimeout(FAR void *arg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: mac802154_extract_assocrespj
|
* Name: mac802154_extract_assocresp
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Create and send a Data request command to extract the Association
|
* Create and send a Data request command to extract the Association
|
||||||
|
Loading…
Reference in New Issue
Block a user