Difference between revisions of "LTE Data"
(Created page with "= How to Set Up GPRS Data on IPLOG-GAMA G3 = By default, the use of LTE mobile data for IPLOG-GAMA G3 is '''enabled'''. In the most cases, therefore, it is not necessary to ch...") |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
= How to Set Up GPRS Data on IPLOG-GAMA G3 = | = How to Set Up GPRS Data on IPLOG-GAMA G3 = | ||
− | By default, the use of LTE mobile data for IPLOG-GAMA G3 is '''enabled'''. In the most cases, therefore, it is not necessary to change default configuration. | + | <font color="red" size="+1">By default, the use of LTE mobile data for IPLOG-GAMA G3 is '''enabled'''. In the most cases, therefore, it is not necessary to change default configuration. Usually only if APN configuration needs to be changed. </font> |
== Check the Mobile Connection == | == Check the Mobile Connection == | ||
Type command: | Type command: | ||
− | {{NotePre | + | {{NotePre|text=root@iplog:~# ifconfig wwan0 |
− | |text=root@iplog:~# ifconfig wwan0 | ||
}} | }} | ||
If mobile connection is '''active''' you will see similar output: | If mobile connection is '''active''' you will see similar output: | ||
− | {{NotePre | + | {{NotePre|text= |
− | |text= | ||
wwan0 Link encap:Ethernet HWaddr AE:C9:12:92:2C:81 | wwan0 Link encap:Ethernet HWaddr AE:C9:12:92:2C:81 | ||
inet addr:100.106.91.142 Bcast:100.106.91.255 Mask:255.255.255.0 | inet addr:100.106.91.142 Bcast:100.106.91.255 Mask:255.255.255.0 | ||
Line 23: | Line 22: | ||
{{Note|NoteText= | {{Note|NoteText= | ||
− | It's important that a line with an assigned IP address is present in the output. (Example: '''inet addr:100.106.91.142 Bcast:100.106.91.255 Mask:255.255.255.0''' | + | It's important that a line with an assigned IP address is present in the output. (Example: '''inet addr:100.106.91.142 Bcast:100.106.91.255 Mask:255.255.255.0''') |
}} | }} | ||
− | In the case any | + | In the case of any errors occurs, for example: |
+ | {{NotePre | ||
+ | |text= | ||
ifconfig: wwan0: error fetching interface information: Device not found | ifconfig: wwan0: error fetching interface information: Device not found | ||
− | + | }} | |
+ | Please follow the next chapters: | ||
+ | |||
+ | [[LTE Data#Enable Automatic LTE Mobile Data Connection|Enable Automatic LTE Mobile Data Connection]] | ||
+ | |||
+ | [[LTE Data#APN Access Point Setting|APN Access Point Setting]] | ||
+ | |||
+ | [[PIN_Check|PIN Check]] | ||
− | == | + | == Disable LTE Mobile Data Connection == |
=== Disable LTE Connection === | === Disable LTE Connection === | ||
Line 39: | Line 47: | ||
==== 1. Backup ==== | ==== 1. Backup ==== | ||
− | It is recommended backup | + | It is recommended to backup startup script '''S41lte''' before remove to have the posibility to enable it again. |
− | {{NotePre | + | {{NotePre|text=root@iplog:~# cp /etc/init.d/S41lte /etc/init.d/K41lte |
− | |text=root@iplog:~# cp /etc/init.d/S41lte /etc/init.d/K41lte | ||
}} | }} | ||
==== 2. Disable ==== | ==== 2. Disable ==== | ||
− | Deleting file S41lte will disable automatic connection. | + | Deleting the file S41lte will disable the automatic connection. |
− | {{NotePre | + | {{NotePre|text=root@iplog:~# rm /etc/init.d/S41lte |
− | |text=root@iplog:~# rm /etc/init.d/S41lte | ||
}} | }} | ||
Line 55: | Line 61: | ||
− | == Manual Connection/Disconnection of LTE Mobile Data. | + | == Manual Connection/Disconnection of LTE Mobile Data. == |
=== Connecting === | === Connecting === | ||
− | {{NotePre | + | {{NotePre|text=root@iplog:~# /etc/init.d/S41lte start |
− | |text=root@iplog:~# /etc/init.d/S41lte start | ||
}} | }} | ||
=== Disconnecting === | === Disconnecting === | ||
+ | |||
+ | {{NotePre|text=root@iplog:~# /etc/init.d/S41lte stop | ||
+ | }} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | == APN Access Point Setting == | ||
+ | Most mobile operators use the LTE access point called '''internet'''. This is a default setting and nothing needs to be changed if your mobile operator uses the same APN name. In other countries, GSM network settings may be different. Therefore, we are introducing a simple way to change the APN configuration. | ||
+ | |||
+ | === 1. Edit Configuration File === | ||
+ | Open the '''/etc/mbim-network.conf''' file in the text editor '''Vim'''. | ||
{{NotePre | {{NotePre | ||
− | |text=root@iplog:~# | + | |text=root@iplog:~# vi /etc/mbim-network.conf |
}} | }} | ||
+ | Default configuration where the word "internet" is a APN name. | ||
+ | {{NotePre|text= | ||
+ | APN=internet | ||
+ | PROXY=yes | ||
+ | }} | ||
+ | === 2. Parameters === | ||
+ | The APN being used should be configured in this file, in the following way (e.g. assuming APN is called 'internet') | ||
+ | {{NotePre|text=APN=internet | ||
+ | }} | ||
− | + | Optional APN user/password strings may be given in the following way: | |
− | |||
− | + | {{NotePre|text=APN_USER=user | |
− | |||
− | |||
− | |||
− | |||
− | APN_USER=user | ||
APN_PASS=password | APN_PASS=password | ||
− | + | }} | |
− | APN_AUTH=protocol | + | |
− | + | If the APN user/password is specified, the authentication protocol to use (one of PAP, CHAP or MSCHAPV2) must also be specified in the following way: | |
− | PROXY=yes | + | |
− | </ | + | {{NotePre|text=APN_AUTH=protocol |
+ | }} | ||
+ | |||
+ | Another important line for proper operation is as follows: | ||
+ | {{NotePre|text=PROXY=yes | ||
+ | }} | ||
+ | |||
+ | {{Tip|TipText= <br/> | ||
+ | Text editing - Hit the '''i''' (insert mode).<br/> | ||
+ | Save and Exit - Write charakters ''':wq''' (write and quit). The cursor will move to the bottom of the screen whenever a colon (:) is typed. This type of command is completed by hitting the '''Enter''' key. }} | ||
+ | |||
+ | === 3. Device Reboot === | ||
+ | It is strongly recommended to do a reboot. | ||
+ | {{NotePre | ||
+ | |text=root@buildroot:~# reboot | ||
+ | }} | ||
+ | |||
+ | |||
+ | |||
+ | |||
− | + | == Enable Automatic LTE Mobile Data Connection == | |
− | + | You need to have the startup script '''/etc/init.d/S41lte''' in the file system. This file is factory-created. If it is not, make sure that the '''/etc/init.d/K41lte''' backup file exists. If so, simply copy and rename the file, then type the command "reboot". | |
− | root@ | + | |
− | + | {{NotePre|text=root@buildroot:~# cp /etc/init.d/K41lte /etc/init.d/S41lte | |
+ | }} | ||
+ | {{NotePre|text=root@buildroot:~# reboot | ||
+ | }} | ||
+ | |||
+ | Otherwise, if none of the above files exists, you must manually create it. | ||
+ | 1. Create the file as '''root''' user. | ||
+ | {{NotePre|text=root@iplog:~# touch /etc/init.d/S41lte | ||
+ | }} | ||
+ | 2. Change access rights. | ||
+ | {{NotePre|text=root@iplog:~# chmod 755 /etc/init.d/S41lte | ||
+ | }} | ||
− | |||
− | + | 3. Open the '''/etc/init.d/S41gprs''' file in the text editor '''Vim'''. | |
− | + | {{NotePre|text=root@iplog:~# vi /etc/init.d/S41lte | |
+ | }} | ||
− | + | ||
− | + | 4. Paste the following contents: | |
− | + | <syntaxhighlight lang="shell" line="1"> | |
− | |||
− | |||
− | |||
− | |||
#!/bin/sh | #!/bin/sh | ||
# | # | ||
Line 157: | Line 203: | ||
#end-of-file | #end-of-file | ||
− | </syntaxhighlight> | + | </syntaxhighlight> |
+ | {{Tip|TipText= <br/> | ||
+ | Text editing - Hit the '''i''' (insert mode).<br/> | ||
+ | Save and Exit - Write charakters ''':wq''' (write and quit). The cursor moves to bottom of screen whenever a colon (:) is typed. This type of command is completed by hitting the '''Enter''' key. }} | ||
+ | 5. Device Reboot. | ||
+ | {{NotePre | ||
+ | |text=root@buildroot:~# reboot | ||
+ | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 6. Check the connection. | |
− | + | [[LTE Data#Check the Mobile Connection|How to Check the Mobile Connection]] | |
− | |||
− | |||
− | |||
− |
Latest revision as of 09:49, 14 June 2019
Contents
How to Set Up GPRS Data on IPLOG-GAMA G3
By default, the use of LTE mobile data for IPLOG-GAMA G3 is enabled. In the most cases, therefore, it is not necessary to change default configuration. Usually only if APN configuration needs to be changed.
Check the Mobile Connection
Type command:
root@iplog:~# ifconfig wwan0
If mobile connection is active you will see similar output:
wwan0 Link encap:Ethernet HWaddr AE:C9:12:92:2C:81 inet addr:100.106.91.142 Bcast:100.106.91.255 Mask:255.255.255.0 UP BROADCAST RUNNING NOARP MULTICAST MTU:1428 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:56 (56.0 B)
Note: It's important that a line with an assigned IP address is present in the output. (Example: inet addr:100.106.91.142 Bcast:100.106.91.255 Mask:255.255.255.0)
In the case of any errors occurs, for example:
ifconfig: wwan0: error fetching interface information: Device not found
Please follow the next chapters:
Enable Automatic LTE Mobile Data Connection
Disable LTE Mobile Data Connection
Disable LTE Connection
To disable the automatic mobile data connection after boot, perform the following sequence of commands as root user.
1. Backup
It is recommended to backup startup script S41lte before remove to have the posibility to enable it again.
root@iplog:~# cp /etc/init.d/S41lte /etc/init.d/K41lte
2. Disable
Deleting the file S41lte will disable the automatic connection.
root@iplog:~# rm /etc/init.d/S41lte
Manual Connection/Disconnection of LTE Mobile Data.
Connecting
root@iplog:~# /etc/init.d/S41lte start
Disconnecting
root@iplog:~# /etc/init.d/S41lte stop
APN Access Point Setting
Most mobile operators use the LTE access point called internet. This is a default setting and nothing needs to be changed if your mobile operator uses the same APN name. In other countries, GSM network settings may be different. Therefore, we are introducing a simple way to change the APN configuration.
1. Edit Configuration File
Open the /etc/mbim-network.conf file in the text editor Vim.
root@iplog:~# vi /etc/mbim-network.conf
Default configuration where the word "internet" is a APN name.
APN=internet PROXY=yes
2. Parameters
The APN being used should be configured in this file, in the following way (e.g. assuming APN is called 'internet')
APN=internet
Optional APN user/password strings may be given in the following way:
APN_USER=user APN_PASS=password
If the APN user/password is specified, the authentication protocol to use (one of PAP, CHAP or MSCHAPV2) must also be specified in the following way:
APN_AUTH=protocol
Another important line for proper operation is as follows:
PROXY=yes
Tip:
Text editing - Hit the i (insert mode).
Save and Exit - Write charakters :wq (write and quit). The cursor will move to the bottom of the screen whenever a colon (:) is typed. This type of command is completed by hitting the Enter key.
3. Device Reboot
It is strongly recommended to do a reboot.
root@buildroot:~# reboot
Enable Automatic LTE Mobile Data Connection
You need to have the startup script /etc/init.d/S41lte in the file system. This file is factory-created. If it is not, make sure that the /etc/init.d/K41lte backup file exists. If so, simply copy and rename the file, then type the command "reboot".
root@buildroot:~# cp /etc/init.d/K41lte /etc/init.d/S41lte
root@buildroot:~# reboot
Otherwise, if none of the above files exists, you must manually create it.
1. Create the file as root user.
root@iplog:~# touch /etc/init.d/S41lte
2. Change access rights.
root@iplog:~# chmod 755 /etc/init.d/S41lte
3. Open the /etc/init.d/S41gprs file in the text editor Vim.
root@iplog:~# vi /etc/init.d/S41lte
4. Paste the following contents:
#!/bin/sh
#
# Starts the LTE
#
NAME=lte
PREFIX=/usr/bin
START_DAEMON=${PREFIX}/${NAME}_always_on
STOP_SCRIPT=${PREFIX}/${NAME}_off
PIDFILE=/var/run/${NAME}.pid
start()
{
printf "Starting $NAME: "
start-stop-daemon -S --background -p $PIDFILE --make-pidfile --startas ${START_DAEMON} && echo "OK" || echo
}
stop()
{
printf "Stopping $NAME: "
start-stop-daemon -K -q -p $PIDFILE && \
rm -f $PIDFILE && \
$STOP_SCRIPT > /dev/null && \
echo "OK" || echo "Failed"
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
#end-of-file
Tip:
Text editing - Hit the i (insert mode).
Save and Exit - Write charakters :wq (write and quit). The cursor moves to bottom of screen whenever a colon (:) is typed. This type of command is completed by hitting the Enter key.
5. Device Reboot.
root@buildroot:~# reboot
6. Check the connection.