No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s2:aih:lab:nrf52zephyrblecentral

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:edu:zmitac:s2:aih:lab:nrf52zephyrblecentral [2023/12/19 22:32] – [BLE Health Temperature peripheral] ktokarzen:edu:zmitac:s2:aih:lab:nrf52zephyrblecentral [2023/12/19 23:19] (current) – [Tasks to do during the laboratory] ktokarz
Line 45: Line 45:
 Notice that after every successful discovery the function "discovery_func()" is called as the callback.\\ Notice that after every successful discovery the function "discovery_func()" is called as the callback.\\
 While the peripheral device updates the thermometer sensor reading, our central device receives this data and calls the "notify_func()" callback which prints the data using the UART port. While the peripheral device updates the thermometer sensor reading, our central device receives this data and calls the "notify_func()" callback which prints the data using the UART port.
 +===== Tasks to do during the laboratory =====
 +  - Create the Health Thermometer peripheral device and test if it operates properly
 +  - Import central device program "central_ht" (main.c and prj.conf files must be imported)
 +  - Compile and execute it observing its behaviour with and without peripheral running
 +  - Modify the peripheral code and central code to enable LED control on the central board with a button press on the peripheral board
  
 +<note>
 +If you find problems with undefined BT_ATT_FIRST_ATTRIBUTE_HANDLE and BT_ATT_LAST_ATTRIBUTE_HANDLE define them as in the following code.
 +</note>
 +<code>
 +#define BT_ATT_FIRST_ATTRIBUTE_HANDLE 0x0001
 +#define BT_ATT_LAST_ATTRIBUTE_HANDLE 0xFFFF
 +</code>
 +<note>
 +To send simple binary data you can use a binary sensor service (UUID = 0x183B) with a binary sensor response characteristic (UUID = 0x2B2C).
 +</note>
en/edu/zmitac/s2/aih/lab/nrf52zephyrblecentral.1703021571.txt.gz · Last modified: by ktokarz