1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

Discussion in 'Android Development' started by AdrienBoub, Nov 5, 2020.

  1. AdrienBoub

    AdrienBoub Lurker
    Thread Starter

    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.
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...