Connecting barcode scanner to ESP32

davide.botto
Posts: 1
Joined: Tue Jun 20, 2023 8:55 am

Connecting barcode scanner to ESP32

Postby davide.botto » Tue Jun 20, 2023 8:59 am

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

ESP_Sprite
Posts: 9724
Joined: Thu Nov 26, 2015 4:08 am

Re: Connecting barcode scanner to ESP32

Postby ESP_Sprite » Wed Jun 21, 2023 2:18 am

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.

s.bissey
Posts: 2
Joined: Tue Sep 26, 2023 4:14 pm

Re: Connecting barcode scanner to ESP32

Postby s.bissey » Tue Sep 26, 2023 4:16 pm

Hi !

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

Thanks

Who is online

Users browsing this forum: No registered users and 106 guests