Sort by » date activity ▼ answers views votes

620 questions

Tagged
• x
19
views
no
1

How to know which physical device is disconnected in disconnect event?

Here the connect method is called

err_code =
sd_ble_gap_connect(
&m_scan_params,
&m_connection_param,
APP_BLE_CONN_CFG_TAG);


In the ble event handler there is the event BLE_GAP_EVT_DISCONNECTED

static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{

// ... other events

case BLE_GAP_EVT_DISCONNECTED:
{
NRF_LOG_INFO("LBS central link 0x%x ...
(more)

29
views
no
1

How to map a gap event to a physical device?

What unique information can I use to know which physical device disconnected for example? Say I have a MAC address or a name encoded into the advertising packet. Correct me if I'm wrong, but connection handles are created after ... (more)

23
views
no
1

Eclipse version

Hi, I recently purchased nrf52 development board for debugging nRF52832. I was following your tutorial "Development with GCC and Eclipse" and it is not working for me. Can you tell me the version of eclipse you used in the tutorial ... (more)

19
views
no
no

Why status code BLE_HCI_CONN_FAILED_TO_BE_ESTABLISHED ?

I'm tring to connect my phone to the multi-connect example client app

I'm tracing the ble events in the ble_evt_handler.

When I open the server app on my phone, I see this in my RTT

BLE_GAP_EVT_CONNECTED
BLE_GAP_EVT_DISCONNECTED
BLE_GAP_EVT_CONNECTED ...
(more)

25
views
no
1

ble_gatts_service_add error code 0x0000000c

Hello, I am trying to set my own BLE service, and on the adverstisement initialization I get an error 0x0000000c when calling to ble_advertising_init().

Why does it mean and happen? How can I fix it?

My uuids ... (more)

13
views
no
no

How to write sensor values into Tx characteristic of NUS service?

Hello All,

I want to write the peripheral code which will send sensor reading to central.

For that I started looking into the Uart_Nus peripheral code from SDK. I tried to write some hard coded values using ble_nus_send_string() function but ... (more)

16
views
no
1

NRF board don't init ble_uart_app example

Hi, I am testing with ble_app_uart . my board will advertising to my phone . I realize that if I don't connect 2 pin uart on NRF board to USB TO COM to my PC . Then , my board don't init ... (more)

25
views
no
1

Linker error Error[Lt009]: Inconsistent wchar_t size

Hi! I have download nRF5_SDK_14.1.0, and I have IAR Embedded Workbench IDE ARM 8.20.1

I want compile ble_app_eddystone.eww from examples, but have error:

Error[Lt009]: Inconsistent wchar_t size occ_lib_occ_curve25519.c.o(occ_lib_nrf52_iar.a) and 4 ...

(more)

16
views
no
no

Setup parameter for multi connection via NUS

Hi all , I completed connect 1 peripheral board to 2 central board via NUS . But when I increase NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_TOTAL_LINK_COUNT to 3 connection . peripheral board don't work , don't advertising . Pls , show me a advice . I config NRF_SDH_BLE_GATT_MAX_MTU_SIZE ... (more)

32
views
no
no

CDT Build Output Parser Eclipse + SDK 14.1.0 (ble_app_tt_mtu_throughput)

Hello,

I am currently experimenting with some throughput tests on nRF52832/nRF52840 DKs. Some time ago I worked with some BLE UART examples from SDK 13.0 with the help of Eclipse. Everything worked fine after going through this tutorial ... (more)

62
views
no
1

How to measure battery life time

Hi,

We have devloped PCB based on nrf52832 as beacon.

We have also developed firmware for that and it will advertise for some and than go to sleep mode and after some time it again advertise(To save battery consumption ... (more)

36
views
4
1

how to boot another board

hello,

i have developed one board using nRF52832-QFAA and trying to dump simple LED blinking code in it using nRF52 DK board. But code is always dumping into custom board not in my board. i am using P20 connector to ... (more)

33
views
no
no

Cannot step past second instruction in disassembly window

When I run the UART app nRF5_SDK_12.3.0_d7731ad\examples\peripheral\uart in debug mode, the disassembly window opens, and I seem to get stuck on the second instruction. Step over doesn't step past the second instruction. Why is ... (more)

74
views
1
vote
1

Discovery of Battery service

Hi,

I want to use battery service in my beacon for that i have tried two examples of sdk14 on nrf52 dk

1)ble_app_hrs

2)ble_app_proximity

in first example ble_app_hrs values decrease 100% to 99% then 98%.....till 81% then ... (more)

41
views
no
no

custom 128-bit UUID for advertise

Hi! I try to send data using advertise PDU and I need use custom 128 UUID. How to convert to right format service_128_uuid and replace 16-bit value to init.advdata.p_service_data_array->service_uuid?

static void advertising_init(void)
{
uint32_t               err_code;
ble_advertising_init_t init ...
(more)

107
views
5
2

Transferring data received over ble to sd card

Hi All,

I am working on pca10040, nrf52832 and s132. I am using ble_app_uart and sd card, where i want to transmit data received over ble to the sd card.

Can you help me with how can i do so ... (more)

32
views
no
1

running arm-none-eabi-dgb on nRF52 with soft device

Hi,

I'm trying to run the gdb on the nRF52 with softdevice s132 and in the begining it runs ok but after some time when I run (gdb) list I get: "Line number 435 out of range; main.c ... (more)

104
views
no
1

Time_stamping_value?

Hi Nordic Devzone,

First i want to make sure that if the clock being used by softdevice is the LFCLK (32kHz) and its counter register is 24bits ? and which prescaler is being used? because I want to send the local ... (more)

30
views
no
no

nrf52832 hardfault in ble_advertising, sdk 14.0

Hi,

Once the main hardware init part is done, system idles for a while and then I get a hardfault (APP_ERROR_CHECK returns fatal)

I reset the chip, and asked it to continue. When I got "Fatal" in the log window ... (more)

55
views
no
1

Disconnected continuously for multi NUS

Hi all , I am trying connect central board NRF52 with 2 peripheral board NRF52 . I modified main.c in ble_app_uart_c , my main.c at http://codepad.org/5ZHg5P0R . 2 board peripheral use ble_app_uart original . When I test code for central ... (more)

30
views
3
1

Using NUS/CTS/BAS together

Hey guys,

I'm using the SDK 14.0 on my nRF52832 with the SoftDevice 132, my IDE is Keil.

And I merged the ble_app_uart example with the ble_app_cts_c example and the ble_app_proximity example from the SDK.

If I start ... (more)

45
views
2
1

Integrating DTM functionality into an app with softdevice

Hello, I am investigating the possibility of integrating the DTM functionality into our app (which uses the softdevice) to allow us to use a single image for production testing and deployment. What I am hoping to achieve is to allow ... (more)

27
views
no
no

Connection event length extension and out of range issue

Hello,

I have set my softdevice s132v3 with SDK12.2 and nrf52832 to use connection event length extension and data length extende with connection parameters as shown below.I am using only one link central-to-peripherial, both Nordic nrf52 devices.

Once ... (more)

65
views
no
2

nrf_fstorage_erase returns invalid address error

Hello,

I've been working on the ble_multilink example and managed to combine that with the ble_hrs_c example to connect to multiple heart rate units and receive the data through UART. Instead of searching for specific pre-defined UUIDs I would ... (more)

40
views
no
1

Auto unlock with iOS

Hi, i am actually working on a smart lock and i want to implement an Automatic Unlock. This functionnality can be really useful, because the door unlock even if your smartphone is in your pocket.

On my smart lock, using ... (more)

17
views
no
no

NRF_ESB_CREATE_PAYLOAD() syntax error in sdk v14.1

Using GCC compiler with Eclipse, sdk v14.1, nRF52832, in ESB protocol mode.

The code compiles and builds just fine, all links are ok, but the code below issues a syntax error message in Eclipse with no further information. I ... (more)

196
views
no
1

What is system on mode

Hello, I used translation software.

I enter system on mode from the power_manage of the function.

But I do not understand system on mode.

In the system on mode is it a mode that transitions to low power consumption with ... (more)

59
views
no
no

mesh examples not working

Hello i am using segger studio i have recently purchased three nrf52dk speically for ble mesh.. i am trying to run examples of mesh alpha sdk that nordiac prvodies but it has some errors ...

<t:          0>, main.c,  139, ----- Bluetooth ...
(more)

83
views
1
vote
1

Problems with NRF_LOG or not full output in RTT Viewer.

Hi to everyone!

I have a problem with the NRF_LOG or with RTT Viewer. I wrote this simple code, just to test an output console.

int i = 0;

while (i< 100)
{
NRF_LOG_INFO("%i", i);
NRF_LOG_FLUSH();
i++;
}


But, when I execute ... (more)

76
views
1
vote
2

Sending number over ble with ble_nus_string_send

Hi! Can anyone help me send values of temperature over ble? I tried and it appears like this,Capturar.PNG.

I'm using the code on the examples, ble_peripheral\ble_app_uart and ble_central\ble_app_uart, to comunicate over ble and changed this ... (more)

Statistics

• Total users: 25335
• Latest user: Rose Finlay
• Resolved questions: 10977
• Unanswered questions: 3687
• Total questions: 27077

Recent blog posts

• Estudando Projetos do SDK 10 para nRF5x com Eclipse Oxygen (Portuguese)

Posted 2017-11-12 00:08:55 by Carlos Delfino
• Configurando o Eclipse Oxygen para Desenvolvimento com nRF5x (Portuguese)

Posted 2017-11-10 21:15:47 by Carlos Delfino
• How to use Git for embedded software development

Posted 2017-11-06 13:21:55 by Yaniv Nis
• Thingy:52 based Weather Station

Posted 2017-10-29 22:31:15 by Krzysztof Szewczyk
• How to build continuous integration and delivery process for embedded SW development

Posted 2017-10-03 11:01:29 by Yaniv Nis

Recent questions

• Issues running imported Keil project in Segger Studio

Posted 2017-11-19 08:21:24 by Nick
• I2C Write issue

Posted 2017-11-19 08:13:39 by adityaj
• Programming Sparkfun nRF52832 Breakout with Keil

Posted 2017-11-19 07:01:46 by Nick
• BLE_GAP_SEC_STATUS_DHKEY_FAILURE numeric comparison

Posted 2017-11-18 23:08:29 by Arepa
• Multi-tasking and event-handling

Posted 2017-11-18 20:21:08 by Roger