bluekitchen / btstack Goto Github PK
View Code? Open in Web Editor NEWDual-mode Bluetooth stack, with small memory footprint.
Home Page: http://bluekitchen-gmbh.com
License: Other
Dual-mode Bluetooth stack, with small memory footprint.
Home Page: http://bluekitchen-gmbh.com
License: Other
Hi,
I wrote a simple application based on 2 btstack provided examples first is spp_streamer_client to connect to other BT devices and the second is spp_counter to accept connections from outside. It works well but every one alone when I establish a connection I can't receive connections and vice versa. Is there an example for such case or clear steps of how to do that?
Regards
Hi @mringwal ,
here is a patch to add the IPSP PSM, afterwards it should work out-of-box with RFC7668.
0001-Added-IPSP-PSM-for-L2CAP.patch.txt
BTW: remove .txt, than you have the patch (no idea why it is not possible to upload one single patch here...)
Hello,
I am trying to send some data to Android App using SPP at high speed, My current data throughput is ~20kb.
But, I am having trouble with duplicated data. I have a counter for each string that is sent at once.
I am seeing some of the data is transferred 3-5 times, some of them are dropped.
rfcomm_send sends data and always returns 0 even though packet is dropped. Is there a way to know if packet successfully transferred or not?
Why a packet is sent multiple times to SPP client? How can I debug this?
I derived my test application from SPP Counter and implemented top of that, Heart beat perioid is 8ms and have the following configuration.
#ifndef __BTSTACK_CONFIG
#define __BTSTACK_CONFIG
#include <stdint.h>
// Port related features
#define HAVE_INIT_SCRIPT
#define HAVE_EMBEDDED_TIME_MS
//#define HAVE_POSIX_TIME
//#define HAVE_MALLOC
// BTstack features that can be enabled
#define ENABLE_BLE
#define ENABLE_CLASSIC
#define ENABLE_LE_PERIPHERAL
#define ENABLE_LE_CENTRAL
//#define ENABLE_LOG_INTO_HCI_DUMP
//#define ENABLE_LOG_DEBUG
#define ENABLE_LOG_ERROR
//#define ENABLE_LOG_INFO
//#define ENABLE_SDP_DES_DUMP
//#define ENABLE_SDP_EXTRA_QUERIES
// #define ENABLE_LE_SECURE_CONNECTIONS
// BTstack configuration. buffers, sizes, ...
// BTstack configuration. buffers, sizes, ...
//#define HCI_INCOMING_PRE_BUFFER_SIZE 6
#define HCI_ACL_PAYLOAD_SIZE 1021
#define MAX_SPP_CONNECTIONS 1
#define MAX_NR_HCI_CONNECTIONS MAX_SPP_CONNECTIONS
#define MAX_NR_GATT_CLIENTS 0
#define MAX_NR_GATT_SUBCLIENTS 0
#define MAX_NR_HFP_CONNECTIONS 0
#define MAX_NR_L2CAP_SERVICES 2
#define MAX_NR_L2CAP_CHANNELS (1+MAX_SPP_CONNECTIONS)
#define MAX_NR_RFCOMM_MULTIPLEXERS MAX_SPP_CONNECTIONS
#define MAX_NR_RFCOMM_SERVICES 1
#define MAX_NR_RFCOMM_CHANNELS MAX_SPP_CONNECTIONS
#define MAX_NR_BNEP_SERVICES 1
#define MAX_NR_BNEP_CHANNELS MAX_SPP_CONNECTIONS
#define MAX_NR_BTSTACK_LINK_KEY_DB_MEMORY_ENTRIES 2
#define MAX_NR_WHITELIST_ENTRIES 1
#define MAX_NR_SM_LOOKUP_ENTRIES 3
#define MAX_NR_SERVICE_RECORD_ITEMS 1
#define MAX_NR_LE_DEVICE_DB_ENTRIES 1
Hi I can not find RTL8761ATV in "Supported Chipsets" List.
Is there any plan support it?
thanks.
I try the port/windows-h4 when I want to use chipsets(cc2564) to boot up the bt stack, how to implement the power up sequence mentioned in the spec “Dual-Mode Bluetooth_ CC2564 ModuleEvaluation Board.pdf”
pls, Help me.
Best regards.
no response https://code.google.com/p/btstack/issues/detail?id=454&start=100#makechanges so i thought id try it here, not sure where else to post/ask, https://dl.dropboxusercontent.com/u/9034873/hci_dump.pklg is the dump file, had someone else with the same problem as of this morning, so...
Hi,
I used btstack port for ESP32 example SPP_Counter and It worked well then I added my WiFi application (3 tasks) to it which connects to a server and uploads data, When I ran it WiFi not worked correctly and station got ip event wasn't received and hence can't connect to server and when I connect bluetooth WiFi disconnects and can't connect again.
Now, Can't btstack work with WiFi and causes this strange behaviour?
Regards
Hi, I've been through the Quick Start guide and I am stuck at the instruction "compile and install libusb".
gcc is complaining about missing headers like termios.h when I try to compile libusb from the platform/libusb folder.
Should I go for the precompiled libs from the libusb project or am I missing something ?
I am ready to draft a how-to for windows users if I can get BTstack working.
Thanks in advance for the reply.
Just did a new setup on my Win7x64 machine and tried to compile the panu_demo examples and got this error message:
...
CC panu_demo.o
D:/GitHub/btstack/port/esp32/panu_demo/main/panu_demo.c:58:21: fatal error: ifaddrs.h: No such file or director
compilation terminated.
make[1]: *** [/home/esp-idf/make/component_wrapper.mk:177: panu_demo.o] Error 1
make: *** [D:/msys32/home/esp-idf/make/project.mk:386: main-build] Error 2
George@George-Office2 MINGW32 /d/GitHub/btstack/port/esp32/panu_demo
I checked out the esp32-freertos branch
If BTStack is configured to omit one feature (e.g.: ENABLE_LE_DATA_CHANNELS), there are still all prototypes available in the headers --> other source files compile nice, BUT: undefined reference during linking.
Suggestion:
Disable function headers in header files too, might be easier to find disabled stack parts.
I'm seeing some weird behavior with sdp services that I am not sure what the issue is. If I register multiple services then do a sdptool browse from another machine I am seeing the same service printed twice rather than two different services. For example:
sdptool browse:
Service RecHandle: 0x10001
Service Class ID List:
"" (0x1800)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 31
"ATT" (0x0007)
uint16: 0x14
uint16: 0x1e
Service RecHandle: 0x10001
Service Class ID List:
"" (0x1800)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 31
"ATT" (0x0007)
uint16: 0x14
uint16: 0x1e
The second thing i registered appears twice but the first registered service is missing.
Can anyone confirm this issue?
HID keyboard demo doesn't work out of the box (for me at least on the release branch).
Inspection of the example template file indicates that it is likely this issue still exists on master.
This is what the console looks like:
The reason seems to be the following in bt_stack_config.h:
#define MAX_NR_L2CAP_SERVICES 2
But hid_device_init() which is run from main in the demo seems to use more than 2 services. The fact that this is defined also means that malloc is not used even though it is available.
This is low priority and easily fixable but I thought I would bring it to light to save time for others.
Error uploading sm_pairing_peripheral.c through make commands and the following error comes up
/btstack/port/esp32/sm_pairing_peripheral/main/sm_pairing_peripheral.c:55:35: fatal error: sm_pairing_peripheral.h: No such file or directory.
I could not find the file anywhere in the stack btstack also.
Hello!
When you will update it to ios9 ?
Thank you so much for your efforts.
Hi, have experimenting with esp32 and bumped to issue:
src/classic/sdp_server.c:78: multiple definition of
sdp_init'
/opt/esp/btstack-master/port/esp32/a2dp_source_demo/build/bt/libbt.a(sdp_main.o):/opt/esp/esp-idf/components/bt/bluedroid/stack/sdp/sdp_main.c:82: first defined here
`
Seems like recently sdk was updated and now there are intersection in namespace.
are missing and won't compile in Xcode 6.4 hmm,... are they in the btstack folder? or...
please let me know thanks...
Hi,
I'm using MSP430F5438A + CC2564B to send ADC data to an android phone.
It's successful but has a slow data rate, less than one data per sec.
I've referred to spp_and_le_counter.c, and set timers to send notifications.
Even though I set the timeout at 1ms, it's useless.
My target data rate is 1.5k per sec. How could I resolve this problem?
This is my demo vedio: https://youtu.be/vOHGzDM1oJg
Thanks!
I found that the le_streamer.c use ATT_EVENT_CAN_SEND_NOW to trigger another att_server_request_can_send_now_event, this will cause the recursive call, I wonder is that properly?
Hi,
I am developing a project using ESP32 with the gap_le_advertisements example that must scan for beacons and print its parameters as MAC address. I was able to run and see the needed informations, but I have to do this continuously and after some hours the scanning stopped. No error message is showed.
Do you guys think that is a problem with the hardware or the firmware?
What is the best way to implement this?
Thanks.
I've been trying to compile this very promising tool but I'm getting stuck always at:
... Making stage for tool BTdaemon... echo /private/var/simlink/btstack/port/ios/_ /private/var/simlink/btstack/port/ios/_ mkdir -p ../.theos/_/usr/local/lib mkdir -p ../.theos/_/usr/local/bin ln -s /usr/lib/libBTstack.dylib ../.theos/_/usr/local/lib ln: failed to create symbolic link `../.theos/_/usr/local/lib/libBTstack.dylib': File exists make[2]: *** [after-BTdaemon-stage] Error 1 make[1]: *** [BTdaemon.stage.tool.variables] Error 2 make: *** [internal-stage] Error 2
I want to exploit this issue I just opened to to explain all the issues I've encountered, so I would like to know if I'm doing everything in the correct way...
First off, I was having some problems with the IOKit framework, it said it wasn't found:
... Compiling ../SpringBoardAccess/SpringBoardAccess.c... Linking tool BTdaemon... ld: framework not found IOKIT clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
After some hours of try/fail attempts, I realized the repo's makefile has a slightly different name from apple's framework:
line 52 from /btstack/port/ios/src/makefile says "IOKIT"(caps). After changing it to "IOKit" as it is written in the frameworks dir, it compiled everything until it started to compile "inquiry"... there I got this:
Making all for tool inquiry... Linking tool inquiry... ld: warning: directory not found for option '-L../src/.theos/obj' ld: library not found for -lBTstack clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [obj/inquiry.64873355.unsigned] Error 1 make[2]: *** [internal-tool-all_] Error 2 make[1]: *** [inquiry.all.tool.variables] Error 2 make: *** [internal-all] Error 2
I think, maybe it is my version of theos that doesn't know/create ".theos" (I've got to admit, I don't understand this ".theos" directory either, yet...) so after chaning inquiry and other makefiles from '-L../src/.theos/obj'
to '-L../src/obj'
, I was able to compile again...
then I got to the error for which I open this issue...
... Making stage for tool BTdaemon... echo /private/var/simlink/btstack/port/ios/_ /private/var/simlink/btstack/port/ios/_ mkdir -p ../.theos/_/usr/local/lib mkdir -p ../.theos/_/usr/local/bin ln -s /usr/lib/libBTstack.dylib ../.theos/_/usr/local/lib ln: failed to create symbolic link `../.theos/_/usr/local/lib/libBTstack.dylib': File exists make[2]: *** [after-BTdaemon-stage] Error 1 make[1]: *** [BTdaemon.stage.tool.variables] Error 2 make: *** [internal-stage] Error 2
even after I activated message=yes, it says nothing related to such simlink. The problem is that I don't find libBTstack.dylib anywahere apart from __/usr/lib/libBTstack.dylib
some important information:
I'm working on:
I hope I was clear enough, and thank you all for your answers.
Hi.
How to connect between esp32 and earphone via your hsp_ag_demo or hfp_ag_demo.
Available?
Best regards.
Hi.
I don't understand in readme.
"In port/esp32, configure the serial port for firmware upload as described in the ESP-IDF setup guides."
Could you explain install method?
Best regards.
Hello. I tryed to use BTC mouse on my Ipad air with ios 10 on it, but it seems my bluetooth can't find the mouse.
On ios 9 there where no problems.
Will there be an update for this great app?
I just have a quick question. Is it possible to use the UART instead of the SPI in the Arduino porting?
Missing the file "sm_pairing_peripheral.h" in the example folder. This file is included by "sm_pairing_peripheral.c".
When INCLUDE_xEventGroupSetBitFromISR is not defined in the FreeRTOS config the function
"btstack_run_loop_freertros_trigger_from_isr" (btstack_run_loop_freertos.c) is not defined due to a pre-compiler condition. However, this function is being used without such a condition in btstack_uart_block_freertos.c, resulting in a compiler error.
Hello,
I am having data throughput issue at SPP.
Here is the details in the google group.
https://groups.google.com/forum/#!topic/btstack-dev/u0Fl3nBmdTw
Any idea?
Thanks
Ismail
Hi,mringwal
I am developing an IOS application based on btstack, but it does not seem to work on Ios 9.0.2.
I compile the CocoaTouch sample, it works on ios 8.4 but also not on ios 9.0.2.
The bt_open() method just return -1,so is it not compatible with ios 9.0.2 ? Or there are some new changes?
Waiting for your reply, thank you!
I just jnstalled BTStack in order to use controllers for all but when i want to connect a bluetooth device like my apple watch ,i should reboot my jailbroken device(iphone 6s ios 9.3.3).i read that i have to press "force off" button without rebooting my device.but there is not any button https://imgur.com/a/p3znb
ex. path platforms/stm32-f103rb-nucleo/README.md.
=>cannot find from project with the path above
could povide a detailed document for building a project environment ?
Hi,
My application was working well until I updated btstack yesterday were it started to complain in compilation about missing defines
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c:86:2: error: #error "NVM_NUM_DEVICE_DB_ENTRIES not defined, please define in btstack_config.h"
#error "NVM_NUM_DEVICE_DB_ENTRIES not defined, please define in btstack_config.h"
^
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c:90:2: error: #error "NVM_NUM_DEVICE_DB_ENTRIES must not be 0, please update in btstack_config.h"
#error "NVM_NUM_DEVICE_DB_ENTRIES must not be 0, please update in btstack_config.h"
^
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c:93:27: error: 'NVM_NUM_DEVICE_DB_ENTRIES' undeclared here (not in a function)
static uint8_t entry_map[NVM_NUM_DEVICE_DB_ENTRIES];
^
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c:93:17: warning: 'entry_map' defined but not used [-Wunused-variable]
static uint8_t entry_map[NVM_NUM_DEVICE_DB_ENTRIES];
^
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c: In function 'le_device_db_tlv_fetch_mapped':
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c:148:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c: In function 'le_device_db_tlv_store_mapped':
C:/Users/pulse/workspace/spp_counter_8/components/Bt_Stack/../../../../../../esp/btstack/src/ble/le_device_db_tlv.c:156:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1.exe: some warnings being treated as errors
make[1]: *** [/c/esp/esp-idf-v2.1/make/component_wrapper.mk:211: ../../../../../../esp/btstack/src/ble/le_device_db_tlv.o] Error 1
make: *** [C:/esp/esp-idf-v2.1/make/project.mk:386: Bt_Stack-build] Error 2
I am having trouble with SPP User Confirmation code
I have been using the most recent version of the BTStack (commit-id:64f92e5791eca3562fa09fa9b77bf55c6c013783).
This code is only appears after first pairing and never appears next times, unless unpair and uninstall the BT from Windows 10.
I could reproduce this issue at Windows 10 and Windows 7 using spp_counter.c example. Once I pair with my BT device, i can get data from serial port well. When I reboot the device and try to open the serial port it try to connect. Somehow Windows 10 does not pop up BT device confirmation request. That's why connection attemption is getting failed. I dont know if this is Windows OS issue or BT stack issue. I didnt have such an issue with other BT devices.
I also tried to completely disable authentication, but the following function doesnt do anything in SPP mode. It generates and try to get confirmation.
sm_set_authentication_requirements(0)
Any idea?
Thanks
Hi there as I said in the title. Btsack needs to update to jailbroken iOS 10 please. In order to use controllers4all
Hi, we have hardware with nrf51822 with zephyr already deployed. The port/nrf5-zephyr
code expects me to flash the nrf chip as part of the process, but the chips are already provisioned.
How Do I compile/run only the host version of the btstack application to connect to my HCI over UART bluetooth chips?
The manual says:
By default, a Bluetooth device stops sending advertisements when it gets into the Connected state.
How will it change it? And is it possible to connect several central devices to one peripheral (peripheral device with btstack)? Chipset cc2564B.
So I've been trying to connect to a BT 4.0 Classic device over SPP. I've tried a few different approaches and I feel like BTstack is my best option but I'm running into some problems.
I noticed this:
What is the reason for using the /usr/lib/libBTstack.dylib path instead of a local path?
I tried using install_name_tool to rewrite the path but was unable to.
I tried to build run your makefile for the iOS port but got this issue:
Is there any way to run BTstack with a non-jailbroken device? I'm not looking to upload to the store but I'd like to be able to add the app to non-jailbroken devices
Any help would be greatly appreciated!
Please see the details in the following link.
https://groups.google.com/forum/#!topic/btstack-dev/S6WFyihG_PE
Hi,
I've an application where ESP32 module receives data over uart port and sends it to btstack over FreeRTOS queue as shown in this simple example
`
// a task receives data from FreeRTOS queue and request to send
static void task1 (void *pvParameters)
{
while (1)
{
xEventGroupWaitBits ( bt_classic_event_group, BT_CLASSIC_READY_BIT, pdTRUE, pdFALSE, portMAX_DELAY );
if ( xQueueReceive( xBt_Queue, &bt_q_rd_msg, portMAX_DELAY ) == pdPASS )
{
rfcomm_request_can_send_now_event ( rfcomm_channel_id );
}
}
}
`
`
static void packet_handler (uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)
{
...
switch (packet_type)
{
case HCI_EVENT_PACKET:
switch (hci_event_packet_get_type(packet))
{
case RFCOMM_EVENT_CAN_SEND_NOW:
if ( rfcomm_send ( rfcomm_channel_id, (uint8_t*) bt_q_rd_msg.u8Bdy, bt_q_rd_msg.u8Hdr[0] ) == 0 )
{
ESP_LOGI("bt_classic_packet_handler", "send success ID%d L%d", rfcomm_channel_id, bt_q_rd_msg.u8Hdr[0]);
}
else
{
ESP_LOGE("bt_classic_packet_handler", "send err");
}
xEventGroupSetBits ( bt_classic_event_group, BT_CLASSIC_READY_BIT );
break;
...
}
...
}
...
}
}
`
It works fine but for a few seconds until it stop working where btstack stop sending events for rfcomm_request_can_send_now_event call, It seems that btstack stop working but it continues if the bluetooth link dropped and established again and problem occurs again.
My question is about debugging methods for btstack to check why it stops sending events as I can't do anything for such case
The HCI layer query the free slot is valid in every sent action, but in dual-mode, when no free slots classic then make the le can't sent also (if le_acl_packets_total_num available), is it weird?
Hello,
I am wondering if there is any plan to support the http://www.st.com/en/wireless-connectivity/bluenrg.html chipset.
Because there are some interesting modules available like this one. http://www.st.com/content/st_com/en/products/ecosystems/stm32-open-development-environment/stm32-nucleo-expansion-boards/stm32-ode-connect-hw/x-nucleo-idb05a1.html
cheers
mathias
Having some trouble connecting to the stack. The pairing process with the phone is ok, but Im not able to do a connect. Is there anything obvious that you can see from this log during the connection process?
HCI_EVENT_READ_REMOTE_SUPPORTED_FEATURES_COMPLETE, bonding flags 6
LOG -- HCI_EVENT_LINK_KEY_REQUEST
LOG -- responding to link key request
LOG -- IO Capability Request received, stack bondable 1, io cap 1
LOG -- gap_mitm_protection_required_for_security_level 0
LOG -- hci_emit_security_level 3 for handle 1
LOG -- l2cap - security level update
LOG -- gap_request_security_level 0, current level 3
LOG -- hci_emit_security_level 3 for handle 1
LOG -- l2cap - security level update
LOG -- l2cap - state 5
LOG -- L2CAP_EVENT_INCOMING_CONNECTION addr BC:F5:AC:71:69:A3 handle 0x1 psm 0x1 local_cid 0x40 remote_cid 0x49
LOG -- L2CAP_ACCEPT_CONNECTION local_cid 0x40
LOG -- l2cap_stop_rtx for local cid 0x40
LOG -- l2cap_start_rtx for local cid 0x40
LOG -- gap_request_security_level 2, current level 3
LOG -- hci_emit_security_level 3 for handle 1
LOG -- l2cap - security level update
LOG -- l2cap - state 5
LOG -- L2CAP_EVENT_INCOMING_CONNECTION addr BC:F5:AC:71:69:A3 handle 0x1 psm 0x3 local_cid 0x41 remote_cid 0x47
LOG -- rfcomm_max_frame_size_for_l2cap_mtu: 1017 -> 1012
LOG -- L2CAP_EVENT_INCOMING_CONNECTION (l2cap_cid 0x41) for PSM_RFCOMM => accept
LOG -- L2CAP_ACCEPT_CONNECTION local_cid 0x41
LOG -- l2cap - state 9
LOG -- l2cap_stop_rtx for local cid 0x41
LOG -- l2cap_start_rtx for local cid 0x41
LOG -- L2CAP signaling handler code 4, state 9
LOG -- l2cap cid 64, hint 0, type 1
LOG -- L2CAP signaling handler code 5, state 9
LOG -- l2cap_stop_rtx for local cid 0x40
LOG -- L2CAP signaling handler code 4, state 9
LOG -- l2cap cid 65, hint 0, type 1
LOG -- L2CAP_EVENT_CHANNEL_OPENED status 0x0 addr BC:F5:AC:71:69:A3 handle 0x1 psm 0x1 local_cid 0x40 remote_cid 0x49 local_mtu 1017, remote_mtu 672, flush_timeout 0
LOG -- L2CAP_EVENT_CREDITS local_cid 0x40 credits 1
LOG -- L2CAP signaling handler code 5, state 9
LOG -- l2cap_stop_rtx for local cid 0x41
LOG -- L2CAP_EVENT_CHANNEL_OPENED status 0x0 addr BC:F5:AC:71:69:A3 handle 0x1 psm 0x3 local_cid 0x41 remote_cid 0x47 local_mtu 1017, remote_mtu 1691, flush_timeout 0
LOG -- L2CAP_EVENT_CHANNEL_OPENED for PSM_RFCOMM, status 0
LOG -- rfcomm_max_frame_size_for_l2cap_mtu: 1017 -> 1012
LOG -- L2CAP_EVENT_CREDITS local_cid 0x41 credits 1
LOG -- Received SABM #0
LOG -- Sending UA #0
LOG -- Multiplexer up and running
LOG -- L2CAP_EVENT_CREDITS local_cid 0x41 credits 1
LOG -- Received UIH Parameter Negotiation Command for #2, credits 7
LOG -- rfcomm_channel_create for service 8006998, channel 1 --- list of channels:
LOG -- -> Inform app
LOG -- RFCOMM_EVENT_INCOMING_CONNECTION addr BC:F5:AC:71:69:A3 channel #1 cid 0x01
LOG -- rfcomm_channel_ready_for_incoming_dlc_setup state var 0002
LOG -- L2CAP_EVENT_CREDITS local_cid 0x40 credits 1
LOG -- L2CAP signaling handler code 6, state 10
LOG -- L2CAP_EVENT_CHANNEL_CLOSED local_cid 0x40
LOG -- l2cap_stop_rtx for local cid 0x40
LOG -- rfcomm_channel_ready_for_incoming_dlc_setup state var 0002
LOG -- gap_request_security_level 0, current level 3
LOG -- hci_emit_security_level 3 for handle 1
LOG -- l2cap - security level update
LOG -- l2cap - state 5
LOG -- L2CAP_EVENT_INCOMING_CONNECTION addr BC:F5:AC:71:69:A3 handle 0x1 psm 0x1 local_cid 0x42 remote_cid 0x48
LOG -- L2CAP_ACCEPT_CONNECTION local_cid 0x42
LOG -- l2cap - state 10
LOG -- rfcomm_channel_ready_for_incoming_dlc_setup state var 0002
LOG -- l2cap_stop_rtx for local cid 0x42
LOG -- l2cap_start_rtx for local cid 0x42
LOG -- L2CAP signaling handler code 4, state 9
LOG -- l2cap cid 66, hint 0, type 1
LOG -- rfcomm_channel_ready_for_incoming_dlc_setup state var 0002
LOG -- L2CAP signaling handler code 5, state 9
LOG -- l2cap_stop_rtx for local cid 0x42
LOG -- L2CAP_EVENT_CHANNEL_OPENED status 0x0 addr BC:F5:AC:71:69:A3 handle 0x1 psm 0x1 local_cid 0x42 remote_cid 0x48 local_mtu 1017, remote_mtu 672, flush_timeout 0
LOG -- L2CAP_EVENT_CREDITS local_cid 0x42 credits 1
LOG -- L2CAP_EVENT_CREDITS local_cid 0x42 credits 1
LOG -- rfcomm_channel_ready_for_incoming_dlc_setup state var 0002
LOG -- L2CAP signaling handler code 6, state 10
LOG -- L2CAP_EVENT_CHANNEL_CLOSED local_cid 0x42
LOG -- l2cap_stop_rtx for local cid 0x42
LOG -- rfcomm_channel_ready_for_incoming_dlc_setup state var 0002
LOG -- Received DISC #0, (ougoing = 0)
LOG -- TODO: no connections established - delete link key prophylactically
LOG -- Sending UA #0
LOG -- Closing down multiplexer
LOG -- L2CAP_EVENT_CREDITS local_cid 0x41 credits 1
LOG -- RFCOMM_EVENT_OPEN_CHANNEL_COMPLETE status 0x70 addr BC:F5:AC:71:69:A3 handle 0x1 channel #1 cid 0x01 mtu 100
LOG -- L2CAP_DISCONNECT local_cid 0x41 reason 0x13
LOG -- L2CAP signaling handler code 6, state 11
LOG -- L2CAP_EVENT_CHANNEL_CLOSED local_cid 0x41
LOG -- L2CAP_EVENT_CHANNEL_CLOSED cid 0x41, mult 0
LOG -- l2cap_stop_rtx for local cid 0x41
Hi.
I can't do hsp_ag_demo and hfp_ag_demo with ESP-32DevkitC.
How to define HAVE_BTSTACK_STDIN?
/*
// *****************************************************************************
/* EXAMPLE_START(hfp_ag_demo): HFP Audio Gateway (AG) Demo
*
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "btstack.h"
#include "sco_demo_util.h"
#ifdef HAVE_BTSTACK_STDIN
#include "btstack_stdin.h"
#endif
Could you help me.
Best regards.
Hi!
I'm using the ESP32 port of the btstack and I'm running into an issue.
Basically, when I use, for example, the SPP counter program, I can pair it with the computer and exchange data with a Python application running PyBluez.
Nevertheless, if I reset the device, it keeps being identified as paired by Windows but I'm no longer able to connect to it on the application. I can still find the advertised service on my Python program but when I try to connect using a PyBluez Bluetooth socket, it refuses the connection..
The only way I found to solve this is by forgetting the device and repairing it again.
The thing is that this just happens if I reset the ESP32 and the bluetooth program runs from the start. If I leave the ESP32 running the program and I try to connect multiple times from my PC application, it works fine.
I'm just getting started with the BTStack and I don't have a deep understanding of the bluetooth stack and profiles, so maybe I'm doing something wrong.
I'm testing this on Windows 8.1.
Best regards,
Nuno Santos
I am not sure if this is the right issue tracker for BTStack GPS, so please feel free to tell me where else to post this:
First of all, I just have purchased BTStack GPS, so it is not a licensing issue.
Scenario: My Flight Simulator shall send its GPS position via bluetooth to the iPad 2 WiFi Only (iOS 8.1.2), to be able to use real iPad aviation software for training purposes.
So I set up the Flight Simulator to send NMEA data to a virtual COM port, which in turn is served as Bluetooth service using Franson GpsGate.
On the iPad, BTStack GPS connects just fine via bluetooth to the PC, and retrieves the correct FS GPS position. This position, of course, differs heavily from my real location.
Unfortunately, the iPad only seems to serve location data when switching WiFi on. The WiFi based location is quite accurate, and THIS location is what is presented to all location based applications, not the BTStack received one.
I also tried switching the "Fake 1m accuracy" option on, and restarted the iPad several times. After a reboot, when starting BTStack GPS, it seems to work for the very next application to be opened, but after switching to another application (and then back to the first one), the location again is the WiFi based (real) one.
When disabling WiFi, location services are not available at all on the iPad 2 WiFi Only...
Another app, "Fake GPS", does not have any problems to fake my location for all application - it works fine (but only uses a single static location).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.