Serial - Send a character - Raspberry Pi Forums


is there way of sending character in ascii, down uart transmit (pin 14)?
thought use jumper between transmit , receive lines on pi whilst doing this. i'm hoping write short program in way. want able put scope on whilst program running see if works.

managed when switching gpio pins high low on loop need try figure out above.

suggestions?

the uart /dev/ttyama0, if write transmitted.

pi user doesn't have write permissions port default, use sudo, add pi tty group or change permissions on device.

code: select all

sudo sh -c 'echo -n "h" >/dev/ttyama0' # send ascii character "h" serial port (no cr or nl) 


raspberrypi



Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support