|
问题现象:APP查询设备状态, 设备的程序就挂掉
android版本:1.8.12
手机型号:Mi 8
app版本:2.4.6
开发板:esp8266-01
blink库版本: 0.3.4
使用0.3.4的库, 跑8266wifi的demo程序, 打开app端 刷新设备状态, 设备端就会重启
设备端错误代码:
15:26:37.482 -> Abort called
15:26:37.482 ->
15:26:37.482 -> >>>stack>>>
15:26:37.482 ->
15:26:37.482 -> ctx: cont
15:26:37.482 -> sp: 3ffffc30 end: 3fffffc0 offset: 01b0
15:26:37.482 -> 3ffffde0: 3fff0090 40228c8c 3fff0e94 40228c5c
15:26:37.482 -> 3ffffdf0: 00000000 3ffffee0 0000002c 4021d920
15:26:37.529 -> 3ffffe00: 00000000 3ffffee0 3ffefe90 4020b583
15:26:37.529 -> 3ffffe10: 3fffad34 0000000f 00000004 40206e80
15:26:37.529 -> 3ffffe20: 3fffa784 00000000 3fff08dc 4020f461
15:26:37.529 -> 3ffffe30: 00000000 3ffffea4 00000000 3ffffe54
15:26:37.529 -> 3ffffe40: 00000000 00000000 3fffad1c 0000000f
15:26:37.529 -> 3ffffe50: 00000004 3ffffee0 3ffe8733 40100604
15:26:37.529 -> 3ffffe60: 00000000 00000000 3fff0155 3ffffeb4
15:26:37.529 -> 3ffffe70: 00000000 3fffad2c 3fffad2c 4021e8c8
15:26:37.529 -> 3ffffe80: 3f007d0a 00000400 3ffefe90 00000001
15:26:37.529 -> 3ffffe90: 00000000 00000000 3ffefe90 402100df
15:26:37.576 -> 3ffffea0: 3fff08bc 3fff8adc 3fff8ae7 3fff8ecc
15:26:37.576 -> 3ffffeb0: 3fff8edc 3fff8ecc 3fff8ecc 3ffffe20
15:26:37.576 -> 3ffffec0: 00000000 00000000 00000000 3fff9faa
15:26:37.576 -> 3ffffed0: 3fffbeac 00000400 00000000 000000b5
15:26:37.576 -> 3ffffee0: 3ffffeb4 3ffffea4 40100160 00000000
15:26:37.576 -> 3ffffef0: 3fff08bc 3fff08c0 3fff0384 4020d99d
15:26:37.576 -> 3fffff00: 0039d757 3fff0e00 3fff0384 402159f4
15:26:37.576 -> 3fffff10: 00000001 00000000 3fff0384 00000001
15:26:37.576 -> 3fffff20: 00000001 00000000 3fff0384 4020da7e
15:26:37.576 -> 3fffff30: 3fff17bc 40219314 3ffefe90 00000001
15:26:37.622 -> 3fffff40: 00000001 3fff0090 3ffefe90 402108fc
15:26:37.622 -> 3fffff50: 3fffdad0 40205734 3ffefe90 402045d5
15:26:37.622 -> 3fffff60: feefeffe 3fff0384 3ffefe90 402074f5
15:26:37.622 -> 3fffff70: 00001c56 00000000 00000000 00000000
15:26:37.622 -> 3fffff80: 00000000 00000000 00000000 3fff1070
15:26:37.622 -> 3fffff90: 3fffdad0 00000000 3fff1040 40210b00
15:26:37.622 -> 3fffffa0: 3fffdad0 00000000 3fff1040 4021f624
15:26:37.622 -> 3fffffb0: feefeffe feefeffe 3ffe8590 40100add
15:26:37.622 -> <<<stack<<<
15:26:37.622 ->
15:26:37.622 -> last failed alloc call: 40228C8C(4096)
15:26:37.669 ->
15:26:37.669 -> ets Jan 8 2013,rst cause:2, boot mode3,7)
15:26:37.669 ->
15:26:37.669 -> load 0x4010f000, len 1384, room 16
15:26:37.669 -> tail 8
15:26:37.669 -> chksum 0x2d
15:26:37.669 -> csum 0x2d
15:26:37.669 -> v951aeffa
15:26:37.669 -> ~ld
15:26:37.762 -> [43]
15:26:37.762 -> [43]
备注: 如果用0.33的库, 跑起来没有问题, 查询状态也不会造成设备崩溃, 只是鉴于0.33的库不能使用小爱, 所以用的0.34的库, 其次0.34的库,如果不用app操作, 只用小爱操作, 是可以的, 只是用小爱查询设备状态会查询不到, 小爱的状态查询回调函数里面, 输入参数的int值是空的
代码如下:
void xaQuery(int32_t queryCode) {
Serial.println("小爱状态查询码: " + queryCode);
}
打印结果是:
小爱状态查询码:
后面的状态码为空
|
|