Arduino failing loopback test despite working perfectly otherwise

"@kprims, nonsense! Loopback test works on every serial communication."

@septillion, It may be nonsense to you, but after testing 6 different Uno's with the ch340g chip I come up with that same problem.

An atmega 2560 with the same chip works fine on the loopback test.

My failures were just like Post #9.

https://forum.arduino.cc/index.php?topic=351099.0

IDE 1.8.3
Linux Mint 18.2

I have no problems loading sketches and using the serial port.

I tried the loopback test because of the OP and was surprised to find loopback wasn't working on smd clone uno's.

I used a USB 3 port as well as a USB 2 port and three different cables.

Used a different Linux computer and still the same result with the ch340g chip failing.

This thread seems to talk about a problem using loopback on ch340g Uno's.

More information on Nano's with ch340g.

"On the nano clones I have this test was a little more involved. It didn't simply work with a couple jumper wires like the mega did. The Nano clones I have use the ch340g USB/serial converter. I did find that shorting the pins directly at the ch340g worked, so I figured there must be something in the circuit making the loopback test not work. I couldn't find a schematic for this clone board, but a little poking around with a meter showed that the TX and RX pads from the ch340g were connected to the RX/TX pins of the 328P with a 1 k-ohm resistor in each line just like the 16U on genuine boards. However, the 16U has separate pads to power the indicator LED's. On the ch340g, the LED indicator lamps were being powered from the TX/RX lines with an LED and 1k-ohm resistor. I suspected that the LED/resistor circuit might be pulling just enough power that just shorting the TX and RX pins together wouldn't work. So, out came my pocket knife and I broke the TX and RX LED's off to eliminate that circuit. It worked and the loopback test was working."