概述
不支持:AT+QNWINFO查询模式
使用AT+CSQ:查询信号为99(不可达)
sim_com
+CPSI: NR5G_SA,<Operation Mode>[,<MCC>-<MNC>,<TAC>,<SCellID>,<PCellID>,<Frequency Band>,<earfcn><RSRP>,<RSRQ>,<RSSNR>]
信号:
-200 to -30
5G NSA模式下:
AT+CNAOP?
+CNAOP: 7,12,9,5
设置为LTE模式:
AT+CNAOP=7,9,5,3,11,2,4
AT+CNAOP=12,5,9,7
强制更改模式:
AT+CNMP=13
设置模式自动的优先级:
AT+CNAOP
查询信号及模式:
AT+CPSI
AT+CPSI?
+CPSI: LTE,Online,460-00,0x747C,121274626,25,EUTRAN-BAND40,38950,5,5,【-49】,-591,-341,23
microcom /dev/ttyUSB2
ate1 //打开回显
然后进行命令的输入
at+cscs="GSM"
OK
ar
+CME ERROR: 4
at+cmgs="18373080266"
>
123
x1A
+CMGS: 1
OK
+SPIMSREASON: 1,0,""
查询sim
AT+CPIN?
1、设置短信的模式
AT+CMGF=1
2、设置数据编码GSM
at+CSMP=,,,0
19,143,0,0
3、设置TE字符集为gsm编码
AT+CSCS="GSM"
AT+CSCS="UCS2"
4、设置短消息地址,必须带上双引号
at+cmgs="18373080266"
AT+CMGS=75
>11000d91688173030862F60008003c003100320033ff0c004e0055004c004cff0c003000300030003200360030004400360042004200300039ff0c003100320033ff0c003500472192004c
AT+CMGS=75
11000d91688173030862F60008003c003100320033ff0c004e0055004c004cff0c003000300030003200360030004400360042004200300039ff0c003100320033ff0c003500472192004c
0001000D91688173030862F600083C003100320033FF0C004E0055004C004CFF0C003000300030003200360030004400360042004200300039FF0C003100320033FF0C003500472192004C
模块升级:
首先在AT中发送命令:AT+QDOWNLOAD=1
0891683108706305F001000D91685186033524F00008104F60597D003600360036003600360036
0891683108706305F001000D91685186033524F00008104F60597D003600360036003600360036
AT+CMGS=74
0001000D91688173030862F600083C003100320033FF0C004E0055004C004CFF0C003000300030003200360030004400360042004200300039FF0C003100320033FF0C003500472192004C
//短信中心:
AT+CSCA?
+CSCA: "002B0038003600310033003800300030003700330036003500300030",145
SN-20210714013
函数的复用与参数结构体的封装
inet_check(internet)
{
if(-1 == internet)
{
while(num > 10000){num++;};
system("ifconfig eth1 down;ifconfig eth1 up");
}
}
commit c68a7d38125474fca149ad4d4bdba2f58d4c4032
Author: liyong <1025209986@qq.com>
Date: Tue Jul 27 09:45:06 2021 +0800
(CPWT-RJ-20210714295)【AC580】WAN口有线连接上级路由设备,再设置外网为强制“5G”上网,下挂PC设备获取到上级路由分配的IP地址,拔出WAN
口网线,下挂PC设备不能获取到地址(断电重启后正常)
commit 304f2083b5a640d85c262ce962fc319ab170d855
Author: liyong <1025209986@qq.com>
Date: Tue Jul 27 09:39:40 2021 +0800
(CPWT-RJ-20210712281)【AC580】AP管理-配置模板列表界面,点击进入“创建配置模板”界面,其“登录账户”和“登录密码”可以输入中文(有一些AP
设备的登录界面是不能输入中文密码)
commit 19f51b6c989351936562648a80d72817d4ad7248
Author: liyong <1025209986@qq.com>
Date: Fri Jul 30 16:31:12 2021 +0800
(CPWT-RJ-20210721413)桥接模式下,设备的5G模组接口USB0会起来,设备的信号灯会全亮
enum {
WIRE_RULE_UNSET = 0,
WIRE_RULE_SET,
GLOBAL_NETWORK_CHK,
BR_RULE_SET,
GET_WIREWAN_GW
};
di_wan_handle设置
di_wan_handle 1 1 2 更新默认路由
无线重新设置:di_wan_handle 0 0;
切换命令:di_wan_handle 2
有线状态返回0表示通畅不需要切换,其他值切换到5G,在5G状态下返回0表示切换
config interface 'wan_type'
option actype '02' 无关
option wan_status '2' 连接模式
option sim_status '0'
option curr_5g_status '0'
option model_type '3' 无关
option curr_wan_connected '1' 无关
有线模式的情况:
config interface 'wan_type'
option wan_status '0'
option curr_wan_connected '1'
option actype '02'
option model_type '3'
option sim_status '1'
network.wan_type.mode_5g_status
1、测试5g下的信号查询命令和灯的状态以及临时文件记录
2、测试自动模式下同样的,
3、拔卡后同样的项目测试
4、usb0上分配的IP
5G拨不上号:
AT+CSQ
+CSQ: 0,99
OK
AT+QNWINFO
+QNWINFO: Unknown Service
AT+CSQ
+CSQ: 99,99
OK
AT+QNWINFO
+QNWINFO: No Service
5g下使用这个命令进行信号强度的查询:
5G NR 模式:
5G NR 参考信号接收功率的信号。范围: -156 ~ -31 dBm。该参数值越接近
-31,信号越强,越接近-156,信号越弱。
AT+QENG="servingcell"
+QENG: "servingcell","NOCONN","NR5G-SA","TDD",460,00,6307472,267,6604C4,504990,41,25,-93,-1,14,0,28,1
NR5G-SA:纯5g模式
<RSRQ>
移远展锐模块,不插上卡是没有模块地址分配的。
移远高通强制5G重启后:显示为4g
AT+QNWINFO
+QNWINFO: "","46000","CDMA BC0",0
AT+CSQ
改读取信号的值
没有卡的时候服务显示:
AT+QENG="servingcell"
+QENG: "servingcell","SEARCH"
展锐的
usb0 Link encap:Ethernet HWaddr A6:BD:DD:B2:40:2A
inet addr:10.164.204.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: 2409:8950:483:ca04:a4bd:ddff:feb2:402a/64 Scope:Global
inet6 addr: fe80::a4bd:ddff:feb2:402a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4607 (4.4 KiB) TX bytes:5726 (5.5 KiB)
展锐在自动模式下,拔卡重启后灯会继续亮:hcsq文件:LTE,35
查询:
AT+CSQ
+CSQ: 56,29
AT+QNWINFO
+QNWINFO: No Service
复制下来:
OK
AT+QENG="servingcell"+QENG: "servingcell","SEARCH"
OK
AT+CSQ
+CSQ: 54,31
OK
AT+QNWINFO
+QNWINFO: No Service
展锐没有拨上号是没有ip的。
hcsq文件没有得到及时的更新
自动模式下且信号不好的时候的反馈
AT+QENG="servingcell"
+QENG: "servingcell", "NOCONN"
+QENG: "servingcell","LTE","FDD",460,00,75,102,1300,3,5,5,29820,-101,-9,-70,3,8,6,28
+QENG: "servingcell","NR5G-NSA",0,0,0,0,0,0,0,0,0,0,0
<RSRP>
+QENG: "servingcell","NOCONN","NR5G-SA","TDD",460,00,6307472,267,6604C4,504990,41,25,-93,-1,14,0,28,1
+QENG: "servingcell","NOCONN","LTE","TDD",460,00,2,25,38950,40,255,5,29820,-84,-4,-61,28,15,0,43
<RSRP> LTE 模式:LTE 参考信号接收功率的信号
<RSRQ>
<RSSI> 接收信号强度指示。
option mode_5g_status '5'
使用RSRP参数,将RSRP参数化为三档
-156 ~ -31;
1、信号最好:-71~-31 对应到信号灯: 70-99
2、信号一般:-110~-71 40-=70
3、信号最差:-156~-110 0-=40
4、没有信号:0 =0 >99
int main()
{
char buf[128] = "+QENG: 460,00,75,102,1300,3,5,5,29820,-99,-9,-70,3,8,6,28";
char buf1[8] = "-";
char temp[128] = {0};
char *pos = strstr(buf,buf1);
printf("the pos is %sn",pos);
strncpy(temp,pos,3);
printf("the temp is : %sn",temp);
return 0;
}
root@LEDE:/# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.198 (liyong@ubunt) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-cdc38ce) ) #0 SMP PREEMPT Fri Jul 30 09:23:28 UTC 2021
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] On node 0 totalpages: 65488
[ 0.000000] DMA zone: 1024 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 65488 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] PERCPU: Embedded 18 pages/cpu @ffffffc00ffa8000 s35328 r8192 d30208 u73728
[ 0.000000] pcpu-alloc: s35328 r8192 d30208 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64464
[ 0.000000] Kernel command line: console=ttyS0,115200n1 loglevel=8 swiotlb=512 rootfstype=squashfs
[ 0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.000000] software IO TLB: mapped [mem 0x4fe48000-0x4ff48000] (1MB)
[ 0.000000] Memory: 235572K/261952K available (5184K kernel code, 349K rwdata, 1872K rodata, 336K init, 375K bss, 26380K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000 ( 246 GB)
[ 0.000000] .init : 0xffffff8008768000 - 0xffffff80087bc000 ( 336 KB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008591000 ( 5188 KB)
[ 0.000000] .rodata : 0xffffff8008591000 - 0xffffff8008768000 ( 1884 KB)
[ 0.000000] .data : 0xffffff80087bc000 - 0xffffff8008813790 ( 350 KB)
[ 0.000000] vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
[ 0.000000] 0xffffffbdc0000000 - 0xffffffbdc0400000 ( 4 MB actual)
[ 0.000000] fixed : 0xffffffbffe7fb000 - 0xffffffbffec00000 ( 4116 KB)
[ 0.000000] PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000 ( 16 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc010000000 ( 256 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] Architected cp15 timer(s) running at 12.50MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[ 0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[ 0.000057] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126102035 ns
[ 0.000224] Console: colour dummy device 80x25
[ 0.000239] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[ 0.000246] pid_max: default: 32768 minimum: 301
[ 0.000299] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.000305] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.000784] sched-energy: CPU device node has no sched-energy-costs
[ 0.000790] Invalid sched_group_energy for CPU0
[ 0.000794] CPU0: update cpu_capacity 1024
[ 0.000821] ASID allocator initialised with 32768 entries
[ 0.032098] Detected VIPT I-cache on CPU1
[ 0.032125] Invalid sched_group_energy for CPU1
[ 0.032127] CPU1: update cpu_capacity 1024
[ 0.032130] CPU1: Booted secondary processor [410fd034]
[ 0.032163] Brought up 2 CPUs
[ 0.032175] SMP: Total of 2 processors activated.
[ 0.032181] CPU features: detected feature: 32-bit EL0 Support
[ 0.032187] CPU: All CPU(s) started at EL2
[ 0.032199] alternatives: patching kernel code
[ 0.032277] Invalid sched_group_energy for CPU1
[ 0.032282] Invalid sched_group_energy for Cluster1
[ 0.032285] Invalid sched_group_energy for CPU0
[ 0.032289] Invalid sched_group_energy for Cluster0
[ 0.036663] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.036684] futex hash table entries: 512 (order: 4, 65536 bytes)
[ 0.036791] pinctrl core: initialized pinctrl subsystem
[ 0.037287] NET: Registered protocol family 16
[ 0.037699] [SPM] spm_base = ffffff8008026000
[ 0.037704] [SPM] spm_irq_0 = 6, spm_irq_1 = 7
[ 0.037708] [SPM] spm_irq_2 = 8, spm_irq_3 = 9
[ 0.037710] [SPM] set spm as wakeup devcie.
[ 0.037716] [SPM] spm_rtc cnt: 24414.
[ 0.052063] cpuidle: using governor menu
[ 0.052116] vdso: 2 pages (1 code @ ffffff8008597000, 1 data @ ffffff80087c0000)
[ 0.052277] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.052376] Serial: AMBA PL011 UART driver
[ 0.052432] [SPM] PWAKE_EN:1, PCMWDT_EN:0, BYPASS_SYSPWREQ:0, I2C_CHANNEL:2
[ 0.052437] [SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1
[ 0.055908] genirq: Setting trigger mode 2 for irq 229 failed (mtk_sysirq_set_type+0x0/0xc8)
[ 0.077555] vgaarb: loaded
[ 0.077734] SCSI subsystem initialized
[ 0.077958] usbcore: registered new interface driver usbfs
[ 0.078000] usbcore: registered new interface driver hub
[ 0.078039] usbcore: registered new device driver usb
[ 0.078991] clocksource: Switched to clocksource arch_sys_counter
[ 0.083758] NET: Registered protocol family 2
[ 0.084140] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.084160] TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
[ 0.084192] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.084236] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.084250] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.084349] NET: Registered protocol family 1
[ 0.084376] PCI: CLS 0 bytes, default 128
[ 0.099652] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.099849] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.100312] fuse init (API version 7.23)
[ 0.101015] io scheduler noop registered
[ 0.101207] io scheduler cfq registered (default)
[ 0.204156] mtk-pcie 1a143000.pcie: Port0 link down
[ 0.204350] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[ 0.204362] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.204368] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[ 0.204374] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.305247] mtk-pcie 1a145000.pcie: Port1 link down
[ 0.305407] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[ 0.305416] pci_bus 0001:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.305422] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[ 0.305428] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 0.309468] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.310515] console [ttyS0] disabled
[ 0.330727] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 232, base_baud = 1562500) is a ST16650V2
[ 0.996881] console [ttyS0] enabled
[ 1.001078] Unable to detect cache hierarchy for CPU 0
[ 1.009266] loop: module loaded
[ 1.012903] dump_power_table[0] = { .cpufreq_khz = 1350000, .cpufreq_ncpu = 2, .cpufreq_power = 995 }
[ 1.022149] dump_power_table[1] = { .cpufreq_khz = 1262500, .cpufreq_ncpu = 2, .cpufreq_power = 811 }
[ 1.031368] dump_power_table[2] = { .cpufreq_khz = 1137500, .cpufreq_ncpu = 2, .cpufreq_power = 736 }
[ 1.040590] dump_power_table[3] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 2, .cpufreq_power = 624 }
[ 1.049808] dump_power_table[4] = { .cpufreq_khz = 1350000, .cpufreq_ncpu = 1, .cpufreq_power = 517 }
[ 1.059024] dump_power_table[5] = { .cpufreq_khz = 812500, .cpufreq_ncpu = 2, .cpufreq_power = 492 }
[ 1.068155] dump_power_table[6] = { .cpufreq_khz = 1262500, .cpufreq_ncpu = 1, .cpufreq_power = 377 }
[ 1.077371] dump_power_table[7] = { .cpufreq_khz = 600000, .cpufreq_ncpu = 2, .cpufreq_power = 376 }
[ 1.086502] dump_power_table[8] = { .cpufreq_khz = 1137500, .cpufreq_ncpu = 1, .cpufreq_power = 333 }
[ 1.095719] dump_power_table[9] = { .cpufreq_khz = 437500, .cpufreq_ncpu = 2, .cpufreq_power = 295 }
[ 1.104848] dump_power_table[10] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 1, .cpufreq_power = 258 }
[ 1.114149] dump_power_table[11] = { .cpufreq_khz = 300000, .cpufreq_ncpu = 2, .cpufreq_power = 225 }
[ 1.123363] dump_power_table[12] = { .cpufreq_khz = 812500, .cpufreq_ncpu = 1, .cpufreq_power = 204 }
[ 1.132577] dump_power_table[13] = { .cpufreq_khz = 600000, .cpufreq_ncpu = 1, .cpufreq_power = 166 }
[ 1.141794] dump_power_table[14] = { .cpufreq_khz = 437500, .cpufreq_ncpu = 1, .cpufreq_power = 140 }
[ 1.151009] dump_power_table[15] = { .cpufreq_khz = 300000, .cpufreq_ncpu = 1, .cpufreq_power = 119 }
[ 1.161401] [cal] calefuse1 = 0x74de0bc0
[ 1.165334] [cal] calefuse2 = 0x20c010
[ 1.169084] [cal] g_adc_ge_t = 0x1e0
[ 1.172657] [cal] g_adc_oe_t = 0x1d3
[ 1.176232] [cal] g_degc_cali = 0x2f
[ 1.179803] [cal] g_adc_cali_en_t = 0x1
[ 1.183638] [cal] g_o_slope = 0x0
[ 1.186943] [cal] g_o_slope_sign = 0x0
[ 1.190687] [cal] g_id = 0x0
[ 1.193654] [cal] g_o_vtsmcu1 = 0x0
[ 1.197138] [cal] g_o_vtsmcu2 = 0x83
[ 1.200709] [cal] g_o_vtsmcu3 = 0x0
[ 1.204193] [cal] g_o_vtsmcu4 = 0x0
[ 1.207677] [cal] g_ge = 0xffffffb2
[ 1.211247] [cal] g_gain = 0x26c2
[ 1.214639] [cal] g_x_roomt1 = 0x1f88
[ 1.221264] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=ffffffc00e45b880
[ 1.229294] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=ffffffc00e45b480
[ 1.239446] [btmtk_err] btmtk_get_irq: irq_id:239 irq_flags:8
[ 1.256340] Not Support SPI-Nand device:[0x0 0x0]
[ 1.261339] mtk-nor 11014000.spi: w25q128 (16384 Kbytes)
[ 1.266743] 6 ofpart partitions found on MTD device mtk_nor
[ 1.272326] Creating 6 MTD partitions on "mtk_nor":
[ 1.277208] 0x000000000000-0x000000040000 : "Preloader"
[ 1.282999] 0x000000040000-0x000000060000 : "ATF"
[ 1.288215] 0x000000060000-0x0000000a0000 : "Bootloader"
[ 1.294013] 0x0000000a0000-0x0000000c0000 : "Config"
[ 1.299466] 0x0000000c0000-0x0000000e0000 : "Factory"
[ 1.304985] 0x0000000e0000-0x000001000000 : "Kernel"
[ 1.312331] 2 fit-fw partitions found on MTD device Kernel
[ 1.317818] 0x0000000e0000-0x000000372000 : "kernel"
[ 1.323293] 0x000000380000-0x000001000000 : "rootfs"
[ 1.328724] mtd: device 7 (rootfs) set to be root filesystem
[ 1.334548] 1 squashfs-split partitions found on MTD device rootfs
[ 1.340726] 0x000000af8000-0x000001000000 : "rootfs_data"
[ 1.347644] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1, imq_dev_accurate_stats = 1)
[ 1.356784] Hooking IMQ after NAT on PREROUTING.
[ 1.361484] Hooking IMQ before NAT on POSTROUTING.
[ 1.366562] libphy: Fixed MDIO Bus: probed
[ 1.371110] sean debug physpeed = 2500
[ 1.397606] libphy: mdio: probed
[ 1.400860] mtk_soc_eth 1b100000.ethernet: generated random MAC address 32:26:c0:a8:8f:c3
[ 1.409216] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 1.419906] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffff8008900000, irq 250
[ 1.429062] mtk_soc_eth 1b100000.ethernet: generated random MAC address da:84:d8:d0:1e:6d
[ 1.437399] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[ 1.448018] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffff8008900000, irq 250
[ 1.457154] netif_napi_add() called with weight 256 on device
[ 1.463141] usbcore: registered new interface driver ax88179_178a
[ 1.469269] usbcore: registered new interface driver cdc_ether
[ 1.475134] usbcore: registered new interface driver cdc_eem
[ 1.480835] usbcore: registered new interface driver qmi_wwan_simcom
[ 1.487233] usbcore: registered new interface driver cdc_ncm
[ 1.493280] 1a0c0000.usb supply vbus not found, using dummy regulator
[ 1.499750] 1a0c0000.usb supply vusb33 not found, using dummy regulator
[ 1.506648] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[ 1.511886] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[ 1.519375] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x00210010
[ 1.527755] xhci-mtk 1a0c0000.usb: irq 246, io mem 0x1a0c0000
[ 1.533594] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.540384] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.547605] usb usb1: Product: xHCI Host Controller
[ 1.552480] usb usb1: Manufacturer: Linux 4.4.198 xhci-hcd
[ 1.557964] usb usb1: SerialNumber: 1a0c0000.usb
[ 1.562882] hub 1-0:1.0: USB hub found
[ 1.566646] hub 1-0:1.0: 2 ports detected
[ 1.570921] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[ 1.576152] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[ 1.583583] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.591724] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.598516] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.605736] usb usb2: Product: xHCI Host Controller
[ 1.610614] usb usb2: Manufacturer: Linux 4.4.198 xhci-hcd
[ 1.616098] usb usb2: SerialNumber: 1a0c0000.usb
[ 1.620970] hub 2-0:1.0: USB hub found
[ 1.624734] hub 2-0:1.0: 1 port detected
[ 1.628983] usbcore: registered new interface driver cdc_wdm
[ 1.634722] usbcore: registered new interface driver usbserial
[ 1.640581] usbcore: registered new interface driver usbserial_generic
[ 1.647130] usbserial: USB Serial support registered for generic
[ 1.653169] usbcore: registered new interface driver option
[ 1.658761] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.666862] MTK_WDT_NONRST_REG(20000000)
[ 1.671077] mtk-wdt 10212000.watchdog: register restart_handler on reboot_notifier_list for psci reset
[ 1.680385] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 1.688350] register cpuidle driver!!!!!!!!!!!!!!!!!
[ 1.695538] netem: version 1.3
[ 1.698641] nf_conntrack version 0.5.0 (1840 buckets, 7360 max)
[ 1.704858] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.710801] NET: Registered protocol family 10
[ 1.716050] sit: IPv6 over IPv4 tunneling driver
[ 1.721094] NET: Registered protocol family 17
[ 1.725572] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.738182] 8021q: 802.1Q VLAN Support v1.8
[ 1.742805] registered taskstats version 1
[ 2.262268] ++++++[rtl8367s_hw_reset]+++++++
[ 2.407007] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gdm1_to_gmac1_esw updated = 1
[ 2.416139] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[ 2.424921] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[ 2.433358] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 1
[ 2.443268] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[ 2.452425] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gdm1_to_gmac1_esw updated = 0
[ 2.461566] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[ 2.470349] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[ 2.478783] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 0
[ 2.488691] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[ 2.996890] [rtl8367s_swconfig_init]
[ 3.000743] [SPM] pwrap node has not register regmap
[ 3.006156] regulator regulator.3: info->modeset_reg 0xc = 0x181c32a2
[ 3.013528] regulator regulator.3: info->modeset_reg 0xc = 0x101c32a2
[ 3.036457] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[ 3.043680] Freeing unused kernel memory: 336K
[ 3.048133] This architecture does not have kernel memory protection.
[ 4.749938] init: Console is alive
[ 4.753479] init: - watchdog -
[ 5.370859] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.536691] gpio-keys gpio-keys: failed to set debounce_interval for gpio:511
[ 5.544968] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.551896] ehci-platform: EHCI generic platform driver
[ 5.557969] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.564570] ohci-platform: OHCI generic platform driver
[ 5.571048] usbcore: registered new interface driver usb-storage
[ 5.577184] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.587266] init: - preinit -
[ 7.881331] random: jshn: uninitialized urandom read (4 bytes read, 115 bits of entropy available)
[ 7.924343] random: jshn: uninitialized urandom read (4 bytes read, 115 bits of entropy available)
[ 7.950004] random: jshn: uninitialized urandom read (4 bytes read, 115 bits of entropy available)
[ 8.649592] ++++++[rtl8367s_hw_reset]+++++++
[ 9.183427] random: nonblocking pool is initialized
[ 12.517839] mount_root: loading kmods from internal overlay
[ 12.533010] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 12.540284] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 14.209403] jffs2: notice: (859) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 14.225839] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 14.232779] block: unable to load configuration (fstab: Entry not found)
[ 14.239508] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 14.245895] block: unable to load configuration (fstab: Entry not found)
[ 14.252623] block: attempting to load /etc/config/fstab
[ 14.258391] block: unable to load configuration (fstab: Entry not found)
[ 14.265118] block: no usable configuration
[ 15.188751] jffs2: notice: (856) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 15.932749] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 15.939691] block: unable to load configuration (fstab: Entry not found)
[ 15.946413] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 15.952801] block: unable to load configuration (fstab: Entry not found)
[ 15.959534] block: attempting to load /etc/config/fstab
[ 15.964789] block: unable to load configuration (fstab: Entry not found)
[ 15.971508] block: no usable configuration
[ 15.988070] mount_root: switching to jffs2 overlay
[ 16.047630] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 16.118028] procd: - early -
[ 16.121009] procd: - watchdog -
[ 16.683708] procd: - watchdog -
[ 16.686960] procd: - ubus -
[ 16.762044] procd: - init -
[ 16.891584] kmodloader: loading kernel modules from /etc/modules.d/*
[ 16.906329] Initializing XFRM netlink socket
[ 16.911510] NET: Registered protocol family 15
[ 16.920389] l2tp_core: L2TP core driver, V2.0
[ 16.925659] l2tp_netlink: L2TP netlink interface
[ 16.932617] gre: GRE over IPv4 demultiplexor driver
[ 16.938476] ip_gre: GRE over IPv4 tunneling driver
[ 16.945383] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 16.954652] u32 classifier
[ 16.957460] input device check on
[ 16.961202] Actions configured
[ 16.965248] Mirror/redirect action on
[ 16.972685] Bridge firewalling registered
[ 16.980154] Ebtables v2.0 registered
[ 17.064870] xt_time: kernel timezone is -0000
[ 17.076147] PPP generic driver version 2.4.2
[ 17.081658] PPP MPPE Compression module registered
[ 17.087195] NET: Registered protocol family 24
[ 17.092252] PPTP driver version 0.8.5
[ 17.097564] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 17.103714] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 22.195424] mediatek_soc_hnat 1b100000.hnat: wan = eth1
[ 22.200670] mediatek_soc_hnat 1b100000.hnat: lan = eth0
[ 22.205905] mediatek_soc_hnat 1b100000.hnat: ppd = eth0
[ 22.211137] mediatek_soc_hnat 1b100000.hnat: gmac num = 2
[ 22.217014] mediatek_soc_hnat 1b100000.hnat: FOE entry number = 8192
[ 22.223789] mediatek_soc_hnat 1b100000.hnat: hwnat start
[ 23.261749] ++++++[rtl8367s_hw_reset]+++++++
[ 24.506764] device eth0 entered promiscuous mode
[ 24.512069] br-lan: port 1(eth0) entered forwarding state
[ 24.517493] br-lan: port 1(eth0) entered forwarding state
[ 26.518992] br-lan: port 1(eth0) entered forwarding state
[ 51.470954] device eth1 entered promiscuous mode
[ 51.475852] device br-lan entered promiscuous mode
at+cgdcont=1,"IPV4V6","anritsul.com"
at+cgdcont=1,"IPV4V6","anritsu.com"
AT+SIMCOMATI
AT+GMR
AT+CSQ
AT+CPSI?microcom /dev/ttyUSB2
ate1 //打开回显
然后进行命令的输入
at+cscs="GSM"
OK
ar
+CME ERROR: 4
at+cmgs="18373080266"
>
123
x1A
+CMGS: 1
OK
+SPIMSREASON: 1,0,""
查询sim
AT+CPIN?
1、设置短信的模式
AT+CMGF=1
2、设置数据编码GSM
at+CSMP=,,,0
19,143,0,0
3、设置TE字符集为gsm编码
AT+CSCS="GSM"
AT+CSCS="UCS2"
4、设置短消息地址,必须带上双引号
at+cmgs="18373080266"
AT+CMGS=75
>11000d91688173030862F60008003c003100320033ff0c004e0055004c004cff0c003000300030003200360030004400360042004200300039ff0c003100320033ff0c003500472192004c
AT+CMGS=75
11000d91688173030862F60008003c003100320033ff0c004e0055004c004cff0c003000300030003200360030004400360042004200300039ff0c003100320033ff0c003500472192004c
0001000D91688173030862F600083C003100320033FF0C004E0055004C004CFF0C003000300030003200360030004400360042004200300039FF0C003100320033FF0C003500472192004C
模块升级:
首先在AT中发送命令:AT+QDOWNLOAD=1
0891683108706305F001000D91685186033524F00008104F60597D003600360036003600360036
0891683108706305F001000D91685186033524F00008104F60597D003600360036003600360036
AT+CMGS=74
0001000D91688173030862F600083C003100320033FF0C004E0055004C004CFF0C003000300030003200360030004400360042004200300039FF0C003100320033FF0C003500472192004C
//短信中心:
AT+CSCA?
+CSCA: "002B0038003600310033003800300030003700330036003500300030",145
SN-20210714013
函数的复用与参数结构体的封装
inet_check(internet)
{
if(-1 == internet)
{
while(num > 10000){num++;};
system("ifconfig eth1 down;ifconfig eth1 up");
}
}
commit c68a7d38125474fca149ad4d4bdba2f58d4c4032
Author: liyong <1025209986@qq.com>
Date: Tue Jul 27 09:45:06 2021 +0800
(CPWT-RJ-20210714295)【AC580】WAN口有线连接上级路由设备,再设置外网为强制“5G”上网,下挂PC设备获取到上级路由分配的IP地址,拔出WAN
口网线,下挂PC设备不能获取到地址(断电重启后正常)
commit 304f2083b5a640d85c262ce962fc319ab170d855
Author: liyong <1025209986@qq.com>
Date: Tue Jul 27 09:39:40 2021 +0800
(CPWT-RJ-20210712281)【AC580】AP管理-配置模板列表界面,点击进入“创建配置模板”界面,其“登录账户”和“登录密码”可以输入中文(有一些AP
设备的登录界面是不能输入中文密码)
commit 19f51b6c989351936562648a80d72817d4ad7248
Author: liyong <1025209986@qq.com>
Date: Fri Jul 30 16:31:12 2021 +0800
(CPWT-RJ-20210721413)桥接模式下,设备的5G模组接口USB0会起来,设备的信号灯会全亮
enum {
WIRE_RULE_UNSET = 0,
WIRE_RULE_SET,
GLOBAL_NETWORK_CHK,
BR_RULE_SET,
GET_WIREWAN_GW
};
di_wan_handle设置
di_wan_handle 1 1 2 更新默认路由
无线重新设置:di_wan_handle 0 0;
切换命令:di_wan_handle 2
有线状态返回0表示通畅不需要切换,其他值切换到5G,在5G状态下返回0表示切换
config interface 'wan_type'
option actype '02' 无关
option wan_status '2' 连接模式
option sim_status '0'
option curr_5g_status '0'
option model_type '3' 无关
option curr_wan_connected '1' 无关
有线模式的情况:
config interface 'wan_type'
option wan_status '0'
option curr_wan_connected '1'
option actype '02'
option model_type '3'
option sim_status '1'
network.wan_type.mode_5g_status
1、测试5g下的信号查询命令和灯的状态以及临时文件记录
2、测试自动模式下同样的,
3、拔卡后同样的项目测试
4、usb0上分配的IP
5G拨不上号:
AT+CSQ
+CSQ: 0,99
OK
AT+QNWINFO
+QNWINFO: Unknown Service
AT+CSQ
+CSQ: 99,99
OK
AT+QNWINFO
+QNWINFO: No Service
5g下使用这个命令进行信号强度的查询:
5G NR 模式:
5G NR 参考信号接收功率的信号。范围: -156 ~ -31 dBm。该参数值越接近
-31,信号越强,越接近-156,信号越弱。
AT+QENG="servingcell"
+QENG: "servingcell","NOCONN","NR5G-SA","TDD",460,00,6307472,267,6604C4,504990,41,25,-93,-1,14,0,28,1
NR5G-SA:纯5g模式
<RSRQ>
移远展锐模块,不插上卡是没有模块地址分配的。
移远高通强制5G重启后:显示为4g
AT+QNWINFO
+QNWINFO: "","46000","CDMA BC0",0
AT+CSQ
改读取信号的值
没有卡的时候服务显示:
AT+QENG="servingcell"
+QENG: "servingcell","SEARCH"
展锐的
usb0 Link encap:Ethernet HWaddr A6:BD:DD:B2:40:2A
inet addr:10.164.204.1 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: 2409:8950:483:ca04:a4bd:ddff:feb2:402a/64 Scope:Global
inet6 addr: fe80::a4bd:ddff:feb2:402a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4607 (4.4 KiB) TX bytes:5726 (5.5 KiB)
展锐在自动模式下,拔卡重启后灯会继续亮:hcsq文件:LTE,35
查询:
AT+CSQ
+CSQ: 56,29
AT+QNWINFO
+QNWINFO: No Service
复制下来:
OK
AT+QENG="servingcell"+QENG: "servingcell","SEARCH"
OK
AT+CSQ
+CSQ: 54,31
OK
AT+QNWINFO
+QNWINFO: No Service
展锐没有拨上号是没有ip的。
hcsq文件没有得到及时的更新
自动模式下且信号不好的时候的反馈
AT+QENG="servingcell"
+QENG: "servingcell", "NOCONN"
+QENG: "servingcell","LTE","FDD",460,00,75,102,1300,3,5,5,29820,-101,-9,-70,3,8,6,28
+QENG: "servingcell","NR5G-NSA",0,0,0,0,0,0,0,0,0,0,0
<RSRP>
+QENG: "servingcell","NOCONN","NR5G-SA","TDD",460,00,6307472,267,6604C4,504990,41,25,-93,-1,14,0,28,1
+QENG: "servingcell","NOCONN","LTE","TDD",460,00,2,25,38950,40,255,5,29820,-84,-4,-61,28,15,0,43
<RSRP> LTE 模式:LTE 参考信号接收功率的信号
<RSRQ>
<RSSI> 接收信号强度指示。
option mode_5g_status '5'
使用RSRP参数,将RSRP参数化为三档
-156 ~ -31;
1、信号最好:-71~-31 对应到信号灯: 70-99
2、信号一般:-110~-71 40-=70
3、信号最差:-156~-110 0-=40
4、没有信号:0 =0 >99
int main()
{
char buf[128] = "+QENG: 460,00,75,102,1300,3,5,5,29820,-99,-9,-70,3,8,6,28";
char buf1[8] = "-";
char temp[128] = {0};
char *pos = strstr(buf,buf1);
printf("the pos is %sn",pos);
strncpy(temp,pos,3);
printf("the temp is : %sn",temp);
return 0;
}
root@LEDE:/# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.198 (liyong@ubunt) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-cdc38ce) ) #0 SMP PREEMPT Fri Jul 30 09:23:28 UTC 2021
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] On node 0 totalpages: 65488
[ 0.000000] DMA zone: 1024 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 65488 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv0.2 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: Trusted OS migration not required
[ 0.000000] PERCPU: Embedded 18 pages/cpu @ffffffc00ffa8000 s35328 r8192 d30208 u73728
[ 0.000000] pcpu-alloc: s35328 r8192 d30208 u73728 alloc=18*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64464
[ 0.000000] Kernel command line: console=ttyS0,115200n1 loglevel=8 swiotlb=512 rootfstype=squashfs
[ 0.000000] PID hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.000000] software IO TLB: mapped [mem 0x4fe48000-0x4ff48000] (1MB)
[ 0.000000] Memory: 235572K/261952K available (5184K kernel code, 349K rwdata, 1872K rodata, 336K init, 375K bss, 26380K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
[ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000 ( 246 GB)
[ 0.000000] .init : 0xffffff8008768000 - 0xffffff80087bc000 ( 336 KB)
[ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008591000 ( 5188 KB)
[ 0.000000] .rodata : 0xffffff8008591000 - 0xffffff8008768000 ( 1884 KB)
[ 0.000000] .data : 0xffffff80087bc000 - 0xffffff8008813790 ( 350 KB)
[ 0.000000] vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
[ 0.000000] 0xffffffbdc0000000 - 0xffffffbdc0400000 ( 4 MB actual)
[ 0.000000] fixed : 0xffffffbffe7fb000 - 0xffffffbffec00000 ( 4116 KB)
[ 0.000000] PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000 ( 16 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc010000000 ( 256 MB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 64.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] Architected cp15 timer(s) running at 12.50MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[ 0.000003] sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[ 0.000057] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126102035 ns
[ 0.000224] Console: colour dummy device 80x25
[ 0.000239] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=50000)
[ 0.000246] pid_max: default: 32768 minimum: 301
[ 0.000299] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.000305] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.000784] sched-energy: CPU device node has no sched-energy-costs
[ 0.000790] Invalid sched_group_energy for CPU0
[ 0.000794] CPU0: update cpu_capacity 1024
[ 0.000821] ASID allocator initialised with 32768 entries
[ 0.032098] Detected VIPT I-cache on CPU1
[ 0.032125] Invalid sched_group_energy for CPU1
[ 0.032127] CPU1: update cpu_capacity 1024
[ 0.032130] CPU1: Booted secondary processor [410fd034]
[ 0.032163] Brought up 2 CPUs
[ 0.032175] SMP: Total of 2 processors activated.
[ 0.032181] CPU features: detected feature: 32-bit EL0 Support
[ 0.032187] CPU: All CPU(s) started at EL2
[ 0.032199] alternatives: patching kernel code
[ 0.032277] Invalid sched_group_energy for CPU1
[ 0.032282] Invalid sched_group_energy for Cluster1
[ 0.032285] Invalid sched_group_energy for CPU0
[ 0.032289] Invalid sched_group_energy for Cluster0
[ 0.036663] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.036684] futex hash table entries: 512 (order: 4, 65536 bytes)
[ 0.036791] pinctrl core: initialized pinctrl subsystem
[ 0.037287] NET: Registered protocol family 16
[ 0.037699] [SPM] spm_base = ffffff8008026000
[ 0.037704] [SPM] spm_irq_0 = 6, spm_irq_1 = 7
[ 0.037708] [SPM] spm_irq_2 = 8, spm_irq_3 = 9
[ 0.037710] [SPM] set spm as wakeup devcie.
[ 0.037716] [SPM] spm_rtc cnt: 24414.
[ 0.052063] cpuidle: using governor menu
[ 0.052116] vdso: 2 pages (1 code @ ffffff8008597000, 1 data @ ffffff80087c0000)
[ 0.052277] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.052376] Serial: AMBA PL011 UART driver
[ 0.052432] [SPM] PWAKE_EN:1, PCMWDT_EN:0, BYPASS_SYSPWREQ:0, I2C_CHANNEL:2
[ 0.052437] [SLP] SLEEP_DPIDLE_EN:1, REPLACE_DEF_WAKESRC:0, SUSPEND_LOG_EN:1
[ 0.055908] genirq: Setting trigger mode 2 for irq 229 failed (mtk_sysirq_set_type+0x0/0xc8)
[ 0.077555] vgaarb: loaded
[ 0.077734] SCSI subsystem initialized
[ 0.077958] usbcore: registered new interface driver usbfs
[ 0.078000] usbcore: registered new interface driver hub
[ 0.078039] usbcore: registered new device driver usb
[ 0.078991] clocksource: Switched to clocksource arch_sys_counter
[ 0.083758] NET: Registered protocol family 2
[ 0.084140] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.084160] TCP bind hash table entries: 2048 (order: 3, 32768 bytes)
[ 0.084192] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.084236] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.084250] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.084349] NET: Registered protocol family 1
[ 0.084376] PCI: CLS 0 bytes, default 128
[ 0.099652] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.099849] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.100312] fuse init (API version 7.23)
[ 0.101015] io scheduler noop registered
[ 0.101207] io scheduler cfq registered (default)
[ 0.204156] mtk-pcie 1a143000.pcie: Port0 link down
[ 0.204350] mtk-pcie 1a143000.pcie: PCI host bridge to bus 0000:00
[ 0.204362] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.204368] pci_bus 0000:00: root bus resource [mem 0x20000000-0x27ffffff]
[ 0.204374] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.305247] mtk-pcie 1a145000.pcie: Port1 link down
[ 0.305407] mtk-pcie 1a145000.pcie: PCI host bridge to bus 0001:00
[ 0.305416] pci_bus 0001:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.305422] pci_bus 0001:00: root bus resource [mem 0x28000000-0x2fffffff]
[ 0.305428] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 0.309468] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 0.310515] console [ttyS0] disabled
[ 0.330727] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 232, base_baud = 1562500) is a ST16650V2
[ 0.996881] console [ttyS0] enabled
[ 1.001078] Unable to detect cache hierarchy for CPU 0
[ 1.009266] loop: module loaded
[ 1.012903] dump_power_table[0] = { .cpufreq_khz = 1350000, .cpufreq_ncpu = 2, .cpufreq_power = 995 }
[ 1.022149] dump_power_table[1] = { .cpufreq_khz = 1262500, .cpufreq_ncpu = 2, .cpufreq_power = 811 }
[ 1.031368] dump_power_table[2] = { .cpufreq_khz = 1137500, .cpufreq_ncpu = 2, .cpufreq_power = 736 }
[ 1.040590] dump_power_table[3] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 2, .cpufreq_power = 624 }
[ 1.049808] dump_power_table[4] = { .cpufreq_khz = 1350000, .cpufreq_ncpu = 1, .cpufreq_power = 517 }
[ 1.059024] dump_power_table[5] = { .cpufreq_khz = 812500, .cpufreq_ncpu = 2, .cpufreq_power = 492 }
[ 1.068155] dump_power_table[6] = { .cpufreq_khz = 1262500, .cpufreq_ncpu = 1, .cpufreq_power = 377 }
[ 1.077371] dump_power_table[7] = { .cpufreq_khz = 600000, .cpufreq_ncpu = 2, .cpufreq_power = 376 }
[ 1.086502] dump_power_table[8] = { .cpufreq_khz = 1137500, .cpufreq_ncpu = 1, .cpufreq_power = 333 }
[ 1.095719] dump_power_table[9] = { .cpufreq_khz = 437500, .cpufreq_ncpu = 2, .cpufreq_power = 295 }
[ 1.104848] dump_power_table[10] = { .cpufreq_khz = 1025000, .cpufreq_ncpu = 1, .cpufreq_power = 258 }
[ 1.114149] dump_power_table[11] = { .cpufreq_khz = 300000, .cpufreq_ncpu = 2, .cpufreq_power = 225 }
[ 1.123363] dump_power_table[12] = { .cpufreq_khz = 812500, .cpufreq_ncpu = 1, .cpufreq_power = 204 }
[ 1.132577] dump_power_table[13] = { .cpufreq_khz = 600000, .cpufreq_ncpu = 1, .cpufreq_power = 166 }
[ 1.141794] dump_power_table[14] = { .cpufreq_khz = 437500, .cpufreq_ncpu = 1, .cpufreq_power = 140 }
[ 1.151009] dump_power_table[15] = { .cpufreq_khz = 300000, .cpufreq_ncpu = 1, .cpufreq_power = 119 }
[ 1.161401] [cal] calefuse1 = 0x74de0bc0
[ 1.165334] [cal] calefuse2 = 0x20c010
[ 1.169084] [cal] g_adc_ge_t = 0x1e0
[ 1.172657] [cal] g_adc_oe_t = 0x1d3
[ 1.176232] [cal] g_degc_cali = 0x2f
[ 1.179803] [cal] g_adc_cali_en_t = 0x1
[ 1.183638] [cal] g_o_slope = 0x0
[ 1.186943] [cal] g_o_slope_sign = 0x0
[ 1.190687] [cal] g_id = 0x0
[ 1.193654] [cal] g_o_vtsmcu1 = 0x0
[ 1.197138] [cal] g_o_vtsmcu2 = 0x83
[ 1.200709] [cal] g_o_vtsmcu3 = 0x0
[ 1.204193] [cal] g_o_vtsmcu4 = 0x0
[ 1.207677] [cal] g_ge = 0xffffffb2
[ 1.211247] [cal] g_gain = 0x26c2
[ 1.214639] [cal] g_x_roomt1 = 0x1f88
[ 1.221264] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=ffffffc00e45b880
[ 1.229294] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=ffffffc00e45b480
[ 1.239446] [btmtk_err] btmtk_get_irq: irq_id:239 irq_flags:8
[ 1.256340] Not Support SPI-Nand device:[0x0 0x0]
[ 1.261339] mtk-nor 11014000.spi: w25q128 (16384 Kbytes)
[ 1.266743] 6 ofpart partitions found on MTD device mtk_nor
[ 1.272326] Creating 6 MTD partitions on "mtk_nor":
[ 1.277208] 0x000000000000-0x000000040000 : "Preloader"
[ 1.282999] 0x000000040000-0x000000060000 : "ATF"
[ 1.288215] 0x000000060000-0x0000000a0000 : "Bootloader"
[ 1.294013] 0x0000000a0000-0x0000000c0000 : "Config"
[ 1.299466] 0x0000000c0000-0x0000000e0000 : "Factory"
[ 1.304985] 0x0000000e0000-0x000001000000 : "Kernel"
[ 1.312331] 2 fit-fw partitions found on MTD device Kernel
[ 1.317818] 0x0000000e0000-0x000000372000 : "kernel"
[ 1.323293] 0x000000380000-0x000001000000 : "rootfs"
[ 1.328724] mtd: device 7 (rootfs) set to be root filesystem
[ 1.334548] 1 squashfs-split partitions found on MTD device rootfs
[ 1.340726] 0x000000af8000-0x000001000000 : "rootfs_data"
[ 1.347644] IMQ driver loaded successfully. (numdevs = 2, numqueues = 1, imq_dev_accurate_stats = 1)
[ 1.356784] Hooking IMQ after NAT on PREROUTING.
[ 1.361484] Hooking IMQ before NAT on POSTROUTING.
[ 1.366562] libphy: Fixed MDIO Bus: probed
[ 1.371110] sean debug physpeed = 2500
[ 1.397606] libphy: mdio: probed
[ 1.400860] mtk_soc_eth 1b100000.ethernet: generated random MAC address 32:26:c0:a8:8f:c3
[ 1.409216] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[ 1.419906] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xffffff8008900000, irq 250
[ 1.429062] mtk_soc_eth 1b100000.ethernet: generated random MAC address da:84:d8:d0:1e:6d
[ 1.437399] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[ 1.448018] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xffffff8008900000, irq 250
[ 1.457154] netif_napi_add() called with weight 256 on device
[ 1.463141] usbcore: registered new interface driver ax88179_178a
[ 1.469269] usbcore: registered new interface driver cdc_ether
[ 1.475134] usbcore: registered new interface driver cdc_eem
[ 1.480835] usbcore: registered new interface driver qmi_wwan_simcom
[ 1.487233] usbcore: registered new interface driver cdc_ncm
[ 1.493280] 1a0c0000.usb supply vbus not found, using dummy regulator
[ 1.499750] 1a0c0000.usb supply vusb33 not found, using dummy regulator
[ 1.506648] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[ 1.511886] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 1
[ 1.519375] xhci-mtk 1a0c0000.usb: hcc params 0x01403198 hci version 0x96 quirks 0x00210010
[ 1.527755] xhci-mtk 1a0c0000.usb: irq 246, io mem 0x1a0c0000
[ 1.533594] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.540384] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.547605] usb usb1: Product: xHCI Host Controller
[ 1.552480] usb usb1: Manufacturer: Linux 4.4.198 xhci-hcd
[ 1.557964] usb usb1: SerialNumber: 1a0c0000.usb
[ 1.562882] hub 1-0:1.0: USB hub found
[ 1.566646] hub 1-0:1.0: 2 ports detected
[ 1.570921] xhci-mtk 1a0c0000.usb: xHCI Host Controller
[ 1.576152] xhci-mtk 1a0c0000.usb: new USB bus registered, assigned bus number 2
[ 1.583583] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 1.591724] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 1.598516] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.605736] usb usb2: Product: xHCI Host Controller
[ 1.610614] usb usb2: Manufacturer: Linux 4.4.198 xhci-hcd
[ 1.616098] usb usb2: SerialNumber: 1a0c0000.usb
[ 1.620970] hub 2-0:1.0: USB hub found
[ 1.624734] hub 2-0:1.0: 1 port detected
[ 1.628983] usbcore: registered new interface driver cdc_wdm
[ 1.634722] usbcore: registered new interface driver usbserial
[ 1.640581] usbcore: registered new interface driver usbserial_generic
[ 1.647130] usbserial: USB Serial support registered for generic
[ 1.653169] usbcore: registered new interface driver option
[ 1.658761] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.666862] MTK_WDT_NONRST_REG(20000000)
[ 1.671077] mtk-wdt 10212000.watchdog: register restart_handler on reboot_notifier_list for psci reset
[ 1.680385] mtk-wdt 10212000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[ 1.688350] register cpuidle driver!!!!!!!!!!!!!!!!!
[ 1.695538] netem: version 1.3
[ 1.698641] nf_conntrack version 0.5.0 (1840 buckets, 7360 max)
[ 1.704858] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.710801] NET: Registered protocol family 10
[ 1.716050] sit: IPv6 over IPv4 tunneling driver
[ 1.721094] NET: Registered protocol family 17
[ 1.725572] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.738182] 8021q: 802.1Q VLAN Support v1.8
[ 1.742805] registered taskstats version 1
[ 2.262268] ++++++[rtl8367s_hw_reset]+++++++
[ 2.407007] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gdm1_to_gmac1_esw updated = 1
[ 2.416139] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[ 2.424921] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[ 2.433358] mtk_soc_eth 1b100000.ethernet: path gmac1_sgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 1
[ 2.443268] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[ 2.452425] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gdm1_to_gmac1_esw updated = 0
[ 2.461566] mtk_soc_eth 1b100000.ethernet: mux mux_gmac2_gmac0_to_gephy isn't present on the SoC
[ 2.470349] mtk_soc_eth 1b100000.ethernet: mux mux_u3_gmac2_to_qphy isn't present on the SoC
[ 2.478783] mtk_soc_eth 1b100000.ethernet: path gmac2_rgmii in set_mux_gmac1_gmac2_to_sgmii_rgmii updated = 0
[ 2.488691] mtk_soc_eth 1b100000.ethernet: mux mux_gmac12_to_gephy_sgmii isn't present on the SoC
[ 2.996890] [rtl8367s_swconfig_init]
[ 3.000743] [SPM] pwrap node has not register regmap
[ 3.006156] regulator regulator.3: info->modeset_reg 0xc = 0x181c32a2
[ 3.013528] regulator regulator.3: info->modeset_reg 0xc = 0x101c32a2
[ 3.036457] VFS: Mounted root (squashfs filesystem) readonly on device 31:7.
[ 3.043680] Freeing unused kernel memory: 336K
[ 3.048133] This architecture does not have kernel memory protection.
[ 4.749938] init: Console is alive
[ 4.753479] init: - watchdog -
[ 5.370859] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.536691] gpio-keys gpio-keys: failed to set debounce_interval for gpio:511
[ 5.544968] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.551896] ehci-platform: EHCI generic platform driver
[ 5.557969] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 5.564570] ohci-platform: OHCI generic platform driver
[ 5.571048] usbcore: registered new interface driver usb-storage
[ 5.577184] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.587266] init: - preinit -
[ 7.881331] random: jshn: uninitialized urandom read (4 bytes read, 115 bits of entropy available)
[ 7.924343] random: jshn: uninitialized urandom read (4 bytes read, 115 bits of entropy available)
[ 7.950004] random: jshn: uninitialized urandom read (4 bytes read, 115 bits of entropy available)
[ 8.649592] ++++++[rtl8367s_hw_reset]+++++++
[ 9.183427] random: nonblocking pool is initialized
[ 12.517839] mount_root: loading kmods from internal overlay
[ 12.533010] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 12.540284] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 14.209403] jffs2: notice: (859) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 14.225839] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 14.232779] block: unable to load configuration (fstab: Entry not found)
[ 14.239508] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 14.245895] block: unable to load configuration (fstab: Entry not found)
[ 14.252623] block: attempting to load /etc/config/fstab
[ 14.258391] block: unable to load configuration (fstab: Entry not found)
[ 14.265118] block: no usable configuration
[ 15.188751] jffs2: notice: (856) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 15.932749] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 15.939691] block: unable to load configuration (fstab: Entry not found)
[ 15.946413] block: attempting to load /tmp/jffs_cfg/etc/config/fstab
[ 15.952801] block: unable to load configuration (fstab: Entry not found)
[ 15.959534] block: attempting to load /etc/config/fstab
[ 15.964789] block: unable to load configuration (fstab: Entry not found)
[ 15.971508] block: no usable configuration
[ 15.988070] mount_root: switching to jffs2 overlay
[ 16.047630] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 16.118028] procd: - early -
[ 16.121009] procd: - watchdog -
[ 16.683708] procd: - watchdog -
[ 16.686960] procd: - ubus -
[ 16.762044] procd: - init -
[ 16.891584] kmodloader: loading kernel modules from /etc/modules.d/*
[ 16.906329] Initializing XFRM netlink socket
[ 16.911510] NET: Registered protocol family 15
[ 16.920389] l2tp_core: L2TP core driver, V2.0
[ 16.925659] l2tp_netlink: L2TP netlink interface
[ 16.932617] gre: GRE over IPv4 demultiplexor driver
[ 16.938476] ip_gre: GRE over IPv4 tunneling driver
[ 16.945383] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 16.954652] u32 classifier
[ 16.957460] input device check on
[ 16.961202] Actions configured
[ 16.965248] Mirror/redirect action on
[ 16.972685] Bridge firewalling registered
[ 16.980154] Ebtables v2.0 registered
[ 17.064870] xt_time: kernel timezone is -0000
[ 17.076147] PPP generic driver version 2.4.2
[ 17.081658] PPP MPPE Compression module registered
[ 17.087195] NET: Registered protocol family 24
[ 17.092252] PPTP driver version 0.8.5
[ 17.097564] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 17.103714] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 22.195424] mediatek_soc_hnat 1b100000.hnat: wan = eth1
[ 22.200670] mediatek_soc_hnat 1b100000.hnat: lan = eth0
[ 22.205905] mediatek_soc_hnat 1b100000.hnat: ppd = eth0
[ 22.211137] mediatek_soc_hnat 1b100000.hnat: gmac num = 2
[ 22.217014] mediatek_soc_hnat 1b100000.hnat: FOE entry number = 8192
[ 22.223789] mediatek_soc_hnat 1b100000.hnat: hwnat start
[ 23.261749] ++++++[rtl8367s_hw_reset]+++++++
[ 24.506764] device eth0 entered promiscuous mode
[ 24.512069] br-lan: port 1(eth0) entered forwarding state
[ 24.517493] br-lan: port 1(eth0) entered forwarding state
[ 26.518992] br-lan: port 1(eth0) entered forwarding state
[ 51.470954] device eth1 entered promiscuous mode
[ 51.475852] device br-lan entered promiscuous mode
at+cgdcont=1,"IPV4V6","anritsul.com"
at+cgdcont=1,"IPV4V6","anritsu.com"
AT+SIMCOMATI
AT+GMR
AT+CSQ
AT+CPSI?
OK
AT+SIMEI?
+SIMEI: 864284040062932
查询信号
echo -en 'ATIrn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
ATI
echo -en 'AT+APPVERrn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
AT+APPVER
查询信号
echo -en 'AT+CSQrn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
查询系统信息
echo -en 'AT^SYSINFOrn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
查询网络注册信息
echo -en 'AT+CGREG?rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT+CIMI?rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
拨号 电信
echo -en 'AT^NETCFG=0,32774,,,4,,,"",0,"CARD","CARD",1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT+CGDCONT=1,"IP","ctnet"rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT$QCRMCALL=1,1,1,2,1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
查询启动类型2为重启,3为正常
echo -en 'AT+VTYPE=3rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT+VTYPE?rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
查询开机时间
echo -en 'AT+TIMECOUNT?rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
拨号 移动
echo -en 'AT^NETCFG=0,32774,,,4,,,"",0,"CARD","CARD",1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT+CGDCONT=1,"IP","cmnet"rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT$QCRMCALL=1,1,1,2,1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
// 查询
echo -en 'AT$QCRMCALL?rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
echo -en 'AT+CGDCONT?rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
断开拨号命令
echo -en 'AT$QCRMCALL=0,1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
重启命令
echo -en 'AT+CFUN=1,1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
downloadall 擦除校准数据
downloadnefs这个文件夹里去选升级
echo -en 'ATIrn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
adb reboot bootloader
fastboot flash systembak d:yugemdm9607-perf-sysfs_2K.ubi
fastboot flash system d:yugemdm9607-perf-sysfs_2K.ubi
fastboot reboot
切换rndis模式命令
echo -en 'AT+USBCFG=902Drn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
升级后为:
Revision: CLM920_NC5-V1.4 [Apr 2 2020 11:53:59]
APP_VERSION: Apr 2 2020 11:10:49
初始化指令:AT+USBCFG=902D
对于三层数据转发, 你那边可以试着调整一下如下参数;
echo d > /sys/class/net/eth0/queues/rx-0/rps_cpus
默认是 3 , 基本上 cpu3 4 都是闲置的
热插拔:AT+HOSCFG=1,1
echo -en 'AT+HOSCFG=1,1rn' > /dev/ttyUSB1 ;cat /dev/ttyUSB1
AT+HOSCFG热插拔后 需要AT+CFUN=1,1 重启生效
最后
以上就是沉静草丛为你收集整理的sim_com AT的全部内容,希望文章能够帮你解决sim_com AT所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复