root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm info Device: WP7607 IMEI: 359779081234565 IMEISV: 6 FSN: VN730485080103 Firmware Version: SWI9X07Y_02.28.03.03 000000 jenki[ 169.112065] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090 ns 2019/05/21 03:33:04 Bootloader Version: SWI9X07Y_[ 169.130963] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090 02.28.03.03 000000 jenkins 2019/05/21 03:33:04 MCU Version: 002.011 PRI Part Number (PN): 9908958 PRI Revision: 001.000 Carrier PRI Name: GENERIC Carrier PRI Revision: 002.068_000 SKU: 1104301 Last Reset Cause: Reset, User Requested Resets Count: Expected: 201 Unexpected: 16 root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm radio Power: ON Current Network Operator: CSL Current RAT: Module not registered on network, RAT not available Status: Not registered but currently searching for a new operator (LE_MRC_REG_SEARCHING) Signal: Weak signal strength (2) PS: Packet Switched Not registered (LE_MRC_REG_NONE) root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm sim SIM card is inserted and unlocked (LE_SIM_READY). root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm radio Power: ON Current Network Operator: CSL Current RAT: Module not registered on network, RAT not available Status: Not registered but currently searching for a new operator (LE_MRC_REG_SEARCHING) Signal: Weak signal strength (2) PS: Packet Switched Not registered (LE_MRC_REG_NONE) root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm radio Power: ON Current Network Operator: CSL Current RAT: UMTS network (LE_MRC_RAT_UMTS) Status: Registered, home network (LE_MRC_REG_HOME) Signal: Weak signal strength (2) PS: Packet Switched Registered, home network (LE_MRC_REG_HOME) //jyi: here we start the wifi at the beginning of the test root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client start successfully called start. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client scan starting scan. Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:b9:04:60" Strength:-66 Ref:0x10000003 Found: SSID: "Wireless-N" BSSID: "00:e0:20:24:2e:c6" Strength:-74 Ref:0x1000000b Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:b9:0e:20" Strength:-58 Ref:0x10000017 Found: SSID: "ABCGUEST" BSSID: "94:b4:0f:d2:4d:62" Strength:-80 Ref:0x10000019 Found: SSID: "DIRECT-GVCNHKG-EL-001628msPB" BSSID: "a2:af:bd:75:32:3a" Strength:-65 Ref:0x10000001 Found: SSID: "NI-760S_7DD7" BSSID: "84:db:2f:16:7d:d7" Strength:-59 Ref:0x10000009 Found: SSID: "ABCGUEST" BSSID: "94:b4:0f:b8:fa:22" Strength:-62 Ref:0x10000011 Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:b9:0e:21" Strength:-58 Ref:0x1000001b Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:d2:47:61" Strength:-70 Ref:0x10000007 Found: SSID: "" BSSID: "18:a6:f7:7e:42:08" Strength:-76 Ref:0x10000013 Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:b8:fa:21" Strength:-62 Ref:0x1000000f Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:b9:04:61" Strength:-66 Ref:0x10000005 Found: SSID: "ABCGUEST" BSSID: "94:b4:0f:b9:0e:22" Strength:-58 Ref:0x1000001d Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:d2:4d:60" Strength:-83 Ref:0x10000015 Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:b8:fa:20" Strength:-62 Ref:0x1000000d root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# ^C root@swi-mdm9x28-wp:~# wifi client setsecurityproto 0x1000001b 3 Successfully set security protocol. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client setpassphrase 0x1000001b @password Successfully set passphrase. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client connect 0x1000001b Connecting... CONNECTED. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# /sbin/udhcpc -R -b -i wlan0 udhcpc: started, v1.27.2 udhcpc: sending discover udhcpc: sending select for 192.168.23.254 udhcpc: lease of 192.168.23.254 obtained, lease time 86400 /etc/udhcpc.d/50default: Adding DNS 8.8.8.8 root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# ping www.google.com PING www.google.com (216.58.199.100): 56 data bytes 64 bytes from 216.58.199.100: seq=0 ttl=115 time=12.119 ms 64 bytes from 216.58.199.100: seq=1 ttl=115 time=21.190 ms 64 bytes from 216.58.199.100: seq=2 ttl=115 time=30.016 ms ^C --- www.google.com ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 12.119/21.108/30.016 ms //jyi: here we simulate there is something wrong with the wifi connection, and then we stop the wifi service root@swi-mdm9x28-wp:~# wifi client stop [ 311.811102] BUG: sleeping function called from invalid context at /usr/src/kernel/kernel/locking/mutex.c:97 [ 311.819810] in_atomic(): 1, irqs_disabled(): 0, pid: 2333, name: rmmod [ 311.826414] Preemption disabled at:[< (null)>] (null) [ 311.853164] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister wlan0 [ 311.890405] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister wlan0 [ 312.073929] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010 [ 312.100219] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010 [ 312.148682] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010 [ 312.163802] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010 [ 312.200623] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010 [ 312.215456] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x011363c8 OPER:0x00000010 le_wifiClient_Stop returns OK. root@swi-mdm9x28-wp:~# //jyi: here we restart the wifiService application to prepare for the next wifi connection root@swi-mdm9x28-wp:~# app restart wifiService root@swi-mdm9x28-wp:~# //jyi: here we start the cellular connection root@swi-mdm9x28-wp:~# cm data Index: 1 APN: hkcsl PDP Type: IPV4V6 Connected: no root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# app runProc modemDemo1 send --exe=send -- 1234567 "Online " root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm data Index: 1 APN: hkcsl PDP Type: IPV4V6 Connected: yes Interface: rmnet_data0 Family[IPv4]: inet IP[IPv4]: 10.165.152.48 Gateway[IPv4]: 10.165.152.49 Dns1[IPv4]: 10.144.148.129 Dns2[IPv4]: 10.144.148.5 root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# ping www.google.com PING www.google.com (172.217.161.164): 56 data bytes 64 bytes from 172.217.161.164: seq=0 ttl=58 time=51.886 ms 64 bytes from 172.217.161.164: seq=1 ttl=58 time=126.297 ms ^C --- www.google.com ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 51.886/89.091/126.297 ms //jyi: here shows that the ping data is using the radio network, no wifi driver is enabled at this time root@swi-mdm9x28-wp:~# ifconfig wlan0 ifconfig: wlan0: error fetching interface information: Device not found root@swi-mdm9x28-wp:~# //jyi: here we simulate that the WIFI spot is OK, we disable the radio data and switch to WIFI connection root@swi-mdm9x28-wp:~# app runProc modemDemo1 send --exe=send -- 1234567 "Offline" root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# cm data Index: 1 APN: hkcsl PDP Type: IPV4V6 Connected: no root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client start [ 380.849047] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010 [ 380.865296] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010 [ 380.881812] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010 [ 380.897255] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010 [ 380.914723] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010 [ 380.929970] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:2 cur:0 tx) bc(rx:1 tx:1) mode:FIFO slv_addr:0x70 MSTR_STS:0x0d1300c8 OPER:0x00000010 successfully called start. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client scan starting scan. Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:b9:04:60" Strength:-64 Ref:0x10000003 Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:b8:fa:20" Strength:-55 Ref:0x1000000b Found: SSID: "DIRECT-GVCNHKG-EL-001628msPB" BSSID: "a2:af:bd:75:32:3a" Strength:-63 Ref:0x10000001 Found: SSID: "NI-760S_7DD7" BSSID: "84:db:2f:16:7d:d7" Strength:-52 Ref:0x10000009 Found: SSID: "ABCWLAN" BSSID: "94:b4:0f:b9:0e:20" Strength:-56 Ref:0x10000011 Found: SSID: "ABCGUEST" BSSID: "94:b4:0f:b9:04:62" Strength:-64 Ref:0x10000007 Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:b9:0e:21" Strength:-56 Ref:0x10000013 Found: SSID: "ABCGUEST" BSSID: "94:b4:0f:b8:fa:22" Strength:-56 Ref:0x1000000f Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:b9:04:61" Strength:-64 Ref:0x10000005 Found: SSID: "ABCGUEST" BSSID: "94:b4:0f:b9:0e:22" Strength:-54 Ref:0x10000015 Found: SSID: "ABCMOBILE" BSSID: "94:b4:0f:b8:fa:21" Strength:-55 Ref:0x1000000d root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client setsecurityproto 0x10000013 3 Successfully set security protocol. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client setpassphrase 0x10000013 @password Successfully set passphrase. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# wifi client connect 0x10000013 Connecting... CONNECTED. root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# /sbin/udhcpc -R -b -i wlan0 udhcpc: started, v1.27.2 udhcpc: sending discover udhcpc: sending select for 192.168.23.254 udhcpc: lease of 192.168.23.254 obtained, lease time 86400 /etc/udhcpc.d/50default: Adding DNS 8.8.8.8 root@swi-mdm9x28-wp:~# root@swi-mdm9x28-wp:~# ping www.google.com PING www.google.com (216.58.199.100): 56 data bytes 64 bytes from 216.58.199.100: seq=0 ttl=115 time=7.035 ms 64 bytes from 216.58.199.100: seq=1 ttl=115 time=23.652 ms ^C --- www.google.com ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max = 7.035/15.343/23.652 ms root@swi-mdm9x28-wp:~#