• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

App Inventor Unknown characters "��" received via Bluetooth Low Energy in Android Studio

AdrienBoub

Lurker
Nov 5, 2020
1
0
Good morning all,
I am working on a project to transmit data from a microchip card with Bluetooth Low Energy module (BM64 Microchip) to a mobile application developed in Android Studio.

While reading data on my phone, I notice receiving unknown characters from time to time. The characters received are sometimes good sometimes bad.

Here is an example of the data received, I send 15 and I receive: �5 or 1� and sometimes I receive 15.
upload_2020-11-5_14-54-10.png


Here is an excerpt from the code I used in C to program the sending of the data:
upload_2020-11-5_14-54-23.png


Here is an excerpt from the code I used in JAVA to program the reception of the data:
upload_2020-11-5_14-54-33.png


Can someone help me with this? I thank you in advance.
Have a nice day.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones