Page 1 of 1

L2Ping doesn't work with ESP32

Posted: Tue Oct 12, 2021 6:15 am
by danergo
Hi,

I'm using an ESP32 with hci_uart firmware sample found in IDF. This ESP32 is a Bluetooth co-processor attached to my old RPi1.

On the Pi, I'm using this command to bring up the hci0 interface:

Code: Select all

/usr/bin/hciattach -s 921600 /dev/ttyBT any 921600 flow
This works pretty decent, however I found a problem unfortunately:

Code: Select all

# l2ping my_notebooks_mac
...
...
CTRLC: 3 sent, 3 received, 0% loos
However, pingping my phone:

Code: Select all

# l2ping my_smartphone
Can't connect: Operation now in progress
You can think that my phone is faulty. But from another RPi (version 4, internal Bt by cypress), I can also ping the phone with l2ping.

Can you recommend me any way to debug or troubleshoot this problem? (I have access to the Debug port of ESP32 during this operation - if this matters for debug)

Thank you very much.

Re: L2Ping doesn't work with ESP32

Posted: Tue Oct 12, 2021 2:28 pm
by danergo
I'm a bit more relaxed after a reboot it started working.

I'd be interested though, what can cause this failure?

Thank you.

Re: L2Ping doesn't work with ESP32

Posted: Tue Oct 12, 2021 6:12 pm
by danergo
Guys, this is a problem in your firmware I think.

Now it's again not working, and I can make it working by issuing these commands:

Code: Select all

hciconfig hci0 down; hciconfig hci0 up;
After this, ESP32's BT starts working again as intended.

Do I have to restart the hci0 interface at every hour?

Re: L2Ping doesn't work with ESP32

Posted: Tue Oct 19, 2021 6:06 am
by danergo
Hello, could you please help me with this?
Thank you.