User Tools

Site Tools


doc:appunti:hardware:tl-mr6400_openwrt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:tl-mr6400_openwrt [2023/10/31 12:03] – [Upgrade to OpenWRT 22.05.0] niccolodoc:appunti:hardware:tl-mr6400_openwrt [2024/04/26 13:30] (current) – [Upgrade to OpenWRT 22.05.0] niccolo
Line 309: Line 309:
 To upgrade from OpenWRT **22.03.3** to **22.05.0** we used the **sysupgrade** option, which preserves the existing configuration, at least partially. To upgrade from OpenWRT **22.03.3** to **22.05.0** we used the **sysupgrade** option, which preserves the existing configuration, at least partially.
  
-Download the new firmware **[[https://downloads.openwrt.org/releases/23.05.0/targets/ramips/mt76x8/openwrt-23.05.0-ramips-mt76x8-tplink_tl-mr6400-v5-squashfs-sysupgrade.bin|openwrt-23.05.0-ramips-mt76x8-tplink_tl-mr6400-v5-squashfs-sysupgrade.bin]]**, connect a PC to one Ethernet port and point your browser to the LuCI web interface. Click the System => ... page and then ... FIXME.+Download the new firmware **[[https://downloads.openwrt.org/releases/23.05.0/targets/ramips/mt76x8/openwrt-23.05.0-ramips-mt76x8-tplink_tl-mr6400-v5-squashfs-sysupgrade.bin|openwrt-23.05.0-ramips-mt76x8-tplink_tl-mr6400-v5-squashfs-sysupgrade.bin]]** to your PC. Connect the PC to one of the Ethernet ports of the router and point your browser to the LuCI web interface. Click the **System** => **Backup / Flash Firmware** page and then upload the firmware file to the router by clicking **Flash new firmware image**.
  
 Once the router reboots, you can access it via SSH or LuCI web, the network configuration should have been preserved. Once the router reboots, you can access it via SSH or LuCI web, the network configuration should have been preserved.
  
-Beware that all the extra packages must be installed again, notably the **uqmi** package (required to drive the LTE modem for internet accessmust be upgraded to version **[[https://raw.githubusercontent.com/mrhaav/openwrt/master/23.05.0/uqmi_2022-11-29-0.11_mipsel_24kc.ipk|uqmi_2022-11-29-0.11_mipsel_24kc.ipk]]**, which is not included into the official repository and thus must be downloaded from the GitHub repository.+Beware that all the extra packages must be installed again, notably the **uqmi** packagerequired to drive the LTE modem for internet accessmust be upgraded to version **[[https://raw.githubusercontent.com/mrhaav/openwrt/master/23.05.0/uqmi_2022-11-29-0.11_mipsel_24kc.ipk|uqmi_2022-11-29-0.11_mipsel_24kc.ipk]]**. That version is not included into the official repository and thus must be downloaded from the GitHub repository.
  
 +The repository roots are:
 +
 +  * https://downloads.openwrt.org/releases/23.05.0/targets/ramips/mt76x8/
 +  * https://downloads.openwrt.org/releases/23.05.0/packages/mipsel_24kc/
 +
 +This is the list of all the extra packages installed:
 +
 +^ Package                               ^ Space  ^
 +| uqmi_2022-11-29-0.11_mipsel_24kc.ipk  |   92K |
 +| openvpn                                228K |
 +| luci-app-openvpn                      |  320K |
 +| tcpdump-mini                          |  314K |
 +| snmpd                                  540K |
 +| luci-app-snmpd                        |    8K |
 +| etherwake                                8K |
 +| coreutils-base64                      |       |
 +
 +===== Sending and receiving SMS =====
 +
 +Once installed the **uqmi** package, there is a daemon process **/usr/bin/uqmi_d.sh** which is responsible for sending and receiving SMS messages. The program will check every 30 seconds if there is a file into the **send** directory and eventually save received SMS messages from the modem memory to the **received** directory:
 +
 +  * **/var/sms/send/**
 +  * **/var/sms/received/**
 +
 +To send a message just create a text file into the **/var/sms/send/** directory; the first line must contain the recipient phone number, the following lines are the text message. E.g.
 +
 +<file>
 ++393274445556
 +Hello, World!
 +</file>
 +
 +Received messages will be saved automatically into **/var/sms/received/**, in files named something like **sms_20240426T150933**. The content will be something like:
 +
 +<file>
 +[Phone Number|CallerID]
 +Tex message.
 +</file>
 +
 +If you stop the running uqmi_d.sh daemon, it is possibile to retrieve received messages from **sim** or from **me** (memory). Get first the list of messages availables and then retrieve one:
 +
 +<code>
 +uqmi -d /dev/cdc-wdm0 --list-messages --storage me
 +uqmi -s -d /dev/cdc-wdm0 --get-message 0 --storage me
 +</code>
  
 ===== Web References ===== ===== Web References =====
doc/appunti/hardware/tl-mr6400_openwrt.1698753787.txt.gz · Last modified: 2023/10/31 12:03 by niccolo