[Solved] Travelmate doesn't work after router reboot

Hey guys.

I did a lot of research on the internet how to setup WWAN and fortunately now I know how to get it working but I'm struggling with one issue from pass 2 Days and couldn't found a fix yet.

basically When I reboot my router travelmate shows all okay but i don't have connectivity to internet i do have to manually restart interface the travelmate then it start working again.

And this travelmate is on captive portal.

Please help me to find a fix for it.

Race condition?

Start travelmate manually post boot, in rc.local ?

1 Like

Can you please explain in simple words.

I'm too inexperienced for it.

Provide your travelmate config please

Is there any command for take out the travelmate configuration in text than i will copy and paste here.

Other wise should i post screenshots?

it is working flawlessly until i reboot router.

No screenshot, please. Provide the content of /etc/config/travelmate - thanks.

1 Like
  GNU nano 8.3                 /etc/config/travelmate

config travelmate 'global'
        option trm_enabled '1'
        option trm_captive '1'
        option trm_proactive '1'
        option trm_netcheck '0'
        option trm_autoadd '0'
        option trm_mail '0'
        option trm_debug '0'
        option trm_iface 'trm_wwan'
        option trm_vpn '0'
        option trm_randomize '0'
        option trm_nice '-20'

config uplink
        option enabled '1'
        option device 'radio1'
        option ssid 'KHALID&ANAS'
        option con_start_expiry '0'
        option con_end_expiry '0'

Thanks, that looks ok. Please restart the router and post the output of

/etc/init.d/travelmate info
and
ubus call system board
and
ps | grep "[t]ravelmate"
1 Like
 -----------------------------------------------------
root@androidtv:~# /etc/init.d/travelmate info
{
        "travelmate": {
                "instances": {
                        "travelmate": {
                                "running": true,
                                "pid": 3070,
                                "command": [
                                        "/usr/bin/travelmate.sh"
                                ],
                                "term_timeout": 5,
                                "pidfile": "/var/run/travelmate.pid"
                        }
                },
                "triggers": [
                        [
                                "interface.*.down",
                                [
                                        "if",
                                        [
                                                "eq",
                                                "interface",
                                                "trm_wwan"
                                        ],
                                        [
                                                "run_script",
                                                "/etc/init.d/travelmate",
                                                "reload"
                                        ]
                                ],
                                2000
                        ],
                        [
                                "interface.*.up",
                                [
                                        [
                                                "run_script",
                                                "/etc/init.d/travelmate",
                                                "start"
                                        ]
                                ],
                                2000
                        ],
                        [
                                "config.change",
                                [
                                        "if",
                                        [
                                                "eq",
                                                "package",
                                                "travelmate"
                                        ],
                                        [
                                                "run_script",
                                                "/etc/init.d/travelmate",
                                                "restart"
                                        ]
                                ],
                                2000
                        ]
                ]
        }
}
root@androidtv:~#
 OpenWrt 24.10.0, r28427-6df0e3d02a
 -----------------------------------------------------
root@androidtv:~# ubus call system board
{
        "kernel": "6.6.73",
        "hostname": "androidtv",
        "system": "ARMv8 Processor rev 4",
        "model": "Linksys E8450 (UBI)",
        "board_name": "linksys,e8450-ubi",
        "rootfs_type": "squashfs",
        "release": {
                "distribution": "OpenWrt",
                "version": "24.10.0",
                "revision": "r28427-6df0e3d02a",
                "target": "mediatek/mt7622",
                "description": "OpenWrt 24.10.0 r28427-6df0e3d02a",
                "builddate": "1738624177"
        }
}
root@androidtv:~#

root@androidtv:~# ps | grep "[t]ravelmate"
 3070 root      1800 S<   {travelmate.sh} /bin/sh /usr/bin/travelmate.sh
root@androidtv:~#

I can't see any problem here ... travelmate is running normally after reboot. If you want to see more output, enable the debug mode in travelmate and check the logs

1 Like

below are the log after reboot

Wed Feb 19 16:24:48 2025 user.info trm-2.1.3-r3[3127]: travelmate instance started ::: action: start, pid: 3127
Wed Feb 19 16:24:49 2025 user.info trm-2.1.3-r3[3127]: no enabled station on radio 'radio0'
Wed Feb 19 16:24:49 2025 user.info trm-2.1.3-r3[3616]: get ntp time sync
Wed Feb 19 16:25:56 2025 user.info trm-2.1.3-r3[3127]: no enabled station on radio 'radio0'

below are the log after i restart interface manually.

Wed Feb 19 16:24:48 2025 user.info trm-2.1.3-r3[3127]: travelmate instance started ::: action: start, pid: 3127
Wed Feb 19 16:24:49 2025 user.info trm-2.1.3-r3[3127]: no enabled station on radio 'radio0'
Wed Feb 19 16:24:49 2025 user.info trm-2.1.3-r3[3616]: get ntp time sync
Wed Feb 19 16:25:56 2025 user.info trm-2.1.3-r3[3127]: no enabled station on radio 'radio0'
Wed Feb 19 16:27:01 2025 user.info trm-2.1.3-r3[3127]: no enabled station on radio 'radio0'
Wed Feb 19 16:28:00 2025 user.info trm-2.1.3-r3[4627]: travelmate instance stopped ::: action: stop, pid: 3127
Wed Feb 19 16:28:01 2025 user.info trm-2.1.3-r3[4788]: travelmate instance started ::: action: start, pid: 4788
Wed Feb 19 16:28:24 2025 user.info trm-2.1.3-r3[4788]: no enabled station on radio 'radio0'
Wed Feb 19 16:28:46 2025 user.info trm-2.1.3-r3[4788]: connected to uplink 'radio1/KHALID&ANAS/-' with mac '-' (1/3)

... just wait until your radio1 is up and running, there is no need to restart travelmate or switch your STA config to radio0 and the AP to radio1.

1 Like

image

Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_main-1  ::: status: true, proactive: 1
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getcfg  ::: status: , section: default_radio0, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: enabled, result: 1, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_start, result: 2025.02.19-20:31:16, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_end, result: -, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_start_expiry, result: 0, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_end_expiry, result: 0, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_setif   ::: enabled: 1, section: default_radio0, active_sta: -, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getcfg  ::: status: , section: trm_uplink2, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: enabled, result: 1, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_start, result: 2025.02.19-20:31:16, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_end, result: -, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_start_expiry, result: 0, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: con_end_expiry, result: 0, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_setif   ::: enabled: 1, section: trm_uplink2, active_sta: trm_uplink2, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getcfg  ::: status: true, section: , uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_getval  ::: option: enabled, result: 1, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_check   ::: mode: dev, name: -, status: true, enabled: 1, connection: net ok/100, wait: 1, max_wait: 30, min_quality: 35, captive: 1, netcheck: 0
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_main-2  ::: config_radio: radio1, config_essid: "KHALID&ANAS", config_bssid: -
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_main-3  ::: radio_list: radio0 radio1, sta_list: trm_uplink2-radio1
Wed Feb 19 20:38:07 2025 user.info trm-2.1.3-r3[8022]: no enabled station on radio 'radio0'
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_mac     ::: action: get, section: trm_uplink2, macaddr: -, result: E8:9F:80:67:5D:59
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_ctrack  ::: action: refresh, uplink_config: @uplink[0]
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_vpn     ::: vpn: 0, enabled: -, action: enable_keep, vpn_service: -, vpn_iface: -, vpn_instance: -, vpn_infolist: -, result: , rc: -
Wed Feb 19 20:38:07 2025 user.debug trm-2.1.3-r3[8022]: f_main-4  ::: config_radio: radio1, config_essid: KHALID&ANAS, config_bssid: -

how much time should i wait...waited for more than 5 minutes it didnt work automatically. then i restarted the interface

Post the content of /etc/config/wireless (redact passwords). Maybe it's better to configure travelmate STA interfaces on radio0 and your AP config on radio1.

1 Like

Bro i created 5ghz wifi AP now it is runing automatically after reboot.

i dont know what happend.

Nice that you have now found a way to make it work. In general, it is better to always put the STAs on a 2G radio and the AP on 5G.

1 Like

but if i put the STA on 2G i wont be having max speed...it is 600Mbps connection.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.