Temat: MikroTik RouterBOARD 912UAG-2HPnD + modem z ZTE MF286R
Potrzebuję awaryjnego łącza i chciałbym wykorzystać sprzęt z tematu.
OpenWrt 23.05.2 r23630-842932a63d
USB przełączone na mPCI
echo 0 > /sys/class/gpio/power-usb/value
echo 1 > /sys/class/gpio/power-pcie/value config interface 'wan'
option proto 'ncm'
option device '/dev/ttyACM0'
option apn 'internet'
option ipv6 '0'Tue Feb 13 20:00:35 2024 daemon.notice netifd: wan (13340): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Tue Feb 13 20:00:35 2024 daemon.notice netifd: Interface 'wan' is now down
Tue Feb 13 20:00:35 2024 daemon.notice netifd: Interface 'wan' is setting up now
Tue Feb 13 20:00:35 2024 daemon.notice netifd: wan (13355): ls: /sys/devices/platform/ahb/1b000000.usb/usb1/1-1/1-1:1.2/../*/net: No such file or directory
Tue Feb 13 20:00:36 2024 daemon.warn odhcpd[1452]: No default route present, overriding ra_lifetime!
Tue Feb 13 20:00:38 2024 daemon.notice netifd: wan (13355): sending -> AT+CFUN=1
Tue Feb 13 20:00:38 2024 daemon.notice netifd: wan (13355): Configuring modem
Tue Feb 13 20:00:38 2024 daemon.notice netifd: wan (13355): sending -> AT+ZGDCONT=1,"IP","internet","",0,0
Tue Feb 13 20:00:40 2024 daemon.notice netifd: wan (13355): sending -> AT+ZGPCOAUTH=1,"","",0
Tue Feb 13 20:00:40 2024 daemon.notice netifd: wan (13355): Starting network wan
Tue Feb 13 20:00:40 2024 daemon.notice netifd: wan (13355): Connecting modem
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): sending -> AT+ZGACT=1,1
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): Setting up 3g.sh
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): dhcp.sh
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): dhcpv6.sh
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): ncm.sh
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): ppp.sh
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): wwan.sh
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): Command failed: ubus call network.interface notify_proto { "action": 0, "ifname": "3g.sh\ndhcp.sh\ndhcpv6.sh\nncm.sh\nppp.sh\nwwan.sh", "link-up": true, "data": { "manufacturer":
"\"marvell\"" }, "keep": false, "interface": "wan" } (Invalid argument)
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): Usage: ubus [<options>] <command> [arguments...]
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): Options:
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): -s <socket>: Set the unix domain socket to connect to
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): -t <timeout>: Set the timeout (in seconds) for a command to complete
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): -S: Use simplified output (for scripts)
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): -v: More verbose output
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): -m <type>: (for monitor): include a specific message type
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): (can be used more than once)
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): -M <r|t> (for monitor): only capture received or transmitted traffic
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355):
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): Commands:
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - list [<path>] List objects
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - call <path> <method> [<message>] Call an object method
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - subscribe <path> [<path>...] Subscribe to object(s) notifications
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - listen [<path>...] Listen for events
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - send <type> [<message>] Send an event
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - wait_for <object> [<object>...] Wait for multiple objects to appear on ubus
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355): - monitor Monitor ubus traffic
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13355):
Tue Feb 13 20:00:41 2024 daemon.notice netifd: wan (13471): Stopping network wanroot@OpenWrt:/# ubus call network.interface.wan status
{
"up": false,
"pending": true,
"available": true,
"autostart": true,
"dynamic": false,
"proto": "ncm",
"data": {
}
}Jakiś błąd w skrypcie ?
Edit:
/usr/share/3ginfo-lite/3ginfo.sh
uci: Entry not found
{
"connt":"-",
"conntx":"-",
"connrx":"-",
"modem":"Marvell LINUX",
"mtemp":"",
"firmware":"BD_PKTPLMF286R1MODULEV1.0.0B03",
"cport":"/dev/ttyACM0",
"protocol":"",
"csq":"",
"signal":"",
"operator_name":"",
"operator_mcc":"",
"operator_mnc":"",
"location":"-",
"mode":"-",
"registration":"",
"simslot":"",
"imei":"863210040xxxx",
"imsi":"2600215234xxxx",
"iccid":"8948022222104xxxxx",
"lac_dec":"",
"lac_hex":"",
"tac_dec":"",
"tac_hex":"-",
"tac_h":"",
"tac_d":"",
"cid_dec":"",
"cid_hex":"",
"pci":"",
"earfcn":"",
"pband":"",
"s1band":"",
"s1pci":"",
"s1earfcn":"",
"s2band":"",
"s2pci":"",
"s2earfcn":"",
"s3band":"",
"s3pci":"",
"s3earfcn":"",
"s4band":"",
"s4pci":"",
"s4earfcn":"",
"rsrp":"",
"rsrq":"",
"rssi":"",
"sinr":""
}