PSoC™ 4 Forum Discussions
Hi,
I am using the 4200 BLE pioneer kit board to interface an external FRAM chip (not the one on the board itself). Since it works little bit different I will understand the I2C protocol and try to analyse the signals with a logic analyser.
As a base project I use the simple fram test project from this topic http://www.cypress.com/forum/psoc-4-ble/fram-ble-pioneer-board-and-i2c.
This project works as expected with the onboard Fram chip (pins 5.0 SDA and 5.1 SCL), so I know the I2C component is properly working as such. The program tries to write to and read from FRam every second.
Now I map other I2C capable pins to drive an external I2C bus. There are no slaves on the bus and each line is pulled up by a 2K resistor to ca. 3.3 V (voltage divided from 5 V). Each line has a logic analyser probe attached and I do not see any activity on the lines. SCL is always low and SDL always high.
Shouldn't there be at least START sequences from the master?
When I attach a slave though, I can see full communication. Is this the expected behaviour?
AN91162 Creating a BLE Custom Profile Appendix A refers to adding code to your project to support notifications.
4. For an example project implementing BLE notifications over custom profile, refer to CapSense_Proximity or CapSense_Slider_and_LED projects of CY8CKIT-042-BLE Pioneer Kit.
I can't find these projects.
I need these projects because when I add the recommended code in step 2 there are lots of undefined items which need to be added but were not documented.
Show LessWhat is the right load capacitance for the 32 KHz WCO crystal? The datasheet calls out a range of 6 pF - 12.5 pF but the CYBLE-014008-00 module schematics show capacitor values of 24 pF and 47 pF which would give you a roughly calculated load capacitance of 17 pF. Why does the module use a value that is out of spec according to the datasheet?
Show LessThe current UART to BLE is set up such that the UART only seems to function when there is a wireless link. If I am an MCU that wants to convey information to the BLE module, which the BLE module alone will use, I would like to use the UART without a link necessarily being established. I thought is was as easy enough as using HandleUartTxTraffic (naming convention strange) under the CYBL_STATE_ADVERTISING case in the HandleBleProcessing Procedure, but this does not work. It would be nice to tie this communication to an interrupt that occurs when data appears in the Receive Buffer of the Processor.
Show LessHello All,
Short question? Do you know where I can find ( if exist ) the necessary library with PRoC module that I can use under Altium Designer?
Thanks a lot
Show LessHi everyone, I'm trying to use CYSPP mode on my CYBLE-022001-00 module but it doesn't work.
There is something from my terminal application:
.cysppstart
@R,0011,.CYSPPSTART,0107
.cysppcheck
@R,0011,.CYSPPCHECK,0502
According to EZ-Serial system error codes:
0107 | EZS_ERR_CORE_INVALID_STATE | Invalid state for requested operation
0502 | EZS_ERR_GAP_CONNECTION_REQUIRED | Connection required, but none is available
What does it mean and how I can fix it? I use pioneer kit and the latest ez-serial firmware for my module
Show LessNow I want to use the direct advertising when central bonded to my peripheral.But seems the ios use the resolving address, will the direct advertising still work when central changes the peeraddress.
Show LessI am using ADC to monitor the voltage of an analog input value to my BLE Pioneer Kit. I want to print the voltage value every 10 milliseconds. When I click the program button while in the main.c file under source code, the program doesn't seem to start right away. Only after a few minutes does "Voltage is 0 mV" start to print in Tera Term. After printing for about 30 seconds, symbols begin to appear in the Tera Term window. I've attached a text file of the serial data that prints to Tera Term. I've made sure that the baud rates match in tera term and in the ADC settings. The code that I use in main.c is below. Any idea what the problem might be?
/* ========================================
*
* Copyright YOUR COMPANY, THE YEAR
* All Rights Reserved
* UNPUBLISHED, LICENSED SOFTWARE.
*
* CONFIDENTIAL AND PROPRIETARY INFORMATION
* WHICH IS THE PROPERTY OF your company.
*
* ========================================
*/
#include "project.h"
#include "stdio.h"
int main()
{
ADC_Start(); //start ADC
float x;
char tempStr[10];
CyGlobalIntEnable; /* Enable global interrupts. */
UART_Start(); //Starts Serial communication
ADC_StartConvert(); //Starts ADC Conversion
//infinite Loop begins to acquire voltage values
for (;;)
{
ADC_IsEndConversion(ADC_WAIT_FOR_RESULT); //Waits for ADC value to be calculated
x=ADC_GetResult16(0); //Sets x to the value of channel 0 (analog input channel is channel 0)
float y = (ADC_CountsTo_mVolts(0,x)); //converts ADC value to millivolts
int n = y;
sprintf(tempStr, " Voltage is %-d mV", n);
UART_UartPutString(tempStr); //Sends string with mV value to UART
UART_UartPutString("\r\n");
CyDelay(10); //Delay before reading next value
}
}
/* [] END OF FILE */
Show LessHello
I'm having a very strange problem with scanning for advertising devices
I modified the Observer project (Day 10 )for my hardware
While I;m 100% certain that there are devices advertising, ( CySmart sees them the CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT event never fires!
And the strangest thing is that it was working yesterday!.
I was at a different location but other than that nothing is different.
Project is attached. It's just a sample from the 100 series - I only disabled the low power mode stuff and the UART
Any ideas? I'm at my wit's end
One thing that appears strange to me
In the file BLE_eventHandler.c in the case CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT the code only executes when CYBLE_CPS_CLIENT is defined. It is not defined for this project . Any details on that ?
Thank you
Andy
Show Less