Unable to connect new devices from Particle app using Samsung devices


#22

Confirmed on my S6, setup my Photons without a glitch!
Thank you @jensck_particle


#23

Hi @jensck_particle,

I’m trying to follow along since my Android devices are not currently working but can’t find any instance of the device library at 0.6.2. Can you point me at the right Github repository so I can see what was done and maybe I can diagnose my problems?

Thanks,
Mark


#24

@MarkZ all I did was update the latest Particle app version 2.3.6 fix for Samsung devices. Worked like a charm.


#25

Unfortunately i’m not using Samsung devices so I’m trying to see what code change fixed them and hoping something similar will work with my devices. Can’t find the code change, though, since the android devices repository claims to still be at 0.6.1.


#26

Thank you @jensck_particle - the fix is working for my own setup app now after updating the code.

@MarkZ I’m not totally familiar with Github. To get the new code I downloaded the zip for 0.6.2 from the releases page (expand near the top “Show 2 newer tags”). I then did a code difference between that and the main repository locally.

It didn’t seem like the code was changed in the main repository, so work from the releases. This may not be Particle specific, but would appreciate if someone can help educate me about the code update process, and how releases contain changes that I don’t see in the master repository and any of the branches?


#27

Oh, what a good idea. Like you, i’m not entirely clear how that works and has the newer releases but yay. Thanks @bloukingfisher


#28

@MarkZ you can now easily see the code changes here: https://github.com/particle-iot/spark-setup-android/commit/ea1d25b33125416a2fc3d7e8e13bf84d3be133ab


#29

Apologies for the confusion re: the latest release of the device setup lib – this was my bad.
I just did a tag this time and neglected to do the release. I’ve updated the repo now with a proper GitHub release for 0.6.2.

I hope this clears everything up!


#30

@jensck_particle,

Thanks for updating this. I have not recently setup a Photon, but I believe I had the same problem with a S5 Neo running Android 7.0. I will have to go verify.

I know this is also a problem with the Redbear Duo App version 0.2. Again, this is on the S5 Neo running Android 7.0. I assume both apps share the same codebase. Will this be fixed in the RedBear app also?


#31

I have a Samsung Galaxy S8 and tried to setup a photon that I bought couple of days ago. I get the same error described in this thread. Is there a workaround or ETA when the issue will be fixed? Particle App version is 2.3.9.

Update: I was powering from the Lenovo laptop earlier. I disconnected and powered from a charging brick and the app was able to get past the error reported. Though the documentation says powering from anywhere should work, I don’t understand how it started working after unpowering from PC.


#32

Hey Frosty,

To my understanding, any power source should be fine. This is the first I’ve heard of this being reported. Thank you for pointing it out, I’ll definitely relay it to my internal team and see if we can’t look into this further.


#33

I have purchased the Samsung Note 9 and setup works fine.


#34

Same here.


#35

This was solved with the particle app update for Android. It just hasn’t been marked solved yet.


#36

I can’t pair my Samsung S6 running Android 5.0.1 with a Boron, which I manually updated to 0.8.0-rc.27. It stays on the spinner indefinitely. I finally tried with an ancient Galaxy Nexus running Android 5.1 and that worked just fine.
I captured the debug log on the S6, but it doesn’t look to me like it contains anything noteworthy:

--------- beginning of system
01-13 22:21:21.531 V/ActivityThread( 1239): updateVisibility : ActivityRecord{3db4b56a token=android.os.BinderProxy@2403e344 {io.particle.android.app/io.particle.android.sdk.ui.DeviceListActivity}} show : false
01-13 22:30:50.381 W/ViewRootImpl( 1239): Dropping event due to root view being removed: 
01-13 22:30:52.931 V/ActivityThread( 1239): updateVisibility : ActivityRecord{3db4b56a token=android.os.BinderProxy@2403e344 {io.particle.android.app/io.particle.android.sdk.ui.DeviceListActivity}} show : false
--------- beginning of main
01-13 22:31:04.681 W/DynamiteModule( 1239): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
01-13 22:31:04.691 V/MediaPlayer-JNI( 1239): native_finalize
01-13 22:31:04.691 V/MediaPlayer-JNI( 1239): release
01-13 22:31:04.701 I/DynamiteModule( 1239): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
01-13 22:31:04.711 D/BarcodeNativeHandle( 1239): Cannot load feature, fall back to load whole module.
01-13 22:31:04.711 W/DynamiteModule( 1239): Local module descriptor class for com.google.android.gms.vision.dynamite not found.
01-13 22:31:04.711 I/DynamiteModule( 1239): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1800
01-13 22:31:04.711 I/DynamiteModule( 1239): Selected remote version of com.google.android.gms.vision.dynamite, version >= 1800
01-13 22:31:04.711 V/DynamiteModule( 1239): Dynamite loader version >= 2, using loadModule2NoCrashUtils
01-13 22:31:04.721 I/Vision  ( 1239): Loading library libbarhopper.so
01-13 22:31:04.721 I/Vision  ( 1239): libbarhopper.so library load status: true
01-13 22:31:06.761 D/io.particle.mesh.setup.ui.ScanIntroBaseFragment( 1239): onBarcodeUpdated(): 'CompleteBarcodeData(serialNumber=B40KAB839FDSPL8, mobileSecret=BBNLHYCT6DXAG5K)'
01-13 22:31:06.771 I/io.particle.mesh.setup.flow.modules.bleconnection.BLEConnectionModule( 1239): updateTargetDeviceBarcode(): barcodeData=CompleteBarcodeData(serialNumber=B40KAB839FDSPL8, mobileSecret=BBNLHYCT6DXAG5K)
01-13 22:31:06.871 D/Camera  ( 1239): app passed NULL surface
01-13 22:31:06.951 W/PathParser( 1239): Points are too far apart 4.000000596046461
01-13 22:31:06.971 I/io.particle.mesh.common.android.livedata.LiveDataSuspender( 1239): cleanUp()
01-13 22:31:06.971 I/io.particle.mesh.setup.flow.modules.bleconnection.BLEConnectionModule( 1239): ensureTargetDeviceConnected()
01-13 22:31:06.981 I/io.particle.mesh.setup.flow.modules.bleconnection.BLEConnectionModule( 1239): connectTargetDevice()
01-13 22:31:06.991 I/io.particle.mesh.bluetooth.connecting.BluetoothConnectionManager( 1239): entering scanForDevice()
01-13 22:31:06.991 I/io.particle.mesh.setup.ui.utils.BLEScanning( 1239): Scanning for device Boron-FDSPL8
01-13 22:31:06.991 I/io.particle.mesh.common.android.livedata.LiveDataSuspender( 1239): beforeAwait()
01-13 22:31:06.991 I/io.particle.mesh.common.android.livedata.LiveDataSuspender( 1239): startAsyncWork()
01-13 22:31:06.991 I/io.particle.mesh.bluetooth.scanning.BLEScannerLD( 1239): Starting scan!
01-13 22:31:07.041 D/BluetoothLeScanner( 1239): onClientRegistered() - status=0 clientIf=8
01-13 22:31:55.461 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000000     8 GOAWAY        
01-13 22:33:36.391 D/ViewRootImpl( 1239): ViewPostImeInputStage ACTION_DOWN
01-13 22:33:36.511 D/PhoneWindow( 1239): *FMB* installDecor mIsFloating : true
01-13 22:33:36.511 D/PhoneWindow( 1239): *FMB* installDecor flags : 8388610
01-13 22:33:36.521 D/PhoneWindow( 1239): *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
01-13 22:33:36.521 D/PhoneWindow( 1239): *FMB* isFloatingMenuEnabled return false
01-13 22:33:36.541 D/mali_winsys( 1239): new_window_surface returns 0x3000,  [1472x726]-format:1
01-13 22:33:37.451 D/ViewRootImpl( 1239): ViewPostImeInputStage ACTION_DOWN
01-13 22:33:37.591 E/ViewRootImpl( 1239): sendUserActionEvent() mView == null
01-13 22:33:37.601 I/FirebasePerformance( 1239): Session ID - 2579c14a15f24a138a159cc1ae25d061
01-13 22:33:37.611 V/SoftAPConfigRemover( 1239): reenableWifiNetworks()
01-13 22:33:37.621 D/mali_winsys( 1239): new_window_surface returns 0x3000,  [1440x2560]-format:1
01-13 22:33:37.671 I/Timeline( 1239): Timeline: Activity_idle id: android.os.BinderProxy@2403e344 time:652598356
01-13 22:33:37.931 I/io.particle.mesh.common.android.livedata.ClearValueOnInactiveLiveData( 1239): LD deactivated, clearing value
01-13 22:33:37.941 I/io.particle.mesh.setup.ui.FlowManagerAccessModel( 1239): onCleared()
01-13 22:33:37.941 I/io.particle.mesh.setup.flow.FlowManager( 1239): clearState()
01-13 22:33:37.941 I/io.particle.mesh.setup.flow.modules.cloudconnection.BoronSteps( 1239): clearState()
01-13 22:33:38.901 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): >> CONNECTION 505249202a20485454502f322e300d0a0d0a534d0d0a0d0a
01-13 22:33:38.901 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): >> 0x00000000     6 SETTINGS      
01-13 22:33:38.901 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): >> 0x00000000     4 WINDOW_UPDATE 
01-13 22:33:38.901 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): >> 0x00000003   114 HEADERS       END_STREAM|END_HEADERS
01-13 22:33:39.211 D/ViewRootImpl( 1239): ViewPostImeInputStage ACTION_DOWN
01-13 22:33:39.301 I/InjectionManager( 1239): dispatchPrepareOptionsMenu :io.particle.android.sdk.ui.DeviceListActivity
01-13 22:33:39.311 D/AbsListView( 1239): Get MotionRecognitionManager
01-13 22:33:39.371 D/mali_winsys( 1239): new_window_surface returns 0x3000,  [1040x640]-format:1
01-13 22:33:39.401 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000000    18 SETTINGS      
01-13 22:33:39.411 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000000     4 WINDOW_UPDATE 
01-13 22:33:39.411 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): >> 0x00000000     0 SETTINGS      ACK
01-13 22:33:39.711 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000000     0 SETTINGS      ACK
01-13 22:33:39.711 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000003   125 HEADERS       END_HEADERS
01-13 22:33:39.711 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000003     2 DATA          
01-13 22:33:39.711 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): << 0x00000003     0 DATA          END_STREAM
01-13 22:33:39.711 D/com.squareup.okhttp.internal.framed.Http2$FrameLogger( 1239): >> 0x00000005   114 HEADERS       END_STREAM|END_HEADERS
01-13 22:33:40.411 D/ViewRootImpl( 1239): ViewPostImeInputStage ACTION_DOWN
01-13 22:33:40.571 I/InjectionManager( 1239): dispatchOptionsItemSelected :io.particle.android.sdk.ui.DeviceListActivity
01-13 22:33:40.651 D/PhoneWindow( 1239): *FMB* installDecor mIsFloating : true
01-13 22:33:40.651 D/PhoneWindow( 1239): *FMB* installDecor flags : 8388610