Использование GPS-модуля NEO-M8N-0-10 с Raspberry Pi 4 под управлением Ubuntu 18.04.
Как указано в этом руководстве: https://circuitdigest.com/microcontroller-projects/raspberry-pi-3-gps-module-interfacing
Я отключил Bluetooth, изменил файл config.txt и cmdline.txt в моей папке / boot / firmware. Они включены ниже.
Однако, когда я запускаю "sudo cat / dev / ttyAMA0" на терминале, я вижу только данные gibberi sh. Я перепробовал все скорости передачи и установил соответствующие биты четности, указанные в руководстве к модулю Neo M8 (https://www.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_ (UBX-13003221) _Publi c .pdf ), изменив их с помощью "sudo stty -F / dev / ttyAMA0 9600 (или другие скорости) cs8 -cstopb -parenb "
Пример полученных данных также можно увидеть на рисунке ниже.
config.txt
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=spi=on
#dtparam=i2s=on
dtparam=i2c_arm=on
#dtparam=i2c1=on
#dtparam=i2c0=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
arm_64bit=1
#device_tree_address=0x03000000
[all]
#dtoverlay=vc4-fkms-v3d
start_x=1
gpu_mem=128
enable_uart=1
dtoverlay=disable-bt
core_freq=250
enable_uart=1
force_turbo=1
cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
Пример того, что отображается, когда "sudo cat / dev / ttyAMA0 "работает