PSoC™ 4 Forum Discussions
Hello!!!
I have a problem to store a data in memory PSoC . My code is as follows:
uint8 datos [1 ]
.......
datos [ 0] = WriteRequestedParameter- > handleValPair.value.val [ 0];
// Call the function to save
Save_memory ( & datos [ 0] , sizeof (datos), CYBLE_BMP180_PRESSURE_CHAR_HANDLE ) ;
//Function Save
void Save_memory ( uint8 * Data, len uint8 , uint16 attrHandle )
{
CYBLE_GATT_HANDLE_VALUE_PAIR_T datos_a_escribir ;
datos_a_escribir.attrHandle = attrHandle ;
datos_a_escribir.value.val = Data ;
datos_a_escribir.value.len = len ;
CyBle_GattsWriteAttributeValue(&datos_a_escribir,0,&cyBle_connHandle,CYBLE_GATT_DB_LOCALLY_INITIATED);
}
If such datos [ 0] contains 48 , I stored in memory 30 and not know why.
- & Are wrong?
- Where I have to put them?
- datos [ ] array has to be a mandatory or may be only uint8 datos ;?
Hi,
I use DieTemp for information of temperature. The result of the api CountsTo_Celsius is not the same when i modify the sample rate. With the sample rate minimun i have 29°C and with the sample rate max i have 14°C. Why the temperature varies depending on the sample rate?
Thanks,
Eric
Show LessHello,
I am establishing communication between PROC BLE as a central device and PSOC BLE as a peripheral device. All events upto CYBLE_EVT_GATTC_DISCOVERY_COMPLETE are generated and fine i.e. connection is established and GATT server is discovered.
Now as I have the service UUID I am using function CyBle_GattcDiscoverPrimaryServiceByUuid(cyBle_connHandle,uuid) in which uuid is a structure of type CYBLE_GATT_VALUE_T .
The structure contains pointer to array of uuid. I found these two ways to assign the arrays.
uint8 point[4]={0xAu,0x0u,0x0u,0x0u } ; point[0]='A';point[1]='0';point[2]='0';point[3]='0';
Which one is correct ? Service uuid at the server is A000.
Also after calling this function CYBLE_EVT_GATTC_FIND_BY_TYPE_VALUE_RSP event is not generating. Directly ATTRIBUTE_NOT_FOUND error code is generated which signifies completion of process. I am unable to get the event parameters from CYBLE_EVT_GATTC_FIND_BY_TYPE_VALUE_RSP as it is not generated by BLE .
What may be the possible faults ?
Thanks.
Show LessNot sure if this is the right place to ask. I am interested in the CapSense Gesture offered by CYBL10563, but I don't seem to find the information in the design guideline for a "touch pad". Can anyone point me to an app note or something?
Thanks.
Show LessHi Guys,
I was going through the datasheet of PSoC 4 BLE - CY8C4248. For my application , I need 12 analog inputs ( 0 - 5V range) which i need to measure/sample through the SAR ADC. Timing is not so crucial, so I can afford to serially scan all the channels. I see that there is a SARMUX, but it seems to be a hardware sequencer for 8 channels. Is it possible to get 4 more or should I go for an external mux?
Secondly, I need 6 PWM channels working simultaneously with different duty cycles. I see that there are only 4 fixed timers. Can i use the UDB to create more PWM channels?
I am using PSoC 4 BLE, since i need the above two features along with BLE.
Is all above possible?
Regards.
Show LessWe have a system based on a FX3, and we need to add bluetooth functionality.
What would be the most compact solution for us? Ideally, we would like to have the FX3 combined with some sort of EZBLE™-PRoC module to keep things small and simple.
Show LessI can read data by bridge control panel through following command
w 40 e3 r 40 x x x
but when I convert this command to program,
(see my upload file)
it dose not work.
is it right?
Show LessHi,
We are developing a new BLE product using a custom profile. The device will have a custom application so there is no need to use standard profiles and also it avoids the need for certification.
The device is done and works perfectly using the custom profiles but we now want to add Battery monitoring and Firmware revision to the product. We can add a "Battery" service to the design or we can add a "Battery Level" characteristic to the custom profile...
What is the benefit of one of these methods over the other? If we add the "Battery" service does that then mean we need to have the product certified by the SIG?
Any thoughts would be great,
Stephen
Show LessI'm working with Scanning and Advertising to addresses in the white list. A lot of functionality will be handled through data provided in the advertisement packet, which, before looking into using a white list, I had solely relied on for filtering unnecessary scanned devices before invoking the rest. I have a few questions about implementing:
1) The datasheet says there can only be up to 8 devices on the list. In one part of the application, I want my potential max white listed devices to be 24. Its a toggling function, so I just need to advertise just long enough for the device to get it, then it'll switch to a new data packet. What's a good, efficient and quick, way to run through those 24 devices?
2) Is there a way to "blacklist", or a way to advertise only to addresses that, for example, only have the same 3 CompanyID bytes in their address?
Thanks for any direction anyone has.
Show LessWe have to implement Firmware update Over The Air (FOTA), because we have to provide firmware updates to our customers that are using "smart phones" (Android/iOS). I have some questions regarding this:
- Should this be possible to do using http://www.cypress.com/documentation/application-notes/an97060-psoc-4-ble-and-proc-ble-over-air-ota-device-firmware-upgrade ?
- Have you guys successfully been able to use the open CySmart source code to do FOTA in your closed source Android/iOS apps?
- If I add FOTA functionality as described in the application note, this gives bootloader subprojects in my PSoC Creator workspace. But will debugging go straight to the "main" project's
int main()
function? And is it possible to override all the bootloader functionality during development in some easy way? - A bit off-topic: Is it possible to write persistent data (like dynamic program settings) into a user Flash memory location? If so, how do I do this, that is, whereto in Flash memory should my user data be written and how is it done, if bootloaders also uses parts of the Flash memory?
I have to implement FOTA pretty soon, hence my questions 🙂
Show Less