Fail to sample code device register (ESP8266 direct connect)

Please let me get some support on how can i resolve this problem.
I’ve tried several times but still fail at the same point as the below device log.

  1. Device source code : /Users/yongil/st-device-sdk-c-ref/apps/esp8266/light_example
  2. Smartthings account : calliduslab@gmail.com
  3. Test deployed : 칼리더스 라이트 (callight)
  4. “publicKey”: “sVp5KmyD0YUsAC3+LxtNdOou629YzXVhZO1SBHfnNwM=”
  5. “serialNumber”: “STDK4EOIHiUx1uvw”

===============================================================

Executing task: platformio device monitor <

— Available filters and text transformations: colorize, debug, default, direct, esp8266_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
— More details at Redirecting...
— Miniterm on /dev/cu.usbserial-1460 76800,8,N,1 —
— Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
button
button_event : count 1, type 1
Button short press, count: 1
␛[0;31mE (13131) [IoT]: st_cap_send_attr(555) > Target has not connected to server yet!!␛[0m
fail to send switch value
STDK # ␀
STDK # ␀button 1 long
button_event : count 1, type 0
Button long press, iot_status: 2
␛[0;32mI (25455) [IoT]: st_conn_cleanup(1942) > st_conn_cleanup start (0)␛[0m
␛[0;33mW (25458) [IoT]: _delete_dev_card_by_usr(449) > not connected, so can’t send device_card deleting msg␛[0m
␛[0;32mI (25467) [IoT]: _do_iot_main_command(499) > curr_main_cmd:9, curr_main_state:1/1␛[0m
␛[0;33mW (25479) [IoT]: _do_iot_main_command(964) > self device cleanup␛[0m
␛[0;32mI (25490) [IoT]: http_cleanup_all_connection(39) > close listen socket␛[0m
␛[0;32mI (25505) [IoT]: es_http_deinit(184) > http tcp deinit complete!␛[0m
␛[0;32mI (25511) [IoT]: iot_easysetup_deinit(567) > IOT_STATE_PROV_ES_DONE␛[0m
␛[0;32mI (25524) [IoT]: iot_device_cleanup(983) > start to erase device information␛[0m
␛[0;32mI (25616) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1␛[0m
␛[0;33mW (25620) [IoT]: _do_state_updating(1711) > Iot-core task will be stopped, needed ext-triggering
␛[0m
␛[0;32mI (25630) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 0␛[0m
␛[0;32mI (25642) [IoT]: event_handler(141) > SYSTEM_EVENT_AP_STOP␛[0m
␛[0;32mI (25651) [IoT]: event_handler(109) > SYSTEM_EVENT_STA_STOP␛[0m
␛[0;32mI (25661) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0␛[0m
status: 1, stat: 0
␛[0;32mI (25674) [IoT]: st_conn_cleanup(1978) > st_conn_cleanup done (0)␛[0m
␛[0;31mE (25685) [IoT]: st_conn_start(1908) > Can’t go to PROV_CONFIRM (0xa)␛[0m
␛[0;32mI (25695) [IoT]: st_conn_start(1910) > st_conn_start done (-7)␛[0m
fail to start connection. err:-7
␛[0;32mI (25710) [IoT]: st_conn_start(1850) > st_conn_start start (no-pin)␛[0m
STDK ␛[0;32mI (25722) [IoT]: _do_update_timeout(200) > Current timeout : 4294967295 for -1/-1␛[0m
␛[0;32mI (25734) [IoT]: _do_status_report(295) > Unsupported state -1 for 0/0␛[0m
␛[0;32mI (25745) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:-1/-1␛[0m
␛[0;32mI (25758) [IoT]: _do_update_timeout(200) > Current timeout : 100000 for -1/0␛[0m
␛[0;32mI (25770) [IoT]: _do_iot_main_command(499) > curr_main_cmd:2, curr_main_state:-1/0␛[0m

STDK # ␀␛[0;32mI (25825) [IoT]: _do_cmd_tout_check(1041) > New state updated for 0␛[0m
␛[0;32mI (25829) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:0/0␛[0m
␛[0;32mI (25835) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 1␛[0m
␛[0;32mI (25847) [IoT]: iot_bsp_wifi_set_mode(266) > WiFi Station Started␛[0m
␛[0;32mI (28280) [IoT]: event_handler(168) > event_handler = 1␛[0m
␛[0;32mI (28374) [IoT]: iot_easysetup_create_ssid(91) > >> callight[1uvw] <<␛[0m
␛[0;32mI (28378) [IoT]: _do_update_timeout(200) > Current timeout : 300000 for 0/1␛[0m
␛[0;32mI (28383) [IoT]: _do_iot_main_command(499) > curr_main_cmd:1, curr_main_state:0/1␛[0m
␛[0;32mI (28396) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 3␛[0m
␛[0;32mI (28413) [IoT]: event_handler(136) > SYSTEM_EVENT_AP_START␛[0m
␛[0;32mI (28417) [IoT]: iot_bsp_wifi_set_mode(383) > AP Mode Started␛[0m
␛[0;32mI (28427) [IoT]: iot_easysetup_init(494) > IOT_STATE_PROV_ES_START␛[0m
␛[0;32mI (28437) [IoT]: es_http_init(159) > http tcp init!!␛[0m
␛[0;32mI (28448) [IoT]: iot_easysetup_init(531) > IOT_STATE_PROV_ES_INIT_DONE␛[0m
␛[0;32mI (28457) [IoT]: _do_cmd_tout_check(1041) > New state updated for 1␛[0m
␛[0;32mI (28468) [IoT]: _do_status_report(304) > Call usr status_cb with 2/1␛[0m
status: 2, stat: 1
␛[0;32mI (121292) [IoT]: event_handler(148) > station:e6:02:f3:d0:61:ea join, AID=1␛[0m
␛[0;32mI (121296) [IoT]: _iot_easysetup_wifi_event_cb(91) > Station joined to SoftAP␛[0m
␛[0;32mI (124294) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2␛[0m
␛[0;32mI (124299) [IoT]: event_handler(168) > event_handler = 17␛[0m

STDK # ␀
STDK # ␀
STDK # ␀
STDK # ␀
STDK # ␀
STDK # ␀␛[0;32mI (127927) [IoT]: _iot_easysetup_gen_get_payload(177) > waiting… response for [0]␛[0m
␛[0;32mI (127931) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1␛[0m
␛[0;32mI (127939) [IoT]: _do_state_updating(1646) > Notification only with IOT_STATE_PROV_CONN_MOBILE␛[0m
␛[0;32mI (127953) [IoT]: _do_status_report(304) > Call usr status_cb with 2/4␛[0m
status: 2, stat: 4
␛[0;32mI (127972) [IoT]: http_msg_handler(421) > get cmd[0] ok␛[0m

STDK # ␀
STDK # ␀
STDK # ␀
STDK # ␀
STDK # ␀
STDK # ␀␛[0;33mW (158549) [IoT]: http_packet_read(102) > peer connection closed␛[0m
␛[0;32mI (158553) [IoT]: http_cleanup_accepted_connection(58) > close accept socket␛[0m
␛[0;32mI (158583) [IoT]: _iot_easysetup_gen_post_payload(292) > waiting… response for [1]␛[0m
␛[0;32mI (160000) [IoT]: _es_keyinfo_handler(560) > master secret generation success␛[0m
␛[0;32mI (160012) [IoT]: http_msg_handler(402) > post cmd[1] ok␛[0m
␛[0;31mE (160017) [IoT]: process_accepted_connection(105) > Error is occurred during sending: errno 113␛[0m
␛[0;31mE (161982) [IoT]: _iot_easysetup_gen_post_payload(269) > Invalid command sequence 1␛[0m
␛[0;32mI (161986) [IoT]: http_msg_handler(405) > post cmd[1] not ok␛[0m
␛[0;32mI (161997) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1␛[0m
␛[0;33mW (162004) [IoT]: _do_state_updating(1711) > Iot-core task will be stopped, needed ext-triggering
␛[0m
␛[0;32mI (162020) [IoT]: http_cleanup_all_connection(39) > close listen socket␛[0m
␛[0;32mI (162032) [IoT]: http_cleanup_all_connection(46) > close accept socket␛[0m
␛[0;32mI (162051) [IoT]: es_http_deinit(184) > http tcp deinit complete!␛[0m
␛[0;32mI (162059) [IoT]: iot_easysetup_deinit(567) > IOT_STATE_PROV_ES_DONE␛[0m
␛[0;32mI (162063) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 0␛[0m
␛[0;32mI (162076) [IoT]: event_handler(158) > station:e6:02:f3:d0:61:ea leave, AID=1␛[0m
␛[0;32mI (162087) [IoT]: event_handler(141) > SYSTEM_EVENT_AP_STOP␛[0m
␛[0;32mI (162097) [IoT]: event_handler(109) > SYSTEM_EVENT_STA_STOP␛[0m
␛[0;32mI (162107) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0␛[0m
status: 1, stat: 0
␛[0;31mE (162120) [IoT]: st_conn_start(1908) > Can’t go to PROV_CONFIRM (0x2)␛[0m
␛[0;32mI (162131) [IoT]: st_conn_start(1910) > st_conn_start done (-7)␛[0m
fail to start connection. err:-7
␛[0;32mI (162146) [IoT]: _do_update_timeout(200) > Current timeout : 4294967295 for -1/-1␛[0m
␛[0;32mI (162158) [IoT]: _do_status_report(295) > Unsupported state -1 for 0/0␛[0m

Welcome to the SmartThings Community, @calliduslab!

Did you check the tutorial on how to build direct-connected devices?

Could you give more details, please? It’s not clear in which step (command) of the tutorial you received this error

Hi, thanks for your reply…
I’ve gone through the all steps of "SmartThings SDK for Direct Connect ".
please see the below steps what I did in sequences.

  1. success to generate the “device_info.json”
  • /Users/yongil/st-device-sdk-c-ref/iot-core/tools/keygen
  • yongil@YONGILui-MacBookPro keygen % python3 stdk-keygen.py --firmware nlight_r.0.0.1
  1. success in getting the “Onboarding_config.json” from the developer workspace
    also i can see my test device in my smartthings app for iPhone.

  2. success to build and flashing (esp8266 device) with the example app of “light_example”

  • the device_info.json/Onboarding_config.json is updated in the example source code.
  • run the command like this

yongil@YONGILui-MacBookPro light_example % python build.py esp8266 light_example flash

  1. restart the esp8266 device as can see below log.
    ========================================================================
    ets Jan 8 2013,rst cause:2, boot mode:(3,7)

**load 0x40100000, len 6372, room 16 **
tail 4
chksum 0x45
**load 0x3ffe8408, len 24, room 4 **
tail 4
chksum 0xcc
**load 0x3ffe8420, len 2612, room 4 **
tail 0
chksum 0xae
csum 0xae
␛[0;32mI (374) [IoT]: _iot_bsp_fs_encryption(98) > ‘nvs’ is encrypted␛[0m
␛[0;32mI (387) [IoT]: _dump_device_info(706) > firmware_version: nlight_r.0.0.1␛[0m
␛[0;32mI (392) [IoT]: iot_bsp_wifi_init(179) > [esp8266] iot_bsp_wifi_init␛[0m
␛[0;32mI (397) system_api: Base MAC address is not set, read default base MAC address from EFUSE␛[0m
␛[0;32mI (410) system_api: Base MAC address is not set, read default base MAC address from EFUSE␛[0m
phy_version: 1163.0, 665d56c, Jun 24 2020, 10:00:08, RTOS new
␛[0;32mI (484) phy_init: phy ver: 1163_0␛[0m
␛[0;32mI (509) [IoT]: iot_bsp_wifi_init(217) > [esp8266] iot_bsp_wifi_init done␛[0m
␛[0;32mI (514) [IoT]: st_conn_init(1372) > previous error code[]␛[0m
␛[0;32mI (518) [IoT]: st_conn_init(1380) > stdk_version : 1.7.5␛[0m
␛[0;32mI (527) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (540) gpio: GPIO[12]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (554) gpio: GPIO[13]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (568) gpio: GPIO[15]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 ␛[0m
␛[0;32mI (582) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 ␛[0m
␛[0;32mI (2595) [IoT]: st_conn_start(1850) > st_conn_start start (no-pin)␛[0m
␛[0;32mI (2600) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:-1/-1␛[0m
␛[0;32mI (2605) [IoT]: _do_update_timeout(200) > Current timeout : 100000 for -1/0␛[0m
␛[0;32mI (2616) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0␛[0m
status: 1, stat: 0
␛[0;32mI (2630) [IoT]: _do_iot_main_command(499) > curr_main_cmd:2, curr_main_state:-1/0␛[0m
␛[0;32mI (2695) [IoT]: _do_cmd_tout_check(1041) > New state updated for 0␛[0m
␛[0;32mI (2699) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:0/0␛[0m
␛[0;32mI (2704) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 1␛[0m
␛[0;32mI (2718) [IoT]: iot_bsp_wifi_set_mode(266) > WiFi Station Started␛[0m
␛[0;32mI (4789) [IoT]: event_handler(168) > event_handler = 1␛[0m
␛[0;32mI (4848) [IoT]: iot_easysetup_create_ssid(91) > >> callight[1uvw] <<␛[0m
␛[0;32mI (4852) [IoT]: _do_update_timeout(200) > Current timeout : 300000 for 0/1␛[0m
␛[0;32mI (4858) [IoT]: _do_iot_main_command(499) > curr_main_cmd:1, curr_main_state:0/1␛[0m
␛[0;32mI (4869) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 3␛[0m
␛[0;32mI (4886) [IoT]: event_handler(136) > SYSTEM_EVENT_AP_START␛[0m
␛[0;32mI (7943) [IoT]: event_handler(141) > SYSTEM_EVENT_AP_STOP␛[0m
␛[0;32mI (7948) [IoT]: event_handler(136) > SYSTEM_EVENT_AP_START␛[0m
␛[0;32mI (7953) [IoT]: iot_bsp_wifi_set_mode(383) > AP Mode Started␛[0m
␛[0;32mI (7958) [IoT]: iot_easysetup_init(494) > IOT_STATE_PROV_ES_START␛[0m
␛[0;32mI (7969) [IoT]: es_http_init(159) > http tcp init!!␛[0m
␛[0;32mI (7981) [IoT]: iot_easysetup_init(530) > IOT_STATE_PROV_ES_INIT_DONE␛[0m
␛[0;32mI (7989) [IoT]: _do_cmd_tout_check(1041) > New state updated for 1␛[0m
␛[0;32mI (7998) [IoT]: _do_status_report(304) > Call usr status_cb with 2/1␛[0m
status: 2, stat: 1
===========================================================================

  1. start the onBoarding process… at smartthings app of iPhone.

→ press and hold the button of device more than 5 seconds.

Button event, val: 0, tick: 16154
Button long press, iot_status: 2
␛[0;32mI (167560) [IoT]: st_conn_cleanup(1942) > st_conn_cleanup start (0)␛[0m
␛[0;33mW (167565) [IoT]: _delete_dev_card_by_usr(449) > not connected, so can’t send device_card deleting msg␛[0m
␛[0;32mI (167574) [IoT]: _do_iot_main_command(499) > curr_main_cmd:9, curr_main_state:1/1␛[0m
␛[0;33mW (167586) [IoT]: _do_iot_main_command(964) > self device cleanup␛[0m
␛[0;32mI (167598) [IoT]: http_cleanup_all_connection(39) > close listen socket␛[0m
␛[0;32mI (167609) [IoT]: es_http_deinit(184) > http tcp deinit complete!␛[0m
␛[0;32mI (167620) [IoT]: iot_easysetup_deinit(566) > IOT_STATE_PROV_ES_DONE␛[0m
␛[0;32mI (167630) [IoT]: iot_device_cleanup(983) > start to erase device information␛[0m
␛[0;32mI (167738) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1␛[0m
␛[0;33mW (167743) [IoT]: _do_state_updating(1711) > Iot-core task will be stopped, needed ext-triggering
␛[0m
␛[0;32mI (167754) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 0␛[0m
␛[0;32mI (167767) [IoT]: event_handler(141) > SYSTEM_EVENT_AP_STOP␛[0m
␛[0;32mI (167775) [IoT]: event_handler(109) > SYSTEM_EVENT_STA_STOP␛[0m
␛[0;32mI (167784) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0␛[0m
status: 1, stat: 0
␛[0;32mI (167798) [IoT]: st_conn_cleanup(1978) > st_conn_cleanup done (0)␛[0m
␛[0;32mI (167809) [IoT]: st_conn_start(1850) > st_conn_start start (no-pin)␛[0m
␛[0;32mI (167820) [IoT]: _do_update_timeout(200) > Current timeout : 4294967295 for -1/-1␛[0m
␛[0;32mI (167831) [IoT]: _do_status_report(295) > Unsupported state -1 for 0/0␛[0m
Button event, val: 1, tick: 16741
␛[0;32mI (167848) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:-1/-1␛[0m
␛[0;32mI (167861) [IoT]: _do_update_timeout(200) > Current timeout : 100000 for -1/0␛[0m
␛[0;32mI (167873) [IoT]: _do_iot_main_command(499) > curr_main_cmd:2, curr_main_state:-1/0␛[0m
␛[0;32mI (167937) [IoT]: _do_cmd_tout_check(1041) > New state updated for 0␛[0m
␛[0;32mI (167942) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:0/0␛[0m
␛[0;32mI (167948) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 1␛[0m
␛[0;32mI (167961) [IoT]: iot_bsp_wifi_set_mode(266) > WiFi Station Started␛[0m
␛[0;31mE (167972) [IoT]: st_conn_start(1908) > Can’t go to PROV_CONFIRM (0xa)␛[0m
␛[0;32mI (167981) [IoT]: st_conn_start(1910) > st_conn_start done (-7)␛[0m
fail to start connection. err:-7
␛[0;32mI (170031) [IoT]: event_handler(168) > event_handler = 1␛[0m
␛[0;32mI (170097) [IoT]: iot_easysetup_create_ssid(91) > >> callight[1uvw] <<␛[0m
␛[0;32mI (170101) [IoT]: _do_update_timeout(200) > Current timeout : 300000 for 0/1␛[0m
␛[0;32mI (170107) [IoT]: _do_iot_main_command(499) > curr_main_cmd:1, curr_main_state:0/1␛[0m
␛[0;32mI (170119) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 3␛[0m
␛[0;32mI (170137) [IoT]: event_handler(136) > SYSTEM_EVENT_AP_START␛[0m
␛[0;32mI (170142) [IoT]: iot_bsp_wifi_set_mode(383) > AP Mode Started␛[0m
␛[0;32mI (170151) [IoT]: iot_easysetup_init(494) > IOT_STATE_PROV_ES_START␛[0m
␛[0;32mI (170162) [IoT]: es_http_init(159) > http tcp init!!␛[0m
␛[0;32mI (170173) [IoT]: iot_easysetup_init(530) > IOT_STATE_PROV_ES_INIT_DONE␛[0m
␛[0;32mI (170182) [IoT]: _do_cmd_tout_check(1041) > New state updated for 1␛[0m
␛[0;32mI (170192) [IoT]: _do_status_report(304) > Call usr status_cb with 2/1␛[0m
status: 2, stat: 1

STDK # ␀
STDK # ␀

  1. in the mobile app, type the serial number of esp8266 device.

BUT, the device logs are … showing as it just failed… and app screen continusely showing trying … to onborad.

STDK # ␀
STDK # ␀
STDK # ␀␛[0;32mI (223593) [IoT]: event_handler(148) > station:3e:3f:30:02:83:dd join, AID=1␛[0m
␛[0;32mI (223598) [IoT]: _iot_easysetup_wifi_event_cb(91) > Station joined to SoftAP␛[0m
␛[0;32mI (224894) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2␛[0m
␛[0;32mI (224899) [IoT]: event_handler(168) > event_handler = 18␛[0m
␛[0;32mI (227130) [IoT]: _iot_easysetup_gen_get_payload(177) > waiting… response for [0]␛[0m
␛[0;32mI (227136) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1␛[0m
␛[0;32mI (227144) [IoT]: _do_state_updating(1646) > Notification only with IOT_STATE_PROV_CONN_MOBILE␛[0m
␛[0;32mI (227158) [IoT]: _do_status_report(304) > Call usr status_cb with 2/4␛[0m
status: 2, stat: 4
␛[0;32mI (227182) [IoT]: http_msg_handler(421) > get cmd[0] ok␛[0m
␛[0;31mE (227185) wifi: AES PN: 000000000000002a <= 000000000000002a␛[0m
␛[0;31mE (227206) wifi: AES PN: 000000000000002f <= 000000000000002f␛[0m
␛[0;32mI (255068) [IoT]: event_handler(158) > station:3e:3f:30:02:83:dd leave, AID=1␛[0m
␛[0;32mI (255073) [IoT]: _iot_easysetup_wifi_event_cb(95) > Station left from SoftAP␛[0m
␛[0;32mI (255080) [IoT]: _do_iot_main_command(499) > curr_main_cmd:10, curr_main_state:1/1␛[0m
␛[0;33mW (255092) [IoT]: _do_state_updating(1711) > Iot-core task will be stopped, needed ext-triggering
␛[0m
␛[0;32mI (255109) [IoT]: http_cleanup_all_connection(39) > close listen socket␛[0m
␛[0;32mI (255120) [IoT]: http_cleanup_all_connection(46) > close accept socket␛[0m
␛[0;32mI (255131) [IoT]: es_http_deinit(184) > http tcp deinit complete!␛[0m
␛[0;32mI (255141) [IoT]: iot_easysetup_deinit(566) > IOT_STATE_PROV_ES_DONE␛[0m
␛[0;32mI (255151) [IoT]: iot_bsp_wifi_set_mode(235) > iot_bsp_wifi_set_mode = 0␛[0m
␛[0;32mI (255165) [IoT]: event_handler(141) > SYSTEM_EVENT_AP_STOP␛[0m
␛[0;32mI (255172) [IoT]: event_handler(109) > SYSTEM_EVENT_STA_STOP␛[0m
␛[0;32mI (255182) [IoT]: _do_status_report(304) > Call usr status_cb with 1/0␛[0m
status: 1, stat: 0
␛[0;31mE (255195) [IoT]: st_conn_start(1908) > Can’t go to PROV_CONFIRM (0x2)␛[0m
␛[0;32mI (255206) [IoT]: st_conn_start(1910) > st_conn_start done (-7)␛[0m
fail to start connection. err:-7
␛[0;32mI (255221) [IoT]: _do_update_timeout(200) > Current timeout : 4294967295 for -1/-1␛[0m
␛[0;32mI (255234) [IoT]: _do_status_report(295) > Unsupported state -1 for 0/0␛[0m
==============================================================================

So, you never receive an error in the app like below? Maybe something went wrong with the verification. There’s also an error code that you could share to see if the team can check the corresponding logs.

I just made a test and I was able to connect the device using the light_example but I don’t use any type of verification. I selected “JUSTWORKS”. Did you select the “QR” option?

for the last few days,
I’ve tried again to build light_example but still, the symptoms are the same as before.
I just put the serial number from the keyboard rather than QR.
the device tried to onboard but it returned with an error message and I can’t see the error screen on the app. the app screen keeps trying to onboard the device(I wait for at least 30min.)

and it ends like this logs.

Is it necessary that you use the QR option? It would be helpful to see if the confirmation type is the issue, for example, the JustWorks validation type doesn’t require you to enter any key to join the device.
This is a sample onboarding file using this option:

{
  "onboardingConfig": {
    "deviceOnboardingId": "dirconnected",
    "mnId": "..",
    "setupId": "005",
    "vid": "ST_cb9039d0-78de-4360-8fd6-...",
    "deviceTypeId": "Switch",
    "ownershipValidationTypes": [
      "JUSTWORKS"
    ],
    "identityType": "ED25519",
    "deviceIntegrationProfileKey": {
      "id": "4662b991-0273-4bd9-...",
      "majorVersion": 0,
      "minorVersion": 1
    },
    "productId": "5925aa67-8228-..."
  }
}

Now , I tried using QR code but unfortunately, it still returns the same ERROR.
qrcode was generated at “/Users/yongil/st-device-sdk-c-ref/iot-core/tools/qrgen” with the command of “python3 stdk-qrgen.py”
image

same error logs… as before

it should be the very simple problem which I just don’t know.

Ok, which iOS version are you using? The team mentioned there’s an issue with the QR confirmation since version 15.4, so that could be causing the error because this message appears:
Can't go to PROV_CONFIRM (0x2).
That’s why I wanted to test with “JUSTWORKS”. The onboarding should be correct in Android in case you can test there.

Hi Nayelyz,
Yes, I’m using exactly the version you mention.
iPhone 12 mini, 15.4.1…

but are the direct devices installed in my home( refrigerator, water purifier …) working well with my iPhone?

Best regards,

Yes, if they are already installed, they should be ok, the issue is during the onboarding, those also known as OCF devices are also being affected.