Sorry to ask again, but sometimes it works, sometimes not. I don't know the TODO list to start the advertise mode.
Which is the right way to start the device in the advertise mode, when I want to discover it from another device?
Start BLEGUI->directly klick on set mode? (without attaching before)
But when I click on "set mode" I see in the log "ble_cmd_setmode discover:2(0x02) connect:2(0x02)
I see., that means discoverable, connectable. It should work, but the other device doesn't see him
You always need to press attach and make sure the box in the upper right corner turns green (it is showing red color and "disconnected" in your screenshot).
If you don't want to change the discoverable/connectable settings then you can just press "attach" and then "set mode".
>> But when I click on "set mode" I see in the log "ble_cmd_setmode_discover:2(0x02) connect:2(0x02)
If you watch closely, it does not say ble_cmd_setmode_discover. It is actually ble_cmd_gap_set_mode. Followed by the two parameters: discover: 2 / connect : 2.
See BGAPI reference manual and command gap_set_mode description.
0
Thank you, it seems to work.
It is really usefull to see the commands in the Log box.
Thanks a lot
MBoerner
0
the same error happends again:
As I start my both device, the client and the server, started BLE GUI on the server, press attach, pressed set mode->it worked
Now I has to change, I pressed "detach " in the BLE GUI, than again "set mode", I got the message :
ble_rsp_gap_set_mode result:0x020c ['Command requested cannot be executed because the Controller is in a state where it cannot process this command at this time.']
The I restarted my W7-PC, start the BLEGUI, press "attach", press "set mode"
I get the message:
ble_rsp_gap_set_mode result:0x020c ['Command requested cannot be executed because the Controller is in a state where it cannot process this command at this time.']
This is the complete log since I restarted the BLE GUI:
2018.01.15 09:44:00.336 ble_rsp_gap_set_mode result:0x020c ['Command requested cannot be executed because the Controller is in a state where it cannot process this command at this time.']
2018.01.15 09:44:00.384 RX: 000206010c02
What should I do, on the client and on the server, if I had to close the BLE GUI software. How may I know what is wrong?
Thanks in advance for your help
MBoerner
PS: And what should I do after a time_out to advertise again?
Pressing the "detach" button does not reset the dongle, it just closes the connection between PC and dongle. If you had for example put the dongle into advertising mode and click "detach", the dongle will continue to advertise.
If you want to start from a known state, then you can send reset command to the dongle after connecting to it. After clicking attach button, select Reset from the Commands menu in BLE GUI.
0
Thank you, I understand.
Best regards
0
Hello!
I have a question regarding advertising. If I start advertising and the dongle gets scanned and connected by - let's say - an android device - is it possible to start advertising again and let a second device make a connection. I get the same error as mentioned above if I try to start advertising when already connected...
Thanks, Andreas
0
Andreas, I think the problem is that the BLED112 does not support multiple connections in peripheral mode. It is a Bluetooth 4.0 device and the support for multiple connections in slave role was added in Bluetooth core spec 4.2 if I remember right.
If the dongle is the central / initiator, it can connect to multiple (up to 8) peripherals simultanously. But in peripheral mode the dongle supports only one connection.
BLED112 start advertising in BLEGUI
Hello!
Sorry to ask again, but sometimes it works, sometimes not. I don't know the TODO list to start the advertise mode.
Which is the right way to start the device in the advertise mode, when I want to discover it from another device?
Start BLEGUI->directly klick on set mode? (without attaching before)
But when I click on "set mode" I see in the log "ble_cmd_setmode discover:2(0x02) connect:2(0x02)
I see., that means discoverable, connectable. It should work, but the other device doesn't see him
Can you help me again, please?
Thank a lot in advance
MBoerner
You always need to press attach and make sure the box in the upper right corner turns green (it is showing red color and "disconnected" in your screenshot).
If you don't want to change the discoverable/connectable settings then you can just press "attach" and then "set mode".
>> But when I click on "set mode" I see in the log "ble_cmd_setmode_discover:2(0x02) connect:2(0x02)
If you watch closely, it does not say ble_cmd_setmode_discover. It is actually ble_cmd_gap_set_mode. Followed by the two parameters: discover: 2 / connect : 2.
See BGAPI reference manual and command gap_set_mode description.
Thank you, it seems to work.
It is really usefull to see the commands in the Log box.
Thanks a lot
MBoerner
the same error happends again:
As I start my both device, the client and the server, started BLE GUI on the server, press attach, pressed set mode->it worked
Now I has to change, I pressed "detach " in the BLE GUI, than again "set mode", I got the message :
The I restarted my W7-PC, start the BLEGUI, press "attach", press "set mode"
I get the message:
This is the complete log since I restarted the BLE GUI:
What should I do, on the client and on the server, if I had to close the BLE GUI software. How may I know what is wrong?
Thanks in advance for your help
MBoerner
PS: And what should I do after a time_out to advertise again?
Pressing the "detach" button does not reset the dongle, it just closes the connection between PC and dongle. If you had for example put the dongle into advertising mode and click "detach", the dongle will continue to advertise.
If you want to start from a known state, then you can send reset command to the dongle after connecting to it. After clicking attach button, select Reset from the Commands menu in BLE GUI.
Thank you, I understand.
Best regards
Hello!
I have a question regarding advertising. If I start advertising and the dongle gets scanned and connected by - let's say - an android device - is it possible to start advertising again and let a second device make a connection. I get the same error as mentioned above if I try to start advertising when already connected...
Thanks, Andreas
Andreas, I think the problem is that the BLED112 does not support multiple connections in peripheral mode. It is a Bluetooth 4.0 device and the support for multiple connections in slave role was added in Bluetooth core spec 4.2 if I remember right.
If the dongle is the central / initiator, it can connect to multiple (up to 8) peripherals simultanously. But in peripheral mode the dongle supports only one connection.
Thanks Tyler,
That's what I assumed but wanted to verify.