ESP32 communication with phone via the USB cable

zazas321
Posts: 231
Joined: Mon Feb 01, 2021 9:41 am

ESP32 communication with phone via the USB cable

Postby zazas321 » Fri Nov 19, 2021 9:29 am

Hello. I have an ESP32 device and would like to communicate with it via the phone. I have downloaded the following APP on my phone:
https://play.google.com/store/apps/deta ... l=en&gl=US

I have connected one end of the USB cable to the ESP32 and the other end to the phone, I have also externally powered my ESP32 with 3.3V. Unfortunately, it does not seem to work as the app is not able to detect any serial device.

Can someone point me in the right direction. What is the correct way to acheive this?

UPDATE:
Requirements:
1. Wired communication must be working without BLE ( Do not suggest BLE serial profile )
2. There should be little to no setup required for the person. I dont have any example with the USB OTG but from what I know, it required the user to change some phone settings to get this to work. This is not good in this case. The connection should be as simple as plugging usb cable to phone and serial communication should work. Any additional hardware components if required is OK.

Jschwa36
Posts: 1
Joined: Tue Oct 25, 2022 9:47 pm

Re: ESP32 communication with phone via the USB cable

Postby Jschwa36 » Tue Oct 25, 2022 9:53 pm

Did you ever find a suitable solution?

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32 communication with phone via the USB cable

Postby chegewara » Sat Oct 29, 2022 1:33 am

My suggestion is to use esp32 S2 or S3, which have hardware USB and can work as CDC-ACM, which smartphones can detect this days.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 103 guests