- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI
I am attempting to control an LED through an Android device by the software of App Inventor 2. The LED is part of the PSoC 4 micro-controller, which I will use the software of PSoC Creator 4
How do I make it work when I have to concatenate the psoc4 service and characteristics with the UUID?
I will ask for your help. I have included an easy-to-understand attachment.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This example project does exactly what you are looking to do: http://www.cypress.com/blog/problem-solver/project-034-rgb-led-control-over-bluetooth-low-energy
Try dissecting it for information on the specific details on implementation that you need.
Referring to your PSoC 4 main() code, you will need to have a callback function to handle BLE events, CyBleProcessEvents() called consistently in main loop, and a flag that gets set/cleared to indicated the LED setting in the callback handler based on the events. The BLE events are very involved, but if you right-click the BLE component and select "Open Datasheet" or "Open API Documentation", then you will be able to look at what functions do/can be called.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had not seen AppInventor... that looks pretty cool.
From what I can tell from the screens.
When you press button 6 or button 7 it will write to some service/characteristic UUID
In order to do this you will need to create a custom service and characteristic in the P4BLE that matches the UUIDs in the app inventor.
You can watch videos on doing that in the http://www.cypress.com/video-tutorials
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This example project does exactly what you are looking to do: http://www.cypress.com/blog/problem-solver/project-034-rgb-led-control-over-bluetooth-low-energy
Try dissecting it for information on the specific details on implementation that you need.
Referring to your PSoC 4 main() code, you will need to have a callback function to handle BLE events, CyBleProcessEvents() called consistently in main loop, and a flag that gets set/cleared to indicated the LED setting in the callback handler based on the events. The BLE events are very involved, but if you right-click the BLE component and select "Open Datasheet" or "Open API Documentation", then you will be able to look at what functions do/can be called.