Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

USB to TTL using CP2102 module

alpha91

Full Member level 3
Joined
Sep 23, 2011
Messages
168
Helped
1
Reputation
2
Reaction score
2
Trophy points
1,298
Activity points
2,624
Hi all, good day.
I am designing a python application running in Raspberry Pi which send out serial message to print on embedded thermal printer.
the communication is using USB to TTL module (CP2102 chip).
currently my application able to print successfully, but there is one issue is, if the USB to TTL serial is connected to my Raspberry Pi USB since switch ON, it will print out a bunch of weird character.
However, if i remove the USB TTL module and plug in again, everything is fine, it able to print nicely.
Does anyone know what is going on?
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
5,075
Helped
1,108
Reputation
2,228
Reaction score
1,099
Trophy points
1,393
Location
California, USA
Activity points
27,813
First of all, the CP2102 is USB to UART(not TTL). USB defines a communication protocol; TTL defines logic levels.

It's not clear what you're connecting to your printer, or what protocol your printer uses. But it's pretty obvious that you don't need the converter since without it everything works, right? What made you think you needed it? Does your printer require USB? I suspect not.

Without more information from you, it's hard to tell what's going on.
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top