-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup for Huawei P8 with AN97 #11
Comments
Hello, up to now I wasn't able to test these Kirin Processors with my app, so I can only give you some advices. Basically you start to detect the camera. You take a look at the Interface's and Endpoints of your endoskop, to get sure it's a uvc device. And at last you try to get some data of your camera. Good luck. |
Dear Peter Stoiber,thank You for quickly answer The device (endoscope) is detect and the usb is permissions.
On screen of Huawei P8 is this attached screens. (possible choice offered)But by Testing run com an alarm There are places where you do not offer a value that you have suggested.
You would take a picture of YUYU.
But I hope I don't bother you with my questions. Ernst Tom
Peter____ <notifications@github.com> írta:
…
Hello,
up to now I wasn't able to test these Kirin Processors with my app, so I can only give you some advices.
I think this app could work with your mobile phone, but I don't know how good or bad the usb-source of your phone is.
Basically you start to detect the camera. You take a look at the Interface's and Endpoints of your endoskop, to get sure it's a uvc device. And at last you try to get some data of your camera.
For getting some data you use the manual uvc set up method.
You can choose the lowest values for the resolution.
If you start with 1 PacketsPerRequest and 1 ActiveUrbs you need to find the right Maxpacketsize (/Altsetting) for your devices.
So you try out all the Maxpacketsize's of your camera and start a testrun.
The testrun where you get the most bytes back from your camera, is the right one.
You keep this Maxpacketsize and try then to raise the PacketsPerRequest and ActiveUrbs. Perhaps only to an amount of 4, perhaps higher. When you notice, the bytes gets smaller, or the stream fails, you have to lower these values again.
Good luck.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Please post your values or adjust a screenshot from your values. |
this 3 attached pictures (1,3,4) are printscreens of my huaweithe pictures 4 is printscreen of my device too, but for some explanation, but I don't understand
Peter____ <notifications@github.com> írta:
…
Please post your values or adjust a screenshot from your values.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Please post the pictures, or give a link to the pictures... |
Oh, I'm sorry.
I attached 4 jpeg printscreen to both of my last letters. I didn't know he didn't go through. I haven't had a relationship with github yet.
What is the best, easiest solution. And then I'll do it tomorrow. Just keep calm about me. Not so urgent, it would be good if I could use the endoscope not only connected to a PC but also with a mobile phone.
And I’m still trying it - I didn’t have time for it over the weekend.E. T.
Peter____ <notifications@github.com> írta:
…
Please post the pictures, or give a link to the pictures...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Load the screenshots up to google drive and post the link. |
Hello Ernst, the values from the 1st Picture should fit. The 2nd Picture does not matter up to now. In the 3rd and 4th Picture your Value for PacketsPerRequest and ActiveUrbs are much too high. Start with 1 and 1 for those two Values. Normally you do not have to edit the values in the edit/save menu. You can try out then the -Controltransfer-Testrun- Button and attach the output again with a screenshot. |
I tried a lot of settings all the way through - not all the variations. |
Please post the output of the first menu (Video Probe-Commit Controls) in the -Controltransfer-Testrun- menu with your selected values. Peter |
If you have the possibility to debug your phone over android studio with a PC / Laptop, we get exacter outputs, whats failing. The thing what fails is the control transfer sended to the endoscop. Perhaps a weak OTG adapter (I also had one) If you have another otg hub, try it. Eventually, if you have a linux machine on you Pc, you can post the output of: |
Hui, ok, We got 1 working controltransfer. The value 614400 was sended from your endoscop device and fits so far... |
One thing is strange, but should not matter up to now --> Your Hint value changed from 1 to 0 after the first control transfer |
I will give you a link with a debug apk, which you can install on your Phone and then plz run the same method with the same values ... |
Plz wait, Till I get the apk finished ... Your endoscop camera is an UVC device. |
Download this apk and run it with the same values. https://drive.google.com/open?id=1lJ9hJyqAg-EqPGJUPZpdk_bN7gEPS2Jk |
Again attach the output of the first menu (Video Probe-Commit Controls) in the -Controltransfer-Testrun- menu with your selected values. |
Thank You |
answer from Huawei: |
Dear Peter |
Hmm, if you could also spend some time, you could install android studio on your PC and try to debug this issue by your self. The other way would be to test apk's uploaded by me. You have to give me then each time feedback. --> it's also not clear to me why the currently linked apk don't have the same return, like the one on Play Store. Choice is to you. |
Sorry, but I can't identify based on the text what and where to download for pc testing. |
Ok, then we will try to debug over sample apps, which I will upload. Explanation: |
Please test these 3 apks and post only the output, if you receive a sucessful return from the endoscop. So far, Peter |
Sehr Geehrte Peter |
Hello Ernst, With the pen cam, try to click the manual method, and when you get the exception, then post the log.txt. So far, Peter |
endoscope data0 (May 25, 25): |
answer for 12.48 |
Ok, some good news for your endoscop camera. Lets continue testing with: Post again all 4 log files. |
And plz attach the log file from the pen camera, when you click on SetUpWithUvcSettings and you get the Arrayindexoutofbounds Exception. |
Run all methods with you Pen Camera. You do not need to perform a Testrun, because first the other buttons need to work. In your logfile there need to be an output like this: At last you can attach the log.txt file. |
You can try this apk with your endoscope camera: With this version I think you are able to start the stream with the "Start the Camera Stream" button. |
it is only up to 32 in the manual, rewritten with manual modification - appendices. video folder with size 0 files. I couldn't find where to save the photos. |
If no more output comes from your Phone, then restart. Sadly the frames get bigger than 614400 bytes, which means something is not correct. Plz adjust the outputs from the Pen Cam. |
this now applies to the endoscope or penis. |
Best to reboot the phone one times, when something not works. |
For your Pen Cam: Run all methods with you Pen Camera. You do not need to perform a Testrun, because first the other buttons need to work. In your logfile there need to be an output like this: At last you can attach the log.txt file. |
With your Endoscop Camera use highest values 16 / 16 for ActiveUrbs / PacketsPerRequest. |
I restarted it several times even after the settings. |
Yes, when you look into the log.txt file, you notice, that most of the data is 00: data = 00 00 00 00 00 00 00 00 00 and all frames contains an error. I don't know how to solve it up to now. It's as you said, the camera does not accept other camera settings for some reason. |
although the same name, but I overwrote it with the returnee. |
in the meantime, i asked kkmoon (an97) and huawei to comment on whether there is a possibility of a connection and that there is no conflict of interest. |
One question: When you run the manul setupwithuvcsettings Method, how many resolutions can you choose there? Can you attach the log.txt, when you choose an other resolution, than 640x480? |
yes, all 5 are optional. |
Hello Ernst, this app delivers more results from the endoscop camera to the log file:
So far, Peter |
Hello, |
Hello Ernst, perhaps some good news for you ! I sucessfuly got this endoscop to work on my devices! So please try out the following on your Device: Next "Video Probe Commit Control ! --> You have to see there 3 sucessful Controltransfers and the last failed one! If you get an output there --> Return to Main and then "Start The Stream Button" --> Start Transmission --> Start the Camera ! If for some reason the Button "Video Probe Commit Control" returns 4 times "null" --> disconnect the camera and connect again, restart the app and run the manual method again. |
Hm, Perhaps it could be, that I'm using a litle bit newer version of this endoscope, because it's already linked to the AN98 apk from the play store. I also noticed, that other apps working far more better than mine, using the standard uvc driver. I will have to spend some time on this behavior, to update my app, that it also receives the same data than with the original uvc driver. If I can solve it, you can give em another try. So far, Peter |
Dear Peter go ahead. |
Hello Ernst Tom, if you still have your phone and Camera, you cam try it out again. I have added a new driver (Libusb support). With this approach the devices are a lot more faster than before. You can do the Setup like described in this post before and perhaps the outputs are getting better. |
welcome Peter. |
Dear Peter Stroiber
now i have some time to try the UVC app.
but a lot of things are new to me, unknown.
How to set up a Huawei P8 (non-lite) mobile phone with AN97 endoscope.
i have tried many apps but all of them only work with the high-end and samsung device only.
and I think the huawei p8 isn't weak either
The text was updated successfully, but these errors were encountered: