You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have custom device with ESP32 and custom characteristics in it. But when i want to add all capabilities to config i am not able to get them from device probably due to its size (it is longer than 512 bytes)
If i use this library i get as the same error as original Espresif provision app.
If i ignore it i can read and change custom characteristics. But cannot recognise what capabilities could be manageable from app.
There is also strange that there is security 1 but i can see security 2 is gonna be applied. (BTW you have typo in code on log sec0).
Log is from official ESP provisioning app
2024-03-07 09:54:01.557 4888-4888 NfcService com.android.nfc D Received android.intent.action.BATTERY_CHANGED
2024-03-07 09:54:01.559 6310-7221 PowerCheckerService com.miui.powerkeeper D onBatteryChanged, mBatteryLevel = 63, status = 2, level = 63, plug = 1, scale = 100
2024-03-07 09:54:01.559 21788-21788 BatteryInfoReceiver com.miui.securitycenter.remote I ACTION_BATTERY_CHANGED
2024-03-07 09:54:01.559 21788-21788 PowerSaveService com.miui.securitycenter.remote I onReceive: android.intent.action.BATTERY_CHANGED
2024-03-07 09:54:01.560 21788-21788 PowerNoticeUI com.miui.securitycenter.remote I handleBatteryChanged oldPlugType 1 mPlugType 1 oldBatteryLevel 63 mBatteryLevel 63 temperature 270
2024-03-07 09:54:01.562 6310-6467 PowerKeeper.FrozenApp com.miui.powerkeeper D onBatteryChanged plug=true mBatteryPlugged=1
2024-03-07 09:54:01.564 32229-32229 DeviceStatisticsService com...m.qti.devicestatisticsservice D chargerType=1 batteryLevel=63 totalBatteryCapacity=1706100
2024-03-07 09:54:01.615 797-3066 vendor.qti...-wake_lock [email protected] D Release wakelock is released
2024-03-07 09:54:01.661 7367-7437 FA com.android.settings I Application backgrounded at: timestamp_millis: 1709801639650
2024-03-07 09:54:01.737 7810-7810 ProofOfPos...onActivity com.espressif.provble D POP : abcd1234
2024-03-07 09:54:01.738 7810-7810 System.err com.espressif.provble W org.json.JSONException: Unterminated string at character 600 of {
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "ble-ota": {
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "ver": "v0.2",
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "cap": ["system_info", "restart_device", "start_ota", "finish_ota", "req_ota_update_status", "fw_rollback", "fw_factory_reset"]
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W },
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "ocpp-config": {
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "ver": "v0.2",
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "cap": ["server_uri", "charger_vendor", "charger_model", "connector_count", "serial_number"]
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W },
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "evse-config": {
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "ver": "v0.2",
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "cap": ["charger_count", "charge_mode", "charge_current", "charge_enable", "charger_type", "charger_wh_total", "charger_wh_meas", "charger_grid_type"]
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W },
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "lte-config": {
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "ver": "v0.2",
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W "cap": ["apn", "operator_code", "iot_oper_mode", "nbiot_band", "catm_ba
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.syntaxError(JSONTokener.java:460)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.nextString(JSONTokener.java:234)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.nextValue(JSONTokener.java:111)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.readArray(JSONTokener.java:440)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.nextValue(JSONTokener.java:107)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.readObject(JSONTokener.java:394)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.nextValue(JSONTokener.java:104)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.readObject(JSONTokener.java:394)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONTokener.nextValue(JSONTokener.java:104)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONObject.<init>(JSONObject.java:165)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at org.json.JSONObject.<init>(JSONObject.java:182)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.ESPDevice.initSession(ESPDevice.java:593)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at com.espressif.ui.activities.ProofOfPossessionActivity$1.onClick(ProofOfPossessionActivity.java:124)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at android.view.View.performClick(View.java:7509)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at android.view.View.performClickInternal(View.java:7486)
2024-03-07 09:54:01.739 7810-7810 System.err com.espressif.provble W at android.view.View.access$3600(View.java:841)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at android.view.View$PerformClick.run(View.java:28709)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at android.os.Handler.handleCallback(Handler.java:938)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at android.os.Handler.dispatchMessage(Handler.java:99)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at android.os.Looper.loop(Looper.java:236)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at android.app.ActivityThread.main(ActivityThread.java:8061)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at java.lang.reflect.Method.invoke(Native Method)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
2024-03-07 09:54:01.740 7810-7810 System.err com.espressif.provble W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
2024-03-07 09:54:01.740 7810-7810 ESP:ESPDevice com.espressif.provble D Capabilities JSON not available.
2024-03-07 09:54:01.740 7810-7810 ESP:ESPDevice com.espressif.provble D Init session with : SECURITY_2
2024-03-07 09:54:01.740 7810-7810 Espressif::Security2 com.espressif.provble D User name : password : abcd1234
2024-03-07 09:54:01.741 7810-7810 System.err com.espressif.provble W java.lang.IllegalArgumentException: The user identity 'I' must not be null or empty
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.srp6a.SRP6ClientSession.step1(SRP6ClientSession.java:195)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.security.Security2.<init>(Security2.java:84)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.ESPDevice.initSession(ESPDevice.java:640)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.ui.activities.ProofOfPossessionActivity$1.onClick(ProofOfPossessionActivity.java:124)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View.performClick(View.java:7509)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View.performClickInternal(View.java:7486)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View.access$3600(View.java:841)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View$PerformClick.run(View.java:28709)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.os.Handler.handleCallback(Handler.java:938)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.os.Handler.dispatchMessage(Handler.java:99)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.os.Looper.loop(Looper.java:236)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.app.ActivityThread.main(ActivityThread.java:8061)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at java.lang.reflect.Method.invoke(Native Method)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W java.lang.IllegalArgumentException: The user identity 'I' must not be null or empty
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.srp6a.SRP6ClientSession.step1(SRP6ClientSession.java:195)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.security.Security2.<init>(Security2.java:84)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.provisioning.ESPDevice.initSession(ESPDevice.java:640)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at com.espressif.ui.activities.ProofOfPossessionActivity$1.onClick(ProofOfPossessionActivity.java:124)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View.performClick(View.java:7509)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View.performClickInternal(View.java:7486)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View.access$3600(View.java:841)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.view.View$PerformClick.run(View.java:28709)
2024-03-07 09:54:01.742 7810-7810 System.err com.espressif.provble W at android.os.Handler.handleCallback(Handler.java:938)
2024-03-07 09:54:01.743 7810-7810 System.err com.espressif.provble W at android.os.Handler.dispatchMessage(Handler.java:99)
2024-03-07 09:54:01.743 7810-7810 System.err com.espressif.provble W at android.os.Looper.loop(Looper.java:236)
2024-03-07 09:54:01.743 7810-7810 System.err com.espressif.provble W at android.app.ActivityThread.main(ActivityThread.java:8061)
2024-03-07 09:54:01.743 7810-7810 System.err com.espressif.provble W at java.lang.reflect.Method.invoke(Native Method)
2024-03-07 09:54:01.743 7810-7810 System.err com.espressif.provble W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
2024-03-07 09:54:01.743 7810-7810 System.err com.espressif.provble W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
The text was updated successfully, but these errors were encountered:
Hello,
i have custom device with ESP32 and custom characteristics in it. But when i want to add all capabilities to config i am not able to get them from device probably due to its size (it is longer than 512 bytes)
If i use this library i get as the same error as original Espresif provision app.
If i ignore it i can read and change custom characteristics. But cannot recognise what capabilities could be manageable from app.
There is also strange that there is security 1 but i can see security 2 is gonna be applied. (BTW you have typo in code on log sec0).
Log is from official ESP provisioning app
The text was updated successfully, but these errors were encountered: