1 of 1 people found this helpful
You mean a simple serial to Bluetooth example like this: Project #020: UART to BLE Bridge | Cypress Semiconductor ?
It should be easy to modify it to follow your criteria if it doesn't work out of the box.
1 of 1 people found this helpful
thanks for the fast reply, but the example is not what we need: We use
EZ-Serial firmware on the CYBLE-022001 module, so we don´t need any
firmware application for the module like the suggested PSOC-Creator
project. This has already been solved by Cypress with the EZ-serial
firmware and we don´t want to change anything at this end of the
Instead we need the counterpart on the smartphone: An application
example under iOS and / or Android to receive / send messages from / to
the CYBLE-022001 module with its EZ-Serial firmware. We can build up the
communication with the CySmart app, as can be seen on the example
attatched. The only thing that still lacks is some function for actually
transferring a string via SPP from smartphone to CYBLE-022001 module and
another one for receiving the response. This is the missing link between
our app and the CYBLE module.
If you answer to this mail, please include my colleagues in CC.
Thanks for your support,
That should be relatively simple if I am understanding you correctly:
When receiving an indicate message from the SPP, pass it to the app.
When sending a string from the app, write it to the SPP using an indicate.
Or use confirmed write as an alternative as well.
Unfortunately, I have no experience working with android/iOS applications for phones and wouldn't be able to give you an example or help in that regard. However, what you are describing should be achievable using the SPP interface with the CYBLE-022001-00 module from the app on the phone to send and receive messages.
Some pseudo code for the code flow:
- setup system settings
- setup SPP CYBLE-022001-00 module
- connect to desired bluetooth device using the SPP
- send/receive data through the SPP
- disconnect the bluetooth on the SPP when done
- disconnect from the SPP
- close the app
I do have the same kind of problem, that when I am trying to get the data from the circuit in my Android/iOS apps its giving me the same kind of data which is shown is screenshot. I debug the code given by sample apps from Cypress, but none of them shows any ways to give me back the data.
So I am not getting any way to read the required data from the server like its written in the device/circuit documentation to pass strings to get the relevant dat, but apart from the first connection...I am no way getting any data.
So if anyone could provide me some information about SDK or 3rd party libraries to retrieve the data....basically any help would be helpful.
There are some examples of communication/serial interaction with the EZ-Serial here:
The first download (User Guide) has the information you are asking about I believe. It has both peripheral and central example usage.
Page 57 has the beginning of the GattC examples.
Page 144/145 has the exact command for reading/writing a remote server attribute/characteristic:
gattc_read_handle (/RRH, ID=6/4)
Binary Header: Type Length Group ID Notes CMD C0 03 06 04 None. RSP C0 02 06 04 None. Text Info: Text Name Response Length Category Notes /RRH 0x000A ACTION None. Command Arguments: Data Type Name Text Description uint8 conn_handle C Connection handle to use for read operation (Ignored in current release due to internal BLE stack functionality, set to 0) uint16 attr_handle H* Handle of remote attribute to read