Giter Site home page Giter Site logo

infineon / psoc-4-ble Goto Github PK

View Code? Open in Web Editor NEW
219.0 78.0 376.0 102.2 MB

PSoC 4 BLE is an easy-to-use, ARM® Cortex™-M0 based, single-chip solution which integrates programmable analog front ends, programmable digital peripherals, CapSense® technology for touch-sensing, and a Bluetooth® LE (Low Energy) or Bluetooth Smart radio.

Home Page: http://www.cypress.com/psoc4ble/

C 94.53% C++ 5.08% Objective-C 0.38%
non-mtb-2-x

psoc-4-ble's People

Contributors

grimeer avatar yourskp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

psoc-4-ble's Issues

Mesh Gets stuck in Central Mode + Fix

Flood Mesh Getting Stuck in Central Mode where State is "DISCONNECTED"

Solution and Explanation Below

The error begins at this line in ble_process.c:
centralStartedTime = WatchDog_CurrentCount();

In the instance that centralStartedTime is set to a count of over 65490, we remain in Central until the power is shut off. This is because the following line will never be true:
(WatchDog_CurrentCount() - centralStartedTime > CENTRAL_STATE_SPAN)

If central started time is 65490 and the watchdog meets it's maximum value, 65535, the difference will only be 45. Since the central_state_span is exactly 45, and we are testing for greater than Central_State_Span, the statement will always be false. From there, it only gets worse, since the watchdog counter resets back to 0 and the centralStartedTime is never updated.

To remedy this, I have added the below code:

// This line is the current cypress example code (ble_process.c)
centralStartedTime = WatchDog_CurrentCount();

// The below have been added as a solution
if(centralStartedTime >= 65480){                  
    current_watchdog_counter = 0;
    centralStartedTime = 45;
}

I hope this fix is useful to someone in the future!

Best Regards,

Andy York
Director of Technology
The Lockout Co., LLC

Interface CapSense Slider: Day006_Central_IAS

Hi. I need some help with the project on Day006. In this project we are using a button and then sending commands over IAS to the peripheral. Is there a way to add and use the CapSense slider on board to send some information using IAS service?
Like once the boards are connected then I can send the data using IAS service to the dongle and control the brightness of LED's on the dongle. Is this possible?
Is there any example for that or if you can provide any help in this.
Thanks

tmp100 with psoc creator

I'm newer to the psoc - I want measure temerature over I2C with a TMP100. Please share some example

Day 38 project works only in non-connectable mode

Problem - Day 38 project will only work in non-connectable advertisement mode and when connectable mode is enabled, the device disconnects immediately after establishing connection.

Root Cause - This is due to a bug in the code where the LFCLK source for PSoC 4 BLE device was not updated to WCO (accurate low frequency clock) and was still running on ILO (highly inaccurate). This caused timing offset in connected mode that resulted in BLE link disconnection.

Temporary Fix - The updated project is at - https://github.com/yourskp/BLE/tree/master/Low_Power_Startup

Day020_BLE_UART

Hi,

I'm using CySmart on iPhone to try to talk to BLE UART project running on CY8CKIT-042-BLE PIONEER KIT. CySmart shows there is a notify-characteristic and a write-characteristic. Writing something to write-characteristic, I get it on UART console. Typing anything on console, does not produce any effect on notify-characteristic.

What could be wrong there?

mesh network node can not broadcast once it transfer a message with address

There is no address reset in the button pressing event. So in the beginning, a node can broadcast when the button pressed, but once it transfer a message with an address, then it cannot broadcast anymore. Since the variable received_node_addr and received_node_addr_type are static claimed in GenericEventHandler, the sensor_process.c can not touch they. Am I correct, please? Thanks a lot for any help.

The UART_to_BLE_central doesn't seem to open in PSoC Creator 3.1

Downloaded latest PSoC Creator for the CY8CKIT-042-BLE (as of 4/6/2015) and when I open the UART_to_BLE project I get the following message:

Error: sdb.M0020: Error in customizer for component "BLE_v1_20" : Loading : (Unable to locate and customize component 'BLE_v1_20' used in schematic '...\Cypress\PSoC-4-BLE-master\PSoC-4-BLE-master\100_Projects_in_100_Days\Day020_BLE_UART\UART_to_BLE_central\UART_to_BLE_central.cydsn\TopDesign\TopDesign.cysch'.).
CANCEL

The Heart Rate project seems to open correctly so I'm assuming the tools are set up correctly?

License?

What license do these samples fall under? It would be helpful to include this in the README, which would also be nice to have too!

Please disable Flow Control in this project

I've used this project (peripheral) and found a problem:

Problem: When sending TX/RX data (packet sizes around 50+ bytes) sometimes the firmware gets locked up and I can no longer send data down to it (TX output of module dies).

Solution: I found that RTS/CTS is enabled by default in this project. When I disable RTS/CTS in the schematic editor GUI and then also disable FLOW_CONTROL in the main.h, everything seems to work just fine. I hope you can update the project (because I think most people will not use flow control). It took me about a day of debugging to solve it. Thanks!

Erik

Day010_Observer - advReport.data prints incorrectly

main.c - The for loop at lines 167 to 170 or printf within should be corrected as the first value printed is outside of the advReport.data array.

advReport.data[advReport.dataLen-i]will always do this when i = 0.

Thanks :)

How to program sflash using Miniprog

I want to give unique user configurable address to my Psoc4 BLE(MAC address).I read that we can do it by Miniprog to program it in flash. I connected my kit using USB cable and tried to program by executing Miniprog(C:\Program Files (x86)\Cypress\Programmer\Examples\Misc\PSoC4-BLE-SFLASH-Update\Executable\PSoC4-BLE-SFLASH-Update) but it showing "No any Minipro3 is conneted to USB. Please connect only one Miniprog3 to this application" and Can any one guide me on that, please

Day 050 Eddystone data can configurable by android app

Hello,
I am working on Beacon Eddystone protocol with PSOC4 BLE, So i refer Day 050 Eddystone project and run it successfully.
Now i want to make data (Eddystone UID, URL, EID etc)configurable by an android phone, so i take sample data read- write example and generate different characteristics under one service, and read write data using CY smart application.
Now I need that data enter by device broadcast in eddystone standard format, So can i get any sample code for it which can configure data of eddystone beacon using android application.
Thank You.

Create reserved memory in flash memory

I am using PSOC4 BLE and I want to store some data(like device name, MAC Address ) in flash memory and retrieve it. I would be thankful if someone guide me in this. I desperately need a help. Please, help me as soon as possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.