Cellular Configuration
If it is not configured, the cellular interface is presented on the interface list either by modem USB address, or if serial modem is used, by modem name. This 'fake' interface name is replaced by 'proper' interface name (e.g., ppp0) when the first modem configuration is submitted.
The cellular interface should be configured by first enabling it in the TCP/IP tab, and then setting the Cellular tab. Note that the cellular interface can only be set as WAN using DHCP. The cellular interface configuration options are described below.
Cellular Configuration
The Cellular tab contains the following configuration parameters:
-
Model: specifies the modem model.
-
Network Technology: describes the network technology used by this modem.
- HSDPA
- EVDO
-
Modem Identifier: provides a unique name for this modem.
-
Interface #: provides a unique number for the modem interface (e.g., an interface # of 0 would name the modem interface ppp0).
-
Dial String: instructs how the modem should attempt to connect. Typical dial strings are as follows:
- HSPA modem: atd*99***1#
- EVDO/CDMA modem: atd#777
-
APN: defines the modem access point name.
This parameter is mandatory for standard profiles and optional for generic ones. In the case of generic profiles, if it is left empty, the value is automatically picked up from the Mobile Broadband Provider the modem is registered to. If a value is filled, the APN value is explicitly configured.
To avoid misconfiguration issues, it is strongly recommended to set it manually.
Note
APN value configuration
A good practice is to set the interface status to Disabled and then Enable For WAN when the APN is explicitly set. NetworkManager, indeed, will fallback to the default value if a wrong APN is specified, causing misleading behaviors. This does not happen if the interface is disabled and re-enabled after APN changes.
-
Auth Type: specifies the authentication type.
- None
- Auto
- CHAP
- PAP
-
Username: supplies the username; disabled if no authentication method is specified.
-
Password: supplies the password; disabled if no authentication method is specified.
-
Modem Reset Timeout: sets the modem reset timeout in minutes. If set to a non-zero value, the modem is reset after n consecutive minutes of unsuccessful connection attempts. If set to zero, the modem keeps trying to establish a PPP connection without resetting. The default value is 5 minutes.
-
Reopen Connection on Termination: sets the persist option of the PPP daemon that specifies if PPP daemon should exit after connection is terminated. Note that the maxfail option still has an effect on persistent connections.
-
Connection Attempts Retry Delay: Sets the holdoff parameter to instruct the PPP daemon on how many seconds to wait before re-initiating the link after it terminates. This option only has any effect if the persist option (Reopen Connection on Termination) is set to true. The holdoff period is not applied if the link was terminated because it was idle. The default value is 1 second.
-
Connection Attempts: sets the maxfail option of the PPP daemon that limits the number of consecutive failed PPP connection attempts. The default value is 5 connection attempts. A value of zero means no limit. The PPP daemon terminates after the specified number of failed PPP connection attempts and restarts by the ModemMonitor thread.
-
Disconnect if Idle: sets the idle option of the PPP daemon, which terminates the PPP connection if the link is idle for a specified number of seconds. The default value is 95 seconds. To disable this option, set it to zero.
-
Active Filter: sets the active-filter option of the PPP daemon. This option specifies a packet filter (filter-expression) to be applied to data packets in order to determine which packets are regarded as link activity, and thereby, reset the idle timer. The filter-expression syntax is as described for tcpdump(1); however, qualifiers that do not apply to a PPP link, such as ether and arp, are not permitted. The default value is inbound. To disable the active-filter option, leave it blank.
-
LCP Echo Interval: sets the lcp-echo-interval option of the PPP daemon. If set to a positive number, the modem sends LCP echo request to the peer at the specified number of seconds. To disable this option, set it to zero. This option may be used with the lcp-echo-failure option to detect that the peer is no longer connected.
-
LCP Echo Failure: sets the lcp-echo-failure option of the PPP daemon. If set to a positive number, the modem presumes the peer to be dead if a specified number of LCP echo-requests are sent without receiving a valid LCP echo-reply. To disable this option, set it to zero.
GPS
The GPS tab allows the user to enable or disable the GPS module provided by the cellular modem. The available properties are:
- Enable GPS: enables GPS module for the selected modem.
- GPS Mode (generic profiles only): specifies the GPS mode.
UNMANAGED
: the GPS device of the modem will be setup but not directly managed, therefore freeing the serial port for other services to use. This can be used in order to perform the setup of the GPS and then have another service (likegpsd
) parse the NMEA strings in order to extract the position informations.MANAGED_GPS
: the GPS device of the modem will be setup and directly managed (typically by ModemManager) therefore the serial port won't be available for other services to use.
GPS modes availability
GPS modes available for the modem are dependent on the modem model, modem firmware version and ModemManager version installed on the system. Some modes may not be selectable if the modem does not support them.
For "device-specific profiles" the GPS mode is not available and implicitly set to UNMANAGED
.
Therefore, to use the GPS module provided by the cellular modem with Kura's PositionService, the following considerations should be taken into account:
- The PositionService should be enabled. Serial settings of the PositionService should not be changed; it will be redirected to the modem GPS port automatically.
- To use the
gpsd
andserial
PositionService providers with the GPS module provided by the cellular modem, the GPS mode should be set toUNMANAGED
. - To use the
modemmanager
PositionService provider with the GPS module provided by the cellular modem, the GPS mode should be set toMANAGED_GPS
.
Refer to the Position Service section for more information.
Cellular Linux Configuration
This section describes the changes applied by Kura at the Linux networking configuration. Please read the following note before proceeding with manual changes of the Linux networking configuration.
Warning
It is NOT recommended performing manual editing of the Linux networking configuration files when the gateway configuration is being managed through Kura. While Linux may correctly accept manual changes, Kura may not be able to interpret the new configuration resulting in an inconsistent state.
When the cellular configuration is submitted, Kura generates peer and chat scripts used by the PPP daemon to establish a PPP connection. Examples of these scripts for HSPA and EVDO modems are shown below.
Example Peer Script for HSPA Modem
921600
unit 0
logfile /var/log/HE910-D_2-1.5
debug
connect 'chat:v:f /etc/ppp/scripts/chat_HE910-D_2-1.5'
disconnect 'chat:v:f /etc/ppp/scripts/disconnect_HE910-D_2-1.5'
modem
lock
noauth
noipdefault
defaultroute
usepeerdns
noproxyarp
novj
novjccomp
nobsdcomp
nodeflate
nomagic
idle 95
active-filter 'inbound'
persist
holdoff 1
maxfail 5
connect-delay 1000
Example Chat Script for HSPA Modem
ABORT "BUSY"
ABORT "VOICE"
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "ERROR"
"" "+++ath"
OK "AT"
OK AT+CGDCONT=1,"IP","c1.korem2m.com"
OK "\d\d\d"
"" "atd-99---1#"
CONNECT "\c"
Example Peer Script for EVDO Modem
921600
unit 0
logfile /var/log/DE910-DUAL_1-1.5
debug
connect 'chat:v:f /etc/ppp/scripts/chat_DE910-DUAL_1-1.5'
disconnect 'chat:v:f /etc/ppp/scripts/disconnect_DE910-DUAL_1-1.5'
crtscts
lock
noauth
defaultroute
usepeerdns
idle 95
active-filter 'inbound'
persist
holdoff 1
maxfail 5
connect-delay 10000