OldPCGuy
Posts: 83
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Pi Access with Tablet/Smart Phone

Tue Feb 13, 2018 12:06 am

What is the simplest way to connect to a Pi ZeroW (running headless, collecting data) and display that data on a smart phone or tablet and not require an existing network/router. Essentially peer to peer.

In my limit research I believe setting up the Pi as an access point or Ad-hoc network are two methods. Would SSH into the Pi be a solution, I hate having to type a bunch of commands.

User avatar
topguy
Posts: 5906
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Pi Access with Tablet/Smart Phone

Tue Feb 13, 2018 12:16 am

OldPCGuy wrote:
Tue Feb 13, 2018 12:06 am
Would SSH into the Pi be a solution,
You mean for setting it up or using it afterwards ?

The *simplest* way is to connect to an existing wifi-router, but yes both ad-hoc or Pi as an AP will probably work. I've seen more guides for the AP solution.

OldPCGuy
Posts: 83
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Pi Access with Tablet/Smart Phone

Tue Feb 13, 2018 12:44 am

topguy wrote:
Tue Feb 13, 2018 12:16 am
OldPCGuy wrote:
Tue Feb 13, 2018 12:06 am
Would SSH into the Pi be a solution,
You mean for setting it up or using it afterwards ?
Yes, afterwards to view the collected data.

User avatar
Lob0426
Posts: 2198
Joined: Fri Aug 05, 2011 4:30 pm
Location: Susanville CA.
Contact: Website

Re: Pi Access with Tablet/Smart Phone

Tue Feb 13, 2018 4:34 am

You can use SSH to run it CLI (Command Line Interface). If you want to use it through the desktop then install xrdp and use remote desktop to get in! Then you can use the tablet or phone touchscreen. I have not tried RDP under adhoc, but it is supposed to work.
512MB version 2.0 as WordPress Server
Motorola Lapdock with Pi2B
Modded Rev 1.0 with pin headers at USB

http://rich1.dyndns.tv/
(RS)Allied ships old stock to reward its Customers for long wait!

sparkie777
Posts: 121
Joined: Tue Nov 27, 2012 4:37 am

Re: Pi Access with Tablet/Smart Phone

Tue Feb 13, 2018 4:59 am

just install

Termux - Android Apps on Google Play

on your tablet/ smartphone. This will enable an (almost) full-fledged debian apt environment (including ssh, sshd bash, vim, gawk, mutt, rsync) on your smartphone. I.e. with all the linux commands you already know from your PI.

kayel
Posts: 109
Joined: Sun May 13, 2012 4:45 am
Location: France

Re: Pi Access with Tablet/Smart Phone

Tue Feb 13, 2018 5:31 am

This works:
Make the pi a wifi access point and connect to it with the phone.
VNC serveur on the pi.
VNC viewer on the phone.

OldPCGuy
Posts: 83
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Pi Access with Tablet/Smart Phone

Sat Feb 17, 2018 2:52 pm

I've come across some examples that use Apache server on the Pi to host a web page that you access from any smart phone. In the examples there were buttons to control some LEDs on the Pi. So would it be hard to have the web page just display data from a pyton script collecting the data?

I was able to create an ad-hoc network on the Pi and connect with a smart phone. So web page hosting should work over an ad-hoc network right?

Or is there an easier way?

mattmiller
Posts: 2115
Joined: Thu Feb 05, 2015 11:25 pm

Re: Pi Access with Tablet/Smart Phone

Sat Feb 17, 2018 2:57 pm

As with anything - there is always many ways to do something but there is nothing wrong with your current approach :)

OldPCGuy
Posts: 83
Joined: Mon Jan 02, 2017 4:53 pm
Location: Detroit Michigan

Re: Pi Access with Tablet/Smart Phone

Sat Feb 17, 2018 5:05 pm

mattmiller wrote:
Sat Feb 17, 2018 2:57 pm
As with anything - there is always many ways to do something but there is nothing wrong with your current approach :)
Most examples are data/communication sent from the smart phone to the Pi, for example WiringPi . I looking to do the opposite.

I am running PIGPIO daemon with another project maybe I can use that.

User avatar
DougieLawson
Posts: 36331
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Pi Access with Tablet/Smart Phone

Sat Feb 17, 2018 10:28 pm

I use JuiceSSH https://juicessh.com which I thought was so good I paid for the upgraded version.

The only practical way to make a connection using your existing WiFi network or to run your RPi as an access point.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “General discussion”