101

(70 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Ograniczone do jakiś 30-40Mbps, tak. Ale to modem cat4, więc realnie i tak się tyle (plus/minus) uzyskuje.

Nawet 10x wolniej niż na fabrycznym, lecz linux nie do zastąpienia. Wolałbym też móc odciąć pasmo B8, które u mnie w okolicy zamula. Co zatem w to włożyć pod QMI, polować na Quectel EC25 ?

102

(70 odpowiedzi, napisanych Sprzęt / Hardware)

Zaaplikowane MiFi na tym "cacku". Oryginalny soft bez zarzutu. Dla pewności dwukrotnie zrobiony sysupgrade.
Domyślnie WAN jest jako modem RAS na USBtty2 i w sumie można by na tym poprzestać gdyby nie to że pasmo 3G odchodzi do lamusa. Na tym połączeniu łączy się ze światem.

Niestety po przełączeniu na QMI na cdc-wdm0, wwan0 też wstaje i dostaje IP, wydaje się być ok, ale ze światem nawet przez chwilę nie zagada. Reset ustawień - nic nie daje.

Przełączenie na RAS:

Sat Oct 19 23:52:00 2024 daemon.notice netifd: Interface 'wan' is now down
Sat Oct 19 23:52:00 2024 daemon.notice netifd: Interface 'wan' is setting up now
Sat Oct 19 23:52:00 2024 cron.info crond[2031]: USER root pid 5785 cmd /usr/bin/easyconfig_logs.sh
Sat Oct 19 23:52:00 2024 cron.info crond[2031]: USER root pid 5786 cmd /usr/bin/easyconfig_statistics.sh
Sat Oct 19 23:52:02 2024 daemon.notice netifd: Interface 'wan' is now down
Sat Oct 19 23:52:02 2024 daemon.notice netifd: Interface 'wan' is setting up now
Sat Oct 19 23:52:04 2024 daemon.notice pppd[6010]: pppd 2.4.9 started by root, uid 0
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: abort on (BUSY)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: abort on (NO CARRIER)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: abort on (ERROR)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: report (CONNECT)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: timeout set to 10 seconds
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: send (AT&F^M)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: expect (OK)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: ^M
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: OK
Sat Oct 19 23:52:05 2024 local2.info chat[6027]:  -- got it
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: send (ATE1^M)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: expect (OK)
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: ^M
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: ^M
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: OK
Sat Oct 19 23:52:05 2024 local2.info chat[6027]:  -- got it
Sat Oct 19 23:52:05 2024 local2.info chat[6027]: send (AT+CGDCONT=1,"IP","internet"^M)
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: timeout set to 30 seconds
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: expect (OK)
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: ^M
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: AT+CGDCONT=1,"IP","internet"^M^M
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: OK
Sat Oct 19 23:52:06 2024 local2.info chat[6027]:  -- got it
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: send (ATD*99***1#^M)
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: expect (CONNECT)
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: ^M
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: ATD*99***1#^M^M
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: CONNECT
Sat Oct 19 23:52:06 2024 local2.info chat[6027]:  -- got it
Sat Oct 19 23:52:06 2024 local2.info chat[6027]: send ( ^M)
Sat Oct 19 23:52:06 2024 daemon.info pppd[6010]: Serial connection established.
Sat Oct 19 23:52:06 2024 kern.info kernel: [  341.751351] 3g-wan: renamed from ppp0
Sat Oct 19 23:52:06 2024 daemon.info pppd[6010]: Renamed interface ppp0 to 3g-wan
Sat Oct 19 23:52:06 2024 daemon.info pppd[6010]: Using interface 3g-wan
Sat Oct 19 23:52:06 2024 daemon.notice pppd[6010]: Connect: 3g-wan <--> /dev/ttyUSB2
Sat Oct 19 23:52:07 2024 daemon.warn pppd[6010]: Could not determine remote IP address: defaulting to 10.64.64.64
Sat Oct 19 23:52:07 2024 daemon.notice pppd[6010]: local  IP address 10.82.1.157
Sat Oct 19 23:52:07 2024 daemon.notice pppd[6010]: remote IP address 10.64.64.64
Sat Oct 19 23:52:07 2024 daemon.notice pppd[6010]: primary   DNS address 89.108.202.21
Sat Oct 19 23:52:07 2024 daemon.notice pppd[6010]: secondary DNS address 89.108.202.20
Sat Oct 19 23:52:07 2024 daemon.notice netifd: Network device '3g-wan' link is up
Sat Oct 19 23:52:07 2024 daemon.notice netifd: Network alias '3g-wan' link is up
Sat Oct 19 23:52:07 2024 daemon.notice netifd: Interface 'wan' is now up


root@brama2:~# pi
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=114 time=82.893 ms
64 bytes from 8.8.8.8: seq=1 ttl=114 time=25.207 ms
64 bytes from 8.8.8.8: seq=2 ttl=114 time=25.983 ms


Przełączenie na QMI:

Sun Oct 20 00:09:21 2024 daemon.notice netifd: Interface 'wan' is setting up now
Sun Oct 20 00:09:21 2024 daemon.notice netifd: wan (9798): Waiting for SIM initialization
Sun Oct 20 00:09:21 2024 daemon.notice netifd: wan (9798): PIN verification is disabled
Sun Oct 20 00:09:22 2024 daemon.notice netifd: wan (9798): Waiting for network registration
Sun Oct 20 00:09:22 2024 daemon.notice netifd: wan (9837): Stopping network wan
Sun Oct 20 00:09:22 2024 daemon.notice netifd: wan (9837): Command failed: ubus call network.interface notify_proto { "action": 0, "link-up": false, "keep": false, "interface": "wan" } (Permission denied)
Sun Oct 20 00:09:22 2024 daemon.notice netifd: Interface 'wan' is now down
Sun Oct 20 00:09:22 2024 daemon.notice netifd: Interface 'wan' is setting up now
Sun Oct 20 00:09:23 2024 daemon.notice netifd: wan (9855): Waiting for SIM initialization
Sun Oct 20 00:09:23 2024 daemon.notice netifd: wan (9855): PIN verification is disabled
Sun Oct 20 00:09:24 2024 daemon.notice netifd: wan (9855): Waiting for network registration
Sun Oct 20 00:09:25 2024 daemon.notice netifd: wan (9855): Starting network wan
Sun Oct 20 00:09:25 2024 daemon.notice netifd: wan (9855): Setting up wwan0
Sun Oct 20 00:09:25 2024 daemon.notice netifd: Interface 'wan' is now up
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using nameserver 8.8.4.4#53
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Oct 20 00:09:25 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Oct 20 00:09:25 2024 daemon.notice netifd: Network device 'wwan0' link is up
Sun Oct 20 00:09:25 2024 daemon.notice netifd: Network alias 'wwan0' link is up
Sun Oct 20 00:09:25 2024 daemon.notice netifd: Interface 'wan_4' is enabled
Sun Oct 20 00:09:25 2024 daemon.notice netifd: Interface 'wan_4' has link connectivity
Sun Oct 20 00:09:25 2024 daemon.notice netifd: Interface 'wan_4' is setting up now
Sun Oct 20 00:09:26 2024 daemon.notice netifd: wan_4 (10033): udhcpc: started, v1.36.1
Sun Oct 20 00:09:26 2024 daemon.notice netifd: wan_4 (10033): udhcpc: broadcasting discover
Sun Oct 20 00:09:26 2024 daemon.notice netifd: wan_4 (10033): udhcpc: broadcasting select for 10.82.1.157, server 10.82.1.158
Sun Oct 20 00:09:26 2024 daemon.notice netifd: wan_4 (10033): udhcpc: lease of 10.82.1.157 obtained from 10.82.1.158, lease time 600
Sun Oct 20 00:09:26 2024 user.notice firewall: Reloading firewall due to ifup of wan (wwan0)
Sun Oct 20 00:09:26 2024 daemon.notice netifd: Interface 'wan_4' is now up
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using nameserver 8.8.4.4#53
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Oct 20 00:09:26 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Oct 20 00:09:29 2024 user.notice firewall: Reloading firewall due to ifup of wan_4 (wwan0)
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: exiting on receipt of SIGTERM
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: started, version 2.90 cachesize 1000
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: DNS service limited to local subnets
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: compile time options: IPv6 GNU-getopt no-DBus UBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-nftset no-auth no-cryptohash no-DNSSEC no-ID loop-detect inotify dumpfile
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: UBus support enabled: connected to system bus
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: reading /tmp/resolv.conf.d/resolv.conf.auto
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using nameserver 8.8.4.4#53
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using nameserver 8.8.8.8#53
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for test
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for onion
Sun Oct 20 00:09:32 2024 daemon.info dnsmasq[1]: using only locally-known addresses for localhost
Sun Oct 20 00:09:33 2024 daemon.info dnsmasq[1]: using only locally-known addresses for local
Sun Oct 20 00:09:33 2024 daemon.info dnsmasq[1]: using only locally-known addresses for invalid
Sun Oct 20 00:09:33 2024 daemon.info dnsmasq[1]: using only locally-known addresses for bind
Sun Oct 20 00:09:33 2024 daemon.info dnsmasq[1]: using only locally-known addresses for lan
Sun Oct 20 00:09:33 2024 daemon.info dnsmasq[1]: read /etc/hosts - 12 names
Sun Oct 20 00:09:33 2024 daemon.info dnsmasq[1]: read /tmp/hosts/dhcp.cfg01411c - 0 names



root@brama2:~# ifconfig wwan0
wwan0     Link encap:Ethernet  HWaddr 06:AE:1D:64:5A:4A
          inet addr:10.82.1.157  Bcast:10.82.1.159  Mask:255.255.255.252
          inet6 addr: fe80::4ae:1dff:fe64:5a4a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:424 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1884 (1.8 KiB)  TX bytes:21284 (20.7 KiB)



root@brama2:~# pi
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss


root@brama2:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.133.47.125   0.0.0.0         UG    0      0        0 wwan0
10.9.8.0        *               255.255.255.0   U     0      0        0 br-lan
10.133.47.124   *               255.255.255.252 U     0      0        0 wwan0



root@brama2:~# dmesg
[    0.000000] Linux version 5.15.167 (cezary@eko.one.pl) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r23004-7f0db09513) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Fri Sep 27 17:10:40 2024
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] MIPS: machine is ZTE MF282
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 120236K/131072K available (6640K kernel code, 587K rwdata, 836K rodata, 1208K init, 221K bss, 10836K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 51
[    0.000000] CPU clock: 775.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000001] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008291] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.074816] pid_max: default: 32768 minimum: 301
[    0.080508] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.088245] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.102405] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.112820] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.120187] pinctrl core: initialized pinctrl subsystem
[    0.127326] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.134090] thermal_sys: Registered thermal governor 'step_wise'
[    0.147878] clocksource: Switched to clocksource MIPS
[    0.160870] NET: Registered PF_INET protocol family
[    0.166224] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.174771] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.183743] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.191961] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.200059] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.207499] TCP: Hash tables configured (established 1024 bind 1024)
[    0.214340] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.221291] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.229042] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.235051] PCI: CLS 0 bytes, default 32
[    0.242437] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.253945] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.260164] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.271892] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.283290] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[    0.290703] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.299951] printk: console [ttyS0] disabled
[    0.304528] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
[    0.313681] printk: console [ttyS0] enabled
[    0.322744] printk: bootconsole [early0] disabled
[    0.350521] spi-nand spi0.1: GigaDevice SPI NAND was found.
[    0.356298] spi-nand spi0.1: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.367350] 6 fixed-partitions partitions found on MTD device (null)
[    0.374010] OF: Bad cell count for /ahb/spi@1f000000/flash@1/partitions
[    0.380904] OF: Bad cell count for /ahb/spi@1f000000/flash@1/partitions
[    0.388300] OF: Bad cell count for /ahb/spi@1f000000/flash@1/partitions
[    0.395172] OF: Bad cell count for /ahb/spi@1f000000/flash@1/partitions
[    0.402599] Creating 6 MTD partitions on "(null)":
[    0.407572] 0x000000000000-0x000000140000 : "fota-flag"
[    0.418156] 0x000000140000-0x000000280000 : "caldata"
[    0.426935] 0x000000280000-0x0000003c0000 : "mac"
[    0.435431] 0x0000003c0000-0x000001300000 : "ubiconcat0"
[    0.463118] 0x000001300000-0x000001b00000 : "kernel"
[    0.480934] 0x000001b00000-0x000008000000 : "ubiconcat1"
[    0.642736] spi-nor spi0.0: mx25l1606e (2048 Kbytes)
[    0.647981] 2 fixed-partitions partitions found on MTD device spi0.0
[    0.654548] Creating 2 MTD partitions on "spi0.0":
[    0.659568] 0x000000000000-0x000000080000 : "u-boot"
[    0.666537] 0x000000080000-0x0000000a0000 : "u-boot-env"
[    0.674227] Concatenating MTD devices:
[    0.678174] (0): "ubiconcat0"
[    0.681236] (1): "ubiconcat1"
[    0.684301] into device "ubi-concat"
[    0.688069] 1 fixed-partitions partitions found on MTD device ubi-concat
[    0.694994] Creating 1 MTD partitions on "ubi-concat":
[    0.700321] 0x000000000000-0x000007440000 : "ubi"
[    1.478802] ag71xx 19000000.eth: connected to PHY at mdio.0:00 [uid=004dd074, driver=Qualcomm Atheros AR8031/AR8033]
[    1.490313] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: sgmii
[    1.499369] NET: Registered PF_INET6 protocol family
[    1.512313] Segment Routing with IPv6
[    1.516179] In-situ OAM (IOAM) with IPv6
[    1.520423] NET: Registered PF_PACKET protocol family
[    1.525722] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.539563] 8021q: 802.1Q VLAN Support v1.8
[    1.548270] PCI host bridge to bus 0000:00
[    1.552524] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    1.559675] pci_bus 0000:00: root bus resource [io  0x0000]
[    1.565430] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.573664] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[    1.579919] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    1.586977] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.593981] pci 0000:00:00.0: supports D1
[    1.598138] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    1.605372] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    1.612282] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    1.619868] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    1.633591] UBI: auto-attach mtd8
[    1.637061] ubi0: attaching mtd8
[    4.230993] ubi0: scanning is finished
[    4.269493] ubi0: attached mtd8 (name "ubi", size 116 MiB)
[    4.275186] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.282331] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.289360] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.296552] ubi0: good PEBs: 928, bad PEBs: 2, corrupted PEBs: 0
[    4.302763] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    4.310233] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1778074537
[    4.319677] ubi0: available PEBs: 0, total reserved PEBs: 928, PEBs reserved for bad PEB handling: 17
[    4.329299] ubi0: background thread "ubi_bgt0d" started, PID 220
[    4.338512] block ubiblock0_0: created from ubi0:0(rootfs)
[    4.344204] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    4.351655] clk: Disabling unused clocks
[    4.375961] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.389815] Freeing unused kernel image (initmem) memory: 1208K
[    4.395938] This architecture does not have kernel memory protection.
[    4.402622] Run /sbin/init as init process
[    4.406851]   with arguments:
[    4.406855]     /sbin/init
[    4.406859]   with environment:
[    4.406863]     HOME=/
[    4.406867]     TERM=linux
[    5.120564] init: Console is alive
[    5.124530] init: - watchdog -
[    6.979761] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    7.082568] usbcore: registered new interface driver usbfs
[    7.088383] usbcore: registered new interface driver hub
[    7.093966] usbcore: registered new device driver usb
[    7.108682] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.118461] fsl-ehci: Freescale EHCI Host controller driver
[    7.126186] ehci-platform: EHCI generic platform driver
[    7.131979] ehci-platform 1b000000.usb: EHCI Host Controller
[    7.137907] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1
[    7.146118] ehci-platform 1b000000.usb: irq 13, io mem 0x1b000000
[    7.177894] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00
[    7.185129] hub 1-0:1.0: USB hub found
[    7.189788] hub 1-0:1.0: 1 port detected
[    7.194782] ehci-platform 1b400000.usb: EHCI Host Controller
[    7.200706] ehci-platform 1b400000.usb: new USB bus registered, assigned bus number 2
[    7.208962] ehci-platform 1b400000.usb: irq 14, io mem 0x1b400000
[    7.237894] ehci-platform 1b400000.usb: USB 2.0 started, EHCI 1.00
[    7.245094] hub 2-0:1.0: USB hub found
[    7.249765] hub 2-0:1.0: 1 port detected
[    7.257264] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.275241] init: - preinit -
[    8.994151] random: jshn: uninitialized urandom read (4 bytes read)
[    9.148360] random: jshn: uninitialized urandom read (4 bytes read)
[    9.187826] random: jshn: uninitialized urandom read (4 bytes read)
[   11.889375] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   11.895502] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 366
[   12.079343] UBIFS (ubi0:1): recovery needed
[   12.546091] UBIFS (ubi0:1): recovery completed
[   12.550813] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   12.558926] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   12.569177] UBIFS (ubi0:1): FS size: 108564480 bytes (103 MiB, 855 LEBs), max 866 LEBs, journal size 5459968 bytes (5 MiB, 43 LEBs)
[   12.581412] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   12.588254] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 3F238FE8-CAA3-4DFA-B2D4-1F3E48F80AF3, small LPT model
[   12.624059] mount_root: switching to ubifs overlay
[   12.679455] urandom-seed: Seeding with /etc/urandom.seed
[   12.910454] procd: - early -
[   12.913741] procd: - watchdog -
[   13.181726] usb 1-1: new high-speed USB device number 2 using ehci-platform
[   13.987370] procd: - watchdog -
[   14.010825] procd: - ubus -
[   14.318077] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.326833] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.408206] random: ubusd: uninitialized urandom read (4 bytes read)
[   14.441038] procd: - init -
[   16.093210] random: jshn: uninitialized urandom read (4 bytes read)
[   16.304682] random: ubusd: uninitialized urandom read (4 bytes read)
[   16.318156] random: ubus: uninitialized urandom read (4 bytes read)
[   16.377959] random: crng init done
[   16.381489] random: 28 urandom warning(s) missed due to ratelimiting
[   17.142119] kmodloader: loading kernel modules from /etc/modules.d/*
[   17.592476] NET: Registered PF_ALG protocol family
[   17.632389] tun: Universal TUN/TAP device driver, 1.6
[   17.654458] gre: GRE over IPv4 demultiplexor driver
[   17.669770] ip_gre: GRE over IPv4 tunneling driver
[   17.741261] usbcore: registered new interface driver cdc_wdm
[   17.780127] Loading modules backported from Linux version v6.1.110-0-g5f55cad62cc9d
[   17.788091] Backport generated by backports.git v6.1.110-1-0-g965f73fc
[   17.901828] usbcore: registered new interface driver usbserial_generic
[   17.908730] usbserial: USB Serial support registered for generic
[   17.943583] usbcore: registered new interface driver cdc_ether
[   17.971263] usbcore: registered new interface driver cdc_ncm
[   19.273071] PPP generic driver version 2.4.2
[   19.298833] PPP MPPE Compression module registered
[   19.329001] NET: Registered PF_PPPOX protocol family
[   19.335918] PPTP driver version 0.8.5
[   19.361790] qmi_wwan 1-1:1.3: cdc-wdm0: USB WDM device
[   19.368468] qmi_wwan 1-1:1.3 wwan0: register 'qmi_wwan' at usb-1b000000.usb-1, WWAN/QMI device, aa:5c:c3:32:85:e1
[   19.379397] usbcore: registered new interface driver qmi_wwan
[   19.442388] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   19.450532] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   19.631200] ath10k 5.15 driver, optimized for CT firmware, probing pci device: 0x3c.
[   19.644343] urngd: v1.0.2 started.
[   19.698806] ath10k_pci 0000:00:00.0: enabling device (0000 -> 0002)
[   19.705446] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   23.611154] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[   23.620764] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 0
[   23.632716] ath10k_pci 0000:00:00.0: firmware ver 10.1-ct-8x-__fW-022-ecad3248 api 2 features wmi-10.x,has-wmi-mgmt-tx,mfp,txstatus-noack,wmi-10.x-CT,ratemask-CT,txrate-CT,get-temp-CT,tx-rc-CT,cust-stats-CT,retry-gt2-CT,txrate2-CT,beacon-cb-CT,wmi-block-ack-CT crc32 3e4cf97f
[   23.747951] ath10k_pci 0000:00:00.0: Loading BDF type 0
[   24.261901] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   25.213656] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[   25.231633] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[   25.238112] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[   25.246391] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[   25.319261] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 2 htt-op 2 cal nvmem max-sta 128 raw 0 hwcrypto 1
[   25.329555] ath10k_pci 0000:00:00.0: NOTE:  Firmware DBGLOG output disabled in debug_mask: 0x10000000
[   25.471964] ath: EEPROM regdomain: 0x0
[   25.471983] ath: EEPROM indicates default country code should be used
[   25.471989] ath: doing EEPROM country->regdmn map search
[   25.472002] ath: country maps to regdmn code: 0x3a
[   25.472009] ath: Country alpha2 being used: US
[   25.472015] ath: Regpair used: 0x3a
[   25.531333] usbcore: registered new interface driver option
[   25.537171] usbserial: USB Serial support registered for GSM modem (1-port)
[   25.544925] option 1-1:1.0: GSM modem (1-port) converter detected
[   25.551493] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
[   25.558995] option 1-1:1.1: GSM modem (1-port) converter detected
[   25.565539] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
[   25.573000] option 1-1:1.2: GSM modem (1-port) converter detected
[   25.579610] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
[   25.697356] ath: EEPROM regdomain: 0x0
[   25.697379] ath: EEPROM indicates default country code should be used
[   25.697384] ath: doing EEPROM country->regdmn map search
[   25.697398] ath: country maps to regdmn code: 0x3a
[   25.697405] ath: Country alpha2 being used: US
[   25.697411] ath: Regpair used: 0x3a
[   25.708429] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   25.710363] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xdf9483b6, irq=2
[   25.740768] kmodloader: done loading kernel modules from /etc/modules.d/*
[   44.838579] br-lan: port 1(eth0) entered blocking state
[   44.844004] br-lan: port 1(eth0) entered disabled state
[   44.849698] device eth0 entered promiscuous mode
[   47.939467] eth0: link up (1000Mbps/Full duplex)
[   47.944365] br-lan: port 1(eth0) entered blocking state
[   47.949812] br-lan: port 1(eth0) entered forwarding state
[   47.984789] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 1100.762093] ath: EEPROM regdomain: 0x8268
[ 1100.762118] ath: EEPROM indicates we should expect a country code
[ 1100.762127] ath: doing EEPROM country->regdmn map search
[ 1100.762134] ath: country maps to regdmn code: 0x37
[ 1100.762140] ath: Country alpha2 being used: PL
[ 1100.762146] ath: Regpair used: 0x37
[ 1100.762152] ath: regdomain 0x8268 dynamically updated by user
[ 1100.762240] ath: EEPROM regdomain: 0x8268
[ 1100.762248] ath: EEPROM indicates we should expect a country code
[ 1100.762256] ath: doing EEPROM country->regdmn map search
[ 1100.762262] ath: country maps to regdmn code: 0x37
[ 1100.762268] ath: Country alpha2 being used: PL
[ 1100.762273] ath: Regpair used: 0x37
[ 1100.762278] ath: regdomain 0x8268 dynamically updated by user
[ 1104.888676] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[ 1104.906636] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[ 1104.912913] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[ 1104.921873] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[ 1105.000827] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
[ 1105.016348] ath10k_pci 0000:00:00.0: rts threshold -1
[ 1105.025101] br-lan: port 2(phy0-ap0) entered blocking state
[ 1105.030941] br-lan: port 2(phy0-ap0) entered disabled state
[ 1105.036966] device phy0-ap0 entered promiscuous mode
[ 1108.227996] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[ 1108.235047] br-lan: port 2(phy0-ap0) entered blocking state
[ 1108.240865] br-lan: port 2(phy0-ap0) entered forwarding state
[ 1115.231085] device phy0-ap0 left promiscuous mode
[ 1115.236063] br-lan: port 2(phy0-ap0) entered disabled state
[ 1115.714119] ath10k_pci 0000:00:00.0: mac flush null vif, drop 0 queues 0xffff
[ 1117.691485] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[ 1117.710150] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[ 1117.716587] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[ 1117.724927] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[ 1117.797595] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
[ 1117.813187] ath10k_pci 0000:00:00.0: rts threshold -1
[ 1117.821455] br-lan: port 2(phy0-ap0) entered blocking state
[ 1117.827270] br-lan: port 2(phy0-ap0) entered disabled state
[ 1117.833337] device phy0-ap0 entered promiscuous mode
[ 1120.867315] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[ 1120.874436] br-lan: port 2(phy0-ap0) entered blocking state
[ 1120.880254] br-lan: port 2(phy0-ap0) entered forwarding state
[ 1197.138044] eth0: link down
[ 1197.141263] br-lan: port 1(eth0) entered disabled state
[ 1244.919892] ath10k_pci 0000:00:00.0: mac flush vdev 0 drop 0 queues 0x1 ar->paused: 0x0  arvif->paused: 0x0
[ 1244.930306] br-lan: port 2(phy0-ap0) entered disabled state
[ 1244.938665] ath10k_pci 0000:00:00.0: mac flush null vif, drop 0 queues 0xffff
[ 1245.082861] br-lan: port 2(phy0-ap0) entered disabled state
[ 1245.090742] device phy0-ap0 left promiscuous mode
[ 1245.095745] br-lan: port 2(phy0-ap0) entered disabled state
[ 1252.518175] ath10k_pci 0000:00:00.0: 10.1 wmi init: vdevs: 16  peers: 127  tid: 256
[ 1252.536152] ath10k_pci 0000:00:00.0: wmi print 'P 128 V 8 T 410'
[ 1252.542425] ath10k_pci 0000:00:00.0: wmi print 'msdu-desc: 1424  sw-crypt: 0 ct-sta: 0'
[ 1252.550959] ath10k_pci 0000:00:00.0: wmi print 'alloc rem: 24984 iram: 38672'
[ 1252.624445] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
[ 1252.640033] ath10k_pci 0000:00:00.0: rts threshold -1
[ 1252.655261] br-lan: port 2(phy0-ap0) entered blocking state
[ 1252.661095] br-lan: port 2(phy0-ap0) entered disabled state
[ 1252.667127] device phy0-ap0 entered promiscuous mode
[ 1255.729206] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[ 1255.736284] br-lan: port 2(phy0-ap0) entered blocking state
[ 1255.742110] br-lan: port 2(phy0-ap0) entered forwarding state
[ 2065.539365] eth0: link up (1000Mbps/Full duplex)
[ 2065.544239] br-lan: port 1(eth0) entered blocking state
[ 2065.549692] br-lan: port 1(eth0) entered forwarding state

Czy tu brakuje jakiejś paczki ?

103

(148 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Hostach.

OK zadziałało. Dla przyszłych pokoleń to pomogło:

route add -net podsiec_wg netmask 255.255.255.0 gw ip_rutera

104

(148 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Pewnie widzi, tylko hosty odsyłają nie tam gdzie trzeba tylko na domyślą trasę, czyli na modem a nie router gdzie jest wg.

Tzn dodać route na tych hostach czy na froguw /etc/network/interfaces  ??

105

(148 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Nic nie rozumiem. Dlaczego frog miał by widzieć jakieś hosty skoro, jak napisałeś, nie mają nic wspólnego z wg?

W sensie takim, że nie trzeba było na nich nic zmieniać aby były widoczne z froga dzięki ip_forward.
Sęk w tym że po zmianie samego IP bramy na tych hostach frog już ich nie widzi.

106

(148 odpowiedzi, napisanych Oprogramowanie / Software)

Dodałem właśnie w LANie taki secondary gateway LTE i przestawiłem na niego kilku hostów z mojego LANu.
Na głównym routerze śmiga Wireguard przez froga jednak po zmianie, frog przestał widzieć tylko w/w hosty i nie rozumiem dlaczego, skoro nadal są one w LANie, i nie mają nic wspólnego z wg.

107

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:

Gdzie masz "rozłącz klienta"?

https://eko.one.pl/files/easyconfig/eas … enci-4.png

108

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:
wisipior napisał/a:

- czy network restart wystarczy do wymuszenia dzierżawy IP wszystkim hostom w LANie ?

Nie. Nie masz możliwości wymuszenia na kliencie żeby odświeżył sobie dzierżawę, to on decyduje kiedy to zrobi. Musiał byś mu interfejs down'nować (np. przez odłączenie kabla lub symulację odłączenia) żeby próbował pobrać ponownie adres.

To jak zatem działa operacja Rozłącz klienta przy nadawaniu nowego stałego IP ??

109

(620 odpowiedzi, napisanych Oprogramowanie / Software)

Czy stare obrazy na starsze modele zostawisz w bazie ?

110

(10 odpowiedzi, napisanych Oprogramowanie / Software)

Cezary napisał/a:
wisipior napisał/a:

OK ja zaś stawiam po prostu na drugą bramę w sieci lan - na osobnym ruterku, też na MiFi.

Pomysłów na przełączanie jest parę, a więc np.:
1. zamieniają się po prostu adresami IP
2. zamieniają usługą DHCP (jeden wyłącza, drugi włącza)
3. indywidulane ustawienie w dhcp innej bramy dla hosta (a potem kilku)

I teraz parę pytań:
- jaką komendą "jak najciszej" zmienić adres IP rutera tak by usługa dhcp za tą zmianą nie szła i pozostał adres bramy.

Ręcznie przez ifconfig czy ip?

- wiem że w dnsmasq w linuxach jest taka opcja by przypisać hostowi indywidualną bramę - a tutaj jak ją zaaplikować w /etc/config ? - będzie to w dnsmasq-full ?


Nie, wystarczy tak: https://eko.one.pl/?p=openwrt-konfigura … lientwdhcp jeżeli masz większe potrzeby to można klientów klasyfikować wg czegoś, zobacz przykłady na https://openwrt.org/docs/guide-user/bas … al_options

- czy network restart wystarczy do wymuszenia dzierżawy IP wszystkim hostom w LANie ?

Nie. Nie masz możliwości wymuszenia na kliencie żeby odświeżył sobie dzierżawę, to on decyduje kiedy to zrobi. Musiał byś mu interfejs down'nować (np. przez odłączenie kabla lub symulację odłączenia) żeby próbował pobrać ponownie adres.

A więc jest realne, dzięki !

111

(10 odpowiedzi, napisanych Oprogramowanie / Software)

OK ja zaś stawiam po prostu na drugą bramę w sieci lan - na osobnym ruterku, też na MiFi.

Pomysłów na przełączanie jest parę, a więc np.:
1. zamieniają się po prostu adresami IP
2. zamieniają usługą DHCP (jeden wyłącza, drugi włącza)
3. indywidulane ustawienie w dhcp innej bramy dla hosta (a potem kilku)

I teraz parę pytań:
- jaką komendą "jak najciszej" zmienić adres IP rutera tak by usługa dhcp za tą zmianą nie szła i pozostał adres bramy.
- wiem że w dnsmasq w linuxach jest taka opcja by przypisać hostowi indywidualną bramę - a tutaj jak ją zaaplikować w /etc/config ? - będzie to w dnsmasq-full ?
- czy network restart wystarczy do wymuszenia dzierżawy IP wszystkim hostom w LANie ?

112

(17 odpowiedzi, napisanych Inne)

ZbiG napisał/a:

A czy można by zrobić taki wyzwalacz w OpenWRT, że jak "telefon" rejestruje się w routerze czyli "wchodzi do domu" to włącza się jedna lub kilka żarówek WiFi? I odwrotnie: telefon rozłącza się z routerem i wszystkie żarówki gasną? Mam coś takiego ogarnięte w apce Tuya wykorzystującej geolokalizację, ale to nie działa do końca sprawnie. Są opóźnienia kilkuminutowe i o ile nie przeszkadza to, gdy się dom opuszcza, to nie jest fajne, gdy wracając po zmierzchu, światła włączają się po kilku minutach.

No właśnie ja wrzucam w autostarcie rutera w /etc/rc.local linijkę

(
sleep 60
/etc/config/detektyw.sh
) &

Skrypt:

#!/bin/sh

ip=10.9.8.88
mac=32:ce:02:a7:a7:bb

alias lampaon='cat /etc/config/tuya_offline/lampa-on | nc $IP 6668 > /dev/null'
alias lampaoff='cat /etc/config/tuya_offline/lampa-off | nc $IP 6668 > /dev/null'

while [ 1 ] ; do
        M=$(logread | grep "CONNECTED $mac" | tail -1)
        [ -z $OST ] && OST=0 && [ -z "$M" ] && NEW=0 && lampaoff && continue
        [ ! -z "$M" ] && {
                echo "$M" | grep -q DISCONNECTED && NEW=0 || NEW=1
                [ $OST -ne $NEW ] && [ $NEW -eq 1 ] && lampaon
                [ $OST -ne $NEW ] && [ $NEW -eq 0 ] && lampaoff
                OST=$NEW
        }
        sleep 5
done

Na początku ip lampy oraz mac smartfona. Pliczki wywołań wstawione w /etc/config/tuya_offline/, aby się z backupem ustawień przenosiły. Kiedy ciebie nie ma w domu, a ruter się restartuje to lampe gasi.

113

(17 odpowiedzi, napisanych Inne)

Cezary napisał/a:

Możesz sobie zrobić zwykle cgi które to będzie wysyłać

I wystarczy że ją wrzucę do /www/moje/index.htm ?

114

(17 odpowiedzi, napisanych Inne)

Znalazłem sposób na łatwe sterowanie smart wtyczkami typu Tuya z poziomu owrt.
Trik działa bez chmury, ale wtyczka oczywiście musi być skonfigurowana, wystarczy że jest podłączona do naszego wifi. Przetestowałem na 3 smart-wtyczkach różnych marek, wszystkie są na "protokole" Tuya, zachęcam do wypróbowania na innych, np. Zigbee, itd.
Nie potrzeba instalować żadnej paczki, wystarczy wbudowana komenda nc oraz adres IP naszej wtyczki (który zatem wypada ustawić na stały)

Okazuje się, że wtyczki Tuya słuchają grzecznie na porcie 6668/tcp. To co wystarczy zatem zrobić to przechwycić dane wysyłane ze smartfona do wtyczki po wifi. Pakiet przechwycony osobno przy włączaniu i wyłączaniu zapisujemy sobie na dysku i używamy do woli.

Przy wyłączonych danych komórkowych, do przechwycenia użyłem apki "NetCapture". Odpalamy obok apke Smart Life, przechodzimy do naszej wtyczki zaś w NetCapture klikamy Start. Potem w Smart Life włączamy wtyczkę, i kończymy nasłuch. Wybieramy z pozycji IP naszej wtyczki, wtedy na górze widać w jakim katalogu są nasze pakiety. Interesuje nas "request" - ale który - to już sami testujemy (raczej to będzie ten z najwyższym numerem). Przenosimy pliczek na ruter. Powtarzamy to samo dla wyłączania wtyczki.

Dalej już prosta sprawa, włączamy i wyłączamy poleceniem

cat request-on.dat | nc ip_wtyczki 6668 > /dev/null
cat request-off.dat | nc ip_wtyczki 6668 > /dev/null

W Windowsie analogicznie przy użyciu curl'a:

curl -s -T request-on.dat ip_wtyczki:6668
curl -s -T request-off.dat ip_wtyczki:6668

Jeśli wtyczki do LuCi pozwalają na przypisanie komendy do własnego buttonu, to mamy szybkie sterowanie domem.
Szkoda że MiFi tego nie umie, albo chociaż jakiś mikro http serwerek.

Tym sposobem mamy narzędzie do lokalnego programu sterowania prądem w domu z poziomu cron'a i własnych skryptów na etapie wcześniej od serwera.

Miłego !

115

(20 odpowiedzi, napisanych Sprzęt / Hardware)

Czyli mimo że nowoczesny, to na modem 5G w  MF289F nie ma dużych szans.
W jakim routerze zatem byłby to zacny upgrade?

116

(20 odpowiedzi, napisanych Sprzęt / Hardware)

MiG25 napisał/a:

Wszystkie ZTE mają gniazdo mPCIe , więc trzeba ogarnąć przejście na m.2.
Jeśli są przejściówki z mPCIe na m,2 to takie , które nie przeniosą USB3.0 ( bo w mPCIe standard to USB2.0 , tutaj są na któryś pinach dodatkowe pary do USB3.0 ale pewnie chińczyk poza standard nie wyjdzie) .  No i nawet jakby to pasowało ( i nie wystawało ponad obudowę )  , to i tak gniazda uFL są większe ( takie jak standardowo wo modemach na mPCIe ) , a w m.2 standardem są te gniazda mniejsze ( nie będę teraz szukał jaki to size...).
Także nadmiar anten to najmniejszy problem....

No tu jest LTE kat.20 więc raczej napewno nie mPCIE
@Cezary   Baterii też tu nie ma(?).

117

(20 odpowiedzi, napisanych Sprzęt / Hardware)

Czy teoretycznie możliwa jest zamiana na ten moduł w MF289F ? Co z nadmiarowym PEGiem - widać że tych w MF jest aż 5 ?

118

(303 odpowiedzi, napisanych Oprogramowanie / Software)

Focus napisał/a:
wisipior napisał/a:

Ponadto - nie wiem jak bardzo - ale chyba przydałoby się dorzucić "option hidden "  do WiFi GUI ....Szczególnie z myślą o routerach na działce...Sam się dziś naciąłem na tym.

I tak można zobaczyć ukrytą sieć.
A na działce lepiej żeby wszyscy w koło wiedzieli, że obiekt jest monitorowany.

99% społeczeństwa nie będzie szukać. z kolei "lepiej" to pojęcie względne rzecz jasna.

Chyba każdy AP ma opcję ukrywania - tak by ukrywał sieć ten kto chce schować.

119

(303 odpowiedzi, napisanych Oprogramowanie / Software)

Ponadto - nie wiem jak bardzo - ale chyba przydałoby się dorzucić "option hidden "  do WiFi GUI ....Szczególnie z myślą o routerach na działce...Sam się dziś naciąłem na tym.

120

(148 odpowiedzi, napisanych Oprogramowanie / Software)

wisipior napisał/a:

Kluczy nie dotykałem. był tylko backup + restore.  Więc co ?


PS. Właśnie się zorientowałem że umieszczanie kluczy na forum to formalne zapraszanie do swojego LANu.


Czy serwer wireguard keszuje urządzenie skojarzone z kluczem ?

121

(148 odpowiedzi, napisanych Oprogramowanie / Software)

Kluczy nie dotykałem. był tylko backup + restore.  Więc co ?


PS. Właśnie się zorientowałem że umieszczanie kluczy na forum to formalne zapraszanie do swojego LANu.

122

(148 odpowiedzi, napisanych Oprogramowanie / Software)

Jak to dokładnie można diagnozować ?
Dziwna sytuacja.
Zrobiłem backup konfigu MIFI, hard reset rutera, potem przywróciłem wszystko, restart mikrusa a i tak wg połączony a pakiety stoją

root@luiz:~# wg
interface: wg0
  public key: xxxxxxxxxxxxxxxxxxx
  private key: (hidden)
  listening port: 47528

peer: xxxxxxxxxxxxxxxxxxxx
  endpoint: 65.21.130.122:20100
  allowed ips: 10.9.0.0/24
  transfer: 0 B received, 17.34 KiB sent
  persistent keepalive: every 25 seconds

komenda wg na mikrusie:

interface: wg0
  public key: xxxxxxxxxxxxxxxxx
  private key: (hidden)
  listening port: 21052

peer: xxxxxxxxxxxxxxx
  allowed ips: 10.9.0.6/32, 10.10.10.0/24
  persistent keepalive: every 25 seconds

123

(1,242 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Jeżeli nie dostaniesz adresu to zostaje i tak rozebranie go i podłączenie uarta.

Pozostaje zatem dopytać jak go otworzyć bez uszkodzenia bo śrubek to tutaj nie widać.

124

(1,242 odpowiedzi, napisanych Sprzęt / Hardware)

Ktoś zalecił odblokować to inną komendą, ale po reboocie nie dostaje już IP.

admin@(none):/tmp# echo 102 > /sys/devices/platform/ath79-spi/spi_master/spi0/spi0.1/change_speed
admin@(none):/tmp# nandwrite -p /dev/mtd16 /tmp/initramfs-kernel.bin
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000
Writing data to block 7 at offset 0xe0000
Writing data to block 8 at offset 0x100000
Writing data to block 9 at offset 0x120000
Writing data to block 10 at offset 0x140000
Writing data to block 11 at offset 0x160000
Writing data to block 12 at offset 0x180000
Writing data to block 13 at offset 0x1a0000
Writing data to block 14 at offset 0x1c0000
Writing data to block 15 at offset 0x1e0000
Writing data to block 16 at offset 0x200000
Writing data to block 17 at offset 0x220000
Writing data to block 18 at offset 0x240000
Writing data to block 19 at offset 0x260000
Writing data to block 20 at offset 0x280000
Writing data to block 21 at offset 0x2a0000
Writing data to block 22 at offset 0x2c0000
Writing data to block 23 at offset 0x2e0000
Writing data to block 24 at offset 0x300000
Writing data to block 25 at offset 0x320000
Writing data to block 26 at offset 0x340000
Writing data to block 27 at offset 0x360000
Writing data to block 28 at offset 0x380000
Writing data to block 29 at offset 0x3a0000
Writing data to block 30 at offset 0x3c0000
Writing data to block 31 at offset 0x3e0000
Writing data to block 32 at offset 0x400000
Writing data to block 33 at offset 0x420000
Writing data to block 34 at offset 0x440000
Writing data to block 35 at offset 0x460000
Writing data to block 36 at offset 0x480000
Writing data to block 37 at offset 0x4a0000
Writing data to block 38 at offset 0x4c0000
Writing data to block 39 at offset 0x4e0000
Writing data to block 40 at offset 0x500000
Writing data to block 41 at offset 0x520000
Writing data to block 42 at offset 0x540000
Writing data to block 43 at offset 0x560000
Writing data to block 44 at offset 0x580000
Writing data to block 45 at offset 0x5a0000
Writing data to block 46 at offset 0x5c0000
Writing data to block 47 at offset 0x5e0000
Writing data to block 48 at offset 0x600000
Writing data to block 49 at offset 0x620000
Writing data to block 50 at offset 0x640000
Writing data to block 51 at offset 0x660000
Writing data to block 52 at offset 0x680000
Writing data to block 53 at offset 0x6a0000
Writing data to block 54 at offset 0x6c0000
Writing data to block 55 at offset 0x6e0000
Writing data to block 56 at offset 0x700000
Writing data to block 57 at offset 0x720000
admin@(none):/tmp# reboot -f

125

(1,242 odpowiedzi, napisanych Sprzęt / Hardware)

Cezary napisał/a:

Pokaż cat /proc/mtd

admin@(none):/tmp# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00010000 "u-boot"
mtd1: 00020000 00010000 "u-boot-env"
mtd2: 00140000 00010000 "reserved1"
mtd3: 000a0000 00020000 "fota-flag"
mtd4: 00080000 00020000 "art"
mtd5: 00080000 00020000 "mac"
mtd6: 000c0000 00020000 "reserved2"
mtd7: 00400000 00020000 "cfg-param"
mtd8: 00400000 00020000 "log"
mtd9: 000a0000 00020000 "oops"
mtd10: 00500000 00020000 "reserved3"
mtd11: 00800000 00020000 "web"
mtd12: 00300000 00020000 "kernel"
mtd13: 01a00000 00020000 "rootfs"
mtd14: 01900000 00020000 "data"
mtd15: 03200000 00020000 "fota"
mtd16: 01d00000 00020000 "firmware"