On Saturday, August 13, 2022 we will be working on the Adafruit Customer Support Forums. If you visit over the weekend and things are not complete yet, please check back later, https://adafruit.com/forumupdates
0

Hex data over BLE UART
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Hex data over BLE UART

by snailzz on Fri Jun 03, 2022 2:18 am

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.

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

Re: Hex data over BLE UART

by austin944 on Mon Jun 27, 2022 6:56 pm

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

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

Re: Hex data over BLE UART

by snailzz on Tue Jun 28, 2022 4:12 am

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

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

Re: Hex data over BLE UART

by adafruit_support_mike on Thu Jun 30, 2022 9:36 pm

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

adafruit_support_mike
 
Posts: 64984
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.