Error: Permission denied, cannot open /dev/ttyr0

That is not a valid path in linux:
dialout/dev/ttyr0 is correct!