CeeBee wrote:Output from uname is
4.4.21-v7+ #911 SMP
All good, your running Raspbian Jessie from about September 2016.
CeeBee wrote:my cmdline.txt is identical other than mmcblk0p7 (instead of 2) but at the end has this additionally
quiet splash plymouth.ignore-serial-consoles
which i removed, pasting here so i can copy it back.. just in case...

'mmcblk0p7' is normal if you installed Raspbian from NOOBS, or bought an SD card with Raspbian on it. As long as your Pi boots, it's fine. 'quite splash', as far as I know is to do with the PIXEL splash screen on start-up. 'plymouth.ignore-serial-consoles' also has to do with the splash screen, but I've not seen it before. It's not on any of my Pi's, so maybe best to leave it out until you get things working.
My Pi's are running headless, so I don't have much use for a splash screen.
CeeBee wrote:on reboot still no serial0 from ls /dev/tty*. i have tty~tty63, ttyAMA0, ttyS0, ttyprintk
The 'ls /dev/tty*' will only show devices in the '/dev' directory that start with the three letters "tty", that's why you are not seeing the 'serial0' entry.
CeeBee wrote:your code supplied reports 15 bytes received from both ports.
This is good, your Pi has passed a loopback test so your hardware is working properly, it also means that '/dev/serial0' exists!
It also means that you have got past the 'raspi-config' bug which removes the serial port entries in Linux.
CeeBee wrote:changed my code to include the utf8, still nothing.
This is necessary if you are working in Python3, Python2 will work without this step, but it does no harm to leave it in, as far as I know.
CeeBee wrote:changed arduino code to connect at both 9600 and 115200, changed python code to suit. nada at either speed, it connected but no characters are sent or received.
I would recommend that you set 9600 baud on all devices for troubleshooting, once you get things working you can wind up the speed.
CeeBee wrote:when i run your code with my arduino plugged it it does not report a fail, but reports incorrect characters received back.
The actual error message is important here, if the code returns:
Code: Select all
Received incorrect data over Serial port /dev/serial0
it means that NO data was received on the serial port within the 2 second time out period, but if it returns something like:
Code: Select all
Received incorrect data sheiv50375kk over Serial port /dev/serial0
it means that 12 corrupted bytes of data was received, instead of the expected 15 byte test string.
I plan on hooking up an Arduino to my Pi later on today to test your code snippets, I'll report on this later today.
Dave.