Studio Bluetooth Forum Discussions
text.format{('custom.tabs.no.results')}
Hi,
We were using BlueZ to try to connect to LE Device but we kept getting the error "Connection Failed to be Established"
We have attached the logs to review. Is there any sequence that has to occur to be able to connect to a LE Device in HCI Mode?
2019-03-28 22:18:45.371616 < 01 0D 20 19 04 00 04 00 00 00 63 65 AE 29 6A BC 00 0F 00 0F
00 00 00 80 0C 01 00 01 00
2019-03-28 22:18:45.376299 > 04 0F 04 00 01 0D 20
2019-03-28 22:18:45.810715 > 04 3E 13 01 00 40 00 00 00 63 65 AE 29 6A BC 0F 00 00 00 80
0C 00
2019-03-28 22:18:45.814669 < 02 40 00 07 00 03 00 04 00 02 05 02
2019-03-28 22:18:45.934895 > 04 13 05 01 40 00 01 00
2019-03-28 22:18:45.935244 > 04 05 04 00 40 00 3E
2019-03-28 22:19:31.000127 < HCI Command: LE Create Connection (0x08|0x000d) plen 25
bdaddr BC:6A:29:AE:65:63 type 0
interval 4 window 4 initiator_filter 0
own_bdaddr_type 0 min_interval 15 max_interval 15
latency 0 supervision_to 3200 min_ce 1 max_ce 1
2019-03-28 22:19:31.005148 > HCI Event: Command Status (0x0f) plen 4
LE Create Connection (0x08|0x000d) status 0x00 ncmd 1
2019-03-28 22:19:32.623672 > HCI Event: LE Meta Event (0x3e) plen 19
LE Connection Complete
status 0x00 handle 64, role master
bdaddr BC:6A:29:AE:65:63 (Public)
2019-03-28 22:19:32.628316 < ACL data: handle 64 flags 0x00 dlen 7
ATT: MTU req (0x02)
client rx mtu 517
2019-03-28 22:19:32.747783 > HCI Event: Number of Completed Packets (0x13) plen 5
handle 64 packets 1
2019-03-28 22:19:32.748138 > HCI Event: Disconn Complete (0x05) plen 4
status 0x00 handle 64 reason 0x3e
Reason: Connection Failed to be Established
Regards,
Jay
Show LessHow can find list of the standard commonly used C functions that are implemented in CYW20719 in the ROM or through the API as I cant find them anywhere mentioned in the API reference?
Let say you've give me an alternative to use snprintf instead of commonly used sprintf which is not implemented, but I cant find it in the docs - is there anywhere handy list what is implemented / what is not ?
Thanks
Show LessToday the A2DP source example supports I2S, UART or the sine-wave test tone.
1. Let's assume you want to feed it with custom audio buffers (generated by code). How could that be achieved. Seems the sine example wiced_audio_set_sinwave()is hardcoded from within the binary.
2. Together with the source (aka watch) example. We'd like to also setup one I2S TX output. Would be great with some guidance if/how that can be done.
Show LessHi,
I am looking at CYBT-343026-1. It supports BT Classic and LE 5.0.
Does the LE 5.0 have profiles that are similar to SPP in BT Classic? Or does Cypress SDK provide a solution for it? Is it possible to have a stable data communication with a throughput over 5K bytes per second?
Thanks
Show LessHello Cypress WICED Studio Support team,
I found unexpected behavior of WICED Studio 6.2.1.2.
At the following environment, SPP data transfer isn't completed.
[Environment]
ClientControl----CYW20706 <-----> CYW20706---ClientControl
CYW920706WCDEVAL or CYBT-343026-EVAL
WICED Studio 6.2.1.2
apps/demo/hci_audio_gateway
SPP profile (hci_control_spp.c)
[Test procedure]
1. build and download "apps/demo/hci_audio_gateway" on WICED Studio.
2. Select SPP tab, "Connect" to peer and "Send" large file on Client Control.
[Attached file]
log/ log files
sent_data.txt
-> sent data
Orig_ClientControl_log_master.txt
Orig_ClientControl_log_slave.txt
-> log of ClientControl. Master device sent data to slave device.
Orig_BTSpy.txt
-> log of BTSpy
Orig_received_data.txt
-> received data. It should be same with sent_data.txt, but it is too short.
Fixed_ClientControl_log_master.txt
Fixed_ClientControl_log_slave.txt
Fixed_received_data.txt
-> log files when the following patch is applied.
patch/ patch files
client_control_spp_patch.txt
-> patch file for spp.cpp in common/client_control/source/.
hci_control_spp_patch.txt
-> patch file for hci_control_spp.c in apps/demp/hci_audio_gateway/.
[My investigation]
wiced_bt_rfcomm_write_data() returns WICED_BT_RFCOMM_CMD_PENDING.
But hci_control_cpp and ClientControl couldn't handle it correctly.
The WICED_BT_RFCOMM_CMD_PENDING is not a critical error.
So, it would be better to be handled same as WICED_BT_RFCOMM_SUCCESS.
Could you double check my investigation ?
And, if it is correct, please fix this issue at the next release.
Show LessHi All,
Its continuity of the post https://community.cypress.com/thread/48388
TPMS Client example code is here https://gitlab.com/mcucodes/ble-mesh-client-tpms
Server example with temperature sensor https://gitlab.com/mcucodes/ble-mesh-server-node
The Working Demo is here!
Show LessHello,
I am working on a project using Ble beacons. I am interested in working with Ble 5.0 to create a mesh network with BLE BEACONS (ex: IBeacon, AltBeacon etc.).But i am not able to find an example which can create a mesh network of the active beacons, and thus displays the related information in an android or ios app. Can you please direct me to one such example.
Thanks in advance!
Show LessHello,
I am using CYBT-333047_EVAL board with EZ-serial firmware software.
During the Serial communcation process, sometimes the bluetooth connection will be lost in the middle of data transfer.
Could someone please help me to understand why it is happening so and what changes I need to do?
One more issue is, I can see the bluetooth module is advertising and can be connectable only when I press the reset button on the Evaluation board. should I set the XRES pin always high or how it should be configured in order to advertise the bluetooth module soon after the power is supplied to the board ?
Thanks in advance.
Show LessHello,
I am using CYW920719Q40EVB-01 board to test different code. First, i wanted to try SPP code to download and see the communication using any SPP app( i have downloaded "SPP" app) but not able to establish the set up and debug the code to see its functionality.
I referred to pdf " CYW920719Q40EVB-01 JTAG DEBUGGING", but i am getting one error, i am attaching the screenshot of that error.
Please help me how to proceed it.
Thanks & Regards,
Ekta
Show Lesshi Cypress:
We only want to run controller firmware on cybt-343026, but not the protocol stack on bluetooth chip.May I ask if this controller firmware can be provided? How to burn to the cybt-343026-eval development board? TKS;
Show Less