Hex data over BLE UART

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Post Reply
User avatar
snailzz
 
Posts: 2
Joined: Thu May 19, 2022 10:22 am

Hex data over BLE UART

Post 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.

User avatar
austin944
 
Posts: 8
Joined: Sun Jan 17, 2021 8:45 pm

Re: Hex data over BLE UART

Post 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

User avatar
snailzz
 
Posts: 2
Joined: Thu May 19, 2022 10:22 am

Re: Hex data over BLE UART

Post by snailzz »

I tried that but no luck. It has more or less the same functionality.

User avatar
adafruit_support_mike
 
Posts: 65026
Joined: Thu Feb 11, 2010 2:51 pm

Re: Hex data over BLE UART

Post by adafruit_support_mike »

Try using the .write() func tion instead of .print().

Post Reply
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”