Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real life using #4

Open
jctim opened this issue Aug 19, 2019 · 13 comments
Open

Real life using #4

jctim opened this issue Aug 19, 2019 · 13 comments

Comments

@jctim
Copy link

jctim commented Aug 19, 2019

Hi!
I’m very impressed of your work, thanks for creating this repo.
And I was able to create very simple “dashboard” interface using SNEG+ API, but stuck thinking what could be done more.

So maybe you have some real-life examples of your usage of this psakey simulator? :)

And is it possible to propagate an Internet connection from rpi-as-a-psakey to the headunit itself? (my rpi is connecting to my iPhone’s hotspot)

And thank you in advance

@Th30wl
Copy link

Th30wl commented Aug 19, 2019

Hi, @jctim

Any chance you could share your dashboard on GitHub? That would be a good starting point for anyone willing to extend it.

@Mwyann Mwyann mentioned this issue May 24, 2020
@wackou72
Copy link

Hello @jctim and @Mwyann
Have you some dashboard to share ? It would be really interesting to see what can be done.
Thank you so much !

@Mwyann
Copy link
Owner

Mwyann commented Jul 15, 2020

I recently bought an OBD2 bluetooth adapter, and I might try to visualize some data (RPM, fuel consumption, etc...) on the SMEG. Just for fun of course ;)

@wackou72
Copy link

This will be displayed on a smartphone ?
Let us know :)

@tilaktilak
Copy link

Hi guys,
Just passing by.
First of all, this is great work ! Congrats !!

Speaking of real-life usage, today I thought I found the trick for screen mirroring (aka MirrorLink / CarPlay ...) with my non-mirrorlink compatible android phone :
I downloaded an app on my phone that cast the screen to an http server and I used the car web browser to display my screen.
Works great, but the problem is : As soon as the car start moving, the web browser is disabled for safety reasons.

So I was thinking, thanks to psakey :

  • An app on the phone cast the screen to an http page
  • The RPI redirect to the http page
  • The connected app on the car display the phone screen.

What do you guys think ? :-) @Mwyann @bousqi
And question : are the connected apps available while driving ?

Cheers,

Pierre.

@Mwyann
Copy link
Owner

Mwyann commented Dec 4, 2020

@tilaktilak

Hi Pierre,

Thanks for your message. As you probably know, SMEG+ isn't compatible with MirrorLink / CarPlay either, so that's not an option for both parties ;-)

The connected apps are still available while driving, for the simple reason that it was designed for that! :-) (Coyote, ViaMichelin, etc). The only thing that's needed is indeed an HTTP page which can support the picture's upload, or even an FTP server to put the files in, and some sort of HTML or PHP page which will refresh the image once in a while. Obviously, the phone will have to communicate with the RPi somehow, maybe by making the RPi connect to the phone's wifi hotspot for example (the other way around will make the phone lose its Internet access, which is probably unpleasant).

I must warn you though, that the browser is not fast at all, and the refresh rate will be quite low (maybe one frame per 5 seconds, which is like 0.2 FPS). Testing will be needed to finetune the speed at which you can refresh without issues. Also, you'd have to make use of some Javascript to smooth the refresh out too, not just a basic "auto reload", or you'll have a "flickering" display (black screens between reloads).

That's a usecase I was also thinking about, so if I get some free time I may be interested in implement it, but if you want to give it a go, I'd be happy to test it and assist you in making it. (For example, having Maps/Waze instructions on the SMEG+ rather than having the phone hooked up next to the dashboard ; and it doesn't need superfast refresh speeds either).

Quick bonus, one of my custom app which makes the RPi connect to a Bluetooth OBD2 adaptor, periodically reads some data and displays them in real-time with continuous graphs (configurable while driving) : https://youtu.be/RiFUbXsVagI

Yann

@tilaktilak
Copy link

Cool !
Just ordered a RPI, let see what happen :-) !
I'm hoping to have the same framerate as the one I had with the web browser (I would say around 1fps).
I have a SMEG IV2+, might be a bit different from yours, hopefully your setup works on mine.

The connected apps are still available while driving, for the simple reason that it was designed for that! :-) (Coyote, ViaMichelin, etc). The only thing that's needed is indeed an HTTP page which can support the picture's upload, or even an FTP server to put the files in, and some sort of HTML or PHP page which will refresh the image once in a while. Obviously, the phone will have to communicate with the RPi somehow, maybe by making the RPi connect to the phone's wifi hotspot for example (the other way around will make the phone lose its Internet access, which is probably unpleasant).

From what I understand the connected apps screen just connect to a webpage (localhost:8080) so if we use apache as a reverse proxy we might be able to redirect to any page of our choice right ? And maybe mix it with something like this : https://github.com/albfan/miraclecast

@sgozz
Copy link

sgozz commented Dec 6, 2020

Quick bonus, one of my custom app which makes the RPi connect to a Bluetooth OBD2 adaptor, periodically reads some data and displays them in real-time with continuous graphs (configurable while driving) : https://youtu.be/RiFUbXsVagI

Wow! Are you planning to share this app?

@Mwyann
Copy link
Owner

Mwyann commented Dec 6, 2020

From what I understand the connected apps screen just connect to a webpage (localhost:8080) so if we use apache as a reverse proxy we might be able to redirect to any page of our choice right ? And maybe mix it with something like this : https://github.com/albfan/miraclecast

That's basically what this project does: it mimics the original key by faking the VID:PID, then creates a webserver that spoofs the original service URL to serve whatever file we want (the Hello World page for example).

@Mwyann
Copy link
Owner

Mwyann commented Dec 6, 2020

Wow! Are you planning to share this app?

I might, but I wrote this with only the adaptor I got in mind, it's not an universal solution at all, so that'd be provided "as-is", and would certainly need some fixing and tweaking to make it work with any other OBD2 adaptor. Tell me if you're not afraid of that, and I would try to polish my current setup and post it on the repository.

@sgozz
Copy link

sgozz commented Dec 6, 2020

I might, but I wrote this with only the adaptor I got in mind, it's not an universal solution at all, so that'd be provided "as-is", and would certainly need some fixing and tweaking to make it work with any other OBD2 adaptor. Tell me if you're not afraid of that, and I would try to polish my current setup and post it on the repository.

Hehe, i won't be afraid. I have an old OBD2 adaptor and i'm not sure it will be safe to leave it always connected to the car. Maybe i will consider to buy your same model.
I'm curious to see your app also to use it as model to display other info taken from a smartphone ( navigation? whatzapp? spotify?)...

@Mwyann
Copy link
Owner

Mwyann commented Dec 6, 2020

Hehe, i won't be afraid. I have an old OBD2 adaptor and i'm not sure it will be safe to leave it always connected to the car. Maybe i will consider to buy your same model.
I'm curious to see your app also to use it as model to display other info taken from a smartphone ( navigation? whatzapp? spotify?)...

Here is the adaptor I'm using: https://www.amazon.fr/gp/product/B07XG3JPG7
I'm leaving the adaptor connected to the car all the time, but I switch it on only when I want to use it. For that I also bought this so I have access to the adaptor without having to dismount the vehicle's cockpit every time: https://www.amazon.fr/gp/product/B074Z4GGM5

I'll post the files in the next few days.

@Mwyann
Copy link
Owner

Mwyann commented Nov 1, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants