Using UART-BLE Bridge Peripheral with an Android Device

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
ALDE_1053476
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

Hello,

I'm trying to use the example Project "UART_to_BLE_peripheral" with an Android Device.

I've made the following steps:

- First I tested communication between central and peripheral (both implemented on the CYBLE-022001-00 available on board of CY8CKIT-145). Uart has been connected to Kitprog through the on board CY8C4045.

Everithing worked Fine.

- Then I disconnected central Devices and tried connection with a smartphone.

Connection was established

- I tried to send data from Android Device to peripheral CYBLE-022001-00

I was able to see data on an Teraterm connected to peripheral device.

- Finally I tried to send data back from peripheral device to Android Phone.

NO WAY!!!

I seems as Server_UART_Tx_Data characteristic cannot be read from the other peer (Android Devce)

Can You please Help?

 

Thanks,

Alfonso

 

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi Alfonso,

Please ensure that you have enabled notifications on the characteristic of the peripheral device. Otherwise the notifications will fail. 

Please find the attached project which I tried at my side and I am able to send characteristics from CySmart  to the PSoC 4 BLE and from PSoC 4 BLE to CySmart application in the mobile after enabling the notifications.

Please check with the attached project once and update us.

Thanks 

Ganesh

View solution in original post

0 Likes
3 Replies
lock attach
Attachments are accessible only for community members.
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi Alfonso,

Please ensure that you have enabled notifications on the characteristic of the peripheral device. Otherwise the notifications will fail. 

Please find the attached project which I tried at my side and I am able to send characteristics from CySmart  to the PSoC 4 BLE and from PSoC 4 BLE to CySmart application in the mobile after enabling the notifications.

Please check with the attached project once and update us.

Thanks 

Ganesh

0 Likes
ALDE_1053476
Level 3
Level 3
10 replies posted 10 questions asked 10 sign-ins

Hi Ganesh, 

Thanks for Your Reply,

I've one more question.

Enabling Notifications on the characteristic of the peripheral device is an action that must be performed on Central Side or on Peripheral Side?

 

Thanks,

Alfonso

0 Likes
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi Alfonso,

On Central Side, you have to send a write request to the peripheral that enables the notifications in the Client Characteristic configuration descriptor of the GATT database generally stored on the peripheral side.

Thanks

Ganesh

 

0 Likes