PSoC™ 4 Forum Discussions
Hello Every One,
I made a program in BLE PSOC4. If i run the program without my code for sine wave generator (IDAC and TCPWM module) then, it runs perfectly fine. But if i include it, it doesn't work. This means i am unable to detect or communicate between my mobile and BLE device.
Looking forward for your suggestions.
Awais
Show LessHello, bouht a 059-Kit to break off the Kit-Prog.
But on the Pin VTarget comes 5V out.
My project runs on 1.8V or 3.3V, but not on 5V.
It´s a solution to use this Kitprog with low voltage apps?
Hello, I wanted to know what the easiest way is to read and display the ADC converted values in PSOC Creator. I am working with 4200 BLE PSOC. Any help will be much appreciated!
Show LessI worked through the 42xx code here www.cypress.com/ for SPI TFT Color LCD240x320. The 4245 project compiled and ran on the Pioneer board as well as the 4200 Prototype board.
I duplicated the project and selected a CY*4125 AXI-483 for the uC and gutted the SD-Card and added in the SCB as a Motorola SPI controller. I assigned the pins and edited the TFT.C code to utilize the SCB component.
Everything compiled without error. I connected to the SPI TFT color display and nothing but backlight. Replacing the 4100 prototype with the 4200 prototype board and the display works. I have looked over the SCB property sheet which shows SCLK mode: CPHA =00, CPOL =00 and this matches the mode used in the original SPI Master control on the CY84245 ; however, I do not find a similar "MSB First" setting with the SCB.
I am missing something. I do not own a Saleae logic analyzer, but my dual channel scope seems to show MOSI and SCK and CS all performing. The D/C signal is a firmware controlled pin, and the Data/Command were only edited from SPIM_WriteTxData() to SPIM_SpiUartWriteTxData() based upon my interpretation of the datasheet for the component: SCB in SPI Master Mode.
In the grand-scheme of things this is not a big deal, but I have a number of the 4100 Prototype boards that I want to "consume" before using my 4200 boards and the current project in mind uses a SPI TFT color display.
Anyone see what I have done wrong? Thank you. 1st item on Holiday list is now a Saleae.
Regards,
Ray
Show LessAt first, Proc ble has em_eeprom. so i decided em_eeprom. but em_eeprom is not supproted with Proc.
so i had to use em_eeprom in Psoc. And 'em_eeprom' is not compatible with PRoc, so i had to copy code about em_eeprom.
and I success wrting flash memory(depend on return parameter). but nothing can check success. and I want to use reading flash
as well as writing flash. but API is not produced. according to datasheet, 'there are no I/O connection without API'. if so, how can i
read flash memory which i write. I tried to read flash adress, but failed.
how can i do?
ps) I refer datasheet 'em_eeprom'
Show LessI have a device (peripheral) that uses the link loss service. If this service is set, and the link is lost, an alarm goes off. I only want to allow previously bonded devices to connect back to the peripheral during this alarm condition. This would normally be handled by whitelisting. However, iOS devices (and I assume android too) uses resolvable random addresses, so their address changes.
I don't have a problem switching from Scan Any Connect Any to Scan Any Connect Whitelist, I just set the struct value cyBle_discoveryParam.advFilterPolicy = CYBLE_GAPP_SCAN_ANY_CONN_WHITELIST. My problem is that the whitelisted address becomes obsolete after the iOS client changes its address.
My (limited) understanding of resolvable random addresses seems like I should be able to "resolve" the random address. That is, I can figure out if the new iOS address is from the same client as before using the IRK (Identity Resolving Key). Does my app have access to the IRK? How can I use this to update the whitelist, or to check if a new client trying to connect is actually an old bonded device? Thoughts?
Thanks!
Show LessHi, I am implementing an exercise to compare ADC output with a certain voltage threshold (voltage value in digital form). Wanted to know what the best component is to use?
Show LessHi,
Is there a way in the main application to detect when a characteristic read is occurring.
In my application, I need to generate the characteristic data dynamically as it is requested. Ideally I would like a callback so that I can update the characteristic value before it is sent.
Thanks
Show LessWhat's the friggin difference? Fast advertising seems to contain the set that is slow advertising why bother making a distinction if its only just a subset of fast advertising?
Fast advertising interval – This advertisement interval results in faster LE Connection. The BLE Component uses this interval value when the connection time is between the specified minimum and maximum values of the interval.
□ Minimum: The minimum interval for advertising the data and establishing the LE Connection. The parameter is configured to increment in multiples of 0.625 ms. Valid range is from 20 ms to 10240 ms.
□ Maximum: The maximum interval for advertising the data and establishing the LE Connection. The parameter is configured to increment in multiples of 0.625 ms. Valid range is from 20 ms to 10240 ms.
□ Timeout: The timeout value of advertising with fast advertising interval parameters.
Slow advertising interval – Defines the advertising interval for slow advertising. This is an optional parameter which, if enabled, allows to implement advertising with a lower duty cycle to save battery life. The Slow advertising interval parameters are applied to the device after the internal fast advertising interval timeout occurs.. The minimum and maximum values defined using this parameter allow the BLE Stack to expect the advertising to happen within these intervals.
□ Minimum: The minimum interval for advertising the data and establishing the LE Connection. The parameter is configured to increment in multiples of 0.625 ms. Valid range is from 1000 ms to 10240 ms.
□ Maximum: The maximum interval for advertising the data and establishing the LE Connection. The parameter is configured to increment in multiples of 0.625 ms. Valid range is from 1000 ms to 10240 ms.
□ Timeout: The timeout value of advertising with slow advertising interval parameters.
Show Less