Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 18 Jun 2018, 00:12
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Media Transfer Protocol MTP (SOLVED)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 16 of 17 [250 Posts]   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17 Next
Author Message
SnoopPup

Joined: 06 Jan 2015
Posts: 49

PostPosted: Sat 10 Jan 2015, 23:25    Post subject:  

It's weird because my phone shows Serial# as 0000000000, which is usually the decimal of the 8 digit hex I think. I thought I needed the ESN to activate this phone, but now I can't even find it.

EDIT: Scratch that. GSM uses IMEI and CDMA uses ESN/MEID I guess.
Back to top
View user's profile Send private message 
SnoopPup

Joined: 06 Jan 2015
Posts: 49

PostPosted: Sun 11 Jan 2015, 00:26    Post subject:  

So using lsusb I can duplicate the variance in Device ID by switching from PDA (e) to MODEM (d) which are options in Phone Utils (#*7284#).
lsusb.png
Description 
png

 Download 
Filename  lsusb.png 
Filesize  143.97 KB 
Downloaded  250 Time(s) 
Back to top
View user's profile Send private message 
SnoopPup

Joined: 06 Jan 2015
Posts: 49

PostPosted: Sun 11 Jan 2015, 01:30    Post subject:  

So I went back to Slacko 5.7 as it seemed like I made more progress there.

I can now proceed to where I get the screen reporting AndroidAndroid with the "d" Device ID variance. It appears that MTPdetect will only recognize the "d" which represents the MODEM setting as opposed to the "e" which represents PDA. lsusb will easily detect either setting, but MTPdetect only recognizes it as MODEM even though it can only detect phone when set as PDA, which should show an "e" at the end of the Device ID.
Still puzzled why the Device ID would not be constant, regardless of PDA/MODEM setting, but that appears to be the case.

So I think MTPdetect is seeing my phone as a MODEM with no files to be mounted.

Samsung has issues with this PDA/MODEM protocol or whatever it is. It is necessary in Samsung Kies to switch from PDA to MODEM and back to PDA to connect to KIES on this particular phone. Somebody randomly figured that out and it is on the net. It is also necessary for me to toggle this to shut off USB Mass Storage so that MTP will be active or dominant. There is very little info on net about PDA/MODEM, little that I could find anyway.

I also note that lsusb detects and reports either "download mode" for MODEM "d" setting or "debugging mode" for PDA "e" selection.

I'm starting to fully appreciate why OpenSource is vital. Samsung could open the books on the various bizarre stuff they do. Not a lot different between Samsung and Microsoft. Next phone will be as Open Source as possible and probably not a Samsung. Like all the code and protocols used and embedded in hardware should be free and open. Then Cool

Could still be the cable though, but I still doubt it. Shocked
Screenshot_2015-01-11_001648.png
Description 
png

 Download 
Filename  Screenshot_2015-01-11_001648.png 
Filesize  160.01 KB 
Downloaded  241 Time(s) 
Back to top
View user's profile Send private message 
SnoopPup

Joined: 06 Jan 2015
Posts: 49

PostPosted: Sun 11 Jan 2015, 01:47    Post subject:  

ANd lsusb reports my phone differently in Slacko 5.7 compared to tahrpup, very differently. I don't even unplug phone, move or touch it, but the 2 versions reports are not nearly the same. Must be the kernel?
Back to top
View user's profile Send private message 
SnoopPup

Joined: 06 Jan 2015
Posts: 49

PostPosted: Sun 11 Jan 2015, 01:56    Post subject:  

One more thing.

I noticed that 1 dependency is missing after installing MTPdetect -exper-noarch: qt. Jus the letters q and t. Not sure what that is or how to fix it or if it's a problem. That's in Slacko 5.7 with mtplib 1.0.3 utilities installed as well.

Back to tahrpup to see if it's the same...
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 4208
Location: Kiel,Germany

PostPosted: Sun 11 Jan 2015, 18:47    Post subject:  

I could not get anything to work !

Android-4.2.2 Archos 79 Cobalt tablet .

What was wrong ?

go-mtpfs calls fusermount, which calls mount -f to expect returnvalue 0 from /bin/mount .

/bin/mount wrapper called mount-FULL $@ which always return non-zero ( wrong fs options or already mounted ) .

My own mount.sh hung while testing if directory exists .

BIG trouble was that /mnt was not accessible by ROX-Filer as long as fusermount stalled waiting for mount to finish .

What I did :
created a /bin/mountMTP.sh as :
Code:
#!/bin/ash
exit 0

created a /bin/mountMTP as :
Code:
#!/bin/ash


. /etc/rc.d/f4puppy5

_pidof go-mtpfs && _exit 3 "go-mtpfs already running -- use umountMTP"


test -L /bin/mount    || _exit 4 "/bin/mount needs to be a link"
test -e /bin/mountBAK || cp -a /bin/mount /bin/mountBAK

test -e /bin/mountMTP.sh || {
echo 'exit 0' >/bin/mountMTP.sh || _exit 41 "Could not create /bin/mountMTP.sh wrapper"
chmod $VERB +x /bin/mountMTP.sh || _exit 42 "Could not set /bin/mountMTP.sh executable"
}

OLD_MOUNT=`realpath /bin/mount`
# REM: Needs here in case of early exit
#      link /bin/mount does exit if fails
which go-mtpfs >>$OUT || _exit 6 "go-mtpfs not found in PATH"

ln $VERB -sf mountMTP.sh /bin/mount || _exit 5 "Could not create link /bin/mount -> mountMTP.sh"

MOUNT_POINT=/mntf/MTPdev
test -e "$MOUNT_POINT" || mkdir -p "$MOUNT_POINT"

GO_MTPFS_OPS=
go-mtpfs $GO_MTPFS_OPS "$MOUNT_POINT" &

sleep 5

ln $VERB -sf "$OLD_MOUNT" /bin/mount
_pidof go-mtpfs && exit 0 || exit 1

# TODO: Handle GetStorageInfo 10001: SessionNotOpen
#       app. when mtpdevice switches into lower-power-mode

created a /bin/umountMTP as :
Code:
#!/bin/ash

. /etc/rc.d/f4puppy5

MOUNT_POINT=/mntf/MTPdev

grep -w "$MOUNT_POINT" /proc/mounts || _exit 3 "'$MOUNT_POINT' not mounted"

fusermount -uz "$MOUNT_POINT"


Note : mount -f is fake mount, so would not do anything . So exit 0 is all it needs .
Note : Since I had troubles with /mnt/ I use /mntf/ to be able to access /mnt/ if troubles with fuse arise .

Basically the mountMTP creates /bin/mount.sh and links and re-links /bin/mount to mount.sh and back to OLD_MOUNT .

Rename /bin/mount to /bin/mountORIG and link mountORIG to /bin/mount, before using the scripts .

fusermount is v2.7.0 and Puppies are 4.3 and 4.3.1 .

Note : libusb-1.0 is needed, had no luck with libusb-1.0.so.0.0.0 but with 1.0.so.0.1.0 .

Note : No udev rule needed ( calls pupcamera ) .
Note : dmesg is unreliable if polluted by buggy drivers ( mei.ko ) .

_________________
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal Razz
Back to top
View user's profile Send private message 
michaellowe


Joined: 17 Dec 2011
Posts: 69
Location: The Garden

PostPosted: Fri 17 Jul 2015, 06:22    Post subject: Media Transfer Protocol MTP (SOLVED)
Subject description: BUGS??!!
 

Hi can8v

Firstly thank you for creating this, mounted my rooted google nexus 5 phone (rooted with the hammerhead purity exploit form xda devs) just fine in lucid puppy 525 using the commands you specified:

cd /mnt
go-mtpfs MTPdevice

However when it came to copying files over to an external hdd I get this error

2015/07/16 11:08:31 Unimplemented opcode INTERRUPT
2015/07/16 11:08:31 writer: Write/Writev failed, err: 2=no such file or directory. opcode: INTERRUPT

the files that i copied over did actually copy but when I checked properties it shows size as 0
having said that after noticing the error message I went back to browse the rest of the contents of my phone and guess what the files I just tried to copy plus all my .apks are the only files showing up on the device every other directory showing up as "empty"

what is happening here? during the file copy process did the device unmout or something? strange that apks and the files I just tried to copy are the only ones showing up form a 16GB device

would love to know what is going on here as my excitement and joy at discovering a mounting solution for my android phone was very quickly dashed when this occurred Sad may have to just return to using the remote desktop solution seems quick enough if not faster?

Let me know what you think of this and if you require any other information thank you
M

_________________
Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
Back to top
View user's profile Send private message 
michaellowe


Joined: 17 Dec 2011
Posts: 69
Location: The Garden

PostPosted: Fri 17 Jul 2015, 06:40    Post subject:  

SnoopPup wrote:
One more thing.

I noticed that 1 dependency is missing after installing MTPdetect -exper-noarch: qt. Jus the letters q and t. Not sure what that is or how to fix it or if it's a problem. That's in Slacko 5.7 with mtplib 1.0.3 utilities installed as well.

Back to tahrpup to see if it's the same...


I may be wrong but as far as I recall qt "

is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt4 is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers. One of the major users of Qt is KDE4"

just use your ppm or whatever package manager you have to download a pet of qt or compile it from source, have often found that compiling is the most relaible way of building/installing things for my specific system that way I dont have to chase after missing deps and libs, i can compile them at the time.
It is quite complex but if you do it methodically it can be done and you have to excercise much patience! the wait is worth the reward.

just google qt source tarball.gz and you should get a download page on sourceforge or something?

[url]
extra reading: http://www.linuxfromscratch.org/blfs/view/svn/x/qt4.html[/url]

the fact that there is qt5 can complicate things you have to somehow find out which one you need, again another reason to compile as the terminal will return error messages to help you configure things correctly for your system or kernel version. Good luck and I'm sorry I could not be more elaborate with my explanantion, perhaps one of the gurus here in puppy land could help further??? cheers

_________________
Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7828
Location: World_Hub

PostPosted: Fri 17 Jul 2015, 08:17    Post subject:    

Michael, seeing as the MTP cat hasn't posted in over a year, try one of the file explorer apps.
_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
michaellowe


Joined: 17 Dec 2011
Posts: 69
Location: The Garden

PostPosted: Fri 17 Jul 2015, 10:03    Post subject: file explorer apps?  

Semme wrote:
Michael, seeing as the MTP cat hasn't posted in over a year, try one of the file explorer apps.


Hi Semme thanks for reply, could you possibly name some good reliable examples of file explorer apps sutable for lucid puppy 525? my ppm is broken so Id like to just either download a source tarball or if you know of someone who has a repo somewhere online with pets or sfs?
Thanks in advance

_________________
Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 3106
Location: Tamworth UK

PostPosted: Fri 17 Jul 2015, 10:51    Post subject:  

I use XFE.SFS

and X-Plore under Android

_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7828
Location: World_Hub

PostPosted: Fri 17 Jul 2015, 18:38    Post subject:  

Here's X-plore.

This one'll show you a lot too >> ES File Explorer.

_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7828
Location: World_Hub

PostPosted: Fri 17 Jul 2015, 19:52    Post subject:  

Hey Michael, wouldn't you like to fix that PPM of yours?

You running frugal or full install?

If full, you have the disk?

_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5042
Location: Republic of Novo Zelande

PostPosted: Sat 18 Jul 2015, 00:47    Post subject:  

Is there any way to add apps to Android other than going through the Google app store? I would rather have an offline "executable" or portable app.
Back to top
View user's profile Send private message 
Semme


Joined: 07 Aug 2011
Posts: 7828
Location: World_Hub

PostPosted: Sat 18 Jul 2015, 08:33    Post subject:  

"Is there any way.." is surely a query deserving *IT'S OWN* new topic.
_________________
>>> Living with the immediacy of death helps you sort out your priorities. It helps you live a life less trivial <<<
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 16 of 17 [250 Posts]   Goto page: Previous 1, 2, 3, ..., 14, 15, 16, 17 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1012s ][ Queries: 14 (0.0378s) ][ GZIP on ]