PSoC™ 4 Forum Discussions
What is the difference between CYBLE_EVT_GAP_DEVICE_CONNECTED
and CYBLE_EVT_GATT_CONNECT_IND
(and their disconnect's)?
For me it seems natural to use the GAP event to see if an connection is created (or not) since the Generic Access Profile is about connections. But I've seen that some of the example projects from Cypress uses the GATT variant.
Show LessI continuous send 256Bytes to the phone in the notification mode.A packet is 20bytes and last packet is 16bytes.But the test failed,Only we can get three packets on the phone.The code stopped in this line:
while(CyBle_GattGetBusyStatus() == CYBLE_STACK_STATE_BUSY);
On the other hand,What is the maximum number of packets that CYBLE could process per connection event in notification mode?
thanks.
Show LessI am evaluating the CY5676A PRoC BLE 256KB Module in HCI mode. I am trying to use the data length procedure.
If I use the command with values different to the min and max of the range (0x1b and 0xFB) the command complete event returns an error. In the command the TxTime is set to the duration of the packet depending of the data length requested.
Is it possible to select a data size different than 27 and 251?
Show LessI am evaluating the CY5676A PRoC BLE 256KB Module in HCI mode. I am trying to use the data length procedure, after setting the suggested size to the maximum (251 bytes and 0x848 usec) in both sides and check with the read command that the values are taken. Sending the LE Set Data Length Command does generate the expected command complete but I am missing the LE Data Length Change Event after that. The event is enable in the LE event mask before hand. The sizes changes because I can send long packets.
In the 4.2 specification seems to be mandatory implement the event. Also in the ICS of the QDI 76764 (Link Layer quelification) the table10 indicates that the event is supported.
I am missing something?
Show LessHello
I need help, Psoc4 is connected to computer and Computer is connected to internet . I am using window I have created web page , there are two buttons on web page , ON and OFF , if I press ON button on web page , the led that is connected to p1.6 on psoc kit should be “on’’ and If I press OFF button on web page ,led should be turn “off’’. I don't understand how to with PSoc4
Show LessHi,
In my application, it needs two profiles (one is HID and the other is customer profile),
On startup, the firmware will detect the switch for choosing one of two profiles,
that means only one profile will be advertised to GAP central device.
I don't know how to implement two profiles on the PSoC Creator,
Please help me, thanks!
Aaron Deng
Show LessFor some reason this code gets stuck at sprintf in debug mode. Any tips?
#include <project.h>
#include <stdio.h>
int main()
{
CyGlobalIntEnable; /* Enable global interrupts. */
UART_Start();
char* str;
sprintf(str, "Hello");
for(;;)
{
UART_UartPutString(str);
}
}
What a difference between Type "uint8[] " and "uint8 array" in Custom Characteristic Field of BLE?
And how to assign array type " uint8[] [] " ?
Show LessHi,
I'm trying to program PSoC board as HID client. I am sending by UART some messages to PC to know what is goings-on. I have an event HCI Status and code number 4. It is page timeout. What am I doing wrong?
I am using CY8CKIT-042-BLE. PRoC module has program from example HID-Keyboard and I have connection by BLE between those modules. I have this error after trying to connect.
Events I have got in terminal:
CYBLE_EVT_STACK_ON
CYBLE_EVT_GAPC_SCAN_START
CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT
CYBLE_EVT_GAPC_SCAN_STOP
CYBLE_EVT_HCI_STATUS: 4
CYBLE_EVT_GATT_CONNECT_IND
CYBLE_EVT_GAP_DEVICE_CONNECTED
Pawel
Show Less