Skip to content

nopnop2002/esp-idf-ieee802154

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esp-idf-ieee802154

IEEE802.15.4 communication example for ESP-IDF.

ESP-IDF includes this IEEE802.15.4 communication components.
But there is no example code in ESP-IDF.
I used these as references.
Thanks to Hugo Trippaers.

Software requirements

ESP-IDF V5.x.

Hardware requirements

Two sets of ESP32C6 or ESP32H5 development boards.

Installation

git clone https://github.com/nopnop2002/esp-idf-ieee802154
cd esp-idf-ieee802154
idf.py set-target {esp32c6/esp32H2}
idf.py menuconfig
idf.py flash monitor

Configuration

config-top config-app-1 config-app-2

  • PAN ID
    It must be the same on the sending and receiving sides.
  • Channel
    It must be the same on the sending and receiving sides.
  • My Address
    It must be unique on the sending and receiving sides.
  • Peer Address
    0xFFFF is the broadcast address.
  • Show details of received packets
    When enabled, details of received packets will be displayed.
I (2274719) ieee802154: 0x40814ae1   41 88 19 42 42 ff ff 22  22 54 68 69 73 20 69 73  |A..BB..""This is|
I (2274719) ieee802154: 0x40814af1   20 45 53 50 33 32 48 32  dd a5                    | ESP32H2..|
I (2274729) ieee802154: Frame type:                   1
I (2274739) ieee802154: Security Enabled:             False
I (2274739) ieee802154: Frame pending:                False
I (2274749) ieee802154: Acknowledge request:          False
I (2274759) ieee802154: PAN ID Compression:           True
I (2274759) ieee802154: Reserved:                     False
I (2274769) ieee802154: Sequence Number Suppression:  False
I (2274779) ieee802154: Information Elements Present: False
I (2274779) ieee802154: Destination addressing mode:  2
I (2274789) ieee802154: Frame version:                0
I (2274789) ieee802154: Source addressing mode:       2
I (2274799) ieee802154: sequence_number (19)
I (2274799) ieee802154: On PAN 0x4242 to short address 0xffff
I (2274809) ieee802154: Originating from short address 0x2222
I (2274819) ieee802154: Data length: 15
I (2274819) ieee802154: checksum: 0xa5dd
I (2274829) ieee802154: PAN 4242 S 2222 00:00:00:00:00:00:00:00 to ffff 00:00:00:00:00:00:00:00

About

IEEE802.15.4 communication example for ESP-IDF

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published