02-19-2024 10:30 PM
I created matter virtual device with on/off clusters and it's working well but when I try with the physical device getting
"Search for Devices"
Logcat:
runDevicesPeriodicPing deviceId [1]
getDeviceStateOnOffCluster())
FindOrEstablishSession: No existing OperationalSessionSetup instance found
OperationalSessionSetup State change 1 --> 2
resolve: Starting service resolution for 'F440DE2737487CDF-0000000000000001' type '_matter._tcp'
Checking node lookup status after 202 ms
resolve: Timing out
ViewPostIme pointer 0
mReversing is false. Don't call initChildren.
onDisplayChanged oldDisplayState=2 newDisplayState=2
ViewPostIme pointer 1
addDeviceButton.setOnClickListener
CommissionDevice: starting
mReversing is false. Don't call initChildren.
commissionDeviceStatus.observe: status [TaskStatus$InProgress@f100b3a]
ShareDevice: Success getting the IntentSender: result
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
Recording user engagement, ms: 85765
commissionDeviceIntentSender.observe is called with [null]
handleWindowFocusChanged: 0 0 call from
onPreWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
I onPostWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
Connecting to remote service
Connection attempt already in progress
Activity paused,
Connected to remote service
Processing queued up service tasks: 2
onCreate()
intent [Intent { commissioning.AppCommissioningService }]
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
ClassLoaderContext classpath size mismatch. expected=12, found=17
Input channel destroyed: 'ClientS', fd=123
handleAppVisibility mAppVisible = true visible = false
Relayout returned: old=(0,0,1080,2640) new=(0,0,1080,2640) relayoutAsync=false req=(1080,2640)8 dur=8 res=0x402 s={false 0x0} ch=true seqId=0
stopped(true) old = false
WindowStopped on set to true
Relayout returned: old=(0,0,1080,2640) new=(0,0,1080,2640) relayoutAsync=false req=(1080,2640)8 dur=7 res=0x402 s={false 0x0} ch=false seqId=0
2024-02-20 11:20:55.247 1872-3273 WindowManager system_server E win=Window{b21c0a u0 } destroySurfaces: appStopped=true cleanupOnResume=false win.mWindowRemovalAllowed=false win.mRemoveOnExit=false win.mViewVisibility=8 caller=com.android.server.wm.ActivityRecord.destroySurfaces:6900 com.android.server.wm.ActivityRecord.destroySurfaces:6881 com.android.server.wm.ActivityRecord.activityStopped:7576 com.android.server.wm.ActivityClientController.activityStopped:310 android.app.IActivityClientController$Stub.onTransact:702 com.android.server.wm.ActivityClientController.onTransact:175 android.os.Binder.execTransactInternal:1380
onDisplayChanged oldDisplayState=2 newDisplayState=2
Application going to the background
Application backgrounded at: timestamp_millis: 1708408254693
Checking node lookup status after 15015 ms
OperationalSessionSetup[1:0000000000000001]: operational discovery failed: 32
Unable to get connected device with nodeId 1.
connectedDevicePointer.
runDevicesPeriodicUpdate: cannot get device on/off state -> OFFLINE
runDevicesPeriodicPing deviceId [1] [false] [false]
devicesUiModelFlow changed ***
processDevices() deviceId: [1]}
deviceId setting its own value for state
Inactivity, disconnecting from the service
onDisplayChanged oldDisplayState=2 newDisplayState=2
onDisplayChanged oldDisplayState=2 newDisplayState=2
and
"Can't find device"
and some instructions page visible witch is already tried by many times
Answered! Go to the Recommended Answer.
02-22-2024 11:27 AM
Hello @Rgv27 ,
The log you shared tells us that commissioning failed at operational discovery, i.e. we did not get a response for mDNS queries after the device joined WiFi. We might be needing additional details regarding the physical device build (SDK commit, SOC, example used , etc). Also, could you inspect wireshark captured during commissioning.Without these details it is difficult for us to do a proper investigation of your issue.
02-22-2024 10:59 PM
Hello @sipriyadarshi , Can you please tell me about the hub, is that require for connectivity with the single matter physical device to my app ?
02-22-2024 11:19 PM
@sipriyadarshi , and also the certification of app is require on google console for commissioning of devices ?
Thanks
02-26-2024 03:48 AM
I got some different message
Logcat
CommissionDevice: starting
mReversing is false. Don't call initChildren.
commissionDeviceStatus.observe: status []
ShareDevice: Success getting the IntentSender: result [IntentSender{}]
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
commissionDeviceIntentSender.observe is called with [null]
Connecting to remote service
Connection attempt already in progress
Activity paused, time: 1210054748
Connected to remote service
Processing queued up service tasks: 2
Compat change id reported: 150939131; UID 11471; state: ENABLED
onCreate()
intent [Intent { .commissioning.AppCommissioningService }]
handleAppVisibility mAppVisible = true visible = false
Relayout returned: old=(0,0,1080,2640) new=(0,0,1080,2640) relayoutAsync=false req=(1080,2640)8 dur=8 res=0x402 s={false 0x0} ch=true seqId=0
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Input channel destroyed: 'ClientS', fd=135
stopped(true) old = false
onDisplayChanged oldDisplayState=2 newDisplayState=2
Application going to the background
Application backgrounded at: timestamp_millis: 1708941845549
Inactivity, disconnecting from the service
Late-enabling -Xcheck:jni
Using CollectorTypeCC GC.
setConscryptValidator
setConscryptValidator - put
Compat change id reported: 171979766; UID 11471; state: ENABLED
Compat change id reported: 242716250; UID 11471; state: ENABLED
Currently set values for:
angle_gl_driver_selection_pkgs=[]
angle_gl_driver_selection_values=[]
com.slappi is not listed in per-application setting
App is not on the allowlist for updatable production driver.
Compat change id reported: 183155436; UID 11471; state: ENABLED
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
QUALCOMM build : 12ae96cb63, I409bbc12eb
Build Date : 09/13/23
OpenGL ES Shader Compiler Version: EV031.35.01.10
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
Build Config : S P 10.0.7 AArch64
Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x016dc112, ME: 0x00000000
Selected remote version of com.google.android.gms.measurement.dynamite, version >= 102
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Checking for metadata for AppLocalesMetadataHolderService : Service not found
ClassLoader referenced unknown path:
onActivityCreated
setWindowBackground: isPopOver=false color=fffef7ff d=android.graphics.drawable.ColorDrawable@8e650d5
Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
Compat change id reported: 210923482; UID 11471; state: ENABLED
App measurement collection enabled
App measurement enabled for app package, google app id:, 1:775073109900:android:88525231b865fc4da928a9
App measurement initialized, version: 85000
To enable faster debug mode event logging run:
Compat change id reported: 237531167; UID 11471; state: DISABLED
Access denied finding property "persist.dm.passive.display_brightness"
Access denied finding property "persist.dm.passive.ambient_brightness"
[NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
Resetting session stitching token to not null
synced displayState. AttachInfo displayState=2
setView = com.android.internal.policy.DecorView@91a1e58 TM=true
Starting IDS observe window
App has not finished training
Connecting to remote service
Closing IDS observe window
Connection attempt already in progress
Connection attempt already in progress
Activity resumed, time: 1210117805
Tag Manager is not found and thus will not be used
mThreadedRenderer.initialize() mSurface={isValid=true 0xb400007379265cf0} hwInitialized=true
Setup new sync=wmsSync-ViewRootImpl@3bbcf7d[]#0
Creating new active sync group ViewRootImpl@3bbcf7d[SplashActivity]#1
registerCallbacksForSync syncBuffer=false
Received frameDrawingCallback syncResult=0 frameNum=1.
mWNT: t=0xb4000071f92508b0 mBlastBufferQueue=0xb4000071d924f950 fn= 1 caller= android.view.ViewRootImpl$8.onFrameDraw:13674 android.view.ThreadedRenderer$1.onFrameDraw:788 <bottom of call stack>
Setting up sync and frameCommitCallback
Connection attempt already in progress
Connection attempt already in progress
onFrameAvailable the first frame is available
Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
CFMS:: SetUp Pid : 14166 Tid : 14205
reportDrawFinished
registerCallbackForPendingTransactions
applyRequestedVisibilityToControl: visible=true, type=statusBars, host=
applyRequestedVisibilityToControl: visible=true, type=navigationBars, host=
Connected to remote service
Processing queued up service tasks: 5
handleWindowFocusChanged: 1 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0
mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb400007379265cf0}
startInputInner - Id : 0
startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
startInputInner - Id : 0
applyRequestedVisibilityToControl: visible=false, type=ime, host=
onDisplayChanged oldDisplayState=2 newDisplayState=2
Recording user engagement, ms: 2003
onActivityCreated
Activity paused, time: 1210119808
onCreate bundle is: null
Compat change id reported: 247079863; UID 11471; state: ENABLED
commissionDeviceStatus.observe: status [com.TaskStatus$NotStarted@71c33c5]
onResume(): intent [Intent { cmp= }]
Invocation: Main
Starting periodic ping on device with interval [2] seconds
Activity resumed, time: 1210119969
startDevicesPeriodicPing every 10 seconds
[NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
synced displayState. AttachInfo displayState=2
setView = com.android.internal.policy.DecorView@36b5a6c TM=true
devicesUiModelFlow changed ***
updateUi [DevicesUiModel(devices=[], showCodelabInfo=true, showOfflineDevices=true)]
mReversing is false. Don't call initChildren.
Relayout returned: old=(0,0,1080,2640) new=(0,0,1080,2640) relayoutAsync=false req=(1080,2640)0 dur=8 res=0x403 s={true 0xb400007379278f80} ch=true seqId=0
performConfigurationChange setNightDimText nightDimLevel=0
mThreadedRenderer.initialize() mSurface={isValid=true 0xb400007379278f80} hwInitialized=true
Setup new sync=wmsSync-ViewRootImpl@e8081c3[BaseActivity]#2
Creating new active sync group ViewRootImpl@e8081c3[BaseActivity]#3
registerCallbacksForSync syncBuffer=false
Received frameDrawingCallback syncResult=0 frameNum=1.
mWNT: t=0xb4000071f9258730 mBlastBufferQueue=0xb4000071d9246990 fn= 1 caller= android.view.ViewRootImpl$8.onFrameDraw:13674 android.view.ThreadedRenderer$1.onFrameDraw:788 <bottom of call stack>
Setting up sync and frameCommitCallback
[ViewRootImpl@e8081c3[BaseActivity]#1](f:0,a:0,s:0) onFrameAvailable the first frame is available
Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
CFMS:: SetUp Pid : 14166 Tid : 14205
reportDrawFinished
handleWindowFocusChanged: 0 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0
onPreWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
onPostWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
registerCallbackForPendingTransactions
mWNT: t=0xb4000071f925b330 mBlastBufferQueue=0xb4000071d9246990 fn= 2 caller= android.view.ViewRootImpl$6.onFrameDraw:5582 android.view.ViewRootImpl$2.onFrameDraw:2131 android.view.ThreadedRenderer$1.onFrameDraw:788
mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb400007379278f80}
startInputInner - Id : 0
startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
applyRequestedVisibilityToControl: visible=false, type=ime, host=com.slappi/com.slappi.base.BaseActivity
onDisplayChanged oldDisplayState=2 newDisplayState=2
onDisplayChanged oldDisplayState=2 newDisplayState=2
handleAppVisibility mAppVisible = true visible = false
stopped(true) old = false
WindowStopped on set to true
dispatchDetachedFromWindow
Input channel destroyed: '325b4fb', fd=110
Inactivity, disconnecting from the service
onDisplayChanged oldDisplayState=2 newDisplayState=2
Cleared Reference was only reachable from finalizer (only reported once)
Input channel destroyed: 'ClientS', fd=141
startInputInner - Id : 0
startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
onDisplayChanged oldDisplayState=2 newDisplayState=2
ViewPostIme pointer 0
mReversing is false. Don't call initChildren.
onDisplayChanged oldDisplayState=2 newDisplayState=2
ViewPostIme pointer 1
addDeviceButton.setOnClickListener
CommissionDevice: starting
mReversing is false. Don't call initChildren.
commissionDeviceStatus.observe: status [InProgress@3ac5515]
ShareDevice: Success getting the IntentSender: result [IntentSender]
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
Recording user engagement, ms: 35345
commissionDeviceIntentSender.observe is called with [null]
onPreWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
Connecting to remote service
onCreate()
intent [Intent { pkg=.commissioning.AppCommissioningService }]
Connection attempt already in progress
Activity paused, time: 1210155315
Connected to remote service
Processing queued up service tasks: 2
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Input channel destroyed: 'ClientS', fd=124
handleAppVisibility mAppVisible = true visible = false
stopped(true) old = false
onDisplayChanged oldDisplayState=2 newDisplayState=2
Application going to the background
Application backgrounded at: timestamp_millis:
Inactivity, disconnecting from the service
Cann’t connect to wifi("name") network
Check that your device can work with this network type and try again
then, how can I check my device work with which network type?
02-27-2024 10:41 PM
Hello @sipriyadarshi , any update on this?
02-28-2024 02:16 AM
When I tap the pluse + button on sample app using matter sdk, scanner opened
Scanning done with code using Tapo Light L535E
Searching for the device
getting this page after searching
Hello @sipriyadarshi , please find details via the screens flow
Whats the issue in that?
02-29-2024 11:06 PM
Hi @sipriyadarshi , can we connect via call or any other resources that can I find fast response?
I tested with 2.4GHz network but still not getting success
and also I shared some code snippet when I click on add device click on add device button
NOTE -
I am using all the functions, classes and requests from the sample Matter app, I have not made any changes in my app.
If I need to change something for physical device (Tapo Light L535E) in my app then please guide me on that changes.
this is my service class -
@AndroidEntryPoint
class AppCommissioningService : Service(), CommissioningService.Callback {
@Inject internal lateinit var devicesRepository: DevicesRepository
@Inject internal lateinit var devicesStateRepository: DevicesStateRepository
@Inject internal lateinit var chipClient: ChipClient
private val serviceJob = Job()
private val serviceScope = CoroutineScope(Dispatchers.Main + serviceJob)
private lateinit var commissioningServiceDelegate: CommissioningService
override fun onCreate() {
super.onCreate()
// May be invoked without MainActivity being called to initialize APP_NAME.
// So do it here as well.
APP_NAME = getString(R.string.app_name)
Log.d("", "onCreate()")
commissioningServiceDelegate = CommissioningService.Builder(this).setCallback(this).build()
}
override fun onBind(intent: Intent?): IBinder? {
Log.d("onBind():", " intent [${intent}]")
return commissioningServiceDelegate.asBinder()
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
Log.d("", "onStartCommand(): intent [${intent}] flags [${flags}] startId [${startId}]")
return super.onStartCommand(intent, flags, startId)
}
override fun onDestroy() {
super.onDestroy()
Log.d("", "onDestroy()")
serviceJob.cancel()
}
override fun onCommissioningRequested(metadata: CommissioningRequestMetadata) {
Log.d("Request---->",
"*** onCommissioningRequested ***:\n" +
"\tdeviceDescriptor: " +
"deviceType [${metadata.deviceDescriptor.deviceType}] " +
"vendorId [${metadata.deviceDescriptor.vendorId}] " +
"productId [${metadata.deviceDescriptor.productId}]\n" +
"\tnetworkLocation: " +
"IP address toString() [${metadata.networkLocation.ipAddress}] " +
"IP address hostAddress [${metadata.networkLocation.ipAddress.hostAddress}] " +
"port [${metadata.networkLocation.port}]\n" +
"\tpassCode [${metadata.passcode}]")
// CODELAB: onCommissioningRequested()
serviceScope.launch {
val deviceId = devicesRepository.incrementAndReturnLastDeviceId()
Log.d("",
"Commissioning: App fabric -> ChipClient.establishPaseConnection(): deviceId [${deviceId}]")
chipClient.awaitEstablishPaseConnection(
deviceId,
metadata.networkLocation.ipAddress.hostAddress!!,
metadata.networkLocation.port,
metadata.deviceDescriptor.vendorId,
metadata.deviceDescriptor.productId,
metadata.deviceDescriptor.deviceType,
metadata.passcode)
Log.d("", "Commissioning: App fabric -> ChipClient.commissionDevice(): deviceId [${deviceId}]")
chipClient.awaitCommissionDevice(deviceId, null)
Log.d("", "Commissioning: Calling commissioningServiceDelegate.sendCommissioningComplete()")
commissioningServiceDelegate
.sendCommissioningComplete(
CommissioningCompleteMetadata.builder().setToken(deviceId.toString()).build())
.addOnSuccessListener {
Log.d("",
"Commissioning: OnSuccess for commissioningServiceDelegate.sendCommissioningComplete()")
}
.addOnFailureListener { ex ->
Log.e("", "Commissioning: Failed to send commissioning complete.", ex)
}
}
// CODELAB SECTION END
}
}
02-29-2024 11:35 PM
This is latest Logs -
W Frame time is 0.089496 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
addDeviceButton.setOnClickListener
CommissionDevice: starting
commissionDeviceStatus.observe: status []
ShareDevice: Success getting the IntentSender: result [IntentSender]
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
Recording user engagement, ms: 13103
commissionDeviceIntentSender.observe is called with [null]
Connecting to remote service
Connection attempt already in progress
Activity paused, time: 3750429
onCreate()
intent [Intent commissioning.AppCommissioningService ]
Connected to remote service
Processing queued up service tasks: 2
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Application going to the background
Application backgrounded at: timestamp_millis: 1709277938430
Inactivity, disconnecting from the service
03-04-2024 09:47 PM
@sipriyadarshi , please update on this ?
and can you have any other resources that can I find quick response?
02-22-2024 11:27 AM
Hello @Rgv27 ,
The log you shared tells us that commissioning failed at operational discovery, i.e. we did not get a response for mDNS queries after the device joined WiFi. We might be needing additional details regarding the physical device build (SDK commit, SOC, example used , etc). Also, could you inspect wireshark captured during commissioning.Without these details it is difficult for us to do a proper investigation of your issue.
02-23-2024 06:51 AM
Hi @sipriyadarshi , I am using Matter SDK with the Matter sample app and ChipTool
02-22-2024 10:59 PM
Hello @sipriyadarshi , Can you please tell me about the hub, is that require for connectivity with the single matter physical device to my app ?
02-23-2024 10:44 AM
Hub is not required for commissioning except for thread devices which require some thread infrastructure. However, if you want to control the device from GHA you need a Google Hub.
02-22-2024 11:19 PM
@sipriyadarshi , and also the certification of app is require on google console for commissioning of devices ?
Thanks
02-23-2024 10:46 AM
You don't need to go through any certification process for the sample app.
02-25-2024 11:32 PM
Thanks for reply @sipriyadarshi but
I didn’t find any log except I had mentioned above
So, Can you please describe some more details that are required for commissioning that how can I get a physical device ready for commissioning ?
I have a Tapo light as a physical device.
02-26-2024 03:48 AM
I got some different message
Logcat
CommissionDevice: starting
mReversing is false. Don't call initChildren.
commissionDeviceStatus.observe: status []
ShareDevice: Success getting the IntentSender: result [IntentSender{}]
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
commissionDeviceIntentSender.observe is called with [null]
Connecting to remote service
Connection attempt already in progress
Activity paused, time: 1210054748
Connected to remote service
Processing queued up service tasks: 2
Compat change id reported: 150939131; UID 11471; state: ENABLED
onCreate()
intent [Intent { .commissioning.AppCommissioningService }]
handleAppVisibility mAppVisible = true visible = false
Relayout returned: old=(0,0,1080,2640) new=(0,0,1080,2640) relayoutAsync=false req=(1080,2640)8 dur=8 res=0x402 s={false 0x0} ch=true seqId=0
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Input channel destroyed: 'ClientS', fd=135
stopped(true) old = false
onDisplayChanged oldDisplayState=2 newDisplayState=2
Application going to the background
Application backgrounded at: timestamp_millis: 1708941845549
Inactivity, disconnecting from the service
Late-enabling -Xcheck:jni
Using CollectorTypeCC GC.
setConscryptValidator
setConscryptValidator - put
Compat change id reported: 171979766; UID 11471; state: ENABLED
Compat change id reported: 242716250; UID 11471; state: ENABLED
Currently set values for:
angle_gl_driver_selection_pkgs=[]
angle_gl_driver_selection_values=[]
com.slappi is not listed in per-application setting
App is not on the allowlist for updatable production driver.
Compat change id reported: 183155436; UID 11471; state: ENABLED
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
FirebaseApp initialization successful
QUALCOMM build : 12ae96cb63, I409bbc12eb
Build Date : 09/13/23
OpenGL ES Shader Compiler Version: EV031.35.01.10
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
Build Config : S P 10.0.7 AArch64
Driver Path : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x016dc112, ME: 0x00000000
Selected remote version of com.google.android.gms.measurement.dynamite, version >= 102
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Checking for metadata for AppLocalesMetadataHolderService : Service not found
ClassLoader referenced unknown path:
onActivityCreated
setWindowBackground: isPopOver=false color=fffef7ff d=android.graphics.drawable.ColorDrawable@8e650d5
Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (unsupported, reflection, allowed)
Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (unsupported, reflection, allowed)
Compat change id reported: 210923482; UID 11471; state: ENABLED
App measurement collection enabled
App measurement enabled for app package, google app id:, 1:775073109900:android:88525231b865fc4da928a9
App measurement initialized, version: 85000
To enable faster debug mode event logging run:
Compat change id reported: 237531167; UID 11471; state: DISABLED
Access denied finding property "persist.dm.passive.display_brightness"
Access denied finding property "persist.dm.passive.ambient_brightness"
[NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
Resetting session stitching token to not null
synced displayState. AttachInfo displayState=2
setView = com.android.internal.policy.DecorView@91a1e58 TM=true
Starting IDS observe window
App has not finished training
Connecting to remote service
Closing IDS observe window
Connection attempt already in progress
Connection attempt already in progress
Activity resumed, time: 1210117805
Tag Manager is not found and thus will not be used
mThreadedRenderer.initialize() mSurface={isValid=true 0xb400007379265cf0} hwInitialized=true
Setup new sync=wmsSync-ViewRootImpl@3bbcf7d[]#0
Creating new active sync group ViewRootImpl@3bbcf7d[SplashActivity]#1
registerCallbacksForSync syncBuffer=false
Received frameDrawingCallback syncResult=0 frameNum=1.
mWNT: t=0xb4000071f92508b0 mBlastBufferQueue=0xb4000071d924f950 fn= 1 caller= android.view.ViewRootImpl$8.onFrameDraw:13674 android.view.ThreadedRenderer$1.onFrameDraw:788 <bottom of call stack>
Setting up sync and frameCommitCallback
Connection attempt already in progress
Connection attempt already in progress
onFrameAvailable the first frame is available
Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
CFMS:: SetUp Pid : 14166 Tid : 14205
reportDrawFinished
registerCallbackForPendingTransactions
applyRequestedVisibilityToControl: visible=true, type=statusBars, host=
applyRequestedVisibilityToControl: visible=true, type=navigationBars, host=
Connected to remote service
Processing queued up service tasks: 5
handleWindowFocusChanged: 1 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0
mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb400007379265cf0}
startInputInner - Id : 0
startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
startInputInner - Id : 0
applyRequestedVisibilityToControl: visible=false, type=ime, host=
onDisplayChanged oldDisplayState=2 newDisplayState=2
Recording user engagement, ms: 2003
onActivityCreated
Activity paused, time: 1210119808
onCreate bundle is: null
Compat change id reported: 247079863; UID 11471; state: ENABLED
commissionDeviceStatus.observe: status [com.TaskStatus$NotStarted@71c33c5]
onResume(): intent [Intent { cmp= }]
Invocation: Main
Starting periodic ping on device with interval [2] seconds
Activity resumed, time: 1210119969
startDevicesPeriodicPing every 10 seconds
[NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
synced displayState. AttachInfo displayState=2
setView = com.android.internal.policy.DecorView@36b5a6c TM=true
devicesUiModelFlow changed ***
updateUi [DevicesUiModel(devices=[], showCodelabInfo=true, showOfflineDevices=true)]
mReversing is false. Don't call initChildren.
Relayout returned: old=(0,0,1080,2640) new=(0,0,1080,2640) relayoutAsync=false req=(1080,2640)0 dur=8 res=0x403 s={true 0xb400007379278f80} ch=true seqId=0
performConfigurationChange setNightDimText nightDimLevel=0
mThreadedRenderer.initialize() mSurface={isValid=true 0xb400007379278f80} hwInitialized=true
Setup new sync=wmsSync-ViewRootImpl@e8081c3[BaseActivity]#2
Creating new active sync group ViewRootImpl@e8081c3[BaseActivity]#3
registerCallbacksForSync syncBuffer=false
Received frameDrawingCallback syncResult=0 frameNum=1.
mWNT: t=0xb4000071f9258730 mBlastBufferQueue=0xb4000071d9246990 fn= 1 caller= android.view.ViewRootImpl$8.onFrameDraw:13674 android.view.ThreadedRenderer$1.onFrameDraw:788 <bottom of call stack>
Setting up sync and frameCommitCallback
[ViewRootImpl@e8081c3[BaseActivity]#1](f:0,a:0,s:0) onFrameAvailable the first frame is available
Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
CFMS:: SetUp Pid : 14166 Tid : 14205
reportDrawFinished
handleWindowFocusChanged: 0 0 call from android.view.ViewRootImpl.-$$Nest$mhandleWindowFocusChanged:0
onPreWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
onPostWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
registerCallbackForPendingTransactions
mWNT: t=0xb4000071f925b330 mBlastBufferQueue=0xb4000071d9246990 fn= 2 caller= android.view.ViewRootImpl$6.onFrameDraw:5582 android.view.ViewRootImpl$2.onFrameDraw:2131 android.view.ThreadedRenderer$1.onFrameDraw:788
mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb400007379278f80}
startInputInner - Id : 0
startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
applyRequestedVisibilityToControl: visible=false, type=ime, host=com.slappi/com.slappi.base.BaseActivity
onDisplayChanged oldDisplayState=2 newDisplayState=2
onDisplayChanged oldDisplayState=2 newDisplayState=2
handleAppVisibility mAppVisible = true visible = false
stopped(true) old = false
WindowStopped on set to true
dispatchDetachedFromWindow
Input channel destroyed: '325b4fb', fd=110
Inactivity, disconnecting from the service
onDisplayChanged oldDisplayState=2 newDisplayState=2
Cleared Reference was only reachable from finalizer (only reported once)
Input channel destroyed: 'ClientS', fd=141
startInputInner - Id : 0
startInputInner - IInputMethodManagerGlobalInvoker.startInputOrWindowGainedFocus
onDisplayChanged oldDisplayState=2 newDisplayState=2
ViewPostIme pointer 0
mReversing is false. Don't call initChildren.
onDisplayChanged oldDisplayState=2 newDisplayState=2
ViewPostIme pointer 1
addDeviceButton.setOnClickListener
CommissionDevice: starting
mReversing is false. Don't call initChildren.
commissionDeviceStatus.observe: status [InProgress@3ac5515]
ShareDevice: Success getting the IntentSender: result [IntentSender]
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
Recording user engagement, ms: 35345
commissionDeviceIntentSender.observe is called with [null]
onPreWindowFocus: skipped, hasWindowFocusfalse mHasImeFocus=true
Connecting to remote service
onCreate()
intent [Intent { pkg=.commissioning.AppCommissioningService }]
Connection attempt already in progress
Activity paused, time: 1210155315
Connected to remote service
Processing queued up service tasks: 2
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Input channel destroyed: 'ClientS', fd=124
handleAppVisibility mAppVisible = true visible = false
stopped(true) old = false
onDisplayChanged oldDisplayState=2 newDisplayState=2
Application going to the background
Application backgrounded at: timestamp_millis:
Inactivity, disconnecting from the service
Cann’t connect to wifi("name") network
Check that your device can work with this network type and try again
then, how can I check my device work with which network type?
02-27-2024 10:41 PM
Hello @sipriyadarshi , any update on this?
02-28-2024 02:16 AM
When I tap the pluse + button on sample app using matter sdk, scanner opened
Scanning done with code using Tapo Light L535E
Searching for the device
getting this page after searching
Hello @sipriyadarshi , please find details via the screens flow
Whats the issue in that?
02-29-2024 02:19 PM
Hello @Rgv27 ,
Tapo only supports 2.4 GHz. Based on your screenshot "Can't connect to 5exceptions_Mobile_Team5G", looks like you have a split network. Try testing everything using a 2.4GHz network only.
02-29-2024 11:06 PM
Hi @sipriyadarshi , can we connect via call or any other resources that can I find fast response?
I tested with 2.4GHz network but still not getting success
and also I shared some code snippet when I click on add device click on add device button
NOTE -
I am using all the functions, classes and requests from the sample Matter app, I have not made any changes in my app.
If I need to change something for physical device (Tapo Light L535E) in my app then please guide me on that changes.
this is my service class -
@AndroidEntryPoint
class AppCommissioningService : Service(), CommissioningService.Callback {
@Inject internal lateinit var devicesRepository: DevicesRepository
@Inject internal lateinit var devicesStateRepository: DevicesStateRepository
@Inject internal lateinit var chipClient: ChipClient
private val serviceJob = Job()
private val serviceScope = CoroutineScope(Dispatchers.Main + serviceJob)
private lateinit var commissioningServiceDelegate: CommissioningService
override fun onCreate() {
super.onCreate()
// May be invoked without MainActivity being called to initialize APP_NAME.
// So do it here as well.
APP_NAME = getString(R.string.app_name)
Log.d("", "onCreate()")
commissioningServiceDelegate = CommissioningService.Builder(this).setCallback(this).build()
}
override fun onBind(intent: Intent?): IBinder? {
Log.d("onBind():", " intent [${intent}]")
return commissioningServiceDelegate.asBinder()
}
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
Log.d("", "onStartCommand(): intent [${intent}] flags [${flags}] startId [${startId}]")
return super.onStartCommand(intent, flags, startId)
}
override fun onDestroy() {
super.onDestroy()
Log.d("", "onDestroy()")
serviceJob.cancel()
}
override fun onCommissioningRequested(metadata: CommissioningRequestMetadata) {
Log.d("Request---->",
"*** onCommissioningRequested ***:\n" +
"\tdeviceDescriptor: " +
"deviceType [${metadata.deviceDescriptor.deviceType}] " +
"vendorId [${metadata.deviceDescriptor.vendorId}] " +
"productId [${metadata.deviceDescriptor.productId}]\n" +
"\tnetworkLocation: " +
"IP address toString() [${metadata.networkLocation.ipAddress}] " +
"IP address hostAddress [${metadata.networkLocation.ipAddress.hostAddress}] " +
"port [${metadata.networkLocation.port}]\n" +
"\tpassCode [${metadata.passcode}]")
// CODELAB: onCommissioningRequested()
serviceScope.launch {
val deviceId = devicesRepository.incrementAndReturnLastDeviceId()
Log.d("",
"Commissioning: App fabric -> ChipClient.establishPaseConnection(): deviceId [${deviceId}]")
chipClient.awaitEstablishPaseConnection(
deviceId,
metadata.networkLocation.ipAddress.hostAddress!!,
metadata.networkLocation.port,
metadata.deviceDescriptor.vendorId,
metadata.deviceDescriptor.productId,
metadata.deviceDescriptor.deviceType,
metadata.passcode)
Log.d("", "Commissioning: App fabric -> ChipClient.commissionDevice(): deviceId [${deviceId}]")
chipClient.awaitCommissionDevice(deviceId, null)
Log.d("", "Commissioning: Calling commissioningServiceDelegate.sendCommissioningComplete()")
commissioningServiceDelegate
.sendCommissioningComplete(
CommissioningCompleteMetadata.builder().setToken(deviceId.toString()).build())
.addOnSuccessListener {
Log.d("",
"Commissioning: OnSuccess for commissioningServiceDelegate.sendCommissioningComplete()")
}
.addOnFailureListener { ex ->
Log.e("", "Commissioning: Failed to send commissioning complete.", ex)
}
}
// CODELAB SECTION END
}
}
02-29-2024 11:35 PM
This is latest Logs -
W Frame time is 0.089496 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.
addDeviceButton.setOnClickListener
CommissionDevice: starting
commissionDeviceStatus.observe: status []
ShareDevice: Success getting the IntentSender: result [IntentSender]
commissionDeviceIntentSender.observe is called with [creatorPackage [com.google.android.gms]]
CommissionDevice: Launch GPS activity to commission device
Recording user engagement, ms: 13103
commissionDeviceIntentSender.observe is called with [null]
Connecting to remote service
Connection attempt already in progress
Activity paused, time: 3750429
onCreate()
intent [Intent commissioning.AppCommissioningService ]
Connected to remote service
Processing queued up service tasks: 2
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:7
Selected remote version of com.google.android.gms.googlecertificates, version >= 7
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Application going to the background
Application backgrounded at: timestamp_millis: 1709277938430
Inactivity, disconnecting from the service
03-04-2024 09:47 PM
@sipriyadarshi , please update on this ?
and can you have any other resources that can I find quick response?