By changing the operating mode from STA_MODE to AP_MODE. The AP_MODE turns itself off after approximately 105 seconds...
Tested on FW 1.1.1 and 1.1.1-bc205f19
dim operating_mode
event system_boot(hw, bootloader_version, major, minor, build, revision_len, revision_data)
operating_mode = 1
call sme_wifi_on()
end
event sme_wifi_is_on(result)
if(operating_mode = 1)
call sme_set_password(8, "12345678") #set a valid password
call sme_connect_ssid(12, "Tenda_84C700") #set an existing SSID
end if
if(operating_mode = 2)
call sme_set_ap_password(8, "87654321")
call sme_start_ap_mode(1, 0, 6, "WGM110")
end if
end
event sme_interface_status(hw_interface, status)
if(status = 1 && operating_mode = 1)
call sme_set_operating_mode(2) #set AP_MODE
operating_mode = 2
call sme_wifi_off()
end if
end
event sme_wifi_is_off(result)
call sme_wifi_on()
end
Log
Best regards,
Parminder
Discussion Forums
Wi-Fi
Unanswered
After further tests I realized that this problem only occurs with some routers, especially some models of Tenda routers, I encountered this problem with the Tenda N301 and Tenda F3 routers
I passed this issue to our R&D team. However, we do not have probably access to these models of Tenda routers and it will be difficult for us to reproduce the existing problem and to find a solution.
Otherwise, we would need over-the-air logs of the Wi-Fi communication, can you provide it?
Best regards,
Marcin
0
I'm sorry, but we don't have the equipment to perform an over-the-air logs.
I have created an over-the-air logs of the Wi-Fi communication (channel 7) via Wireshark.
I hope it will be useful
From the tests carried out I discovered that the WGM110 remains in AP mode even after the event "wifi_evt_sme_interface_status hw_interface: 0 (0x00) status: 0 (0x00)" has been triggered.
In fact, from the log it can be seen that the WGM110 continues to send the beacon frames even after this event.
Could you attach over-the-air logs again? It cannot be downloaded directly now.
Then I will forward it to our R&D team.
Regards,
Marcin
0
Previous answer edit.
Regards,
Parminder
0
Hello,
Have you tried to update Tenda routers to the latest FW version? Please let us know whether the problem still occurs. For your information, our team is investigating the issue.
Unfortunately, we could not reproduce the issue from this thread on the Tenda F3 router (we currently don't have an N301 model) even though we have the same firmware. Have you taken any additional steps? Does AP_MODE turn off itself every 105 seconds?
Best Regards,
Marcin
0
I performed further tests with the Tenda F3 router with the firmware V12.01.01.52_multi, and I concluded that this problem always occurs constantly.
I also tried to restore the Tenda F3 to the factory settings, but nothing changes, the problem remains.
I have performed this test in different places of my company, to avoid that some other WIFi access point could disturb the WGM110, but nothing changes, the problem is always there.
I tried to test with another WGM110, but nothing changes.
After exactly 105 seconds the AP mode turns itself off.
I don't take any other steps, I can reproduce the problem simply with the sample code that I wrote to you initially
The only things that come to mind are:
Are you sure to use exactly the same router model? (I have attached a photo of the router that I am using)
What SDK version are you using? possibly try with version 1.1.1
I am attaching the backup file of the configuration of my Tenda F3, try using that
What hardware are you using? I'm using an evaluation board (photo attached)
I realized now that after 105 seconds the AP mode still works, even if the WGM110 has generated the event "wifi_evt_sme_interface_status hw_interface: 0 (0x00) status: 0 (0x00)"
Regards,
Parminder
0
Hello,
We have compared ours and your logs and have come to the conclusion that you did not receive DHCP ACK/NAK frame after DHCP request for some reason (maybe some router misconfiguration) what leads to receiving DHCP release frame after some time and then the network interface is shut down because of that (last event in provided logs). We suggest to carry out tests with our configuration which works and see if this problem still occurs.
Tested on:
Tenda F3 with a configuration file
SDK version 1.1.1
WGM110 evaluation board
I apologize for the delay in responding, I just got back from vacation.
The problem is not solved, I tried to use your configuration file with the Tenda F3 router, but after 105 seconds the WGM110 evaluation board generates the event "wifi_evt_sme_interface_status hw_interface: 0 (0x00) status: 0 (0x00)".
Best regards,
Parminder
0
Hello,
It is strange that with the same router and module configuration you still see AP mode related event that we do not encounter. Have you modified your setup in the meantime? Please, carry out the test using static addresses without DHCP. Our R&D team is still investigating the issue deeply and analyze what can be a possible root cause.
Best regards,
Marcin
0
Hi Parminder,
Could you please verify Marcin's suggestions? We're awaiting your feedback still.
[BUG] WGM110 - AP Mode turns itself off
By changing the operating mode from STA_MODE to AP_MODE. The AP_MODE turns itself off after approximately 105 seconds...
Tested on FW 1.1.1 and 1.1.1-bc205f19
Log
Best regards,
Parminder
After further tests I realized that this problem only occurs with some routers, especially some models of Tenda routers, I encountered this problem with the Tenda N301 and Tenda F3 routers
Tenda N301: https://www.amazon.it/Tenda-N301-Router-Wi-fi/dp/B00D3GO8R4
Tenda F3: https://www.amazon.it/Tenda-F3-N300-Router-Wireless-controllo-larghezza/dp/B07475DC2F
Best regards,
Parminder
Hello,
I passed this issue to our R&D team. However, we do not have probably access to these models of Tenda routers and it will be difficult for us to reproduce the existing problem and to find a solution.
Otherwise, we would need over-the-air logs of the Wi-Fi communication, can you provide it?
Best regards,
Marcin
I'm sorry, but we don't have the equipment to perform an over-the-air logs.
Why can't you get these routers?
I also found these routers on Amazon USA
Tenda N301: https://www.amazon.com/N300-Router-inal%C3%A1mbrico-antena-potencia-Blanco/dp/B0167N0B70/
Tenda F3: https://www.amazon.com/Tenda-Wireless-Router-Antennas-F3/dp/B01CA5SN1K/
Regards,
Parminder
I have created an over-the-air logs of the Wi-Fi communication (channel 7) via Wireshark.
I hope it will be useful
From the tests carried out I discovered that the WGM110 remains in AP mode even after the event "wifi_evt_sme_interface_status hw_interface: 0 (0x00) status: 0 (0x00)" has been triggered.
In fact, from the log it can be seen that the WGM110 continues to send the beacon frames even after this event.
Regards,
Parminder
Hello,
Could you attach over-the-air logs again? It cannot be downloaded directly now.
Then I will forward it to our R&D team.
Regards,
Marcin
Previous answer edit.
Regards,
Parminder
Hello,
Have you tried to update Tenda routers to the latest FW version? Please let us know whether the problem still occurs. For your information, our team is investigating the issue.
Best Regards,
Marcin
Hello,
Yes of course.
With the Tenda F3 I am using the firmware V12.01.01.52_multi (https://www.tendacn.com/it/product/download/F3.html)
With the Tenda N301 I am using the firmware V12.01.01.45_multi (https://www.tendacn.com/it/product/download/N301.html)
Regards,
Parminder
Hello,
Unfortunately, we could not reproduce the issue from this thread on the Tenda F3 router (we currently don't have an N301 model) even though we have the same firmware. Have you taken any additional steps? Does AP_MODE turn off itself every 105 seconds?
Best Regards,
Marcin
I performed further tests with the Tenda F3 router with the firmware V12.01.01.52_multi, and I concluded that this problem always occurs constantly.
I also tried to restore the Tenda F3 to the factory settings, but nothing changes, the problem remains.
I have performed this test in different places of my company, to avoid that some other WIFi access point could disturb the WGM110, but nothing changes, the problem is always there.
I tried to test with another WGM110, but nothing changes.
After exactly 105 seconds the AP mode turns itself off.
I don't take any other steps, I can reproduce the problem simply with the sample code that I wrote to you initially
The only things that come to mind are:
Regards,
Parminder
I realized now that after 105 seconds the AP mode still works, even if the WGM110 has generated the event "wifi_evt_sme_interface_status hw_interface: 0 (0x00) status: 0 (0x00)"
Regards,
Parminder
Hello,
We have compared ours and your logs and have come to the conclusion that you did not receive DHCP ACK/NAK frame after DHCP request for some reason (maybe some router misconfiguration) what leads to receiving DHCP release frame after some time and then the network interface is shut down because of that (last event in provided logs). We suggest to carry out tests with our configuration which works and see if this problem still occurs.
Tested on:
Tenda F3 with a configuration file
SDK version 1.1.1
WGM110 evaluation board
Best regards,
Marcin
Hello,
I apologize for the delay in responding, I just got back from vacation.
The problem is not solved, I tried to use your configuration file with the Tenda F3 router, but after 105 seconds the WGM110 evaluation board generates the event "wifi_evt_sme_interface_status hw_interface: 0 (0x00) status: 0 (0x00)".
Best regards,
Parminder
Hello,
It is strange that with the same router and module configuration you still see AP mode related event that we do not encounter. Have you modified your setup in the meantime? Please, carry out the test using static addresses without DHCP. Our R&D team is still investigating the issue deeply and analyze what can be a possible root cause.
Best regards,
Marcin
Hi Parminder,
Could you please verify Marcin's suggestions? We're awaiting your feedback still.
Best Regards,
Adam