Skip to content

Commit

Permalink
ADD: GNSS Driver for U-BLOX M10 & Support for UBX Messages
Browse files Browse the repository at this point in the history
MODEM_UBX: Adds Support for UBX Messages in Modem Subsystem.

GNSS API Supported:
	get_supported_systems, get_enabled_systems, set_enabled_systems,
	u_blox_m10_set_navigation_mode, u_blox_m10_get_navigation_mode.

Boards Tested: MIMXRT1062_FMURT6, VMU_RT1170.

Note: Partial support for U-BLOX Messages is provided as of now.

Signed-off-by: Sumit Batra <sumit.batra@nxp.com>
Signed-off-by: Mayank Mahajan <mayankmahajan.x@nxp.com>
  • Loading branch information
mayankmahajan-nxp committed Mar 6, 2024
1 parent d8072a9 commit e28e0f8
Show file tree
Hide file tree
Showing 16 changed files with 2,230 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gnss/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ zephyr_library_sources_ifdef(CONFIG_GNSS_NMEA0183 gnss_nmea0183.c)
zephyr_library_sources_ifdef(CONFIG_GNSS_NMEA0183_MATCH gnss_nmea0183_match.c)
zephyr_library_sources_ifdef(CONFIG_GNSS_NMEA_GENERIC gnss_nmea_generic.c)
zephyr_library_sources_ifdef(CONFIG_GNSS_QUECTEL_LCX6G gnss_quectel_lcx6g.c)
zephyr_library_sources_ifdef(CONFIG_GNSS_U_BLOX_M10 gnss_u_blox_m10.c)
zephyr_library_sources_ifdef(CONFIG_GNSS_U_BLOX_PROTOCOL
gnss_u_blox_protocol/gnss_u_blox_protocol.c)
6 changes: 6 additions & 0 deletions drivers/gnss/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,17 @@ config GNSS_INIT_PRIORITY
help
Driver initialization priority for GNSS drivers.

config GNSS_U_BLOX_PROTOCOL
bool "GNSS U-BLOX protocol"
help
Enable gnss u-blox protocol.

module = GNSS
module-str = gnss
source "subsys/logging/Kconfig.template.log_config"

rsource "Kconfig.generic"
rsource "Kconfig.quectel_lcx6g"
rsource "Kconfig.u_blox_m10"

endif
29 changes: 29 additions & 0 deletions drivers/gnss/Kconfig.u_blox_m10
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0

config GNSS_U_BLOX_M10
bool "U-BLOX M10 GNSS Module"
default y
depends on GNSS
depends on DT_HAS_U_BLOX_M10_ENABLED
select MODEM_MODULES
select MODEM_BACKEND_UART
select MODEM_CHAT
select MODEM_UBX
select GNSS_PARSE
select GNSS_NMEA0183
select GNSS_NMEA0183_MATCH
select GNSS_U_BLOX_PROTOCOL
select UART_USE_RUNTIME_CONFIGURE
help
Enable U-BLOX M10 GNSS modem driver.

config GNSS_U_BLOX_M10_SATELLITES_COUNT
int "Maximum satellite count"
depends on GNSS_SATELLITES
default 24
help
Maximum number of satellite that the driver that can be decoded from
the GNSS device. This does not affect the number of devices that the
device is actually tracking, just how many of those can be reported
in the satellites callback.
Loading

0 comments on commit e28e0f8

Please sign in to comment.