-
Notifications
You must be signed in to change notification settings - Fork 49
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
v0.9.7. Windows 10 can't see changes on the device. #16
Comments
Which kernel version are you using ? Can you rebuild umtprd in debug mode, test some files addition/removal and put here the logs ? |
My set up:
Config file and startup script are below. I'll add debug log later. Thanks!
|
I see that you have changed the vendor & product id in the startup script. Can you retry with the original Linux Foundation/PTP gadget ids ? |
I did and it didn't help. But I found out a couple of things. My config has "/home" but the device doesn't have it. After removing "/home" from config, I don't see the reported problem anymore. That's good news. And with the change, Linux host now auto-updates (before, I had to refresh). I see a different problem now. I remove "tmp.txt" and refresh Windows 10. The refresh takes a long time. After that, Windows 10 doesn't see updates anymore. Refreshes don't help. The problem doesn't exist with my Linux host. I can open a new "issue" if you want. |
Ok then i guess that the kernel inotify need a valid entry point. i will add the some sanity checks to address this possible issue. Regarding Windows 10 i will do some more tests but i have reproduced lots of issues with an Android 6 smartphone. It looks like there are some regressions in the Windows 10 initiator versus the Windows 7 initiator. |
I just came back and tried v0.9.7 again, and I couldn't see the problem mentioned in my previous post. |
It seems I got problems with Win 10 and refreshing again/too. (Using v1.0.0 and FunctionFS Mode on Beaglebone Black.) I use 2 Folders. In the first attempt, one folder (with option read-only in conf) showed new Files (i mean created on BeBoBlack) when refreshing. The other Folder (in which i had copied a File from Win10 before) did not show new Files when refreshing. |
Are you using a regular folder to test the refresh ? the inotify scheme currently used to detect and report the changes doesn't work well with mounted network disk for example. Please also note that the disk paths specified in the config file must be available at startup otherwise the inotify layer will not work properly. |
Ok issue reproduced : The problem is that with the current implementation an entry is registered one time for each drive. The inotify api doesn't support this (EDIT : It does support this). I am working on a fix. |
The issue is now fixed on the trunk. |
I assume with trunk you mean the master branch? If not: how do i get the trunk branch? TLDR: automatic refresh seems to refresh a wrong folder (maybe counting error starting with 0 & elsewhere with 1 ?) Long description + Makefile for automated installation on BeagleBoneBlack
Now the folder incoming does not refresh itself And a view in my second folder (from client) shows an file which is shown as "null" with 4,1kB in the file explorer from mint. After i made touch 3.txt from beagle it did not show up, but i noticed that if i refresh the folder with F5 "null" File disapears and 3.txt is shown. But if i leave the folder output and then go back in null is back again (dissapearing when gitting F5 again) I also tryed without config to /www and i saw different errors, Errors i have seen earlier: also, propably the same Bug: a little later: I just noticed this is propably the same bug as with /www, because i created a file with the beagle in incoming and it reads in outgoing. My setup: |
Thanks for the detailed informations, i will try to reproduce the issue.
Yes the master branch (yes github use git, not svn ;-) ) |
Further Informations: But while testing around i found following bug (and i guess it may be connected to this bug): |
I have the same issue with WIN 10 does not show the content of the file. My embedded Linux does export some CSV file while that device is connected to WIN 10 machine. Once I hit F5 or refresh the Windows explorer then File does show up with file size as 0. If I do then disconnect and connect the device again with PC then the same file show up proper size and content inside. Event latest master branch code does solve my problem. |
@devangpatel @UHU-ger the "ObjectInfoChanged" event is now implemented and the file size is now updated. Tested and working on Windows 7. Linux mint doesn't appear to care about this event... |
Works better, but i found a little more: I made a empty File and add 3 lines with: something
The behavior i found on Win 10: Means: after 3x echo and then refresh on Windows, the file size and the data shown are on the level from 2x echo. Got only a ubuntu19.04 as VM on Win 10 to test with Linux here today, and because i am not sure that the virtualisation does not add Errors i did not try on Linux today. regards |
I suspect that some bugs is related to the windows mtp initiator/explorer... What i miss is a device with another mtp responder to compare the behaviour. |
I have another battle to deal with. Now with latest Master COMMIT build, my WIN 10 does enumerate with my embedded device and I could see my product name under Win 10 Devices under Settings. However File Explorer does not even show mounted device. We have been using "78d244b" this version of COMMIT ID that works with Win 10. (We still have Win 10 SYNC issue as stated in above comments. We have ignored this issue for now.) |
I have just tested the latest master commit on a Windows 10 without any issue. Which mode are you using ? gadgetfs or functionsfs ? Is the issue specific to this very last commit ? Can you open another issue and share the umtp configuration and startup files. |
We use functionfs. Sure I will open another issue and will share those files. I want to do more debugging on my side first before I open an issue. Thank you very much for prompt response and help. |
Can you tell me if your issue is related to the last commit ? (I want to know if one of the recent commits are causing this issue or not). |
This issue was reported by UHU-ger previously but was closed.
Steps to reproduce:
With a Linux host, Linux Mint 19 Tara XFCE specifically, "tmp.txt" shows up after a refresh.
By the way, in "umtprd-ffs.sh", "mtp" should be replaced by "umtp" in line "mount -t functionfs mtp /dev/ffs-umtp". At least, I had to do that.
The text was updated successfully, but these errors were encountered: