Page 1 of 1

Connecting barcode scanner to ESP32

Posted: Tue Jun 20, 2023 8:59 am
by davide.botto
Hardware:
Board: ESP32 DevKitC
USB – TTL converter CP2102
Datalogic QuickScan QD2430

Hi,
this is my starting point: I connect the gun laser scanner to a laptop via USB, I hear a beep sound and I see one flash of the gun light. This means that the device is ready, I can read barcodes.

Then, I connect the laser scanner to an ESP32 using an USB-TTL converter with the following connections (CP2102 – ESP32):
GND --> GND (common)
RXD --> TXD
TXD --> RXD
5V --> 5V by external source
The light flashes continuosly, but the gun does not emit sound and does not read barcodes.
What is missing to get the gun scanner working?
Does it need a startup message to work properly?

Please help me.
Thank you

Re: Connecting barcode scanner to ESP32

Posted: Wed Jun 21, 2023 2:18 am
by ESP_Sprite
That's conceptually not going to work. An USB-serial chip like the CP2102 is an USB device, the laser scanner also is one. You can't generally have two devices talk to eachother.

Re: Connecting barcode scanner to ESP32

Posted: Tue Sep 26, 2023 4:16 pm
by s.bissey
Hi !

Did you find a solution ?
I have the same problem with an ESP32-S2.

Thanks