Hey I am trying to work with the serial port of my raspberry pi model 2B with a raspbian jesse OS. I have disabled the serial login shell over serial in the advanced options. I have enabled uart in the config.txt. However I am noticing that my dmseg command is not working, and I do not have access to ttySX ports or ttyUSB ttyAMA ports. Can someone explain this to me?
When I type dmseg | grep tty, it says dmseg: command not found.
If I cannot write serially to these ports is there a way I can add the missing ports, because when I look through the boot/cmdline.txt I see console = serial0, 115200 console = tty1. What are these consoles? I appreciate any help.
The program i am running is
import serial port = serial.Serial("/dev/tty1", baudrate=115200, timeout=3.0) while True: port.write("\r\nSay something:") rcv = port.read(10) port.write("\r\nYou sent:" + repr(rcv))