UDP socket-based IEEE 802.15.4 device over ZEP. More...
UDP socket-based IEEE 802.15.4 device over ZEP.
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
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 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Files | |
| file | socket_zep.h |
| Socket ZEP definitions. | |
| file | socket_zep_params.h |
| Configuration parameters for the Socket-based ZEP driver. | |
Data Structures | |
| struct | socket_zep_t |
| ZEP device state. More... | |
| struct | socket_zep_params_t |
| ZEP device initialization parameters. More... | |
Functions | |
| void | socket_zep_setup (socket_zep_t *dev, const socket_zep_params_t *params) |
| Setup socket_zep_t structure. More... | |
| void | socket_zep_cleanup (socket_zep_t *dev) |
| Cleanup socket resources. More... | |
| void socket_zep_cleanup | ( | socket_zep_t * | dev | ) |
Cleanup socket resources.
| dev | the socket_zep device handle to cleanup |
| void socket_zep_setup | ( | socket_zep_t * | dev, |
| const socket_zep_params_t * | params | ||
| ) |
Setup socket_zep_t structure.
| [in] | dev | the preallocated socket_zep_t device handle to setup |
| [in] | params | initialization parameters |