Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 4 months ago.
MbedWrapper Endpoint issues
Hello!
I downloaded the mbedWrapper android app, but it crashes in the initialization.
When running without the acessory, it crashes in the following line "mManager.requestPermission(accessoryList[0], mPermissionIntent);" Returning a NullPointer Exception, once the accessoryList is null. MAKES SENSE!
The mbed attached to the serial computer tells me the following when I start with the Android device already connected:
Android Development Kit: start Welcome to adkTerm
USB INIT (Controller is 1396 bytes) HubStatusChange Hub:0 Port:1 00010101 ResetPort Hub:0 Port:1 HubStatusChange Hub:0 Port:1 00100103 Connect Hub:0 Port:1 full Waiting Waiting before ep=20000400,callback=00000000 ep=0,callback=00000000 Waiting Waiting Waiting before ep=20000400,callback=00000000 ep=0,callback=00000000 Waiting
Then when I disconnect the device it prints:
HProcessDoneQueue status 00 5 ucessDoneQueue status 00 5 00030100 Disconnect Hub:0 Port:1 DATA SENT
RETRY ADD DEVICE
Disconnect Hub:0 Port:1 ResetPort Hub:0 Port:1 HubStatusChange Hub:0 Port:1 00010100 Disconnect Hub:0 Port:1
As far as I see, looks like the mbed side is fine, just waiting for the device.
UPDATE:
After some tries, now I am getting this from mbed:
USB INIT (Controller is 1396 bytes) HubStatusChange Hub:0 Port:1 00010101 ResetPort Hub:0 Port:1 HubStatusChange Hub:0 Port:1 00100103 Connect Hub:0 Port:1 full AddDeviceCoreWaiting Waiting before ep=20000400,callback=00000000 ep=0,callback=00000000 Transfer 00 T:0 Len:8 S:3 WTransfer 00 T:1 Len:8 S:4 Transfer 00 T:2 Len:0 S:5 FAILED TO LOAD DESCRIPTOR FOR DEVICE 0 Waiting Waiting before ep=20000400,callback=00000000 ep=0,callback=00000000 Transfer 00 T:0 Len:8 S:3 Transfer 00 T:1 Len:18 S:4 Transfer 00 T:2 Len:0 S:5 X found 6565:6566
Class F4 found 5995:0000 Waiting Waiting before ep=20000400,callback=00000000 ep=0,callback=00000000 Transfer 00 T:0 Len:8 S:3 Transfer 00 T:1 Len:0 S:5 AddEndpoint D:01 A:00 T:00 P:0020 I:00 Waiting Waiting before ep=20000100,callback=00000000 ep=0,callback=00000000 Transfer 00 T:0 Len:8 S:3 Transfer 00 T:1 Len:18 S:4 Transfer 00 T:2 Len:0 S:5 Waitingr Waiting before ep=20000100,callback=00000000 ep=0,callback=00000000 Transfer 00 T:0 Len:8 S:3 Transfer 00 T:1 Len:255 S:4 ProcessDoneQueue status 00 8 DATA SENT Sending: aaaaaa AndroidAccessory::write Device1: Output1: 1: Waiting before ep=20000400,callback=00000000 ep=0,callback=000039f1 Transfer 00 T:0 Len:8 S:3 -ret=-100
Any thoughts?
Best Regards, Cladio