espressif / esp-va-sdk

Espressif's Voice Assistant SDK: Alexa, Google Voice Assistant, Google DialogFlow
Other
294 stars 83 forks source link

can not find Provision Network button on android apk #13

Closed wydavid closed 6 years ago

wydavid commented 6 years ago

Hi avsheth

i can find esp_alexa_xxxx on the phone and connect the soft ap fine but can not find the "Provision Network " button on the app as you said on another issue so, could you help to give some comment on this? thanks

avsheth commented 6 years ago

@wydavid could you share a screenshot of the app(or describe what do you see on the app) after you connect to softAP from the WiFi settings and go back to app?

wydavid commented 6 years ago

yes,after connet soft ap, and back to app, nothing find. only amazon link.button

wydavid commented 6 years ago

please help to check phone log and module log

10-29 22:47:09.787 4954-4954/? I/art: Late-enabling -Xcheck:jni
10-29 22:47:09.814 4954-4954/com.espressif.provision D/Configuration: this.defaultFontName:null
    this.defaultFontName:null
10-29 22:47:09.820 4954-4954/com.espressif.provision D/ThemeResources: ThemeResources init: com.espressif.provision; pid=4954
10-29 22:47:09.827 4954-4954/com.espressif.provision W/System: ClassLoader referenced unknown path: /data/app/com.espressif.provision-1/lib/arm64
10-29 22:47:09.828 4954-4954/com.espressif.provision D/ActivityThread: BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{701038e com.espressif.provision}}
10-29 22:47:09.835 4954-4954/com.espressif.provision D/Configuration: this.defaultFontName:null
10-29 22:47:09.835 4954-4954/com.espressif.provision D/Configuration: this.defaultFontName:null
10-29 22:47:09.845 4954-4954/com.espressif.provision W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
10-29 22:47:09.898 4954-4954/com.espressif.provision D/Configuration: this.defaultFontName:null
10-29 22:47:09.898 4954-4954/com.espressif.provision D/ActivityThread: ACT-AM_ON_RESUME_CALLED ActivityRecord{857f7af token=android.os.BinderProxy@b45f7bc {com.espressif.provision/com.espressif.ui.MainActivity}}
10-29 22:47:09.901 4954-4954/com.espressif.provision D/WindowClient: Add to mViews: com.android.internal.policy.PhoneWindow$DecorView{9edf666 I.E...... R.....ID 0,0-0,0}, this = android.view.WindowManagerGlobal@6184112
10-29 22:47:09.902 4954-4954/com.espressif.provision D/OpenGLRenderer: Dumper init 5 threads <0x7f8af8f200>
10-29 22:47:09.903 4954-4954/com.espressif.provision D/OpenGLRenderer: <com.espressif.provision> is running.
10-29 22:47:09.905 4954-4969/com.espressif.provision D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: false
10-29 22:47:09.906 4954-4969/com.espressif.provision D/OpenGLRenderer: CanvasContext() 0x7f86632000
10-29 22:47:09.908 4954-4963/com.espressif.provision I/System: FinalizerDaemon: finalize objects = 1
10-29 22:47:09.913 4954-4954/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f803604a0), client(30), share_fd(28)
10-29 22:47:09.913 4954-4954/com.espressif.provision D/GraphicBuffer: register, handle(0x7f803604a0) (w:1856 h:2048 s:1856 f:0x1 u:0x000100)
10-29 22:47:09.914 4954-4954/com.espressif.provision D/ViewRootImpl: hardware acceleration is enabled, this = ViewRoot{21360e3 com.espressif.provision/com.espressif.ui.MainActivity,ident = 0}
10-29 22:47:09.921 4954-4954/com.espressif.provision D/ActivityThread: ACT-LAUNCH_ACTIVITY handled : 0 / ActivityRecord{857f7af token=android.os.BinderProxy@b45f7bc {com.espressif.provision/com.espressif.ui.MainActivity}}
10-29 22:47:09.952 4954-4969/com.espressif.provision D/OpenGLRenderer: CanvasContext() 0x7f86632000 initialize window=0x7f8c865210, title=com.espressif.provision/com.espressif.ui.MainActivity
10-29 22:47:09.952 4954-4954/com.espressif.provision D/Surface: Surface::allocateBuffers(this=0x7f8c865200)
10-29 22:47:09.955 4954-4969/com.espressif.provision I/OpenGLRenderer: Initialized EGL, version 1.4
10-29 22:47:09.957 4954-4969/com.espressif.provision D/OpenGLRenderer: Created EGL context (0x7f86603580)
10-29 22:47:09.958 4954-4969/com.espressif.provision I/OpenGLRenderer: Get enable program binary service property (1)
    Initializing program atlas...
10-29 22:47:09.958 4954-4969/com.espressif.provision D/ProgramBinary/Service: BpProgramBinaryService.getFileDescriptor
10-29 22:47:09.959 4954-4969/com.espressif.provision D/ProgramBinary/Service: BpProgramBinaryService.getProgramMapLen
10-29 22:47:09.959 4954-4969/com.espressif.provision D/ProgramBinary/Service: BpProgramBinaryService.getProgramMapArray
10-29 22:47:09.959 4954-4969/com.espressif.provision D/ProgramBinary/Service: BpProgramBinaryService.getProgramBinaryLen
10-29 22:47:09.959 4954-4969/com.espressif.provision I/OpenGLRenderer: Program binary detail: Binary length is 173456, program map length is 152.
    Succeeded to mmap program binaries. File descriptor is 37, and path is /dev/ashmem�.
    No need to use file discriptor anymore, close fd(37).
10-29 22:47:09.960 4954-4969/com.espressif.provision D/OpenGLRenderer: Initializing program cache from 0x7f904d7bd8, size = 4
10-29 22:47:09.961 4954-4969/com.espressif.provision D/OpenGLRenderer: -- init (key = 0x0000000000000000)
    -- init (key = 0x0000000000500041)
10-29 22:47:09.962 4954-4969/com.espressif.provision D/OpenGLRenderer: -- init (key = 0x0000000800000003)
10-29 22:47:09.963 4954-4969/com.espressif.provision D/OpenGLRenderer: -- init (key = 0x0000003800000000)
10-29 22:47:09.963 4954-4969/com.espressif.provision D/MALI: eglCreateImageKHR:511: [Crop] 0 0 1856 2048  img[1856 2048] 
10-29 22:47:09.964 4954-4969/com.espressif.provision D/Surface: Surface::connect(this=0x7f8c865200,api=1)
10-29 22:47:09.965 4954-4969/com.espressif.provision W/libEGL: [ANDROID_RECORDABLE] format: 1
10-29 22:47:09.965 4954-4969/com.espressif.provision D/mali_winsys: new_window_surface returns 0x3000
10-29 22:47:09.977 4954-4969/com.espressif.provision I/PerfService: PerfServiceNative api init
10-29 22:47:09.981 4954-4969/com.espressif.provision D/OpenGLRenderer: CacheTexture 3 upload: x, y, width height = 0, 0, 64, 344
10-29 22:47:09.984 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86610be0), client(30), share_fd(39)
10-29 22:47:09.984 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86610be0) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
10-29 22:47:09.987 4954-4969/com.espressif.provision D/OpenGLRenderer: ProgramCache save to disk, size = 4
10-29 22:47:10.002 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86610c80), client(30), share_fd(42)
10-29 22:47:10.002 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86610c80) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
10-29 22:47:10.041 4954-4954/com.espressif.provision D/Activity: sendStatusBarMode 1210 flags: 80000000
10-29 22:47:10.042 4954-4954/com.espressif.provision D/Activity: getStatusbarMode averageGray = 58
10-29 22:47:10.043 4954-4954/com.espressif.provision D/Activity: sendStatusBarMode sendBroadcast mode = 0
10-29 22:47:14.937 4954-4954/com.espressif.provision D/ActivityThread: holder:android.app.IActivityManager$ContentProviderHolder@a47b21f, holder.provider:android.content.ContentProviderProxy@bc6796c
10-29 22:47:14.940 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86610d20), client(30), share_fd(45)
10-29 22:47:14.940 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86610d20) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
10-29 22:47:14.945 4954-4954/com.espressif.provision I/ListPopupWindow: Could not find method setEpicenterBounds(Rect) on PopupWindow. Oh well.
10-29 22:47:14.967 4954-4954/com.espressif.provision W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
10-29 22:47:14.968 4954-4954/com.espressif.provision W/art: Before Android 4.1, method int android.support.v7.widget.MenuPopupWindow$MenuDropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
10-29 22:47:14.984 4954-4954/com.espressif.provision D/WindowClient: Add to mViews: android.widget.PopupWindow$PopupDecorView{1d07c34 V.E...... ......I. 0,0-0,0}, this = android.view.WindowManagerGlobal@6184112
10-29 22:47:14.986 4954-4969/com.espressif.provision D/OpenGLRenderer: CanvasContext() 0x7f86635800
10-29 22:47:14.987 4954-4954/com.espressif.provision D/ViewRootImpl: hardware acceleration is enabled, this = ViewRoot{fd4ea5d PopupWindow:4252546,ident = 1}
10-29 22:47:15.018 4954-4969/com.espressif.provision D/OpenGLRenderer: CanvasContext() 0x7f86635800 initialize window=0x7f8afa3010, title=PopupWindow:4252546
10-29 22:47:15.018 4954-4954/com.espressif.provision D/Surface: Surface::allocateBuffers(this=0x7f8afa3000)
10-29 22:47:15.018 4954-4969/com.espressif.provision D/Surface: Surface::connect(this=0x7f8afa3000,api=1)
10-29 22:47:15.019 4954-4969/com.espressif.provision W/libEGL: [ANDROID_RECORDABLE] format: 1
10-29 22:47:15.020 4954-4969/com.espressif.provision D/mali_winsys: new_window_surface returns 0x3000
10-29 22:47:15.047 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86610e60), client(30), share_fd(48)
10-29 22:47:15.047 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86610e60) (w:1080 h:1920 s:1088 f:0x1 u:0x000b00)
10-29 22:47:15.065 4954-4969/com.espressif.provision D/OpenGLRenderer: CacheTexture 3 upload: x, y, width height = 0, 84, 64, 416
10-29 22:47:15.071 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86611220), client(30), share_fd(50)
10-29 22:47:15.071 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86611220) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:15.094 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f866112c0), client(30), share_fd(52)
10-29 22:47:15.094 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f866112c0) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:15.113 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86611360), client(30), share_fd(54)
10-29 22:47:15.114 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86611360) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:15.122 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [+]r_hnd(0x7f86610dc0), client(30), share_fd(56)
10-29 22:47:15.122 4954-4969/com.espressif.provision D/GraphicBuffer: register, handle(0x7f86610dc0) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:16.265 4954-4954/com.espressif.provision D/Activity: sendStatusBarMode 1210 flags: 80000000
10-29 22:47:16.267 4954-4954/com.espressif.provision D/Activity: getStatusbarMode averageGray = 58
10-29 22:47:16.268 4954-4954/com.espressif.provision D/Activity: sendStatusBarMode sendBroadcast mode = 0
10-29 22:47:16.540 4954-4969/com.espressif.provision D/Surface: Surface::disconnect(this=0x7f8afa3000,api=1)
10-29 22:47:16.542 4954-4969/com.espressif.provision D/GraphicBuffer: unregister, handle(0x7f86611220) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:16.543 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [-]r_hnd(0x7f86611220), client(30), share_fd(50)
10-29 22:47:16.543 4954-4969/com.espressif.provision D/GraphicBuffer: unregister, handle(0x7f866112c0) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:16.544 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [-]r_hnd(0x7f866112c0), client(30), share_fd(52)
10-29 22:47:16.544 4954-4969/com.espressif.provision D/GraphicBuffer: unregister, handle(0x7f86611360) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:16.545 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [-]r_hnd(0x7f86611360), client(30), share_fd(54)
10-29 22:47:16.545 4954-4969/com.espressif.provision D/GraphicBuffer: unregister, handle(0x7f86610dc0) (w:780 h:336 s:784 f:0x1 u:0x000b00)
10-29 22:47:16.545 4954-4969/com.espressif.provision I/[MALI][Gralloc]: [-]r_hnd(0x7f86610dc0), client(30), share_fd(56)
10-29 22:47:16.545 4954-4969/com.espressif.provision D/Surface: Surface::disconnect(this=0x7f8afa3000,api=1)
10-29 22:47:16.551 4954-4954/com.espressif.provision D/WindowClient: Remove from mViews: android.widget.PopupWindow$PopupDecorView{1d07c34 V.E...... ......ID 0,0-588,144}, this = android.view.WindowManagerGlobal@6184112

module log

>> Registering command: task-dump
Registering command: nvs-get
Registering command: nvs-set
Registering command: heap-trace
I (94) wifi: wifi driver task: 3ffcb1d4, prio:23, stack:3584, core=0
I (104) wifi: wifi firmware version: b2c9a19
I (104) wifi: config NVS flash: disabled
I (104) wifi: config nano formating: disabled
I (114) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (124) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (134) wifi: Init dynamic tx buffer num: 32
I (134) wifi: Init data frame dynamic rx buffer num: 32
I (144) wifi: Init management frame dynamic rx buffer num: 32
I (144) wifi: Init static tx buffer num: 32
I (154) wifi: Init static rx buffer size: 1600
I (154) wifi: Init static rx buffer num: 10
I (154) wifi: Init dynamic rx buffer num: 32
I (164) conn_mgr: Initialization success
I (164) conn_mgr: CONFIG variable not found in NVS
I (174) conn_mgr: Received event: 64
I (174) softap_sm: SoftAP SSID: ESP-Alexa-0c81
I (234) phy: phy_version: 4000, b6198fa, Sep  3 2018, 15:11:06, 0, 0
I (234) wifi: mode : softAP (30:ae:a4:3d:0c:81)
I (234) wifi: Init max length of beacon: 752/752
I (244) wifi: Init max length of beacon: 752/752
I (244) conn_mgr: Received event: 128
I (254) alexa: SOFTAP_STARTED event
I (254) protocomm_httpd: Adding endpoint : prov-session
I (264) protocomm_httpd: Adding endpoint : avsconfig
I (264) protocomm_httpd: Adding endpoint : prov-config
I (13884) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (13884) wifi: station: 74:ac:5f:8b:8c:1b join, AID=1, bgn, 20
I (13884) conn_mgr: Received event: 128
I (39924) wifi: station: 74:ac:5f:8b:8c:1b leave, AID = 1
I (39924) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (39924) conn_mgr: Received event: 128
I (46494) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1
I (46494) wifi: station: 74:ac:5f:8b:8c:1b join, AID=1, bgn, 20
I (46494) conn_mgr: Received event: 128
I (46714) tcpip_adapter: softAP assign IP to station,IP is: 192.168.4.2
I (46714) conn_mgr: Received event: 128

`

wydavid commented 6 years ago

image

avsheth commented 6 years ago

@wydavid We suspect it might be that your app is getting killed somehow in between you connect to softAP and going back to the app. We have created a youtube video here showing the entire provisioning flow. Can you just check once if something is missing at your end? If it still doesn't work could you tell us your Android version and phone model?

wydavid commented 6 years ago

got it, thanks very much