No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s2:aih:lab:nrf52zephyrblebeacon
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:edu:zmitac:s2:aih:lab:nrf52zephyrblebeacon [2023/12/09 18:37] – ktokarz | en:edu:zmitac:s2:aih:lab:nrf52zephyrblebeacon [2023/12/09 18:42] (current) – ktokarz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Zephyr Beacon example ====== | ====== Zephyr Beacon example ====== | ||
| It's time to deal with some wireless transmission using nRF52840 SoC. At the beginning, we will use the example of the Bluetooth Low Energy Beacon which is included in the Zephyr installation in PlatformIO. | It's time to deal with some wireless transmission using nRF52840 SoC. At the beginning, we will use the example of the Bluetooth Low Energy Beacon which is included in the Zephyr installation in PlatformIO. | ||
| - | This example advertises the device as the "Test beacon" | + | This example advertises the device as the "Test beacon" |
| + | |||
| + | After importing it to the Visual Studio Code we should make some configuration: | ||
| < | < | ||
| CONFIG_BT=y | CONFIG_BT=y | ||
| Line 7: | Line 9: | ||
| CONFIG_BT_DEVICE_NAME=" | CONFIG_BT_DEVICE_NAME=" | ||
| </ | </ | ||
| - | |||
| - | After importing it to the Visual Studio Code we should make some configuration: | ||
| This example starts the Bluetooth interface with the function bt_enable() that passes the pointer to the bt_ready() which is the callback function to notify that initialization has finished. | This example starts the Bluetooth interface with the function bt_enable() that passes the pointer to the bt_ready() which is the callback function to notify that initialization has finished. | ||
| < | < | ||
| Line 54: | Line 54: | ||
| You can observe the details in the nRF Connect application on your mobile phone. | You can observe the details in the nRF Connect application on your mobile phone. | ||
| - | The beacon example is very simple because the beacon device is intended to advertise only so, there is no further functionality implemented. This example shows the so-called Eddystone format (([[https:// | + | The beacon example is very simple because the beacon device is intended to advertise only, so there is no further functionality implemented. This example shows the so-called Eddystone format (([[https:// |
| For example, web prefixes can be encoded as in the table {{ref> | For example, web prefixes can be encoded as in the table {{ref> | ||
| <table eddyprefix> | <table eddyprefix> | ||
en/edu/zmitac/s2/aih/lab/nrf52zephyrblebeacon.1702143454.txt.gz · Last modified: by ktokarz
