maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   sending files over wi-fi (https://talk.maemo.org/showthread.php?t=47599)

andy_con 2010-03-17 12:44

sending files over wi-fi
 
Is there an app that will allow for two n900's to send and receive files over wi-fi?

so instead of using bluetooth using wi-fi, wi-fi has better range and is probably faster...

wheatbisc 2010-03-17 12:56

Re: sending files over wi-fi
 
I dont know if there is an easier or more end-user friendly app or solution for that, but you can use WinSCP, follow these steps: http://forums.internettablettalk.com...ad.php?t=41422
You'll find your files under /home/user/MyDocs
In that folder: /.videos or /.sounds or /.images. etc.
Hope that it helps :)

EDIT: Btw, just make sure you don't edit or remove any of the files you dont know of, and you'll be fine ;)

quipper8 2010-03-17 12:57

Re: sending files over wi-fi
 
I think there is a plugin for link local xmpp, but have not tested it to see how it works and or if it supports file transfer.

other than that i guess if they are both under your control you could scp files from one to the other, couldnt you?

quipper8 2010-03-17 12:58

Re: sending files over wi-fi
 
Quote:

Originally Posted by wheatbisc (Post 570388)
I dont know if there is an easier or more end-user friendly app or solution for that, but you can use WinSCP, follow these steps: http://forums.internettablettalk.com...ad.php?t=41422
You'll find your files under /home/user/MyDocs
In that folder: /.videos or /.sounds or /.images. etc.
Hope that it helps :)

EDIT: Btw, just make sure you don't edit or remove any of the files you dont know of, and you'll be fine ;)

i think he was saying n900<--->n900

not Windows---->n900

benny1967 2010-03-17 12:59

Re: sending files over wi-fi
 
i do it all using scp (in the openSSH package), but i agree it would be cool to have a somewhat more user friendly solution à la petrovich for actually sending the files. i'm fine with the command line, but i noticed the looks in peoples' faces when i copy files to their devices using those cryptic commands in the white window they'd never really used before. ;)

wheatbisc 2010-03-17 13:03

Re: sending files over wi-fi
 
Quote:

Originally Posted by quipper8 (Post 570391)
i think he was saying n900<--->n900

not Windows---->n900

ups, sorry. Went too fast on replying :P

andy_con 2010-03-17 21:58

Re: sending files over wi-fi
 
so there is a way but its not easy and there isnt app in general that can do it

Fargus 2010-03-17 22:05

Re: sending files over wi-fi
 
If there was an application for this I assume the best route would be to create an Ad-Hoc peer to peer connection between the handsets and use normal transfer protocols? Does anyone know if the N900 supports Ad-Hoc mode under WiFi or only Infrastructure?

geneven 2010-03-17 22:17

Re: sending files over wi-fi
 
I think if you look in the settings somewhere you'll see ad-hoc listed.

benny1967 2010-03-17 22:30

Re: sending files over wi-fi
 
ad-hoc may be a nice add-on for such an application, but chances are that if you're sitting on a table with another n900 user and both of you are on wifi, you're on the same network anyway.

the main issue i see with scp as it is is the user interface. there should be a way to:
  • temporarily start an SSH server on the receiving end and advertise it via avahi
  • select a file on the sending device, choose "share" and select "wifi" => name of other N900 as visible via avahi
  • have the receiving device ask if the owner wants to accept the transfer and where to save the file
  • shut down the SSH server again

starting ssh server and shutting it down could be optional... some users might want to keep the server running, anyway. it should still force some user interaction whenever an incoming scp is detected (which ssh doesn't normally do).

a way to achieve this level of control on the receiving side would be to hard-code the path in the scp-send sharing plug-in (like: always copy to /home/user/MyDocs/.receivedviascp), monitor this directory on the receiving device (by the same application that starts/kills the ssh server) and move any incoming file to a directory chosen by the user as soon as the transfer was completed.

fragos 2010-03-17 22:56

Re: sending files over wi-fi
 
I run Ubuntu on my desktop and if I set a folder for sharing it can be seen on my N810 over the USB connection. Clearly some form of network file access is built in th the N810. Question is it Samba or NFS. I regularly mount NFS shares from my laptop on my desktop with WiFi. I haven't quite figured out NFS on the N810 though.

quipper8 2010-03-17 22:59

Re: sending files over wi-fi
 
I also noticed there is socat available...

You could just tell them to run socat and listen on a specific port and you can send anything you want to them.

Maybe somebody could write a quick qt gui with a predetermined port, an nmap scan for that port on opening, and prompt for filename and open socket on port with socat.

socat would eliminate the need for a running ssh server

Wish I had more time :)

Fargus 2010-03-17 22:59

Re: sending files over wi-fi
 
Quote:

Originally Posted by benny1967 (Post 571195)
ad-hoc may be a nice add-on for such an application, but chances are that if you're sitting on a table with another n900 user and both of you are on wifi, you're on the same network anyway.
...

There are lots of situations where this wouldn't be the case but I seem to recollect that infrastructure mode goes up to the full 54mbps but Ad-Hoc mode only required to run at 11mbps so depending upong the implimentation (Assuming ad-hoc is possible) then a big drop in transfer speed might be experienced. However, as Bluetooth is aboiut 3mbps this is still a substantial increase.

quipper8 2010-03-17 23:08

Re: sending files over wi-fi
 
Quote:

Originally Posted by quipper8 (Post 571232)
I also noticed there is socat available...

You could just tell them to run socat and listen on a specific port and you can send anything you want to them.

Maybe somebody could write a quick qt gui with a predetermined port, an nmap scan for that port on opening, and prompt for filename and open socket on port with socat.

socat would eliminate the need for a running ssh server

Wish I had more time :)

Googling for something similar, I found

http://lanshark.29a.ch/en/About.html

Looks like a simple little program, source available and it looks like python

quipper8 2010-03-18 00:08

Re: sending files over wi-fi
 
just tried socat from n900 to scratchbox running on ubuntu and it worked fine

on receiver run

socat TCP-LISTEN:<some high port number> /home/user/MyDocs/<filename to receive>

on sender run

socat TCP:<ip address of recipient>:<same high port number> <path and name of file to send>

If you get a littl crazier I think you could probably pipe into socat to send found files or tar output, etc


All times are GMT. The time now is 11:39.

vBulletin® Version 3.8.8