2773 views|3 replies

5

Posts

0

Resources
The OP
 

bluenrg-2 cannot connect to other devices directly when it is the host [Copy link]

 

After successful initialization, the function aci_gap_create_connection is used to connect directly according to the address, but it returns 0x46 BLE_STATUS_NOT_ALLOWED. The connection cannot be successfully connected. I have configured the connection parameters before using this function. Is there any missing configuration?

This post is from ST - Low Power RF

Latest reply

Hello, I have also encountered a similar situation. I used the client routine of BLE_Serial_port, and the mobile phone broadcasted to connect. printf("Connecting...\n"); ret = aci_gap_create_connection(LE_1M_PHY_BIT, PUBLIC_ADDR, bdaddr); printf("ret = %d\n", ret); if (ret != BLE_STATUS_SUCCESS) { printf("Error while starting connection: 0x%04x\r\n", ret); Clock_Wait(100); }, even if I did not broadcast, ret also returned 0. BlueNRG could not connect as a client. Is there a problem with the configuration somewhere? I am a novice.   Details Published on 2023-9-5 14:16
 
 

5

Posts

0

Resources
2
 

This post is from ST - Low Power RF
 
 
 

51

Posts

0

Resources
3
 

Could you please check whether the host function is enabled, i.e. whether the full stack is used?

This post is from ST - Low Power RF
 
 
 

2

Posts

0

Resources
4
 
lucienkuang posted on 2022-4-13 18:41 Please check whether the hosting function is turned on. Is the full stack used?

Hello, I have also encountered a similar situation. I used the client routine of BLE_Serial_port, and the mobile phone broadcasted to connect. printf("Connecting...\n");
ret = aci_gap_create_connection(LE_1M_PHY_BIT, PUBLIC_ADDR, bdaddr);
printf("ret = %d\n", ret);
if (ret != BLE_STATUS_SUCCESS)
{
printf("Error while starting connection: 0x%04x\r\n", ret);
Clock_Wait(100);
}, even if I did not broadcast, ret also returned 0. BlueNRG could not connect as a client. Is there a problem with the configuration somewhere? I am a novice.

This post is from ST - Low Power RF
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Detailed analysis of the failure of LAN speed slowdown

  It is inevitable that a computer network will fail. Network fault diagnosis is an important task of network mana ...

Introduction to the series of books on "Easy Learning from Scratch"

Introduction to the series of books on "Easy Learning from Scratch" Preface to the Series 1. The significance of ...

【McQueen Trial】Comparison of the accuracy of several ultrasonic sensor programs of McQueen

Purpose Compare the test accuracy of several ultrasonic sensors to provide a reference for everyone's use. Methods Write ...

BlueNRG-1/2 Flash operations require mutual exclusion with BLE events

When using the Flash of BlueNRG-1/2 to store application data, you may encounter problems such as no Bluetooth signal o ...

【Silicon Labs Development Kit Review】+ Get familiar with the development environment and download the breathing light routine

This post was last edited by hello_mcu on 2021-8-9 22:26 1. Overview This is my first time to experience silicon chi ...

LTspice simulation tutorial——xutong

@xutong LTspice (1) VScode and .model LTspice(2) .TEXT uses Xnn LTspice(5) components and libraries LTspice .Subckt(1) P ...

I would like to ask, why does a signal pass through two NOT gates in 74HC04? Doesn't it mean that it does nothing?

I would like to ask, why does a signal pass through two NOT gates in 74HC04? Doesn't it mean that it does nothing? As sh ...

How to use some USB commands in FreeRTOS system

In the development process of Allwinner R128, we summarized some methods of using the USB commands of the RTOS system. T ...

[Gift from Flathead Brother] Let me share the gift from Flathead Brother. Haha, it’s so thoughtful.

Not only did I get a RISC-V board at the Pingtou Ge event, but I also learned a lot. Then there is a little surprise in ...

【2024 DigiKey Creative Competition】+Hardware Preparation

This post was last edited by meiyao on 2024-11-3 20:10 It was a bit late when I received this task. Today I will share ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list