Local Wi-Fi cannot connect to WAN Wi-fi in concurrent mode

依照WiFi – Concurrent Mode – Realtek IoT/Wi-Fi MCU Solutions

1.AMB82-mini取得WAN端IP 192.168.213.92
2.PC取得AMB82-mini soft-AP的IP 192.168.1.100,PC可以連到192.168.1.1,但是PC卻連不到192.168.213.92

未開放local Wi-Fi連接WAN端的internet
是否符合原廠API的設計?

===============================================================
[Driver]: TSFValue = 3773951385634, tsf = 0, shift_set= 0x8000, bcn int = 100
Interface 0 IP address : 192.168.213.92

AP mode already started
IP Address: 192.168.1.1
NetMask: 255.255.255.0
Gateway: 192.168.1.1

Connected to the network
IP Address: 192.168.213.92
NetMask: 255.255.255.0
Gateway: 192.168.213.1

SSID: Apple_Milk
BSSID: 38:AD:2B:4C:FB:36
signal strength (RSSI):-47
Encryption Type:4

[Driver]: +OnAuth: 76:b2:bc:84:2d:1e
[Driver]: +OnAssocReq
[Driver]: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) for 76:b2:bc:84:2d:1e
[Driver]: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1
[251095]DHCP assign ip = 192.168.1.100, hwaddr 0x76:0xb2:0xbc:0x84:0x2d:0x1e

您好

請問有辦法分享您的程式碼嗎? 如果您想連到Ameba STA mode的IP, 您的PC必須與Ameba存在同一個LAN裡, 也就是說Ameba和PC都要連到同一個AP的情況下, 才可連上
若您的PC 是連到Ameba 所建立的AP, 那就只能連到 Ameba AP 的IP喔

謝謝

純粹是原廠examples → Wi-Fi → concurrentMode中的sample code,我沒有變更程式架構修改,僅變更兩組SSID名稱與密碼

但我不清楚的是concurrent mode的定義
從原廠sample code來說

  1. 第一組SSID與密碼:用來連結我家裡的分享器。你說的網路條件與限制,我是理解的,沒疑問。
  2. 第二組SSID與密碼:是Ameba建立的AP,由於照你的說明「若您的PC 是連到Ameba 所建立的AP, 那就只能連到 Ameba AP 的IP喔」你說的與我測試的結果一致,我本來以為PC不但可連到Ameba建立的AP, 還可以透過routing, 經由第一組SSID間接連到家中的分享器(甚至internet)

是否因為CPU效能原因,不加上Ameba AP routing 至家中分享器?
如果不是,原廠能夠加上這個routing功能嗎?
讓Ameba運作時不需要靠外在的router就可獨立運作(PC手機直連Ameba AP),此外,Ameba若連上有internet的分享器,則增加更多internet上的應用,而手機依然不改變連到Ameba的AP

感謝你的回覆