PSoC™ 4 Forum Discussions
Hey guys! Can somebody help me or explain how to solve challenge which was given in the end of that lesson - https://www.youtube.com/watch?v=v5pba8q9bfM&list=PLIOkqhZiy83F-sOQhHyX8dJjebkWqZA3Y&index=26
I stacked on that stage when my text is printing while I hold my finger on button, but task is to print it once and print text when you put off your finger.
Here is my code ex.
Hi Sir,
I'm evaluating BLE_Serial project on CYBLE-022001-00 on our design board, not the USB dongle. Now the PC can find and connect to the device (it is seen as BLE_Serial). But no new comport is found on the device list.
In addition, with example mobile application on iPhone, the application can see the device and I can test sending and receiving text. But this is not able on PC.
Show LessHi experts,
I been trying to send ADC data from GATT server to Gatt client using custom service. I have written the following BLE stack halnder function. Could you check why this is not working? I am using cy smart for PC and PROC BLE dongle as GATT client.
#include <project.h>
int16 ADC_data;
int16 ADC_data_mV;
#define channel_0 0
#define LED_On 0x01u
uint16 ADC_volt_convert(void);
void Stack_Handler(uint32 eventCode, void *eventParam)
{
CYBLE_CONN_HANDLE_T connHandle;
CYBLE_GATTC_READ_REQ_T readReqParam;
switch(eventCode)
{
case CYBLE_EVT_STACK_ON:
case CYBLE_EVT_GAP_DEVICE_DISCONNECTED:
CyBle_GappStartAdvertisement(CYBLE_ADVERTISING_FAST);
break;
case CYBLE_EVT_GATTC_READ_RSP :
readReqParam= ADC_volt_convert();
CyBle_GattcReadCharacteristicValue(connHandle, readReqParam );
break;
}
}
uint16 ADC_volt_convert()
{
ADC_SAR_Seq_1_StartConvert();
while(ADC_SAR_Seq_1_IsEndConversion( ADC_SAR_Seq_1_RETURN_STATUS)==0)
{
}
ADC_data= ADC_SAR_Seq_1_GetResult16(channel_0);
//ADC_data_mV= ADC_SAR_Seq_1_CountsTo_mVolts(channel_0, ADC_data);
return(ADC_data);
}
int main()
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
CyGlobalIntEnable; /* Uncomment this line to enable global interrupts. */
CyBle_Start(Stack_Handler);
ADC_SAR_Seq_1_Start();
for(;;)
{
CyBle_ProcessEvents();/* Place your application code here. */
}
}
/* [] END OF FILE */
Hi. I'am new here. I do not know if I can program BLE module to support two profiles. One to support keyboard (HID) and second to transfer data to smartphone or computer. Obviously not all at once. Maybe you have any suggestions for me?
Thanks for all, Pawel
Show LessI'm trying to use an input consisting of 2 buttons on a bus to a Debouncer Component. Readings will be handled the same. Specifically, a TCPWM timer capture and/or and Interrupt. How would I configure Top Design to do this, sense all outputs will have a terminal width of 2 bits and the Timer and interrupts only accept 1 bit?
Show LessHi,
i need to have two modes. the 1. first mode is to allow secure bonding. if this has been successfull, i want to switch to a mode where only bonded devices can connect. what do i have to do, that only bonded devices can be conencted?
Running a PRoC CYBL11573, Peripheral in Server mode with a custom Profile.
Thank you!
Show LessHi everyone,
I want to create a BLE Tag with a PSoC 4, and while I was checking the Find Me profile the actual current is 5 mA, but I want to use a coin cell battery so this current is too high if I want to use continously.
I want to implement Low Power modes (Sleep or Deep Sleep mode) but I don't know if the system advertises when it is in this modes.
Do you know how to reduce the power consumption and create my own Ble Tag
Regards
Show LessHi! It's me again! After I got everything running today, I bricked it again somehow. As you can see in the attached Project, I have NOTHING but one ISR reacting on a rising edge on a GPIO. Still, everytime the ISR starts executing, it jumps to another ISR after the first instruction in my supposed-to-execute ISR.
I have no idea why it jumps. it seems completely random to me.
Can anybody help?
Peace Noah
Show Less