Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
-
走走停停
- Posts: 98
- Joined: 2022年 Nov 9日 14:51
您好,
CR3L开发homekit产品, 使用的是这个SDK: ty_iot_sdk-TuyaOS2.3.2_ty_iot_sdk_2.3.2-beta.769_rtl8720cm_ameba_homkit_auto_mftest_0.0.11.tar.gz
在MFi 测试中, 出现以下问题, 请帮忙改善一下:
tcwr011 -- step 21: 当输入是一个不存在的ssid时, 设备不会断连
tcwr013 -- step 15: 对于没有commit的reconfigure, 设备断电重启后, 没有切回networka还留在networkb.
Case要求设备重启后, 要切回networka
-
走走停停
- Posts: 98
- Joined: 2022年 Nov 9日 14:51
接上
tcwr015 -- step 17: 当networkb是没有密码的WiFi时, 设备reconfigure到networkb
-
0x1abin
- Posts: 23
- Joined: 2022年 Sep 16日 18:06
TCWR013 重启设备无法回连网络A
由于苹果更新了 R11.2 的 TCWR013 测试用例流程:
Code: Select all
18. Connect the Mac running HAT to Network A and wait for the accessory to begin advertising again via Bonjour.
需要重新回连到 network A,更新应用层 AppBase.c 可以解决:
Code: Select all
#if (HAVE_WIFI_RECONFIGURATION == 1)
if (HAPPlatformWiFiManagerIsConfigured(platform.hapPlatform.ip.wiFi.wiFiManager)) {
HAPError err = 0;
uint32_t updateStatus = 0;
uint16_t cookie = 0;
HAPPlatformWiFiManagerGetUpdateStatus(platform.hapPlatform.ip.wiFi.wiFiManager, &updateStatus);
HAPPlatformWiFiManagerGetCookie(platform.hapPlatform.ip.wiFi.wiFiManager, &cookie);
if ((updateStatus & kHAPCharacteristicValue_WiFiConfigurationControl_UpdateStatus_Pending) != 0) {
HAPLogInfo(&kHAPLog_Default, "Remove WiFi configuration new value");
HAPPlatformWiFiManagerRemoveConfiguration(platform.hapPlatform.ip.wiFi.wiFiManager);
HAPPlatformWiFiManagerSetCookie(platform.hapPlatform.ip.wiFi.wiFiManager, cookie);
}
err = HAPPlatformWiFiManagerSetUpdateStatus(HAPNonnull(platform.hapPlatform.ip.wiFi.wiFiManager), 0);
if (err) {
HAPLogError(&kHAPLog_Default, "Failed to update the wpa_supplicant");
}
}
#endif
-
走走停停
- Posts: 98
- Joined: 2022年 Nov 9日 14:51
0x1abin 2022年 Nov 28日 12:39
TCWR013 重启设备无法回连网络A
由于苹果更新了 R11.2 的 TCWR013 测试用例流程:
Code: Select all
18. Connect the Mac running HAT to Network A and wait for the accessory to begin advertising again via Bonjour.
需要重新回连到 network A,更新应用层 AppBase.c 可以解决:
image_4857096907434002.png
Code: Select all
#if (HAVE_WIFI_RECONFIGURATION == 1)
if (HAPPlatformWiFiManagerIsConfigured(platform.hapPlatform.ip.wiFi.wiFiManager)) {
HAPError err = 0;
uint32_t updateStatus = 0;
uint16_t cookie = 0;
HAPPlatformWiFiManagerGetUpdateStatus(platform.hapPlatform.ip.wiFi.wiFiManager, &updateStatus);
HAPPlatformWiFiManagerGetCookie(platform.hapPlatform.ip.wiFi.wiFiManager, &cookie);
if ((updateStatus & kHAPCharacteristicValue_WiFiConfigurationControl_UpdateStatus_Pending) != 0) {
HAPLogInfo(&kHAPLog_Default, "Remove WiFi configuration new value");
HAPPlatformWiFiManagerRemoveConfiguration(platform.hapPlatform.ip.wiFi.wiFiManager);
HAPPlatformWiFiManagerSetCookie(platform.hapPlatform.ip.wiFi.wiFiManager, cookie);
}
err = HAPPlatformWiFiManagerSetUpdateStatus(HAPNonnull(platform.hapPlatform.ip.wiFi.wiFiManager), 0);
if (err) {
HAPLogError(&kHAPLog_Default, "Failed to update the wpa_supplicant");
}
}
#endif
你好,昨天试了一下改了之后还是case failed.
串口log如下, 设备断开networka, 但是连接networkb不成功, 然后又切回networka
麻烦再帮忙看下
-
Attachments
-
- tcwr013.txt
- (19.32 KiB) Downloaded 111 times
-
- tcwr015.txt
- (21.32 KiB) Downloaded 139 times