PSoC™ 4 Forum Discussions
text.format{('custom.tabs.no.results')}
Hi All,
I am pretty confused about the capability of BLE to build multihop (mesh, tree) network topology. At the beginning, I thought that it is the same with the classical bluetooth. And also, I see that there are some projects in 100_Projects_in_100_Days (e.g. Day012_Central_Peripheral) mentioning about having multiple role in a node (I have not tried them out though). I thought that can be a way to build multihop topology. However, when I googled again for some basic information about BLE, some say it's not possible to have multihop topology but some say it is possible. Can anyone please explain about this? Or maybe give me some reference about it? Or maybe, if anyone has tried out the related projects or having other experience establishing multihop network. Please give me some guidelines. I would very appreciate it. Thank you.
Regards,
Daryanto
Show LessHello,
We have been working an a devices using PSOC 4 bluetooth, for a wireless ultra-low power sensor.
Currently, we have the electronics and firmware working, drawing only 150 microamps of power. This works well, and is done by putting the system mostly into deep sleep, and taking a measurement once every five seconds.
However, if we begin to make calls to
BLE_ProcessEvents();
The system only enters sleep briefly, and we appear to be bombarded by several hundred events per second. Although the connection to the app appears to work fine, sending out an actual measurement every five seconds, this creates an huge additional power overhead (about a factor of ten), which is too high for our application.
It seemed that perhaps the Connection Interval settings were incorrect, resulting in extra (unnecessary) events (???). However, we have tried changing these settings both through the bluetooth configuration and by calls to
CyBle_L2capLeConnectionParamUpdateRequest(cyBle_connHandle.bdHandle, &connectionParameters);
This seems to have no effect.
Any idea what could be causing the extra events? We only make calls to
CyBle_GattsWriteAttributeValue(&measurementHandle, FALSE, &cyBle_connHandle, FALSE);
CyBle_GattsNotification(cyBle_connHandle, &measurementHandle);
once every five seconds. There should be no issue (deep) sleeping most of the time, but it seems there is something extra going on that’s taking up all the processing time.
Thanks,
Jonathan
Hi everyone,
I'm working on an application where I use the BL-A Pioner Kit with a CY8C4248LQI-BL583 module for simulate a peripheral sensor, that connects to a CySmart USB 4.1 dongle. I use CySmart 1.2 software to debug. I'm having problems with indication messages sent from a custom characteristic (which I use as a control point of the custom service). What happens is the following:
- From CySmart, I active the indications of that characteristic (writing 0x0002 in the associated CCCD).
- I write a value in the characteristic, my application answers with an indication.
- In the CySmart log window I check that the indication have actually been received.
- But in my application there is no CYBLE_EVT_GATTS_HANDLE_VALUE_CNF event.
At the beginning of my code (written from the example Running and Speed Cadence ), I register the function that use to parse the BLE events
appResult = CyBle_Start(AppCallBack);
Where AppCallBack looks like this:
void AppCallBack(uint32 event, void *eventParam){
CYBLE_GATTS_WRITE_REQ_PARAM_T *wrReqParam;
switch(event) {
case CYBLE_EVT_GATTS_HANDLE_VALUE_CNF:
// This event never happen !!!!!!
break;
}
}
But, however in the function CyBle_EventHandler() of CYBLE_eventHandler.c file, when an Indication is confirmed then CYBLE_EVT_GATTS_HANDLE_VALUE_CNF event happens.
This seem confusing to me, any idea about what is happening?
Thanks,
Angel
Show LessIs it possible to set the input logic levels of the I2C pins to LVTTL?
Target module is CYBLE-012011-00 and I2C is set to master.
Thank you.
Show LessHi all,
let me announce that PSoC4 family is now supported in OpenOCD.
OpenOCD is a multiplatform on-chip debugger. It can be used as a gdb server with gdb-derived debuggers. OpenOCD can drive most of standard JTAG/SWD adapters, like J-Link... For more info see http://openocd.sourceforge.net/
PSoC4 support includes SWD debugging (almost standard Cortex-M0) and a driver for flash programming. This features were integrated very recently so PSoC4 support is available only in a git version for the moment. I'll let you know when a suitable Windows and Linux binary will be released.
OpenOCD can help in following scenarios:
-
PSoC4 debugging with Linux PC or an embedded Linux powered system
-
PSoC4 debugging over local or wireless network
-
PSoC4 debugging using a standard or special SWD adapter
To Cypress: I hope you do not consider this announcement as spoiling your business with MiniProgs and PioneerKits. I'm sure that an open-source alternative can boost wider spreading of your innovative chips in students communities.
If Cypress wishes to support our open source project please let me know.
Tomas
Show Lessi am using a demo board of CY8CKIT-043 with very low resources (32 macro-cell)
could you write a short code the do the folowing:
input= digital INPUT, random behaviouer of 0 or 1
output, digital= error1, error2
Period= every 50mS
clock=1MHz (or equvivalent)
( a 50mSec period has 50,000 pulses of 1MHz clk)
for each period
start with count=0
for each clk:
if INPUT=1, count=count+1
if INPUT=0, count=count (no change)
at period end:
if count is <30% , then error1="1" [30% of 50,000]
if count is >36% , then error2="1" [36% of 50,000]
else error1=error2="0"
repeat period endlessly
thank you!!!!
Itzhak Gavyus
I was working my way through AN-73503, USB HID Bootloader earlier today. I followed their instructions to delete the default Device Descriptor root. I then imported the Descriptor Root Bootloader.root.xml. I continued on in the tutorial, but when I went to compile I had some errors. I had been messing around with other stuff so I decided to delete the USBFS from the schematic and start again in a new project.
Now I am all of a sudden unable to call up a USBFS component. I look in the CyComponentLibrary and it appears to all be there. I have run an update, a repair and have even uninstalled PSoC Creator and reinstalled it. But, the same thing: no USBFS. I have renamed my Cypress folder, installed PSoC creator again and tried to load a USBFS component, but no dice.
I have noticed that the application seems to know which projects I have worked on recently when I load the newly installed software. Maybe this is a hint? I don't know.
I am unsure where to go from here. Any help would be much appreciated.
Thanks!
Show LessIt is hard to ignore that there is a consistent grouping of the PSoC 3 and PSoC 5 architectures. I do not recall ever seeing a document title with 3/4, 4/5 or 3/4/5 referenced together. I see that also in references to applicability to solutions. Are 3/5 more suited to analog? What does separate PSoC 4 ? I would like to understand it.
What about PSoC 6. What bucket does it fall in ? A new bucket ?
I will appreciate if someone can enlighten me
Tony
Show LessI'm starting a new project which I think the Analog Coprocessor Kit would be a good kit to use for the initial testing. I'm looking at replacing the detector (datasheet attached) with some standard photodiodes and a PSoC.
I have 2 photodiodes, http://www.excelitas.com/downloads/DTS_vtb1112b13b.pdf and https://media.digikey.com/pdf/Data%20Sheets/Excelitas%20PDFs/VTP9812FH.pdf
I plan on connecting the photodiode to a TIA and following that with an ADC. I haven't worked with one of these sensitive circuits since the dawn of ages so I was hoping to get some helpful kick starting tips to proceed.
Thanks,
George
Show LessHello; I try to follow or reproduce the video: How to Create a PSoC Android BLE App.
I include the CapSense CSD Module, the BLE Module, and the digital outputs. After DesignBuilding I get the following error:
"prj.M0120: Build error: 'CapSense_LinearSlider0__LS' undeclared (first use in this function).
I checked the CapSens_CSHL.h the function is existing and also the CapSens_CSHL.h is include via the project.h in the main.c file.
I assume it will be a short problem with definition; thanks in advance- Norman
Show Less