Open Windwoes opened 6 years ago
@FROGbots-4634 are you using a powered USB hub? The issue may be that the webcam uses too much from the phones USB port. Powered hubs are legal as rule
@FROGbots-4634 are you using a powered USB hub? The issue may be that the webcam uses too much from the phones USB port. Powered hubs are legal as rule in game manual part one states. My team uses one and hasn't had the issue.
Yes. Also, I have used a USB multimeter to verify the webcam is not pulling any power from the phone.
@RedfishRobotics also, even if it was a power problem, the SDK should not be crashing when doing a "restart robot".
We did have an issue with the SDK not calling the Webcam class. We had to reinstall and Re-sync the SDK to get the calls to work. That might be part of the issue. Also what code/sample are you using. We use DogeCV and OpenCV, so we have more experience with that; however, we did use the first samples before we got CV working.
@RedfishRobotics I think you're misunderstanding the issue. This issue is occurring before user code is even run at all.
Yes, I was misunderstanding. We had an issue with the app not detecting the webcam on the phone until we update the phones OS to nougat, 7.1.1. OS. Maybe that will help. In case you don't know how to check, settings>about phone>Android version, 7.1.1. We use Moto G Plays so might be different for other phones
While testing webcam code, I discovered that sometimes, when hotplugging the webcam after the initial USB scan, the SDK does not pick it up properly.
The log shows that it was re-attcahed:
But the yellow warning message does not go away.
Additionally, in this state, if "restart robot" is pressed, the app freezes for 5 seconds and then crashes. Here's the log of that: