Did you use engineering mode for *#801#? To get PDC working.
@astracd Yes used *#801# and enabled Full Port switch to ON.
I saw other forum posts that OnePlus has disabled access to PDC for OnePlus 5 on Android 10. So that might also be the case for not being able to use PDC.