Android Question Clear Bluetooth UART Example

ElliotHC

Active Member
Licensed User
I am trying to establish serial comms with a BLE Bluetooth module using the Transparent UART Service.

So far after reading all the Bluetooth related posts, I can't seem to find any clear working example.

I have the Bluetooth Chat example project Bluetooth.B4A which when searching for devices takes a long time to find the module, then when connecting I get:

Error connecting: java.io.IOException:
read failed, socket might closed or
timeout, read ret: -1

I don't see where on the APP you put the UUID either?


Also I have tried the BLE Example BLE.B4A which seems to just have two sliders and not even a way to connect to devices.

I'm trying to get some kind of a starting point where I am able to pass data between my android device and a BLE RN4871 using transparent UART.

UUIDs
Service
49535343-fe7d-4ae5-8fa9-9fafd205e455
Read
49535343-1e4d-4bd9-ba61-23c647249616
Write
49535343-8841-43f4-a8d4-scbe34729bb3

Anyone able to tell me where I'm going wrong?

Thanks
 
Last edited:

ElliotHC

Active Member
Licensed User
I am very new to B4A and this is a small part of a very large project, I don't have lots of time to spend learning from the ground up.

I've picked B4A as a platform moving forward as it looked like I'd be able to easily understand it coming from a Basic background of more than 15 years.

I am also very new to Bluetooth with zero experience on the Android side, I expect to learn all about it as I go but I could really do with some help tying in this connection BLE_Example with sending and receiving serial data with my BLE device.

Once I've done this I would be very happy writing a detailed guide and project example once it's working.

If anyone has already done a serial data app with a BLE device I would very much appreciate any help.

Thanks
 

Attachments

  • Screenshot_20190101-110937.jpg
    Screenshot_20190101-110937.jpg
    378.1 KB · Views: 436
Upvote 0
Top