UDP socket-based IEEE 802.15.4 device over ZEP
More...
UDP socket-based IEEE 802.15.4 device over ZEP
- See also
- ZigBee Encapsulation Protocol for protocol definitions
This ZEP implementation can send a dummy HELLO packet on startup. This is used to make dispatchers aware of the node. To enable this behavior, add
USEMODULE += socket_zep_hello
to your Makefile.
A ZEP dispatcher can just drop those packets (ZEP type 0xFF) if it chooses to parse the ZEP header.
The header of the HELLO packet will look like this:
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Preamble (EX) | Version (2) | Type (255) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+ +
| |
+ Reserved (0) +
| |
+ +
| |
+ +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| | 'H' | 'E' | 'L' |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 'L' | 'O' | 0 | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 0 | 0 | 0 | 0 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
◆ SOCKET_ZEP_MAX
#define SOCKET_ZEP_MAX (1) |
Number of allocated parameters at socket_zep_params.
- Note
- This was decided to only be confiruable on compile-time to be more similar to actual boards
Definition at line 35 of file socket_zep_params.h.
◆ zepdev_state_t
ZEP device RX state.
Enumerator |
---|
ZEPDEV_STATE_IDLE | ZEP is not doing anything, not receiving frames.
|
ZEPDEV_STATE_RX_ON | ZEP is able to receive frames.
|
ZEPDEV_STATE_RX_RECV | unprocessed frame is in RX buffer, rx stopped
|
ZEPDEV_STATE_TX | ZEP is currently sending a frame.
|
Definition at line 83 of file socket_zep.h.
◆ socket_zep_cleanup()
Cleanup socket resources.
- Parameters
-
dev | the socket_zep device handle to cleanup |
◆ socket_zep_hal_setup()
Setup socket ZEP in order to be used with the IEEE 802.15.4 Radio HAL.
- Parameters
-
[in] | dev | pointer to the socket ZEP instance |
[in] | hal | pointer to the HAL descriptor associated to the device |
◆ socket_zep_setup()
Setup socket_zep_t structure.
- Parameters
-
[in] | dev | the preallocated socket_zep_t device handle to setup |
[in] | params | initialization parameters |