@@ -57,33 +57,21 @@ config MODEM_HL78XX_12_FW_R6
5757
5858endif # MODEM_HL78XX_12
5959
60- config MODEM_HL78XX_UART_BUFFER_SIZES
61- int "The UART receive and transmit buffer sizes in bytes."
62- default 512
63-
64- config MODEM_HL78XX_CHAT_BUFFER_SIZES
65- int "The size of the buffers used for the chat scripts in bytes."
66- default 512
67-
68- config MODEM_HL78XX_USER_PIPE_BUFFER_SIZES
69- int "The size of the buffers used for each user pipe in bytes."
70- default 512
71-
72- config MODEM_HL78XX_RECV_BUF_CNT
73- int "The number of allocated network buffers"
74- default 30
75-
76- config MODEM_HL78XX_RECV_BUF_SIZE
77- int "The size of the network buffers in bytes"
78- default 128
79-
80- config MODEM_HL78XX_RX_WORKQ_STACK_SIZE
81- int "Stack size for the Sierra Wireless HL78XX driver modem driver work queue"
82- default 2048
83- help
84- This stack is used by the work queue to pass off net_pkt data
85- to the rest of the network stack, letting the rx thread continue
86- processing data.
60+ config MODEM_HL78XX_AT_SHELL
61+ bool "AT command shell"
62+ help
63+ Enable AT command shell for the modem.
64+ if MODEM_HL78XX_AT_SHELL
65+ config MODEM_AT_SHELL_RESPONSE_TIMEOUT_MS
66+ int "Timeout waiting for response to AT command in milliseconds"
67+ default 500
68+ config MODEM_AT_SHELL_COMMAND_MAX_SIZE
69+ int "Maximum size of AT command"
70+ default 32
71+ config MODEM_AT_SHELL_RESPONSE_MAX_SIZE
72+ int "Maximum size of AT response"
73+ default 64
74+ endif # MODEM_HL78XX_AT_SHELL
8775
8876choice MODEM_HL78XX_ADDRESS_FAMILY
8977 prompt "IP Address family"
@@ -719,6 +707,56 @@ config MODEM_MIN_ALLOWED_SIGNAL_STRENGTH
719707 default -140
720708 range - 140 0
721709
710+ config MODEM_HL78XX_AIRVANTAGE
711+ bool "AirVantage"
712+ help
713+ Enable HL78xx modules connect to the AirVantage DM Server over OMA
714+ Lightweight M2M protocol.
715+
716+ if MODEM_HL78XX_AIRVANTAGE
717+
718+ choice MODEM_HL78XX_AIRVANTAGE_SESSION_INITIATION
719+ prompt "AirVantage Initialization"
720+ default MODEM_HL78XX_AIRVANTAGE_HOST_INITIATED
721+ help
722+ Choose this setting to enable HL78xx modules to connect to the AirVantage DM Server.
723+ config MODEM_HL78XX_AIRVANTAGE_HOST_INITIATED
724+ bool "Host Initiated"
725+ help
726+ The host application is responsible for initiating the connection to the AirVantage server.
727+
728+ config MODEM_HL78XX_AIRVANTAGE_MODULE_INITIATED
729+ bool "Module Initiated"
730+ help
731+ The HL78xx module is responsible for initiating the connection to the AirVantage server.
732+ endchoice
733+
734+ menuconfig MODEM_HL78XX_AIRVANTAGE_USER_AGREEMENT
735+ bool "User Agreement Activation"
736+ help
737+ Activating User Agreements enables the host processor application to control the FOTA flow. For instance, the host
738+ processor application, busy fulfilling a service (e.g. car is operating, ongoing payment transaction), can decide to
739+ postpone firmware download or install operations, as accepting a firmware installation will lead the embedded
740+ module to reboot upon FOTA completion.
741+
742+ if MODEM_HL78XX_AIRVANTAGE_USER_AGREEMENT
743+ config MODEM_HL78XX_AIRVANTAGE_UA_CONNECT_AIRVANTAGE
744+ bool "Connect to AirVantage"
745+ help
746+ Module requests the user/application to connect to AirVantage
747+
748+ config MODEM_HL78XX_AIRVANTAGE_UA_DOWNLOAD_FIRMWARE
749+ bool "Download Firmware"
750+ help
751+ AirVantage requests the device to download a firmware package
752+
753+ config MODEM_HL78XX_AIRVANTAGE_UA_INSTALL_FIRMWARE
754+ bool "Install Firmware"
755+ help
756+ AirVantage requests the device to install the downloaded firmware package
757+ endif # MODEM_HL78XX_AIRVANTAGE_USER_AGREEMENT
758+ endif # MODEM_HL78XX_AIRVANTAGE
759+
722760config MODEM_HL78XX_ADVANCED_SOCKET_CONFIG
723761 bool "Advanced socket configuration"
724762 help
@@ -759,43 +797,71 @@ config MODEM_HL78XX_NUM_SOCKETS
759797 help
760798 Maximum number of sockets that can be opened at the same time
761799
800+ config MODEM_HL78XX_MAX_PDP_CONTEXTS
801+ int "Maximum number of PDP contexts"
802+ default 1
803+ range 1 1 if !MODEM_HL78XX_ADVANCED_SOCKET_CONFIG
804+ range 1 2 if MODEM_HL78XX_ADVANCED_SOCKET_CONFIG
805+ help
806+ Maximum number of PDP contexts that can be defined at the same time
807+
762808config MODEM_HL78XX_SOCKETS_SOCKOPT_TLS
763809 bool "TLS for sockets"
764810 depends on NET_SOCKETS_SOCKOPT_TLS
765811 help
766812 This option enables TLS (Transport Layer Security) for sockets
767813 on the HL78xx modem.
768814
769- config MODEM_HL78XX_LOG_CONTEXT_VERBOSE_DEBUG
770- bool "Verbose debug output in the HL78xx"
771- depends on MODEM_MODULES_LOG_LEVEL_DBG
815+ config MODEM_HL78XX_UART_BUFFER_SIZES
816+ int "The UART receive and transmit buffer sizes in bytes."
817+ default 512
818+
819+ config MODEM_HL78XX_CHAT_BUFFER_SIZES
820+ int "The size of the buffers used for the chat scripts in bytes."
821+ default 512
822+
823+ config MODEM_HL78XX_USER_PIPE_BUFFER_SIZES
824+ int "The size of the buffers used for each user pipe in bytes."
825+ default 512
826+
827+ config MODEM_HL78XX_RECV_BUF_CNT
828+ int "The number of allocated network buffers"
829+ default 30
830+
831+ config MODEM_HL78XX_RECV_BUF_SIZE
832+ int "The size of the network buffers in bytes"
833+ default 128
834+
835+ config MODEM_HL78XX_RX_WORKQ_STACK_SIZE
836+ int "Stack size for the Sierra Wireless HL78XX driver modem driver work queue"
837+ default 2048
772838 help
773- Enabling this setting will turn on VERY heavy debugging from the
774- modem. Do NOT leave on for production.
775- This setting is depends on global log level debug .
839+ This stack is used by the work queue to pass off net_pkt data
840+ to the rest of the network stack, letting the rx thread continue
841+ processing data .
776842
777- config MODEM_HL78XX_DEV_POWER_PULSE_DURATION
843+ config MODEM_HL78XX_DEV_POWER_PULSE_DURATION_MS
778844 int "Duration of the power-on pulse in milliseconds."
779845 default 1500
780846 help
781847 Trigger a power-on sequence by setting a power on GPIO pin high
782848 for a specific amount of time.
783849
784- config MODEM_HL78XX_DEV_RESET_PULSE_DURATION
850+ config MODEM_HL78XX_DEV_RESET_PULSE_DURATION_MS
785851 int "Duration of the power-reset pulse in milliseconds."
786852 default 100
787853 help
788854 Trigger a power-reset sequence by setting a reset GPIO pin high
789855 for a specific amount of time.
790856
791- config MODEM_HL78XX_DEV_STARTUP_TIME
857+ config MODEM_HL78XX_DEV_STARTUP_TIME_MS
792858 int "Wait before assuming the device is ready."
793859 default 1000
794860 help
795861 The expected time (in milliseconds) the modem needs to fully power on
796862 and become operational.
797863
798- config MODEM_HL78XX_DEV_SHUTDOWN_TIME
864+ config MODEM_HL78XX_DEV_SHUTDOWN_TIME_MS
799865 int "Wait before assuming the device is completely off."
800866 default 1000
801867 help
@@ -817,6 +883,14 @@ config MODEM_HL78XX_OFFLOAD_INIT_PRIORITY
817883 Do not mess with it unless you know what you are doing.
818884 Make sure offload init priority higher than dev init priority
819885
886+ config MODEM_HL78XX_LOG_CONTEXT_VERBOSE_DEBUG
887+ bool "Verbose debug output in the HL78xx"
888+ depends on MODEM_MODULES_LOG_LEVEL_DBG
889+ help
890+ Enabling this setting will turn on VERY heavy debugging from the
891+ modem. Do NOT leave on for production.
892+ This setting is depends on global log level debug.
893+
820894rsource "hl78xx_evt_monitor/Kconfig.hl78xx_evt_monitor"
821895
822896endif # MODEM_HL78XX
0 commit comments