Is it possible to control e.g. a wifi module using the hardware TX/RX pins while you at the same time have the USB cable connected to the PC and just watching the commands being transmitted from the arduino to the wifi module and vice versa on a serial monitor? I.e. you do not type any commands or such in the Serial Monitor. Just passively watching the communication for debugging purposes.
I'm playing with my Arduino uno again after some years of absence and I'm currenlty not sure if my arduino is broken or if this has never worked. In the serial console, I do see the commands transmitted from the arduino but I do not see any replies from the wifi module.
hnrkssn:
In the serial console, I do see the commands transmitted from the arduino but I do not see any replies from the wifi module.
That is exactly what you should expect
There are resistors on the RX/TX connections between ATmega328p (the "Arduino") and the ATmega16U2 (it does the USB to UART communication).
The resistors are there so that you can use the UNO's pins D0 and D1 also for serial communication with other modules but the UART to USB converter, just like you do with the wifi module.
UART is no bus, it is thought for point to point communication, but you can do some listening. And that is what you are doing. But with this wiring you can only hear one partner, in this case it is the ATmega328p, but not the other (the replies of the wifi module).