Using ESP32-WROOM/WROVER with RPi
Posted: Fri Aug 06, 2021 3:05 pm
Guys,
I'm using currently RPi4's integrated BT module (by Cypress) to communicate with other BT devices via Classic and also BLE connections.
However I'm thinking on moving towards ESP32, and I'd like you to confirm my assumptions if ESP32 is able to do my goals.
Basically I'm using "hcitool", "l2ping" and "gatttool" with my current setup.
Can I do the same with ESP32? How can I attach ESP32 to RPi? Only via USB? Or also via UART? (Keeping in mind that ESP32 needs to provide the above requirements)
Basically I need to do (in C):
and
Please confirm that (how) I can use the above system calls with ESP32. I mean how shall I attach it to RPi, and what software shall I load into ESP32 to reach those functionalities?
Thank you.
I'm using currently RPi4's integrated BT module (by Cypress) to communicate with other BT devices via Classic and also BLE connections.
However I'm thinking on moving towards ESP32, and I'd like you to confirm my assumptions if ESP32 is able to do my goals.
Basically I'm using "hcitool", "l2ping" and "gatttool" with my current setup.
Can I do the same with ESP32? How can I attach ESP32 to RPi? Only via USB? Or also via UART? (Keeping in mind that ESP32 needs to provide the above requirements)
Basically I need to do (in C):
Code: Select all
socket(PF_BLUETOOTH, SOCK_RAW | SOCK_NONBLOCK, BTPROTO_L2CAP);
Code: Select all
socket(PF_BLUETOOTH, SOCK_SEQPACKET | SOCK_NONBLOCK, BTPROTO_L2CAP);
Thank you.