Hello,
According to specification, SoftDevice (S132) supports three connections as a central. Do you have example project?
I need collect data from 3 sensors:
Thanks and Regards, Nazar
Hello,
According to specification, SoftDevice (S132) supports three connections as a central. Do you have example project?
I need collect data from 3 sensors:
Thanks and Regards, Nazar
For the S132 you can look at ble_app_hrs_rscs_relay located in:
nRF52_SDK_0.9.2_dbc28c9\examples\ble_central_and_peripheral\experimental\
This example connects to peripherals of different types and acts as a relay against a second master.
There is also the possibility to use on the nRF51 examples as shibshab says. Since the Softdevice API's are similar it shouldn't be to much work to port these. However there is a migration document available here.
For the S132 you can look at ble_app_hrs_rscs_relay located in:
nRF52_SDK_0.9.2_dbc28c9\examples\ble_central_and_peripheral\experimental\
This example connects to peripherals of different types and acts as a relay against a second master.
There is also the possibility to use on the nRF51 examples as shibshab says. Since the Softdevice API's are similar it shouldn't be to much work to port these. However there is a migration document available here.
thanks for clarifications!
Hi run_ar,
I have a problem with porting project nRF51_sdk_v10_0_0\examples\ble_central\ble_app_multilink_central\ to nRF52
my steps:
copy copy project to nRF52_sdk_v0_9_2
in options:
in "device" change device to nRF52832_xxAA
in "C/C++" and "ASM" change Define line to "BLE_STACK_SUPPORT_REQD BOARD_PCA10036 S132 NRF52 SOFTDEVICE_PRESENT SWI_DISABLE0"
in "C/C++" all includes "............\components\softdevice\s132\headers", "............\components\softdevice\s132\headers\nrf52"
also changed programmer/debugger options according to migration doc.
after building:
compiling device_manager_central.c... ......\config\pstorage_platform.h(35): error: #136: struct "" has no field "BOOTLOADERADDR" uint32_t bootloader_addr = RF_UICR->BOOTLOADERADDR; ............\components\ble\device_manager\device_manager_central.c: 0 warnings, 1 error compiling client_handling.c... ......\client_handling.c(132): error: #20: identifier "ble_gatt_db_char_t" is undefined ble_gatt_db_char_t * p_characteristic; ......\client_handling.c(132): error: #20: identifier "p_characteristic" is undefined ble_gatt_db_char_t * p_characteristic; ......\client_handling.c: 0 warnings, 2 errors compiling main.c... ......\config\pstorage_platform.h(35): error: #136: struct "" has no field "BOOTLOADERADDR" uint32_t bootloader_addr = RF_UICR->BOOTLOADERADDR; ..........\bsp\bsp.h(36): error: #5: cannot open source input file "app_button.h": No such file or directory #include "app_button.h" ......\main.c: 0 warnings, 2 errors compiling app_fifo.c... compiling app_trace.c... compiling nrf_assert.c... assembling arm_startup_nrf52.s... compiling nrf_drv_uart.c... compiling pstorage.c... ......\config\pstorage_platform.h(35): error: #136: struct "" has no field "BOOTLOADERADDR" uint32_t bootloader_addr = RF_UICR->BOOTLOADERADDR; ............\components\drivers_nrf\pstorage\pstorage.c: 0 warnings, 1 error compiling app_error.c... compiling retarget.c... compiling system_nrf52.c... compiling app_timer.c... compiling softdevice_handler.c... "._build\nrf52422_xxac_s130.axf" - 6 Error(s), 0 Warning(s).
-- changed NRF_UICR->BOOTLOADERADDR to "*(uint32_t *)(0x10001014)" fixed "#136: struct "" has no field "BOOTLOADERADDR""
-- added include "............\components\libraries\button" fixed "#5: cannot open source input file "app_button.h": No such file or directory"
-- I have problems with "20: identifier "ble_gatt_db_char_t" is undefined". ble_gatt_db_char_t is missed in nRF52_sdk_v0_9_2. I've tried copy ble_gatt_db.h from nRF51_sdk_v10_0_0 but it does not fix the problem.
Do you have any ideas what I do wrong?
Best Regards,
Nazar