I'm trying to get gps data through ttyAMA0 serial port. Sometimes I could get gps data but I also get errors such as OSError Error11 resource unavailability.
It used to be working but I get errors after I changed the serial configuration through sudo raspi-config. It seems ttyAMA0 serial port is sometimes used by other process but I'm not sure which process is responsible for it.
Is there any way I could check this situation and solve this error by making ttyAMA0 serial port is only used by gps module?
My pi is rapsberry pi 2 and OS is Rasbian version 8 (Jessie).