PSoC™ 4 Forum Discussions
Hello community,
i´m developing an application with CY8CKIT-042-BLE, a SSD1306 OLED-Display and a NXP PN512 NFC-Controller.
I ned three buttons for my application and i want to use CapSense for that.
I use the CapSense v3.0 component with PSoC Creator 3.3 SP2.
The Example "PRoC_BLE_CapSense_P4_OneButton" works fine to tune the CapSense button(s) with the Tuner Application.
But in my Application (not the same code for CapSense) the CapSense v3.0 component is not working correctly.
If i print out (over UART) the RAW Value of any CapSense button, the value is always the highest possible value.
I don´t came along with this faulty behavior.
Can anyone take a look in my source and can tell me what is wrong with my project?
Thanks in advance.
PS.: CapSense algorithm is in C file "buttons.c"
Show LessHi,
I am using CY8C4245 (Psoc4),and configured GPIOs as outputs and controlling them in application.
I am seeing the the IOs are going high during power up in my contoller. The Psoc3 and Psoc5 has the option of controlling the IOs during startup through nonvolatile latches (NVLs) but in Psoc4 seems to be diffucult ... ?
Is there any possibility to control (before init ) these during power up state..?
little help would be appreciated
Thanks,
Anand
Show LessHi
Due to an unforeseen requirement (an LVTTL RS232 sensor device output needs to be connected to an RS232 level convertor input), the RS232 RX data is received inverted at the PSoC4.
I see that the standard UART component has an IrDA mode which allows an inverted RX but the signaling is of course different, and the inversion setting is not available in non-IrDA modes.
So, does anyone know of a software RS232 RX example for a baud rate of 9600?
Thanks for any pointers.
Show LessI want to use RTC to wake-up from sleep but after system go to sleep mode interrupt of RTC not triggered. I saw examples where WDT triggered each second but it not good decision because power consumption. I need system sleep to long time (days).
How to make it work ?
Show LessHello,
Am using PRoC module to receive the ultrasonic sensor's data and displaying on the terminal using UART Communication. What's my question is, can the data received on the terminal be stored in File(.txt, .docx format)??
Is file handling system supports in proc?
If yes, how can i set a path to create a file and write the data in it. I have given a try but the file is not being created!
Show LessHello all,
I have two problem about IPSP.
I am using CYBLE-222014-01 Chip, PSoC Creator 3.3 and BLE Component v3.10.
1.
I want to send and receive data over IPv6. I created new project based on Cypress IPSP example, i can send data using CyBle_L2capChannelDataWritefunction without error on Router and i get CYBLE_EVT_L2CAP_CBFC_DATA_WRITE_IND event after sending. But i am not able receive this data from Node side. After sending data, system does not generate READ event on Node side.
GAP and L2cap connection happens succesfully. Is this BLE Stack bug or am i doing something wrong?
2. Whenever i try to send a second message, i get memory allocation failed error return of CyBle_L2capChannelDataWritefunction. I try to increase heap size 0x200 to 0x400 and stack size 0x800 to 0x2000 but nothing change.
Thanks in advance.
Regards,
Hakan
Show LessWhat is the best way to get the entire payload of a BLE write request or BLE write command?
I was looking at the FindMe example and it shows that you can get the complete value of the payload by saving the data byte-by-byte into an array. Assuming that Cypress doesn't provide an API to just get the data in a variable directly, this seems logical. However, in the loop they use handleValPair.value.len instead of handleValPair.value.actualLen. My understanding is that .len will return the length that is defined for that Characteristic, and .actualLen will return the length of the data payload that got sent. For example, if you set the device_name Characteristic to 20 bytes, then .len will return 20 and .actualLen will return the actual length of the string that got sent over.
Can anyone verify that I'm understanding this correctly, and if there's a reason you would want to loop through the entire length, instead of just the number of bytes that came in from the BLE write? Perhaps it is because the changed_name variable is the full length of the attribute so you would want to read it all to make sure you fill up the array so you don't have any bytes that are 'left over' from a previous usage?
Here's the code from the FindMe example:
char8 changed_name[14];
// lots of code skipped here when I pasted this example....
case CYBLE_EVT_GATTS_WRITE_REQ:
wrReqParam = (CYBLE_GATTS_WRITE_REQ_PARAM_T *) eventParam;
if(wrReqParam->handleValPair.attrHandle == 0x03) // this is the BLE standard device name Characteristic
{
for(i=0;i<wrReqParam->handleValPair.value.len;i++)
changed_name = wrReqParam->handleValPair.value.val;
}
CyBle_GapSetLocalName(changed_name);
CyBle_GattsWriteAttributeValue(&wrReqParam->handleValPair,0,&cyBle_connHandle,CYBLE_GATT_DB_PEER_INITIATED);
CyBle_GattsWriteRsp(cyBle_connHandle);
break;
Hi, everyone
In my going project, we'd like to get temperature & humidity value in the room with node.js script on raspberry Pi and BLE sensors.
So I bought the CYALKIT-E02 , which includes solar powered ble sensor and ble usb dongle.
The RDK supplies sample application to get the temperature and humidity value from cypress solar powered ble sensors and display that value
for iOS, Android and PC.
I tried iOS application Cypress BLE-Beacon, it works fine, but i don't know how to extract temperature and humidity values from beacon data in my original ble application on node.js.
I think there is RAWdata from beacon and it includes temperature and humidity values or something converted value.
Is there any source or document to know this logic?
Thanks,
Show LessI have been running in to trouble on my final software test 😞
I’m using the:
apiResult = CyBle_StoreAppData((u8*)&appConfig, (u8*)&appConfigAtFlash, sizeof(StAppConfig), 1u);
to save the data, and:
memcpy(&appConfig, &appConfigAtFlash, sizeof(StAppConfig));
to load the data, and everything look fine until I started to use the bootloader and the bootloadable.
So I was thinking that you could give me a hint on how I can get it to work. Any idea.
Hope you can give a hint..
Best regards
Panduro
Show LessI need documents about bonding implementation in Cypress devices. I tried to run "BLE_Bonding" example but received "Authentication failed".
Show Less