where do you have the CP2102 connected? It sounds to me like you may need to use the SW _TX (8) and SW_RX (7) Pins, but your code is changing these to 10 and 11
From my understanding, the UNO-R4 has 2 hardware serials which solves this issue. Check out this other thread regarding this topic -