Issue
I'm new to raspberry pi, and I have a raspberry pi 4. I'm trying to read gps data from RX-TX pins, but it prints nothing. I'm using: sudo cat /dev/ttyAMA0
This command should print the data coming from the GPS module, but it prints nothing. I've searched trough all youtube and web for tutorials and solutions but found nothing. Everyone using pi 3.
People are changing the cmdline.txt from original to: dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-console
I tried both with the original file and with this lines replaced, nothing happened.
I have enabled the UART from config. The GPS module is "Ublox Neo 7M"
Thanks.
Solution
I solved this problem via formatting the SD card.
For those who will read this post later: If you have a Raspberry pi 4; DO NOT change the cmdline.txt file, as shown in many tutorials made with Pi 3. It's not necessary. Connect the RX pin on module to TX pin on Pi, and TX to RX. Finally; first check id the data coming to Pi with terminal, not on python code that using serial library.
Answered By - CingirakliDumbelek Answer Checked By - Cary Denson (WPSolving Admin)