Hi Tom,
After your help, and a bit of forehead on wall thumping I finally figured out my problem. The permissions for the serial port I am using /dev/ttyAMA0 on my RPi2 were:
crw--w---- 1 root tty 204, 64 Nov 26 11:57 /dex/ttyAMA0
and my user was a member of the tty group and not the owner. So it could not read from the port.
My previous attempts to communicate all worked because I was issuing the commands using sudo (duh).
So I have fixed the permission issue by changing the group of ttyAMA0 using the command:
sudo systemctl mask serial...@ttyAMA0.service
so that the port is now a member of the dialout group which has the proper permissions for the port and my user is also a member of this group.
crw--w---- 1 root dialout 204, 64 Nov 26 11:58 /dex/ttyAMA0
Not sure why the permissions are set this way but my RPi2 is about 6 years old now, and the RPi OS & hardware in use today have evolved significantly as has the need for better security. These combined with my infrequent use of Linux all bit me in the back side.
Again thanks!