Search found 9 matches

by jsuffolk
Tue Jun 08, 2021 1:01 pm
Forum: ESP-IDF
Topic: ESP HCI over UART0
Replies: 0
Views: 2083

ESP HCI over UART0

I'm using an ESP32 with HCI with bluetooth classic RFCOMM via pybluez on a separate microcontroller (Jetson Nano). I only connected UART0 on the ESP32 device to the host microcontroller so I can reflash the device from the microcontroller. I've configured as H4 in menuconfig and disabled dual mode. ...
by jsuffolk
Sun Oct 04, 2020 3:31 am
Forum: ESP-IDF
Topic: HCI not working in ESP-IDF 4.1
Replies: 2
Views: 3387

Re: HCI not working in ESP-IDF 4.1

Turns out was my mistake - my old code was compiled with a baudrate of 115200 rather than 921600, I had tried to increase it and realized I couldn't get it to work. In any case. I did get it to work with the 921600 baud by using hciattach with noflow (no hardware flow control) instead of btattach (w...
by jsuffolk
Sat Oct 03, 2020 2:32 am
Forum: ESP-IDF
Topic: HCI not working in ESP-IDF 4.1
Replies: 2
Views: 3387

HCI not working in ESP-IDF 4.1

I have an application using the ESP32 as a bluetooth coprocessor connected to a Raspberry PI compute module. I connected it over UART0, so I did a pin remapping, and have been having some success on ESP-IDF v4 and have been able to connect and send quite a bit of data back and forth over RFCOMM. How...
by jsuffolk
Fri Aug 16, 2019 12:46 pm
Forum: ESP-IDF
Topic: ESP32 UART HCI RFCOMM
Replies: 1
Views: 3569

Re: ESP32 UART HCI RFCOMM

Update: I tried using the Android hack for connecting directly using a channel ID rather than a UUID (essentially skipping the SDP lookup), and this resulted in the same error - suggesting that the problem is with the actual connection rather than the SDP lookup. After trying a few more things I swi...
by jsuffolk
Thu Aug 15, 2019 3:09 am
Forum: ESP-IDF
Topic: ESP32 UART HCI RFCOMM
Replies: 1
Views: 3569

ESP32 UART HCI RFCOMM

I'm trying to use the ESP32 as a bluetooth coprocessor for a raspberry pi compute module using HCI. It seemed like everything was working, but then hit a last minute snag that I can't find a solution for. The device is able to successfully pair with the Android cell phone that I'm trying to use as t...
by jsuffolk
Sat Aug 10, 2019 1:59 am
Forum: ESP-IDF
Topic: UART HCI Mode with UART0
Replies: 4
Views: 7528

Re: UART HCI Mode with UART0

Found the issue. RTS/CTS were reversed and the host controller settings weren't quite right. All is working now, thanks for your help
by jsuffolk
Thu Aug 08, 2019 2:39 am
Forum: ESP-IDF
Topic: UART HCI Mode with UART0
Replies: 4
Views: 7528

Re: UART HCI Mode with UART0

Tried this, still having no luck. I'm not sure whether the issue is my ESP32 logic to change the pins or the setup on my host controller. In any case I was able to successfully flash the ESP32 over UART0, I used a modified version of the controller_hci_uart example. I used the following code to atte...
by jsuffolk
Fri Jul 26, 2019 1:30 am
Forum: ESP-IDF
Topic: UART HCI Mode with UART0
Replies: 4
Views: 7528

Re: UART HCI Mode with UART0

Great idea - I'll try this and report back if it works
by jsuffolk
Wed Jul 24, 2019 10:35 pm
Forum: ESP-IDF
Topic: UART HCI Mode with UART0
Replies: 4
Views: 7528

UART HCI Mode with UART0

Is it possible to use UART0 for UART HCI? I'm trying to use a ESP32-WROOM as a bluetooth coprocessor for a raspberry pi. On the PCB there is only one UART connection between the pi host and the ESP32, on UART0, similar to the example shown here: https://lb.raspberrypi.org/forums/viewtopic.php?t=1836...