This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Have anyone got BLE Mini (RedBearLab) working on TM4C device?

Hi,

I'm trying to get the BLE Mini BlueTooth breakout working on the TM4C123G Lpad. There seem to be no libraries for the BLE Mini on TM4C. However, since they are connected using UART protocol, is it possible to transmit strings between the Lpad and TM4C? I need some clues. 

Thank you,

Bill

  • By the way, here's the website for BLE Mini: http://redbearlab.com/blemini/
  • Hello Bill,

    There is no BLE mini library for sure. It is absolutely possible do transmit strings over UART on both LPad and TM4C. I know there is a new reference design for BLE coming soon but not sure it would be BLE mini

    Regards
    Amit
  • Bill Wang61 said:
    is it possible to transmit strings between the Lpad and TM4C? I need some clues. 

    So might we!   Is not the TM4C "resident" upon the LPad?   (if so - what's the point?)

    Usually - but not always - such, "UART to UART" transactions follow the past, "Command-Control" protocol in which one device requests a response from the other.   On such, "over the air" hook-up you must be careful not to "overwhelm" the receiver with, "too much and/or too rapid" a data transmission.   (as it's unlikely that a CTS/RTS {added} signal channel is employed)

    Of all the BLE devices appearing - might you reveal how this one was chosen?

  • Thanks for your replies. In the end I did manage to transmit some strings, I connected the module to a UART port and used putChar() function, and some result is received from the RBL android app. Thanks!
  • Thank you - yet might you reveal "How" you chose that particular BLE device? (surely others - beyond my firm - are interested...)
  • Hi. I did not do a lot of research on BLE devices, but one simple reasons is that this RBL BLE Mini has an android/IOS app ready to use, which came in handy.
  • Thanks for that - and good for you.

    May we assume that your "android App" enables you to transact w/cells or tablets?   Is this what you've done?    And - if so - have you tried to exchange more than 16 bytes of data?    Have you tried "both ways" does that work - robustly?

    To complete my torment - have you made the time to attempt any "range" (line of sight) measurements?   (usually of most value if performed w/NO blocking objects between devices...)

    Again - merci et bon chance...

  • Hi cb1-,

    Thanks for your message. I have not tried exactly with 16 bytes of data. However, they seem to be able to perform a "duplex" communication through the UART. The RBL app on android has a built in "UART terminal " which sends characters to the BLE device, and tm4c is able to print those to the computer UART console, and when I type on the computer UART console, the android terminal would be able to receive the characters. Judging from my eye, they can exchange characters at quite a high speed.

    Best,
    Bill
  • Hi Bill,

    Would it be possible for you to share your code. I'm trying to figure out the exact same thing.

    Thanks,
    Blane
  • Hi. Here contains the setup code for the UART: github.com/.../ble_mini.c
    You could connect the TX/RX and transmit characters to/from a cellphone using:

    while(UARTCharsAvail(UART1_BASE)){
    receiveChar=UARTCharGetNonBlocking(UART1_BASE);
    UARTCharPutNonBlocking(UART0_BASE, receiveChar);
    }
    while(UARTCharsAvail(UART0_BASE)){
    sendChar=UARTCharGetNonBlocking(UART0_BASE);
    UARTCharPutNonBlocking(UART1_BASE, sendChar);
    }

    Hope that works!