Rootinator
Posts: 2
Joined: Sat Jul 13, 2019 3:21 pm

Mirror the screen of the smartphone

Sat Jul 13, 2019 3:37 pm

Hello,

I would like to mirror the screen of my smartphone on the Raspberry and operate it on the Raspberry.

Also, all audio will be played on the Raspberry.

I have a touchscreen connected.

For this I would like to use Bluetooth as a transfer solution, otherwise it is also USB.

Which software is required and how to set it up?

On the Raspberry is later after the configuration no network available!

Andyroo
Posts: 3255
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Mirror the screen of the smartphone

Sat Jul 13, 2019 6:23 pm

Welcome to the forum,

If you have an Apple 'phone forget it :cry: - their 'walled garden' only allows display of the 'phone screen and no remote control.

If you have an Android 'phone you could try https://pimylifeup.com/raspberry-pi-chromecast/ BUT it is WiFi and not Bluetooth

For remote control of the 'phone you may be best to look on the Play Store and see if any have a Raspberry client.

To use the Pi as a Bluetooth speaker have a look https://www.raspberrypi.org/forums/view ... p?t=235519 NOTE this was Stretch and not Buster

As for your WiFi issue - best thing is to open a new topic with a different title that covers the WiFi issue and explain what has happened and what version of the Pi and OS you are using. The best forum would be the troubleshooting one https://www.raspberrypi.org/forums/viewforum.php?f=28
Need Pi spray - these things are breeding in my house...

User avatar
Douglas6
Posts: 4668
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Mirror the screen of the smartphone

Sat Jul 13, 2019 10:13 pm

Please don't use that guide for a Bluetooth speaker on any recent version of Raspbian.

As for video over Bluetooth, that dog won't hunt.

Andyroo
Posts: 3255
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Mirror the screen of the smartphone

Sat Jul 13, 2019 10:16 pm

Douglas6 wrote:
Sat Jul 13, 2019 10:13 pm
Please don't use that guide for a Bluetooth speaker on any recent version of Raspbian.

As for video over Bluetooth, that dog won't hunt.
Do you have a different one then?
Need Pi spray - these things are breeding in my house...

User avatar
Douglas6
Posts: 4668
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Mirror the screen of the smartphone

Sat Jul 13, 2019 10:50 pm

Andyroo wrote:
Sat Jul 13, 2019 10:16 pm
Do you have a different one then?
It's gotten so easy, there's really no need for a guide. Start with Raspbian straight out of the box:
1. Use the Bluetooth icon on the desktop to pair your Bluetooth speaker.
2. Right click on the audio icon and select your Bluetooth speaker.

Done and done.

Andyroo
Posts: 3255
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Mirror the screen of the smartphone

Sat Jul 13, 2019 10:53 pm

But some of us use Lite :lol: :roll:
Need Pi spray - these things are breeding in my house...

User avatar
Douglas6
Posts: 4668
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Mirror the screen of the smartphone

Sat Jul 13, 2019 11:07 pm

Ok.
1. Use bluetoothctl to pair your Bluetooth speaker.
2. Create a ~/.asoundrc file and enter the following:

Code: Select all

defaults.bluealsa.service "org.bluealsa"
defaults.bluealsa.device "XX:XX:XX:XX:XX:XX"
defaults.bluealsa.profile "a2dp"
defaults.bluealsa.delay 10000
Use your speaker's bdaddr. Save the file. (I don't think a reboot is required, but it never hurts.)

Done and done.

Andyroo
Posts: 3255
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Mirror the screen of the smartphone

Sun Jul 14, 2019 12:16 am

Ta muchly - bookmarked for post decorating :lol:
Need Pi spray - these things are breeding in my house...

Rootinator
Posts: 2
Joined: Sat Jul 13, 2019 3:21 pm

Re: Mirror the screen of the smartphone

Sun Jul 14, 2019 12:12 pm

Thanks for all the answers!
Andyroo wrote:
Sat Jul 13, 2019 6:23 pm
Welcome to the forum,
Thank you for the greetings :)
Andyroo wrote:
Sat Jul 13, 2019 6:23 pm
If you have an Apple 'phone forget it :cry: - their 'walled garden' only allows display of the 'phone screen and no remote control.

If you have an Android 'phone you could try https://pimylifeup.com/raspberry-pi-chromecast/ BUT it is WiFi and not Bluetooth

For remote control of the 'phone you may be best to look on the Play Store and see if any have a Raspberry client.
This guide describes how the Raspberry acts as a kind of Chromecast. As I have tested, not the whole screen is mirrored 1:1, but only a video or picture.

But I want to mirror the entire screen of my Android phone 1:1 on the Raspberry and operate there, including audio signals.

So to say something like VNC or RDP without a network (the Raspberry is not connected to a router / LAN switch later!).

The connection from the Android phone to the Raspberry should take place exclusively via USB or Bluetooth.

I do not want Wi-Fi, because my smartphone no longer has an internet connection.



I hope you understand what I mean :)

Andyroo
Posts: 3255
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Mirror the screen of the smartphone

Sun Jul 14, 2019 12:38 pm

You do not need the internet to use WiFi - you could set the Pi up as an access point and connect the phone to that https://www.raspberrypi.org/documentati ... s-point.md

Most of the remote control software is designed for PCs with Macs a poor second and Linux way down the list and I've never seen any remote control software use Bluetooth - the only USB ones I have seen was for a specific Windows CE handheld and that was a right pain as you could not enlarge the screen.

I've no access now to the Play Store (iPhone user) but have a look for the app 'VNC Server' by a company called One Cent (if you have rooted your phone) or VMLite by VMLite Corp (for a none rooted phone)

You can then use the VNC client from Real VNC on the Pi to give you control.

Other than that my memory fails me (too many years since I corporately used Android phones).
Need Pi spray - these things are breeding in my house...

fruitoftheloom
Posts: 19767
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Mirror the screen of the smartphone

Sun Jul 14, 2019 12:51 pm

Rootinator wrote:
Sat Jul 13, 2019 3:37 pm
Hello,

I would like to mirror the screen of my smartphone on the Raspberry and operate it on the Raspberry.

Also, all audio will be played on the Raspberry.

I have a touchscreen connected.

For this I would like to use Bluetooth as a transfer solution, otherwise it is also USB.

Which software is required and how to set it up?

On the Raspberry is later after the configuration no network available!

You should be able to use USB Connection, see:

https://www.linuxuprising.com/2019/03/c ... r.html?m=1
adieu

My other Computer is an Asus CS10 ChromeBit running Chrome Operating System.
HP Envy 4500 Wireless Printer supported by HPLIP software in Raspbian Buster.
Raspberry Pi Model 2B v1.1

Return to “General discussion”