Skip to content

Help with SB Components GPS Hat for Raspberry Pi #173

@armysergeant1975-beep

Description

@armysergeant1975-beep

Good evening. First off I will say that I am new to the pi world and the ham world as well. I have added the following gps hat for my Pi 4B: https://shop.sb-components.co.uk/collections/hats-for-raspberry-pi/products/gps-hat-for-raspberry-pi . I didn't have any issues doing the install and it looks like it is working how it is suppose to. However, when I try to pull data I get the below error message. I have done everything that I can find for troubleshooting and cant figure it out .

BTW i am orginally from Hazlehurst Mississippi.

73
Jeff
KF0ULU

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 322, in open
self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: '/dev/ttyS0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/jeff/GPS-Hat-for-Raspberry-Pi/gps_raw_data.py", line 8, in
gps_module = serial.Serial(port='/dev/ttyS0',baudrate = 9600,parity=serial.PARITY_NONE,stopbits=serial.STOPBITS_ONE,bytesize=serial.EIGHTBITS,timeout=1)
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 244, in init
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 325, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyS0: [Errno 13] Permission denied: '/dev/ttyS0'


(program exited with code: 1)
Press return to continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions