Android Question BLE UART Terminal example - Execution failes

RBeckmann

New Member
I try to make my first steps with the B4A compiler and now have a
problem with execution of the sample "BLE_TRANSPARENT_UART".
I succeded to install all components (B4X, Java, Android 3.4) and could drive the sample.
In result i connected a smartphone (samsung with android 11)
with a BLE Module RNBD451 in transparent mode.
BUT this worked just few times.
After a 2nd compilation and Installation on the smartphone, the program did not find any
connection and/or stopped unintended and exited.
I tried several things, like deinstallation of the apk on the smartphone,
reinstallation of B4X, used different Windows PC s( WINN 7 / WIN10).
Additional info:
With a different BLE terminal programm a connection is still possible.
Anyone in this forum with an idea to solve this?

Kind regards
Robert
 

drgottjr

Expert
Licensed User
Longtime User
you need to capture and post the unfiltered log. it is difficult to solve a problem without seeing your code and any errors reported by the o.s. it would be unusual for there to be no errors or exceptions reported in the unfiltered log.

you say, "After a 2nd compilation and Installation ...". if you compiled a 2nd time, that sounds like you made a change to your code. otherwise, you have no reason to re-compile if the project is working. what did you change?
 
Upvote 0

RBeckmann

New Member
Thanks for the fast reply and the support.
Attached I add the unfiltered LogFile.
About "2nd compilation":
I used the same project "BLE_TRANSPARENT_UART" with a small change (rename #ApplicationLabel to BLE V1.0) and few adaptions (positiong/renaming of the buttons). First this worked fine also with small changes.
But the same project after few trials the BLE communication did not start again.
The error remained even when I unzipped and opened the original project again.
Maybe there are temporary settings or files by the compiler, which cause a problem in BLE?
 

Attachments

  • LogFile 27022025.txt
    19.8 KB · Views: 61
Upvote 0
Top