Page 1 of 1

Hex data over BLE UART

Posted: Fri Jun 03, 2022 2:18 am
by snailzz
Hi everyone!
I am trying to setup a small and a very simple demo by retrofitting Bluetooth connectivity to an older RS485 device. I am working with BLE UART Friend board (Adafruit 2479). The idea is to send a command over BLE that will be then converted to RS485 on the UART side of the BLE Friend. The issue I am stuck with is that I need to send not a string of ASCII symbols but a hex-formatted command with STX/ETX, CRC, etc. I was trying to use Bluefruit Connect app to send data over BLE UART, but it seems that it can only accept string data as its input.
Is there any way to send hex data over BLE UART? I am quite new to this and probably missing something, sorry if it is a stupid question.

Re: Hex data over BLE UART

Posted: Mon Jun 27, 2022 6:56 pm
by austin944
You might try Nordic's UART app instead of Adafruit's app to see if it works any better:

https://www.nordicsemi.com/Products/Dev ... rf-toolbox

Re: Hex data over BLE UART

Posted: Tue Jun 28, 2022 4:12 am
by snailzz
I tried that but no luck. It has more or less the same functionality.

Re: Hex data over BLE UART

Posted: Thu Jun 30, 2022 9:36 pm
by adafruit_support_mike
Try using the .write() func tion instead of .print().