L2Ping doesn't work with ESP32

danergo
Posts: 17
Joined: Fri Aug 06, 2021 2:50 pm

L2Ping doesn't work with ESP32

Postby danergo » Tue Oct 12, 2021 6:15 am

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.

danergo
Posts: 17
Joined: Fri Aug 06, 2021 2:50 pm

Re: L2Ping doesn't work with ESP32

Postby danergo » Tue Oct 12, 2021 2:28 pm

I'm a bit more relaxed after a reboot it started working.

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

Thank you.

danergo
Posts: 17
Joined: Fri Aug 06, 2021 2:50 pm

Re: L2Ping doesn't work with ESP32

Postby danergo » Tue Oct 12, 2021 6:12 pm

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?

danergo
Posts: 17
Joined: Fri Aug 06, 2021 2:50 pm

Re: L2Ping doesn't work with ESP32

Postby danergo » Tue Oct 19, 2021 6:06 am

Hello, could you please help me with this?
Thank you.

Who is online

Users browsing this forum: No registered users and 323 guests