Traveling with my pi! No keyboard or internet how to setup ?
-
Actually, that's a question I would be interested to have answered too :-)
I built my new Rpi3B+ as an emulation center, that I will be able to carry with me in a small bag during vacations etc (TVs with HDMI are everywhere).
Even though I bought a 20cm keyboard/touchpad to fit in that specific bag, it would be nice to know that I can use my phone as an input device. That solution would have to be over BT to make sense - Wifi solutions require the Pi to be already connected to the network, which means that a keyboard has to be available on-site at first to enter the password (the BT can be paired once at home and be done with it).
-
If you have an ethernet cord you should be able to connect. Enable SSH with the controller in rasp-config.
I have tried to use a bluetooth app and while it should be very possible, I couldn't accomplish syncing 9/10 times, let alone sending keyboard commands.
I had a similarly different situation. Where my 50ft Ethernet cable was cut, and my desktop computer has a wireless card but it has no antennae. I used an old laptop screen with the wireless auxiliary antennae connectors to plug into the card. And now I'm installing retropie on ubuntu since about a half hour ago.
Actually my router doesn't allow Internet connection sharing, I didn't even know that was a thing. To not allow... not a thing.
I thought it was because the newest version of android for the longest time.Oh! if you use internet connection sharing on your phone. To do so on Lollipop-Oreo you must enable Developer mode by clicking on the build number in [settings; system; about phone] about 15 times.
Then while connected with the RaspberryPi through USB to Android. Enter "Developer options" on the phone; and scroll down to Usb connection type; there you will see media sharing, charge only, and RNDIS remote ethernet! Ethernet with zero config. -
i tried only Bluetooth module with the turbobit account on that .
WiFi seems tough.
is it? -
@Efriim said in Traveling with my pi! No keyboard or internet how to setup ?:
Then while connected with the RaspberryPi through USB to Android. Enter "Developer options" on the phone; and scroll down to Usb connection type; there you will see media sharing, charge only, and RNDIS remote ethernet! Ethernet with zero config.
Thanks for that piece of info - after having my latest phone for over a year, I only came across this setting yesterday by chance. Even though I didn't pay any attention then, I recalled it as soon as you mentioned it.
-
@josephxx
You're welcome, on older android 2.x - 4.x you could share internet using the usb tether and if it was locked out then you could usually enable tether manually using an app like notification bar hotkeys, or cyanogenmod. Around 4.0 I guess alot of phone service providers were somehow trying to sell that to customers so it got locked out. The router needs to have Internet connection sharing not disabled, whatever that means. -
Cool! But can I use my phone as a keyboard... Please say yes :)
-
Yes and no. You could setup some sort of serial device to root into the pi over the usb-ethernet(RNDIS).
The significant feature is that the phone can share its internet connection. Then you should be able to use Connectbot to SSH into the Pi. Then you just runraspi-config
.
*Connectbot app -
@trekdrop Actually you can do this without sharing the internet connection, I was thinking laterally from a different perspective.
You should be able to do this just by enabling tether in the wireless settings. Then to find the IP address of the Pi to enter into Connectbot is another thing. I guess you could use the Retropie Show IP, but sometimes a lot of the time it gets cut off in the small dialog box. Also you may have to wait for the android to assign an IP address, which it might not do easily unless you share an internet connection, 5G or WiFi. If your phoneservice provider/branded phone, doesn't allow you to share internet and tether, then you can enable it in Developer settings.
-
No I can't because I can't activate the WiFi in the pi menu. I need to go to the raspberry pi menu to activate the WiFi. And I can't do that with a controller so I am stuck before I have WiFi activated.
But maybe you or someone can simply help me :)
It's maybe to much to ask. But can you upload a retropi IMG that is clean only activated the WiFi?
I am here in Indonesia and have WiFi on my laptop so I can download that one. And try from there on. It would be really nice.
Torrent or upload doesn't care.
😀
-
@trekdrop
I'll just try to start over, you won't need wifi. Only your phone and the charging cable for your phone.Charge your phone plugging it into the Raspberry Pi.
Turn on the tether setting on your phone.
Use your PS4 controller to to navigate EmulationStation and find "Show IP".
Use the Android App "ConnectBot" and create an ssh connection to the tethered IP address, entering the username "pi" and host "ip.address".
When you finally connect to the ssh, typesudo raspi-config
into the ConnectBot SSH Terminal.
Setup your wifi and localization using your phone. -
@trekdrop
When you navigate to "Show IP" on the raspberry pi (hopefully your controller doesnt use the same charging cable <_<).
Wait a moment for the Android to assign the RNDIS USB ip address. And try "Show IP" again hopefully it will show you "USB0" connection IP address then. -
After you setup the wifi it should be a snap to connect to the pi using your laptop, then you can use a ssh with a keyboard and setup samba and file transfer.
-
@trekdrop
Tell me how far you are along, and I will try to give better directions.That was USB tether option, like tether-ball. Not the wireless tether.
-
Dude! Thank you so much! Really, it's also nice I learned a new trick. It's 11 pm here so I need to sleep. Tomorrow morning I will try it and let you know. Really again, thank you so much. Good tutorial!
-
@trekdrop
You're welcome, sleep well. Don't forget to make friends to play video games with tomorrow. -
I really needed to try it..
Bezig met verbinden naar 192.168.42.83:22 via ssh
Verbinding verloren
failed to connect to /192.168.42.83 (port 22) from /:: (port 43
406): connect failed: ETIMEDOUT (Connection timed out)
connect failed: ETIMEDOUT (Connection timed out) -
@trekdrop
That sounds about right. However I think you have acquired IP address of your phone or possibly the IP address was reassigned by android. The IP address is randomly set it will be in the range of 192.168.42.* with subnet mask 255.255.255.0 so it could be 1-255 probably high 84-255 you are close, I will see if there isn't a way to get the IP address out of android, or at least set the IP address.If you download LanDroid (good free app) and use the ARP & ND Cache, it will tell you the IP address that you need to connect.
-
Woke up this morning and I tried it, no luck. Exactly the massage. Connecting lost, I probably am doing something wrong here.
It keeps saying. Host disconnect!
-
@trekdrop Have you used LanDroid to find the IP address?
You have got the 192.168.42.___ as that is the IP assignment that Android uses. -
Can you see the screenshots?
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.