PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
I write for PSoC BLE demo project.
Launches android smartphone CySmart.
I getting data from the PSoC on a smartphone.
Everything works.
I compile Qt demo program "Bluetooth Low Energy scanner example".
Writing on her phone.
This program NOT sees PSoC.
Show LessHRM_DataLogger with CySmart1.0 Dongle:
The HRM_DataLogger connected to the CySmart1.0 dongle functions as described in the accompanied DataLogger.pdf file. However, to actually see the changing heart rate on the Tera Term the tab 'Enable All Notifications' must be clicked (this tab becomes visible when 'Discover All Attributes' is clicked) . Below is a sample of output from the Tera Term:
EVT_TIMEOUT: 1
CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP, state: 3
CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP, state: 3
EVT_GATT_CONNECT_IND: attId 0, bdHandle 4
EVT_GAP_DEVICE_CONNECTED: 4
EVT_GATTS_XCNHG_MTU_REQ
Heart Rate Measurement Notification is Enabled
Heart Rate Notification is sent successfully, Heart Rate = 72
Data logged successfully
Data read back: 0x41 0x03 0x00 0x00
Heart Rate Notification is sent successfully, Heart Rate = 84
Data logged successfully
et.
HRM_DataLogger with CySmart Android App:
The HRM_DataLogger application connects OK with my Android Asus tablet but only displays a pulsing heart icon but no numerical data. I get the same results using a Galaxy phone.
Below is a sample of output from the Tera Term:
BLE Heart Rate Sensor Example Project
Stack Version: 1.0.0.181
EVT_STACK_ON
Start Advertisement with addr: 00a0500b1208
CYBLE_EVT_GAPP_ADVERTISEMENT_START_STOP, state: 3
EVT_GATT_CONNECT_IND: attId 0, bdHandle 4
EVT_GAP_DEVICE_CONNECTED: 4
Heart Rate Measurement Notification is Disabled
Heart Rate Measurement Notification is Disabled
Heart Rate Measurement Notification is Disabled
Heart Rate Measurement Notification is Disabled
Heart Rate Measurement Notification is Disabled
Heart Rate Measurement Notification is Disabled
etc
It appears that the Android CySmart app fails to enabled the Heart Rate Measurement Notification and hence no data is transmitted by the BLE to the Client.
Interesting the HRM_DataLogger used with the iPhone CySmart iOS app displays all numeric data that changes according to the simulation.
Is this the result of a problem with the Android CySmart App?
Show Less
Hello,
I've spent some hours on my CY8CKIT-042 BLE and I'm now checking the power consumption of my project. I applied the AN92584 application note to my code but my measurement on J15 gives a few mA when connected.
I tried the "BLE connection example" that is attached to the application note, but I still have 1690uA consumption when connected, so in deep spleep mode. Looking at the power calculator I should have less than 20micro Amp consumption, and I measure 100 x more??
I tried on the Proc BLE also, but have exactly the same 1.7mA consumption.
To be sure I made the measurements without the pioneer baseboard by directly applying power between VDDD and GND on J2 connector, but I did not make any difference.
Do anyone have an idea about what to do to find the problem.
Thanks
Show LessHello,
In PSoC4 we have to use emulated EEPROM component to use flash portion as EEPROM area. One limitation of the Em_EEPROM component of PSoC4 is, it automatically places EEPROM space in flash. This location may changes with different build cycle. This may create an tricky issue during security protection of flash (usually employed for IP protection of your firmware).
As you have to get the address of flash area allocated after a new build and change Flash Security file flags appropriately to allow Em_EEPROM to work within otherwise protected flash area. This is a tedious task and not intuitive as PSoC1 EEPOM component.
I have a project running on PSCO 4200 that goes into deep sleep and is woken by change in GPIO pin.
When I run the code , it appears to sleep for a while and then wakes up (but not by GPIO pin change).
The code starts a timer, and then stops the time when done and puts the device back in deep sleep mode.
However, once the device is woken it appears the timer never stops and it keeps getting continuously woken by the time (I put a break point at the ISR and it is going directly to it).
I have a Global Signal - System Power Interrupt placed in the design but do not use the watchdog.
Firstly, is there a register that indicates what caused the wake from deep sleep ?(I am sure I saw this in a document for hibernate but not sure about deep sleep).
What would cause the timer interrupt to not be cleared.
CY_ISR(TimerINT){
Timer_ReadStatusRegister();
Timer_Flag = 1;
}
void StartTimer(uint32 tdelay){ //used in "processLF()" routine when woken
uint32 period = tdelay;
Timer_WritePeriod(period);
Timer_WriteCounter(period);
Timer_Enable();
}
void StopTimer(void){ //called just before deep sleep when leaving "processLF()"
Timer_Stop();
Timer_Flag = 0;
}
main loop
for(;;){
CySysPmDeepSleep();
processLF();
}
Show LessHi All,
I am not sure if all of you are aware of this. You need to configure Vref to "Internal 1.024 V bypassed" from the drop-down list in SAR ADC to obtain 1Msps of conversion rate. Also averaging option has to be disabled.
One important point to be noted is that to obtain exact 1Msps sampling rate, the IMO should be configured to be 36 MHz.
Regards,
Asha
Show LessWhy am I getting this error (attached), all the pins are on the same port:
I am using a Galaxy Note 3 (Samsung says "Bluetooth 4 (Low Energy)" in the specs). CySmart sees the Phone Alert Handler (running on the BLE Pioneer Kit- CY8CKIT-042-BLE) but when I tap that device in CySmart, I get a message: "Cannot connect to the device".
I am a BLE noob. Where do I start?
Show LessHello, guys, I'm trying to project a VDAC and change the voltage across a pin using the capsense. It's a easy job to implement this using psoc 5 but the psoc 4 doesn't have the vdac, so, I can use the IDAC and a external resistor to make the VDAC using the psoc 4. But unfortunately the psoc 4 don't allow me to use IDAC and capsense in the same design. Someone knows if the Capsense have a internal IDAC and if I can project this "VDAC" variable with the capsense ?
Show Less