ricardoquesada / bluepad32

Bluetooth gamepad, mouse and keyboard support for ESP32 and PicoW
https://bluepad32.readthedocs.io/
Other
597 stars 63 forks source link

Moving PS5 controller away from ESP32 cause unhandled Exception #43

Open gunnicus opened 1 year ago

gunnicus commented 1 year ago

Hello sir, I'm not sure where should I post this issue, I also posted this issue at : https://github.com/ricardoquesada/bluepad32-arduino/issues If it creates a duplicate, I will delete that post.

I connected a PS5 controller to ESP32, it is working fine unless I walk away with the PS5 controller from the ESP32. The issue starts to happen when the PS5 controller 6 meters away from the ESP32.

What happened: I'm using 'Controller' from example. Upload Controller to ESP32. image

Pair PS5 controller with ESP32 Take PS5 controller about 6 memters away from ESP32, turn myself around make sure my body is between the PS5 controller and the ESP32's direction. Keep walking untill abount 10 meters away from ESP32, the PS5 controller turned off itself.

Below error happened in ESP32

FEX 0 0 FEX 0 0 FEX 7 0 ASSERT_PARAM(0 7), in ld_acl.c at line 1772 Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled. Memory dump at 0x4008fed4: 00f01d00 00004136 f01d0000 Core 0 register dump: PC : 0x4008fedb PS : 0x00060f34 A0 : 0x8008573e A1 : 0x3ffc1f50 A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000007 A5 : 0x3ff9cd42 A6 : 0x000006ec A7 : 0xfffffffb A8 : 0x8000814b A9 : 0x3ffc1ec0 A10 : 0x00000000 A11 : 0x3ffc1ee4 A12 : 0x3ffc1e8f A13 : 0x00000032 A14 : 0x00000000 A15 : 0x3ffc1e95 SAR : 0x00000004 EXCCAUSE: 0x00000000 EXCVADDR: 0x00000000 LBEG : 0x40090f09 LEND : 0x40090f19 LCOUNT : 0xfffffffe

Backtrace: 0x4008fed8:0x3ffc1f50 0x4008573b:0x3ffc1f70 0x400327cb:0x3ffc1f90 0x40087bb5:0x3ffc1fd0 0x40087e89:0x3ffc1ff0 0x4008bde6:0x3ffc2020 0x4008c8af:0x3ffc2040 0x400850be:0x3ffc2060 0x400853dd:0x3ffc2080 0x400853bf:0x00000000 |<-CORRUPTED

ELF file SHA256: 60dedc08e98be6b0

Rebooting...

ricardoquesada commented 1 year ago

mmm.... Interesting

gunnicus commented 1 year ago

It is a bit odd, I suppose the disConnected event should be triggered, but actually unhandled Exception been thrown. I noticed FEX 0 0 FEX 0 0 FEX 7 0 showed many times before the exception, what does this FEX mean.

ricardoquesada commented 1 year ago

Any chance that you can symbolize the stacktrace (e.g: convert the addresses to names) ?

I've just tried to reproduce it on a Sparkfun ESP32 Thing + Controller.ino and it disconnected without any problem.

gunnicus commented 1 year ago

Hello sir, thanks for your reply, sorry I'm new to esp32, not too sure how can I symbolize the stacktrace, this issue doesn't happen every time but it happens pretty often, I can replicate this issue after a few attempts. I do turn the ESP32 power off and on again everytime I tried. Also while I was walking out of range, I was pressing down X button, pressing down L1,L2,R1,R1, rolling around left joysticks none stop.

Please see below log output is I replicated this issue this evening. You may notcie before the 21:11:28.197 -> scan_evt timeout happened the controller already stuck with same input for about 10 seconds even I was moving the left joystick none stop the whole time. And FEX 0 0 starts to show after scan_evt timeout.

21:11:00.494 -> CALLBACK: Controller is connected, index=0 21:11:00.529 -> BTAddr: 99:08:6c:98:26:44, VID/PID: 078d:0cd8, flags: 0x07 21:11:00.596 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: -62 y: 374 z: -124, accel x: 192 y: 8304 z: -910, battery: 201 21:11:00.870 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: -496 y: 124 z: 187, accel x: 235 y: 8353 z: -876, battery: 201 21:11:01.144 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: -1490 y: -436 z: 374, accel x: 179 y: 8336 z: -801, battery: 201 21:11:01.416 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x:-22909 y: 4494 z: -8356, accel x: 12 y: 8406 z: -425, battery: 201 21:11:01.690 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x:-37623 y: 4120 z: -5862, accel x: 253 y: 10003 z: 1758, battery: 201 21:11:01.964 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 4, brake: 0, throttle: 0, misc: 0x00, gyro x: 11485 y: 12484 z: 11787, accel x: -181 y: 8641 z: 716, battery: 201 21:11:02.237 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 29428 y: 70727 z: 5176, accel x: -950 y: 8197 z: 123, battery: 201 21:11:02.512 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 4, 12, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 9312 y: 63236 z: -3617, accel x: -774 y: 8967 z: -345, battery: 201 21:11:02.786 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 16514 y: 37517 z: -249, accel x: -1207 y: 8200 z: -1304, battery: 201 21:11:03.062 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 8, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 7139 y: 46444 z:-15154, accel x: 888 y: 7236 z: -727, battery: 201 21:11:03.302 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x:-11671 y: 75659 z: 9604, accel x: 1239 y: 8356 z: -945, battery: 201 21:11:03.577 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 7077 y: 42011 z:-27315, accel x: 723 y: 8704 z: -1245, battery: 201 21:11:03.852 -> idx=0, dpad: 0x00, buttons: 0x0000, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 4408 y: 13483 z: -686, accel x: -873 y: 7930 z: -157, battery: 201 21:11:04.126 -> idx=0, dpad: 0x00, buttons: 0x0001, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x:-13099 y:-13046 z: -8294, accel x: 80 y: 8503 z: -861, battery: 201 21:11:04.401 -> idx=0, dpad: 0x00, buttons: 0x0001, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: -8319 y:-45133 z: -8980, accel x: 200 y: 9947 z: -531, battery: 201 21:11:04.675 -> idx=0, dpad: 0x00, buttons: 0x0001, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 7512 y:-13234 z: -7296, accel x: 92 y: 7145 z: -846, battery: 201 21:11:04.949 -> idx=0, dpad: 0x00, buttons: 0x0001, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 2235 y: 13483 z: -2120, accel x: 577 y: 7921 z: -1963, battery: 201 21:11:05.222 -> idx=0, dpad: 0x00, buttons: 0x0001, axis L: 12, 8, axis R: 4, 0, brake: 0, throttle: 0, misc: 0x00, gyro x: 17694 y: 12921 z: -4365, accel x: 321 y: 6865 z: -798, battery: 201 21:11:05.495 -> idx=0, dpad: 0x00, buttons: 0x00c1, axis L: 12, 8, axis R: 4, 0, brake: 856, throttle: 740, misc: 0x00, gyro x: -3290 y:-14919 z: -4178, accel x: 354 y: 8069 z: -994, battery: 201 21:11:05.770 -> idx=0, dpad: 0x00, buttons: 0x00c1, axis L: 16, 8, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 10554 y:-19663 z: 10040, accel x: 313 y: 8835 z: -1909, battery: 201 21:11:06.045 -> idx=0, dpad: 0x00, buttons: 0x00c1, axis L: 8, 12, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-10740 y: -936 z:-13221, accel x: 68 y: 8157 z: -124, battery: 201 21:11:06.286 -> idx=0, dpad: 0x00, buttons: 0x00d1, axis L: 16, -24, axis R: 4, 4, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-10119 y: 38328 z:-10352, accel x: 657 y: 8039 z: -1382, battery: 201 21:11:06.561 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -172, -508, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 3476 y: 44945 z:-13470, accel x: -1257 y: 6583 z: -60, battery: 201 21:11:06.834 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -508, 168, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-18625 y: 6492 z: -6361, accel x: -413 y: 7574 z: -145, battery: 201 21:11:07.108 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 440, 296, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -8443 y:-46194 z: -873, accel x: -109 y: 8290 z: -197, battery: 201 21:11:07.382 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -344, -428, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -5587 y:-31649 z:-11038, accel x: 31 y: 7218 z: 1147, battery: 201 21:11:07.656 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 152, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-24088 y: -8427 z: 311, accel x: 1495 y: 7666 z: 888, battery: 201 21:11:07.930 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 512, -244, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-18687 y: -3620 z: 1184, accel x: 648 y: 8464 z: 597, battery: 201 21:11:08.204 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -480, -244, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 61836 y: 18852 z: 9042, accel x: 797 y: 7045 z: 1721, battery: 201 21:11:08.478 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 232, -496, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -6084 y:-33834 z: -3679, accel x: -175 y: 8369 z: 907, battery: 201 21:11:08.752 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -348, -412, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 2855 y:-28028 z: 4677, accel x: -199 y: 8481 z: 168, battery: 201 21:11:09.025 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -472, -248, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1365 y:-25843 z: 1496, accel x: -680 y: 8636 z: 439, battery: 201 21:11:09.264 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -452, 316, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2421 y: 46444 z:-11599, accel x: 1515 y: 8789 z: -62, battery: 201 21:11:09.537 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 200, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 20798 y: 25282 z: -4552, accel x: 1282 y: 8314 z: -1493, battery: 201 21:11:09.811 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -508, 32, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -1490 y:-19913 z: -6298, accel x: -96 y: 7032 z: 63, battery: 201 21:11:10.087 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -508, 32, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -1490 y:-19913 z: -6298, accel x: -96 y: 7032 z: 63, battery: 201 21:11:10.361 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -508, 36, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -8319 y:-19788 z: -7171, accel x: 117 y: 7475 z: -70, battery: 201 21:11:10.636 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -508, 36, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -8319 y:-19788 z: -7171, accel x: 117 y: 7475 z: -70, battery: 201 21:11:10.909 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -452, 312, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -3166 y:-24470 z:-12098, accel x: 213 y: 8610 z: 425, battery: 201 21:11:11.180 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 24, -508, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -186 y: 58242 z: 3741, accel x: 1070 y: 8248 z: 290, battery: 201 21:11:11.454 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -48, -508, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 434 y: 57867 z: -873, accel x: 958 y: 7980 z: 25, battery: 201 21:11:11.729 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -432, -312, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -1552 y: -4120 z: 62, accel x: -402 y: 8087 z: 161, battery: 201 21:11:12.003 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:12.279 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:12.519 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:12.794 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:13.064 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:13.336 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:13.611 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:13.885 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -500, -172, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -2980 y: -5430 z: 7608, accel x: -342 y: 8362 z: 204, battery: 201 21:11:14.158 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 512, -128, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -62 y: 6242 z: -3866, accel x: 1340 y: 8690 z: 488, battery: 201 21:11:14.433 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 512, -128, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -62 y: 6242 z: -3866, accel x: 1340 y: 8690 z: 488, battery: 201 21:11:14.706 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 512, -128, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -62 y: 6242 z: -3866, accel x: 1340 y: 8690 z: 488, battery: 201 21:11:14.979 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -508, 192, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -4842 y:-21848 z: 3741, accel x: 1044 y: 8488 z: 382, battery: 201 21:11:15.252 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -92, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 7450 y: -1810 z: 2432, accel x: 2433 y: 7916 z: -145, battery: 201 21:11:15.526 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -92, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 7450 y: -1810 z: 2432, accel x: 2433 y: 7916 z: -145, battery: 201 21:11:15.798 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 48, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -5215 y: -9114 z: -4365, accel x: 2357 y: 8377 z: 273, battery: 201 21:11:16.069 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 48, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -5215 y: -9114 z: -4365, accel x: 2357 y: 8377 z: 273, battery: 201 21:11:16.311 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 48, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -5215 y: -9114 z: -4365, accel x: 2357 y: 8377 z: 273, battery: 201 21:11:16.584 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 48, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -5215 y: -9114 z: -4365, accel x: 2357 y: 8377 z: 273, battery: 201 21:11:16.859 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -384, -372, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 5090 y: 25531 z: -2619, accel x: -137 y: 8264 z: -3, battery: 201 21:11:17.134 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 468, 328, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: -5898 y: 18352 z: 2931, accel x: 1286 y: 8069 z: 2, battery: 201 21:11:17.407 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: 512, 180, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y: 15731 z: -1870, accel x: 2002 y: 8459 z: -374, battery: 201 21:11:17.681 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -272, -472, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-14589 y:-37017 z: 1683, accel x: -84 y: 8251 z: 69, battery: 201 21:11:17.956 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -272, -472, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x:-14589 y:-37017 z: 1683, accel x: -84 y: 8251 z: 69, battery: 201 21:11:18.231 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:18.505 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:18.779 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:19.020 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:19.295 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:19.568 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:19.842 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:20.118 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:20.392 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:20.667 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:20.940 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:21.214 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:21.491 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:21.763 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:22.003 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:22.276 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:22.550 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:22.827 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:23.099 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:23.370 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:23.645 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:23.918 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:24.192 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:24.469 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:24.743 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:24.982 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:25.255 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:25.529 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:25.804 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:26.078 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:26.349 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:26.622 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:26.896 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:27.171 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:27.446 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:27.720 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:27.993 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:28.197 -> scan_evt timeout 21:11:28.197 -> FEX 0 0 21:11:28.231 -> FEX 0 0 21:11:28.265 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: FEX 0 0 21:11:28.402 -> FEX 0 0 21:11:28.402 -> 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:28.471 -> FEX 0 0 21:11:28.506 -> FEX 0 0 21:11:28.541 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:28.678 -> FEX 0 0 21:11:28.678 -> FEX 0 0 21:11:28.712 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:28.780 -> FEX 0 0 21:11:28.780 -> FEX 0 0 21:11:28.848 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:28.986 -> FEX 0 0 21:11:28.986 -> FEX 0 0 21:11:28.986 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:29.088 -> FEX 0 0 21:11:29.088 -> FEX 0 0 21:11:29.155 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:29.291 -> FEX 0 0 21:11:29.291 -> FEX 0 0 21:11:29.291 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:29.360 -> FEX 0 0 21:11:29.395 -> FEX 0 0 21:11:29.429 -> FEX 0 0 21:11:29.429 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:29.565 -> FEX 0 0 21:11:29.599 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:29.667 -> FEX 0 0 21:11:29.667 -> FEX 0 0 21:11:29.702 -> FEX 0 0 21:11:29.735 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:29.873 -> FEX 0 0 21:11:29.873 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:29.942 -> FEX 0 0 21:11:29.976 -> FEX 0 0 21:11:30.010 -> FEX 0 0 21:11:30.010 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro xFEX 0 0 21:11:30.148 -> FEX 0 0 21:11:30.182 -> : 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:30.251 -> FEX 0 0 21:11:30.251 -> FEX 0 0 21:11:30.319 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:30.458 -> FEX 0 0 21:11:30.458 -> FEX 0 0 21:11:30.458 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:30.527 -> FEX 0 0 21:11:30.561 -> FEX 0 0 21:11:30.594 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:30.766 -> FEX 0 0 21:11:30.766 -> FEX 7 1 21:11:30.766 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:30.903 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:31.175 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:31.447 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:31.723 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:31.996 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 1 21:11:32.133 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:32.270 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:32.544 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:32.817 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:33.091 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:33.365 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:33.641 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:33.913 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:34.185 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:34.425 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:34.699 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:34.974 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:35.247 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:35.522 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:35.795 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:36.068 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:36.340 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:36.614 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:36.885 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 1427 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:37.158 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:37.296 -> FEX 0 0 21:11:37.296 -> FEX 0 0 21:11:37.296 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:37.399 -> FEX 0 0 21:11:37.399 -> FEX 0 0 21:11:37.433 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:37.604 -> FEX 0 0 21:11:37.604 -> FEX 0 0 21:11:37.604 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:37.673 -> FEX 0 0 21:11:37.708 -> FEX 0 0 21:11:37.743 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:37.878 -> FEX 0 0 21:11:37.913 -> FEX 0 0 21:11:37.913 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:37.982 -> FEX 0 0 21:11:37.982 -> FEX 0 0 21:11:38.048 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:38.185 -> FEX 0 0 21:11:38.185 -> FEX 0 0 21:11:38.220 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:38.289 -> FEX 0 0 21:11:38.289 -> FEX 0 0 21:11:38.357 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:38.494 -> FEX 0 0 21:11:38.494 -> FEX 0 0 21:11:38.494 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:38.564 -> FEX 0 0 21:11:38.598 -> FEX 0 0 21:11:38.632 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:38.802 -> FEX 0 0 21:11:38.802 -> FEX 0 0 21:11:38.802 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:38.870 -> FEX 0 0 21:11:38.903 -> FEX 0 0 21:11:38.938 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:39.073 -> FEX 0 0 21:11:39.107 -> FEX 0 0 21:11:39.107 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:39.175 -> FEX 0 0 21:11:39.209 -> FEX 0 0 21:11:39.243 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:39.378 -> FEX 0 0 21:11:39.412 -> FEX 0 0 21:11:39.412 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:39.480 -> FEX 0 0 21:11:39.480 -> FEX 0 0 21:11:39.549 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:39.686 -> FEX 0 0 21:11:39.686 -> FEX 0 0 21:11:39.720 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:39.788 -> FEX 0 0 21:11:39.788 -> FEX 0 0 21:11:39.856 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:39.993 -> FEX 0 0 21:11:39.993 -> FEX 0 0 21:11:39.993 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:40.061 -> FEX 0 0 21:11:40.094 -> FEX 0 0 21:11:40.128 -> idx=0, dpad: 0x00, buttons: 0x00f1, axis L: -52, 512, axis R: 4, 0, brake: 1020, throttle: 1020, misc: 0x00, gyro x: 14FEX 0 0 21:11:40.296 -> FEX 0 0 21:11:40.296 -> FEX 0 0 21:11:40.296 -> 27 y:-16542 z: 4427, accel x: 1159 y: 8657 z: 175, battery: 201 21:11:40.365 -> FEX 7 0 21:11:40.399 -> ASSERT_PARAM(0 7), in ld_acl.c at line 1772 21:11:40.434 -> Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled. 21:11:40.537 -> Memory dump at 0x4008fed4: 00f01d00 00004136 f01d0000 21:11:40.571 -> Core 0 register dump: 21:11:40.605 -> PC : 0x4008fedb PS : 0x00060f34 A0 : 0x8008573e A1 : 0x3ffc1f50
21:11:40.708 -> A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000007 A5 : 0x3ff9cd42
21:11:40.775 -> A6 : 0x000006ec A7 : 0xfffffffb A8 : 0x8000814b A9 : 0x3ffc1ec0
21:11:40.878 -> A10 : 0x00000000 A11 : 0x3ffc1ee4 A12 : 0x3ffc1e8f A13 : 0x00000032
21:11:40.981 -> A14 : 0x00000000 A15 : 0x3ffc1e95 SAR : 0x00000004 EXCCAUSE: 0x00000000
21:11:41.083 -> EXCVADDR: 0x00000000 LBEG : 0x40090f09 LEND : 0x40090f19 LCOUNT : 0xfffffffe
21:11:41.152 -> 21:11:41.186 -> 21:11:41.186 -> Backtrace: 0x4008fed8:0x3ffc1f50 0x4008573b:0x3ffc1f70 0x400327cb:0x3ffc1f90 0x40087bb5:0x3ffc1fd0 0x40087e89:0x3ffc1ff0 0x4008bde6:0x3ffc2020 0x4008c8af:0x3ffc2040 0x400850be:0x3ffc2060 0x400853dd:0x3ffc2080 0x400853bf:0x00000000 |<-CORRUPTED 21:11:41.424 -> 21:11:41.424 -> 21:11:41.424 -> 21:11:41.424 -> 21:11:41.424 -> ELF file SHA256: b43d13d264ec5680 21:11:41.459 -> 21:11:41.459 -> Rebooting... 21:11:41.493 -> ⸮⸮zY⸮bkbb⸮H⸮ ⸮ۤ⸮Firmware version installed: Bluepad32 for Arduino v3.8.3 21:11:42.878 -> BD Address: A4:A4:AA:57:B7:CE

ricardoquesada commented 1 year ago

yep. not sure what could be causing it... unfortunately I cannot reproduce it.

The backtrace could be useful if you somewhat can get the symbols of it. I cannot do that for you compiled the sketch.

ricardoquesada commented 1 year ago

try with this site: https://maximeborges.github.io/esp-stacktrace-decoder/

gunnicus commented 1 year ago

Thanks a lot, I tried again, got stack trace, I commented out BP32.forgetBluetoothKeys() in setup() not sure if that actually make any difference, the exception happens with/without BP32.forgetBluetoothKeys() below is Stack trace output : 0x4008fed8: r_assert at /home/riq/bin/esp/esp-idf-v4.4/components/bt/controller/esp32/bt.c:1892 0x400850be: hli_c_handler at /home/riq/bin/esp/esp-idf-v4.4/components/bt/controller/esp32/hli_api.c:101

Log: 15:57:01.296 -> FEX 0 0 15:57:01.329 -> FEX 0 0 15:57:01.364 -> idx=0, dpad: 0x00, buttons: 0x0001, axis L: 16, 24, axis R: -76, -508, brake: 0, throttle: 0, misc: 0x00, gyro x: -23FEX 0 0 15:57:01.498 -> FEX 7 0 15:57:01.498 -> ASSERT_PARAM(0 7), in ld_acl.c at line 1772 15:57:01.566 -> Guru Meditation Error: Core 0 panic'ed (IllegalInstruction). Exception was unhandled. 15:57:01.668 -> Memory dump at 0x4008fed4: 00f01d00 00004136 f01d0000 15:57:01.701 -> Core 0 register dump: 15:57:01.736 -> PC : 0x4008fedb PS : 0x00060f34 A0 : 0x8008573e A1 : 0x3ffc1f50
15:57:01.836 -> A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00000007 A5 : 0x3ff9cd42
15:57:01.905 -> A6 : 0x000006ec A7 : 0xfffffffb A8 : 0x8000814b A9 : 0x3ffc1ec0
15:57:02.008 -> A10 : 0x00000000 A11 : 0x3ffc1ee4 A12 : 0x3ffc1e8f A13 : 0x00000032
15:57:02.111 -> A14 : 0x00000000 A15 : 0x3ffc1e95 SAR : 0x00000004 EXCCAUSE: 0x00000000
15:57:02.214 -> EXCVADDR: 0x00000000 LBEG : 0x40090f09 LEND : 0x40090f19 LCOUNT : 0xfffffffe
15:57:02.281 -> 15:57:02.316 -> 15:57:02.316 -> Backtrace: 0x4008fed8:0x3ffc1f50 0x4008573b:0x3ffc1f70 0x400327cb:0x3ffc1f90 0x40087bb5:0x3ffc1fd0 0x40087e89:0x3ffc1ff0 0x4008bde6:0x3ffc2020 0x4008c8af:0x3ffc2040 0x400850be:0x3ffc2060 0x400853dd:0x3ffc2080 0x400853bf:0x00000000 |<-CORRUPTED 15:57:02.556 -> 15:57:02.556 -> 15:57:02.556 -> 15:57:02.556 -> 15:57:02.556 -> ELF file SHA256: 72aa410f4eb851d0 15:57:02.590 -> 15:57:02.625 -> Rebooting... 15:57:02.625 -> 1⸮⸮(Y⸮b[⸮V7|⸮$q⸮⸮⸮Firmware version installed: Bluepad32 for Arduino v3.8.3 15:57:03.646 -> BD Address: D4:D4:DA:57:B7:CE

image

image

gunnicus commented 1 year ago

Hello sir @ricardoquesada , I figured out a workaround. I notcied this issue happen after scan_evt timeout, so I added BP32.enableNewBluetoothConnections(false); inside onConnectedController. I belive enableNewBluetoothConnections(false) makes scan_evt stop. Basically, I tried to stop scanning after my controller connected to ESP32, that seems worked, I haven't encountered the issue since. I will do more testing.

ricardoquesada commented 1 year ago

mmm... very interesting. I wonder if BLE is causing that.