PSoC™ 4 Forum Discussions
Hi, I'm currently developing with Cy8ckit0-442-BLE kit in my company. The initial idea is to develop an application with the PSoC Creator IDE, then use the MCU CYBL10161-56LQXI in our products. The question is When we buy the MCU (PROC BLE) are we already paying license to Cypress ?. Thanks in advance
Show LessI am able to write a new device name to a peripheral from an iOS device and have it appear in the advertising data using this code:
char newName[] = "any new name";
Cyble_GapSetLocalName(newName);
Cyble_GapUpdateAdvData(cyBle_discoveryModeInfo.advData, CyBle_discoveryModeInfo.scanRspData);
And following Zadek's method at http://www.cypress.com/forum/psoc-4-ble/writing-device-name-characteristic?source=search&keywords=PSoC4%20BLE%20write%20to%202A00%20characteristic&cat=community, I have also made a GATT characteristic for the new device name which I can easily write to with an iOS device. Here is that code:
case CYBLE_EVT_GATTS_WRITE_REQ:
wrReqParam = (CYBLE_GATTS_WRITE_REQ_PARAM_T *)eventParam;
if( wrReqParam->handleValPair.attrHandle == CYBLE_MY_SERVICE_DEVICE_NAME_CHAR_HANDLE ){
CyBle_GattsWriteAttributeValue( &wrReqParam->handleValPair, 0, &connectionHandle, CYBLE_GATT_DB_LOCALLY_INITIATED);
CyBle_GattsWriteRsp( connectionHandle );
};
Do I now use a Cyble_GattsRead AttributeValue() on my device name characteristic so that I may assign the read-response to my char newName[] variable? If so, what does that code look like? Thanks.
Also, I would like to put the new name in the SFLASH as Zadek did, so that it survives power downs. What does that code look like? (the link provided no longer works) Thanks again.
Show LessHello I am reading in a microphone into the PSOC 4200 BLE ADC for about a 1.5 secs using 15000 samples at 10000 SPS, 10 bit resolution and VDD = 3.3. Attaching a screenshot of my settings. I am having a hard time reading in the microphone as I am not seeing the same thing I'm seeing on my oscilloscope.
Show LessHi,
i think this is a noob question here, but anyway. My application involves interfacing an ADXL345 with the PSOC4 BLE, over SPI, and communicating the data to the computer serially via UART.
However, im unale to send the integer data over UART. Here's a short code that im trying to run :
the idea is to print "784.4564549" onto my serial monitor.
int bytesWritten;
char myString[50];
bytesWritten = sprintf(myString, "%f", myFloat);
UART_UartPutChar(myString);
UART_UartPutString("\r\n");
However, all that the serial monitor prints is a dash!
Any suggestions on how else to send an integer over UART? thanks 🙂
Show LessHi Everyone,
Can I use the system tick timer in PSoC4 BLE for periodic interrupt in my program. I want to get an interrupt for every 100ms and in ISR, I check the flag for each task and then I will perform the task according to the flag for periodic operation but I am afraid that it will interfere the bluetooth operation.How can I avoid it?
Show LessHi all,
I tried to flash 2 devices with different names : BLE_DeviceA & BLE_DeviceB and different public addresses.
When I searched BLE device on CySmart application, sometimes I can see only 1 device, sometimes I selected BLE_DeviceA to connect however indeed, I was connecting to BLE_DeviceB. Name was mismatch, I think so.
Do you have any idea?
Thanks
Show LessHi all,
As I see, the device address always be 00:00:00:01:E2:40. Even though I already changed the public address in component configuration, the address displayed on Cysmart App still be same. I read some document and see that Ble Device Address can be changed by rewrite first 6 bytes in SFlash. However when I tried PSoC4-BLE-SFLASH-Update, it require miniprog3, I have only CY8CKIT-042-BLE PIONEER BASEBOARD at my side. Is there any way to update the Ble Device Address.
I'm very appreciate your help.
Thanks
Show LessI am working on an Android app from the ground up and currently having trouble connecting the two devices together. I am able to scan and see the PSOC 4 and it's MAC address. How do I determine the exact UUID of the PSOC 4 as a server from the PSOC Creator?
Show LessAfter I upgrade my XCODE to 8.0, the CySmart iOS app was no longer able to build.
This is due to a new class in iOS Core Bluetooth "CBManager" and also in CySmart iOS "CBManager" are using the same class name.
I can build the project by rename CBManager includeing file name by another name like "CyBManager" then successfully build it.
Is there an official release to fix this issue?
Thanks.
Show Less