I occasionally get this error when trying to run a heyu command from CLI. This should fix your problem:

(As root)

chmod 777 /dev/ttyS0