Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7d90755
drivers: sim7080: Own simcom modem driver directory
lgehreke Mar 19, 2025
41b9287
drivers: modem: Using fixed baudrate for sim7080
lgehreke Apr 9, 2025
3eb7c2e
drivers: modem: Added modem model check to sim7080 driver
lgehreke Apr 15, 2025
aef671b
drivers: modem: sim7080: own file for pdp handling
lgehreke Apr 15, 2025
b25f1bb
drivers: modem: Implemented boot modes for sim7080
lgehreke Apr 23, 2025
f9aa90a
drivers: modem: sim7080: added stop functions for network and gnss
lgehreke Apr 24, 2025
fafa93d
drivers: modem: moved sim7080 socket related urc handling to socket file
lgehreke Apr 24, 2025
48d02aa
drivers: modem: corrected sim7080 socket error codes.
lgehreke Apr 28, 2025
7ffb630
drivers: modem: sim7080: removed sleep from offload_sendmsg
lgehreke Apr 28, 2025
03e99fc
drivers: modem: fixed offload_connect for sim7080
lgehreke Apr 28, 2025
a674c79
drivers: modem: sim7080: Corrected socket send sequence.
lgehreke Apr 29, 2025
182bf53
drivers: modem: sim7080: fixed socket connect behavior
lgehreke Apr 29, 2025
b7af2f3
drivers: modem: sim7080: socket can be closed if not connected
lgehreke Apr 29, 2025
92be72f
drivers: modem: sim7080: preventing recvfrom hangup on closed socket
lgehreke Apr 29, 2025
306c286
drivers: modem: sim7080: added gpio set function
lgehreke May 6, 2025
49ff26a
drivers: modem: sim7080: added function to get iccid
lgehreke May 6, 2025
76cbd83
drivers: modem: Added battery measurement function for sim7080
lgehreke May 12, 2025
2938c5d
drivers: modem: sim7080: added function to query the modem state.
lgehreke May 12, 2025
50f544b
drivers: modem: sim7080: added command to inquire ue system information
lgehreke May 12, 2025
464c4ee
drivers: sim7080: implemented gnss xtra functionality.
lgehreke May 14, 2025
690a12a
drivers: modem: sim7080: added function to query local time
lgehreke May 20, 2025
2ba0bd4
drivers: modem: sim7080: querying xtra validity during gnss start
lgehreke May 20, 2025
d35f1ef
drivers: modem: sim7080: added force reset function.
lgehreke May 26, 2025
23723dc
drivers: modem: sim7080: Allwing ftp when networking is already active
lgehreke Aug 13, 2025
d6127eb
drivers: modem: Fixed style issues of sim7080 driver
lgehreke Aug 26, 2025
3ad5c2c
drivers: modem: sim7080: removed error label in modem_setup
lgehreke Sep 15, 2025
0868162
drivers: modem: sim7080: Added missing doxygen docu to public header.
lgehreke Oct 13, 2025
fb71e4e
drivers: modem: sim7080: Made dns timeout and retry configurable
lgehreke Oct 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions drivers/modem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ if (CONFIG_MODEM_HL7800)
zephyr_library_sources(hl7800.c)
endif()

if (CONFIG_MODEM_SIM7080)
zephyr_library_sources(simcom-sim7080.c)
endif()
add_subdirectory(simcom)

zephyr_library_sources_ifdef(CONFIG_MODEM_CELLULAR modem_cellular.c)
zephyr_library_sources_ifdef(CONFIG_MODEM_AT_USER_PIPE modem_at_user_pipe.c)
Expand Down
3 changes: 2 additions & 1 deletion drivers/modem/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ config MODEM_CMD_HANDLER
config MODEM_CMD_HANDLER_MAX_PARAM_COUNT
int "Maximum number of params parsed per command"
depends on MODEM_CMD_HANDLER
default 14 if MODEM_SIM7080
default 6
help
This option sets the maximum number of parameters which may be
Expand Down Expand Up @@ -194,6 +195,6 @@ source "drivers/modem/Kconfig.cellular"
source "drivers/modem/Kconfig.at_shell"

source "drivers/modem/Kconfig.hl7800"
source "drivers/modem/Kconfig.simcom-sim7080"
source "drivers/modem/simcom/Kconfig"

endif # MODEM
6 changes: 6 additions & 0 deletions drivers/modem/simcom/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2025 Metratec GmbH.
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
add_subdirectory_ifdef(CONFIG_MODEM_SIM7080 sim7080)
# zephyr-keep-sorted-stop
6 changes: 6 additions & 0 deletions drivers/modem/simcom/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) 2025 Metratec GmbH.
# SPDX-License-Identifier: Apache-2.0

# zephyr-keep-sorted-start
source "drivers/modem/simcom/sim7080/Kconfig"
# zephyr-keep-sorted-stop
18 changes: 18 additions & 0 deletions drivers/modem/simcom/sim7080/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (c) 2025 Metratec GmbH.
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_include_directories(${ZEPHYR_BASE}/drivers/modem)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/lib/sockets)
zephyr_library_sources(
sim7080.c
sim7080_pdp.c
sim7080_dns.c
sim7080_sock.c
sim7080_sms.c
sim7080_ftp.c
sim7080_gps.c
sim7080_meas.c
sim7080_utils.c)
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,28 @@ config MODEM_SIMCOM_SIM7080_APN
context. This value is specific to the network provider and may
need to be changed.

config MODEM_SIMCOM_SIM7080_BAUDRATE
int "Baudrate for modem UART"
default 115200
help
Set this to the baudrate the uart is using. On first startup
the modem is configured to use autobaud. The driver will then
configure the modem to use a fixed baudrate for faster startups.

config MODEM_SIMCOM_SIM7080_DNS_DEFAULT_RECOUNT
int "Retry count for a DNS query"
range 0 10
default 10
help
The number of retries for a DNS lookup

config MODEM_SIMCOM_SIM7080_DNS_DEFAULT_TIMEOUT
int "Timeout for a DNS query"
range 0 60000
default 20000
help
The timeout for DNS queries in milliseconds

choice MODEM_SIMCOM_SIM7080_RAT
bool "Radio Access Technology Mode"
default MODEM_SIMCOM_SIM7080_RAT_NB1
Expand All @@ -70,4 +92,20 @@ config MODEM_SIMCOM_SIM7080_RAT_GSM

endchoice

choice
bool "Modem Boot Type"
default MODEM_SIMCOM_SIM7080_BOOT_TYPE_NORMAL

config MODEM_SIMCOM_SIM7080_BOOT_TYPE_NORMAL
bool "Normal boot"
help
Boot the modem and attach to network

config MODEM_SIMCOM_SIM7080_BOOT_TYPE_CONSTRAINED
bool "Constrained boot"
help
Check if the modem is operational and then power off

endchoice

endif # MODEM_SIM7080
Loading