maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Connect Jolla to android tablet, is it possible? (https://talk.maemo.org/showthread.php?t=94397)

Schturman 2015-01-02 14:23

Connect Jolla to android tablet, is it possible?
 
I wondered, is it possible somehow connect Jolla to android tabled and see/operate all files system for example like on windows with WINSCP and Putty?
If yes, can we get explanation?
Thanks

nieldk 2015-01-02 15:02

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1454830)
I wondered, is it possible somehow connect Jolla to android tabled and see/operate all files system for example like on windows with WINSCP and Putty?
If yes, can we get explanation?
Thanks

sure, use ConnectBot, or simply just ssh
https://play.google.com/store/apps/d...nnectbot&hl=en

Schturman 2015-01-02 16:21

Re: Connect Jolla to android tablet, is it possible?
 
Thanks, already tried JUICESSH, work flawlessly! And File manager HD work like WinSCP!
Just perfect! Don't need to take my laptop to work anymore hahaaa :)

P.S. a little tip, if you want to open another window with ssh connection, for example one window root and second nemo, just press back icon on the tablet and you will get popup window (Do you want to leave this session at background? ) -> press yes ;)

Schturman 2015-01-04 22:32

Re: Connect Jolla to android tablet, is it possible?
 
Hmmm another question... If Wifi do not work, is it possible connect between them with usb cable ? For example this one ?
Or I want too much :D

juiceme 2015-01-04 22:52

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1455273)
Hmmm another question... If Wifi do not work, is it possible connect between them with usb cable ?

If one of the devices supports host mode, yes. Otherwice no.

Schturman 2015-01-04 23:27

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by juiceme (Post 1455277)
If one of the devices supports host mode, yes. Otherwice no.

How to check it ? My android device is Galaxy Tab S 8.9 LTE SM-T705.
And if yes, some instruction please ?

juiceme 2015-01-05 09:19

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1455284)
How to check it ? My android device is Galaxy Tab S 8.9 LTE SM-T705.
And if yes, some instruction please ?

Host mode means it accepts same USB devices like a computer, so if you can plug in an USB mouse, keyboard, printer, etc to your tablet then it works.

But, as a general rule I think androids do not support it.

pichlo 2015-01-05 10:06

Re: Connect Jolla to android tablet, is it possible?
 
I have an el-cheapo Android tablet that's now gathering dust. It has USB host mode. In fact, it has only USB host mode, meaning you can attach a USB memory stick to it but you cannot attach it to a PC. I have read reports from people frying the USB circuit on the tablet or the PC when they tried.

But is a USB host mode enough? Doesn't the tablet also need to support MTP?

Schturman 2015-01-05 10:16

Re: Connect Jolla to android tablet, is it possible?
 
Thanks for answer. If I remember right, my tablet support usb OTG, and when I connect him to pc, it show me MTP checked.
Is this enough ?

juiceme 2015-01-05 10:21

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by pichlo (Post 1455328)
But is a USB host mode enough? Doesn't the tablet also need to support MTP?

I thought this was about IP connection and not MTP.
(MTP is crappo anyway and I hate its guts)

So, yes, you need to have the IP over USB driver for the android acting as host, true, but that is a piece of cake if host mode is already supported.

If host mode works, then it is just matter of loading up the needed kernel module for the IP connection. (and if it is not available on the device, it is fairly easy to compile yourself, there's no device dependent stuff in it, it is pure protocol module)

Schturman 2015-01-05 10:53

Re: Connect Jolla to android tablet, is it possible?
 
ok, thanks. will try connect something first (mouse..) and will see.

Schturman 2015-01-05 12:40

Re: Connect Jolla to android tablet, is it possible?
 
This what I found about my tablet:
Quote:

Connectivity: Mass storage device, USB charging
MHL, Tethering, Computer sync, OTA sync

And from another site: Expansion: 1 microSDXC card slot, USB host via option USB OTG adapter cable
That mean it can work for example with this cable or this connector ?

Schturman 2015-01-29 22:11

Re: Connect Jolla to android tablet, is it possible?
 
Ok, Finally I got this OTG adapter and successfully connected my wireless mouse and it work fine...
Now, when I connect my Jolla to tablet and choose Developer mode, Jolla show me that "Connected in Developer mode", but I can't connect to file system via sftp like via wifi.
I used IP:192.168.2.15
user: nemo
pass: <my pass>
Can someone help ? Maybe Tablet need some drivers for this ?

pichlo 2015-01-29 22:32

Re: Connect Jolla to android tablet, is it possible?
 
Your host device (in this case, the (Android?) tablet) needs to support USB networking. I do not know if Android does, either out of the box or via a 3rd party solution.

Another option would be to try "PC connection" (or whatever it is called - I am typing this on my Jolla but I am miles away from any PC to try). Then of course your tablet will need to support MTP. It is hard to win in this game ;)

Schturman 2015-01-30 00:21

Re: Connect Jolla to android tablet, is it possible?
 
Yes, my tablet support MTP, it checked when I connect tablet to pc (storage--> usb computer connection->Media device (MTP).
And probably it not have USB netvorking. Do you know app/driver for this ?

I tried to check "PC Connection on Jolla" and it start Gallery app in the tablet.

aegis 2015-01-30 10:28

Re: Connect Jolla to android tablet, is it possible?
 
Your tablet's mtp support is probably only as a slave device. Ie. It's pretending to be a camera or mp3 player. It's expecting a host device, a PC, to access it.

Schturman 2015-01-30 11:08

Re: Connect Jolla to android tablet, is it possible?
 
OK. . And can we do/change/install something to get it work as host?

m4r0v3r 2015-01-30 11:10

Re: Connect Jolla to android tablet, is it possible?
 
android has ssh, i suppose the easiest way is to connect it in developer mode and use ssh to access your files?

Schturman 2015-01-30 11:22

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by m4r0v3r (Post 1458838)
android has ssh, i suppose the easiest way is to connect it in developer mode and use ssh to access your files?

This is exactly what I want.. But I want it via ssh over USB... Through wifi it work perfectly..

Casanunda 2015-01-30 14:55

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1458765)

I tried to check "PC Connection on Jolla" and it start Gallery app in the tablet.

This sounds like MTP is working on the tablet also in this direction.
(typical behaviour also on (Windows) PC when you connect an MTP device to it - Open some picture browsing app...

Does the gallery app on your tablet also show photos that are stored on Jolla?

pichlo 2015-01-30 16:18

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Casanunda (Post 1458883)
This sounds like MTP is working on the tablet also in this direction.
(typical behaviour also on (Windows) PC when you connect an MTP device to it - Open some picture browsing app...

Does the gallery app on your tablet also show photos that are stored on Jolla?

That's exactly what I assumed when I saw that Schturman's post.

Please be aware that you won't be able to browse the entire file system, only what the Jolla's MTP decided to export. There is a file user-dirs.dirs in /home/nemo/.config with the list. It also has a comment with some useful info.

Schturman 2015-01-30 19:41

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Casanunda (Post 1458883)
Does the gallery app on your tablet also show photos that are stored on Jolla?

Yes, I can see photos from Jolla.

Quote:

Originally Posted by pichlo (Post 1458906)
Please be aware that you won't be able to browse the entire file system, only what the Jolla's MTP decided to export. There is a file user-dirs.dirs in /home/nemo/.config with the list. It also has a comment with some useful info.

What you mean "be aware" ? What can happen ?

pichlo 2015-01-30 20:34

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1458927)
Yes, I can see photos from Jolla.

Hurray! Mission accomplished.

Quote:

What you mean "be aware" ? What can happen ?
Nothing, just that a few pictures and videos is all you will see.

I think you can trick it by making a symlink from one of your exposed folders to a folder higher up the path. But I'm sure you know that already ;)

juiceme 2015-01-30 20:34

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1458845)
This is exactly what I want.. But I want it via ssh over USB... Through wifi it work perfectly..

Well, you are more than half way there since the difficult thing is to connect the 2 devices togther so that one is the master and one is the slave.

Now, what you need is to set up IP over USB on the connection you have between the devices. On Jolla side you can do it from the USB connection menu, but if the Android tablet dooes not have that you need to manually launch up the correct kernel module and configure IP address for the interface.

Schturman 2015-01-30 21:13

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by juiceme (Post 1458933)
Well, you are more than half way there since the difficult thing is to connect the 2 devices togther so that one is the master and one is the slave.

Now, what you need is to set up IP over USB on the connection you have between the devices. On Jolla side you can do it from the USB connection menu, but if the Android tablet dooes not have that you need to manually launch up the correct kernel module and configure IP address for the interface.

This what I tried to do.. but when I connect jolla to tablet and choose "Developer mode" or "PC connection" on jolla, the USB setting don't have any setting. It Just show "Connected as Dev mode" and Default USB mode: Always ask.
I can't do nothing here... From the tablet I tried ssh connection like via wifi in JuiceSSH app, but it can't connect. Probably like someone said my tablet don't have usb networking and I have no idea how to get it work.

juiceme 2015-01-30 21:33

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1458941)
This what I tried to do.. but when I connect jolla to tablet and choose "Developer mode" or "PC connection" on jolla, the USB setting don't have any setting. It Just show "Connected as Dev mode" and Default USB mode: Always ask.
I can't do nothing here... From the tablet I tried ssh connection like via wifi in JuiceSSH app, but it can't connect. Probably like someone said my tablet don't have usb networking and I have no idea how to get it work.

No, you need to go to the tablet console, load up the required module and configure the IP address manually.

It is possible your tablet does not have the module, in that case you need to get the correct kernel source (which is available from the manufacturer) and recompile the kernel with CONFIG_USB_ETH=m to get the support module.

Schturman 2015-01-30 23:13

Re: Connect Jolla to android tablet, is it possible?
 
You speak Chinese with me, I'm not programmer :D
I don't have a clue what to do with what you said.
Probably it's not for me.. For now I found another solution for bad wifi in my work. I just do tethering from jolla and connect tablet to this network. In this case ssh over wifi work quickly, but it eat my 3g internet..

m4r0v3r 2015-01-30 23:31

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1458845)
This is exactly what I want.. But I want it via ssh over USB... Through wifi it work perfectly..

youll need a driver or module i take it? windows uses ndis, am guessing whats the android equivalent.

maybe this

http://raspberrypi.stackexchange.com...-rpi-using-usb

the Jolla would obviously be the raspberry pi, connected in dev mode, and the android is set in how that link says

thedead1440 2015-01-31 08:01

Re: Connect Jolla to android tablet, is it possible?
 
Hmm I wonder if reverse tethering following this guide is doable: http://forum.xda-developers.com/show....php?t=2287494

aegis 2015-01-31 10:51

Re: Connect Jolla to android tablet, is it possible?
 
Does anyone know how the mtp support is implemented in Sailfish?

I'm presuming it is libmtp http://libmtp.sourceforge.net/

Can it initiate a connection and browse an attached device? Does it need one of the file manager developers to add support? Does Jolla need to change the gallery app to browse cameras?

Schturman 2015-01-31 11:29

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by m4r0v3r (Post 1458954)
youll need a driver or module i take it? windows uses ndis, am guessing whats the android equivalent.

maybe this

http://raspberrypi.stackexchange.com...-rpi-using-usb

the Jolla would obviously be the raspberry pi, connected in dev mode, and the android is set in how that link says

Tried this...
1. When I go to "Tethering and Mobile hotspot>USB tethering" in my tablet - USB tethering is not active and I can't check it even my jolla already connected to table. It just show me "No usb devices connected"
2. I can find this "/etc/network/interfaces" in the tablet for editing like explained in your link.

But I found this file: /system/etc/dhcpcd/dhcpcd.conf
with this content:
Code:

# dhcpcd configuration for Android Wi-Fi interface
# See dhcpcd.conf(5) for details.

# Disable solicitation of IPv6 Router Advertisements
noipv6rs

interface wlan0
# dhcpcd-run-hooks uses these options.
option subnet_mask, routers, domain_name_servers, interface_mtu

Maybe here I can edit something ?

aegis 2015-01-31 12:12

Re: Connect Jolla to android tablet, is it possible?
 
Hmm, just tried connecting my Jolla to my Android tablet. It popped up asking me which of 3 apps to use, Google+ camera import, Photo Mate R2, Sony's Xperia transfer.

The first two sit there and do nothing. The third is for migrating from an old phone to a new one.

Next I attached my Olympus OM-D to my Jolla - nothing. The camera usually asks if you want mtp, mass storage, print...

Next I attached the camera to my tablet. The camera asked mtp etc, I selected mtp. The tablet asked which of the three apps again. Photo Mate selected and all my images on the camera pop up, import great and I've full editing capabilities.

So, no working mtp/ptp between my Jolla and camera, no exfat.

Both android and my Mac support cable connections. Conclusion: if you're a photographer, leave the Jolla at home. Take an Android phone/tablet.

Now that they've killed exFAT support they really need to fix mtp/ptp.

juiceme 2015-01-31 14:04

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by aegis (Post 1459008)
Next I attached my Olympus OM-D to my Jolla - nothing. The camera usually asks if you want mtp, mass storage, print...

So, no working mtp/ptp between my Jolla and camera, no exfat.

Both android and my Mac support cable connections. Conclusion: if you're a photographer, leave the Jolla at home. Take an Android phone/tablet.

Now that they've killed exFAT support they really need to fix mtp/ptp.

As it happens, you need to be USB host to connect to an USB slave device; there is no USB host mode in the Jolla phone.
I am hoping that host mode will be available in the tablet, though since it is more customary to use it there.

Schturman 2015-01-31 14:53

Re: Connect Jolla to android tablet, is it possible?
 
And how I can check "v" in Usb tethering on my tablet ? It possible somehow ? My tablet rooted.

juiceme 2015-01-31 16:15

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1459045)
And how I can check "v" in Usb tethering on my tablet ? It possible somehow ? My tablet rooted.

No idea what that means. I am a programmer, not an user! :)

You might want to go to console and do "lsmod".
the module you want could be called g_ether, perhaps...

Schturman 2015-01-31 16:30

Re: Connect Jolla to android tablet, is it possible?
 
tried "lsmod" and got: /proc/modules No such files or directories :D

juiceme 2015-01-31 17:07

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1459064)
tried "lsmod" and got: /proc/modules No such files or directories :D

Hmm, that's what you get with incorrectly composed OS :(
Some androids are like that, parts of the system are missing.

Schturman 2015-01-31 17:10

Re: Connect Jolla to android tablet, is it possible?
 
Intresting... Can we will do this ssh over usb connection between Jolla tablet and Jolla phone ?

juiceme 2015-01-31 17:16

Re: Connect Jolla to android tablet, is it possible?
 
Quote:

Originally Posted by Schturman (Post 1459069)
Intresting... Can we will do this ssh over usb connection between Jolla tablet and Jolla phone ?

I sure hope so.

There's just one requirement, and that is that the Jolla Tablet will have USB Host Mode possibility.

USB devices come in 3 kind of categories;
1. Device can only act as slave device (like mouse or keyboard)
2. Device can only act as host device (like a PC computer)
3. Device can act as both Host and slave (like N900)

Most phones are only category 1. Some tablets can be like 3.

juiceme 2015-01-31 20:34

Re: Connect Jolla to android tablet, is it possible?
 
What I forgot to say; whether a device belongs to category 1, 2 or 3 above depends on 2 things in the HW;
- what operating modes the used chipset supports
- how the USB chip is wired to the connector

Many devices have such an USB chipset that it supports both slave and master modes, but it is wired so that it cannot be safely set to host mode. The reason for this is that it needs to provide operating current to the slave device, and some needed components are missing.
A good example is N9; in theory you could set it to Host Mode, but doing so you could potentially damage the charging circuity in the device.


All times are GMT. The time now is 09:41.

vBulletin® Version 3.8.8