Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT REVIEW][epskc] demo version impl for epskc #261

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wgtdkp
Copy link
Member

@wgtdkp wgtdkp commented Apr 13, 2024

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.92%. Comparing base (79d1ddc) to head (9bb7a83).
Report is 5 commits behind head on main.

Current head 9bb7a83 differs from pull request most recent head f3d2398

Please upload reports for the commit f3d2398 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #261      +/-   ##
==========================================
+ Coverage   72.88%   72.92%   +0.04%     
==========================================
  Files          72       72              
  Lines        7500     7482      -18     
==========================================
- Hits         5466     5456      -10     
+ Misses       2034     2026       -8     

see 4 files with indirect coverage changes

@wgtdkp wgtdkp force-pushed the epskc-demo branch 3 times, most recently from af82706 to fa0d994 Compare April 15, 2024 14:06
@wgtdkp
Copy link
Member Author

wgtdkp commented May 1, 2024

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip.
Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

@Cristib05
Copy link

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

@wgtdkp
Copy link
Member Author

wgtdkp commented Aug 1, 2024

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.

Or, you can patch this PR and follow the guide to build the app on your own.

@Cristib05
Copy link

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.

Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app.
commissioner_logcat.txt

@wgtdkp
Copy link
Member Author

wgtdkp commented Aug 8, 2024

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.

I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

@Cristib05
Copy link

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.

I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

Thanks for your help! I will update and have another try.

@wgtdkp wgtdkp force-pushed the epskc-demo branch 3 times, most recently from 59fcab9 to 61159e5 Compare August 12, 2024 01:43
@Cristib05
Copy link

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.
I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

Thanks for your help! I will update and have another try.

Hi @wgtdkp. I have included the id TXT field and I was able to perform the demo, I was able to see the message which indicated that dataset was saved in Google Play Services. I have another question, I always get an error, Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68. This happens when response to PTR query _meshcop._udp includes in additional section an AAAA record which contains link-local address. If I remove this link-local from additional section, and I only let global ipv6 address, no errors are shown.

I searched for the error message, and I've seen that the issue might be located here
image

@wgtdkp
Copy link
Member Author

wgtdkp commented Aug 12, 2024

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.
I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

Thanks for your help! I will update and have another try.

Hi @wgtdkp. I have included the id TXT field and I was able to perform the demo, I was able to see the message which indicated that dataset was saved in Google Play Services. I have another question, I always get an error, Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68. This happens when response to PTR query _meshcop._udp includes in additional section an AAAA record which contains link-local address. If I remove this link-local from additional section, and I only let global ipv6 address, no errors are shown.

I searched for the error message, and I've seen that the issue might be located here image

Can you share the full log of this one "Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68"? It works only if the scope id is appended to the link-local IPv6 address

And what's your Android OS version?

@Cristib05
Copy link

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.
I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

Thanks for your help! I will update and have another try.

Hi @wgtdkp. I have included the id TXT field and I was able to perform the demo, I was able to see the message which indicated that dataset was saved in Google Play Services. I have another question, I always get an error, Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68. This happens when response to PTR query _meshcop._udp includes in additional section an AAAA record which contains link-local address. If I remove this link-local from additional section, and I only let global ipv6 address, no errors are shown.
I searched for the error message, and I've seen that the issue might be located here image

Can you share the full log of this one "Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68"? It works only if the scope id is appended to the link-local IPv6 address

And what's your Android OS version?

Hello, I have attached the log when our BR adds the link local ipv6 adrress in additional data section.
logcat_link-local.txt
For test, I only have Android 10&11 versions.

@wgtdkp
Copy link
Member Author

wgtdkp commented Aug 13, 2024

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.
I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

Thanks for your help! I will update and have another try.

Hi @wgtdkp. I have included the id TXT field and I was able to perform the demo, I was able to see the message which indicated that dataset was saved in Google Play Services. I have another question, I always get an error, Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68. This happens when response to PTR query _meshcop._udp includes in additional section an AAAA record which contains link-local address. If I remove this link-local from additional section, and I only let global ipv6 address, no errors are shown.
I searched for the error message, and I've seen that the issue might be located here image

Can you share the full log of this one "Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68"? It works only if the scope id is appended to the link-local IPv6 address
And what's your Android OS version?

Hello, I have attached the log when our BR adds the link local ipv6 adrress in additional data section. logcat_link-local.txt For test, I only have Android 10&11 versions.

@Cristib05 Thanks for the bugreport, it's indeed the missing scope ID issue I suspected. I created a new version the APK with the fix. Can you help validate it?
epskc-commissioner-app-debug-fix-lla.zip

@wgtdkp wgtdkp force-pushed the epskc-demo branch 2 times, most recently from eb27927 to 0250987 Compare August 13, 2024 09:30
@Cristib05
Copy link

Here is an the Android APK prebuilt with the ePSKc support: epskc-commissioner-app-debug.apk.zip. Instead of building from source code, you can download the install the APK to reproduce the latest ePSKc demo.

@jwhui In case this can ease Thread Group members' adoption.

Hi @wgtdkp. We have tested this application and we have noticed the application crashes when we try to obtain the dataset. Can you please share an apk with the latest code? I've noticed you have updated this PR since you have shared the initial APK. With ot-cli commissioner everything seems to work fine. Thanks!

Hi, I am out of office before next week. I can help only after next Monday. If will be very helpful if you could upload an Android bugreport when the crash happened.
Or, you can patch this PR and follow the guide to build the app on your own.

Hello @wgtdkp, I have attached a logcat from the app. commissioner_logcat.txt

Thanks for the log. The crash is because your border router doesn't include a id TXT record in its mdns service. If you are using ot-br-psoix for your BR, you probably need to update your code to the latest version.
I should tolerate such issues in the demo app, but without the id of the BR, the demo won't work end to end.

Thanks for your help! I will update and have another try.

Hi @wgtdkp. I have included the id TXT field and I was able to perform the demo, I was able to see the message which indicated that dataset was saved in Google Play Services. I have another question, I always get an error, Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68. This happens when response to PTR query _meshcop._udp includes in additional section an AAAA record which contains link-local address. If I remove this link-local from additional section, and I only let global ipv6 address, no errors are shown.
I searched for the error message, and I've seen that the issue might be located here image

Can you share the full log of this one "Failed to connect to Border Router: IO_ERROR: connect socket to peer addr = fe80::.... port = 49155 failed=-68"? It works only if the scope id is appended to the link-local IPv6 address
And what's your Android OS version?

Hello, I have attached the log when our BR adds the link local ipv6 adrress in additional data section. logcat_link-local.txt For test, I only have Android 10&11 versions.

@Cristib05 Thanks for the bugreport, it's indeed the missing scope ID issue I suspected. I created a new version the APK with the fix. Can you help validate it? epskc-commissioner-app-debug-fix-lla.zip

@wgtdkp I have tested with your new .apk file. I could see that now scope id is shown [fe80::...../%wlan0] for example. Dataset was retrieved and saved in google play services. Thanks for providing this update.
Is there any possibility to see the retrieved dataset? Or this would be a security vulnerability?

@wgtdkp
Copy link
Member Author

wgtdkp commented Aug 13, 2024

Is there any possibility to see the retrieved dataset? Or this would be a security vulnerability?

I added a "Show Dataset" button there to display the dataset.
epskc-commissioner-app-debug-show-dataset.zip

@Cristib05
Copy link

Cristib05 commented Aug 14, 2024

Is there any possibility to see the retrieved dataset? Or this would be a security vulnerability?

I added a "Show Dataset" button there to display the dataset. epskc-commissioner-app-debug-show-dataset.zip

Thanks for this update! It will be useful for testing purposes. Couple of nits I've found after the last updates (maybe from my older Android version, I don't know.)

  1. The list in which border routers are shown has increased its length, even though it's displaying only one border router (initially its length seemed to be dynamically adjusted based on number of elements displayed)
  2. The input box for ephemeral key has now a width of only two digits. Every new entered digit is displayed, the previous one seems to be shifted to left side.
    Apart from those, everything seems to be fine. Thanks again for your support!

@wgtdkp
Copy link
Member Author

wgtdkp commented Aug 14, 2024

Is there any possibility to see the retrieved dataset? Or this would be a security vulnerability?

I added a "Show Dataset" button there to display the dataset. epskc-commissioner-app-debug-show-dataset.zip

Thanks for this update! It will be useful for testing purposes. Couple of nits I've found after the last updates (maybe from my older Android version, I don't know.)

  1. The list in which border routers are shown has increased its length, even though it's displaying only one border router (initially its length seemed to be dynamically adjusted based on number of elements displayed)
  2. The input box for ephemeral key has now a width of only two digits. Every new entered digit is displayed, the previous one seems to be shifted to left side.
    Apart from those, everything seems to be fine. Thanks again for your support!

Could you provide screenshots for the two issues?

@Cristib05
Copy link

Is there any possibility to see the retrieved dataset? Or this would be a security vulnerability?

I added a "Show Dataset" button there to display the dataset. epskc-commissioner-app-debug-show-dataset.zip

Thanks for this update! It will be useful for testing purposes. Couple of nits I've found after the last updates (maybe from my older Android version, I don't know.)

  1. The list in which border routers are shown has increased its length, even though it's displaying only one border router (initially its length seemed to be dynamically adjusted based on number of elements displayed)
  2. The input box for ephemeral key has now a width of only two digits. Every new entered digit is displayed, the previous one seems to be shifted to left side.
    Apart from those, everything seems to be fine. Thanks again for your support!

Could you provide screenshots for the two issues?

commissioner-ss.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants