Access to portable device via MTP

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Access to portable device via MTP

Post by edk »

Hi.
Can anyone try to access the device resources via MTP (e.g. an Android phone connected to a computer via USB)?
I need to be able to copy and download files from such a device from the Harbour level.
I tried to use the hb_vf * function, but without success :?

Edward.
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Access to portable device via MTP

Post by serge_girard »

No idea!

Serge
There's nothing you can do that can't be done...
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access to portable device via MTP

Post by danielmaximiliano »

This protocol has some drawbacks, for example, which is more unstable than mass storage and much less compatible.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access to portable device via MTP

Post by danielmaximiliano »

edk wrote: Tue Sep 17, 2019 12:01 pm Hi.
Can anyone try to access the device resources via MTP (e.g. an Android phone connected to a computer via USB)?
I need to be able to copy and download files from such a device from the Harbour level.
I tried to use the hb_vf * function, but without success :?

Edward.
hbbz2io

This library implements an I/O driver for BZIP2 compressed streams, it may be used in File IO API functions ( hb_vf*() ) and in transfer RDDs, such as SDF and DELIM.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Access to portable device via MTP

Post by edk »

danielmaximiliano wrote: Wed Sep 18, 2019 9:23 pm This protocol has some drawbacks, for example, which is more unstable than mass storage and much less compatible.
The issue is that most current mobile devices do not support Mass Storage mode and only have support for MTP and/or PTP.
Last edited by edk on Thu Sep 19, 2019 9:04 am, edited 1 time in total.
edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Access to portable device via MTP

Post by edk »

danielmaximiliano wrote: Thu Sep 19, 2019 1:07 am
edk wrote: Tue Sep 17, 2019 12:01 pm Hi.
Can anyone try to access the device resources via MTP (e.g. an Android phone connected to a computer via USB)?
I need to be able to copy and download files from such a device from the Harbour level.
I tried to use the hb_vf * function, but without success :?

Edward.
hbbz2io

This library implements an I/O driver for BZIP2 compressed streams, it may be used in File IO API functions ( hb_vf*() ) and in transfer RDDs, such as SDF and DELIM.
I don't really know how bz2 compression should affect MTP support. Can you expand it? Any example?
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access to portable device via MTP

Post by danielmaximiliano »

*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
edk
Posts: 911
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

Re: Access to portable device via MTP

Post by edk »

Hello Daniel.
I know this paid application. I am looking for a solution that I could manage from source code. I found libmtp https://github.com/libmtp/libmtp, I am analyzing if I can use it in HMG. My knowledge of English and C is poor and I don't understand everything.
Thanks.
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Access to portable device via MTP

Post by bpd2000 »

Hi Edward
Refer: Media Transfer Protocol Porting Kit
https://www.microsoft.com/en-in/downloa ... f6eanttd00
BPD
Convert Dream into Reality through HMG
User avatar
danielmaximiliano
Posts: 2612
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access to portable device via MTP

Post by danielmaximiliano »

edk wrote: Fri Sep 20, 2019 5:56 am Hello Daniel.
I know this paid application. I am looking for a solution that I could manage from source code. I found libmtp https://github.com/libmtp/libmtp, I am analyzing if I can use it in HMG. My knowledge of English and C is poor and I don't understand everything.
Thanks.
Try WebDAV from PlayStore. map Ip local to drive Z, enjoy :D
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply