Mwyann / psakey

Peugeot Connect Apps / Citroën Multicity Connect your way
59 stars 14 forks source link

Real life using #4

Open jctim opened 5 years ago

jctim commented 5 years ago

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 commented 5 years ago

Hi, @jctim

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

wackou72 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

tilaktilak commented 3 years ago

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 :

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

Cheers,

Pierre.

Mwyann commented 3 years ago

@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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

https://github.com/Mwyann/psakey/tree/master/obd2