-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Make android app act as an OTA provider #26868
Comments
iOS implements connectedhomeip/src/darwin/Framework/CHIP/MTRIMDispatch.mm Lines 230 to 240 in 19ae369
Android might need to do something similar. |
how could you set ota provider on android @MrLiuYunPing ? may you share your code here? I never found documentarion for support this feature |
Any update what steps need to perform in Android code achieve OTA in android? |
@bzbarsky-apple Hi Could you give me a simple example how to make OTA process on iOS side? I didn't find any docs on this, I want to do OTA function on iOS, Thank you . |
@MrLiuYunPing Hi could you tell me how you implemented on iOS? Thank you |
@yusheng-jia On iOS, set |
Thanks, I will do that. |
I will take a look today. thanks |
@MrLiuYunPing @swap9391 @yusheng-jia @srdantas may I know your requirement on android for ota-provider? for example, you wanna use android-chip-tool or your android app to announce there is ota software, then send this image to your wifi-device using bdx over wifi? I think currently there is no java/jni api for setDelegate for ota-provider, how do you do that, wanna get more details so that we can plan the feature. thanks |
Thank you for support, you're totally right . I did this on iOS, iOS has MTROTAProviderDelegate protocol, it has very detailed method to implement the whole OTA process on App side. |
@yusheng-jia are you in matter slack channel, if yes, what is your slack name? |
I'm in slack channel, and my name is Jayson Jia, Thank you! |
@yunhanw-google Hi, I am also surveying this feature. Is an OTA provider currently being developed? |
@eling22 are you in slack, could you find me with yunhanw in slack? Wanna understand your requirement, thanks |
@eling22 and @MrLiuYunPing we are actively supporting this feature, we would create several PR for this work soon. |
I don't have knowledge of an android app, but I was facing same issue with linux PC. In your android app if you want to be as an OTA provider then OTA provider cluster must be in server mode. I have resolved this error by doing following changes. |
@Shahmeera @eling22 @MrLiuYunPing @yusheng-jia @swap9391 @srdantas we have officially added the OTA support in android side, please check-in, thanks |
Feature description
...
I have done this in iOS, because the Matter.framework has supported to set an OTA delegate, and has some test cases related. But, in android, I announce the controller nodeId to the device to update, when I set OTA delegate using endpoint 0, it always failed(emberAfFindClusterServerEndpointIndex method returns Invalid). When i look the logs on the device, it shows: Received Command Response Status for Endpoint=0 Cluster=0x0000_0029 Command=0x0000_0000 Status=0x7f . . .Status=0x7f whichs means unsupported endpoint. I don't know why iOS success but android failed?
Platform
android
Platform Version(s)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: