tedsalmon / BlueBus

A Bluetooth module for vehicles equipped with I-Bus
Other
168 stars 41 forks source link

Question: Navigation messages on screen #144

Open Seilafeh opened 1 year ago

Seilafeh commented 1 year ago

Hi, is it planed to display navigation prompts e.g. Google Maps on the OEM screen via Bluetooth? Including a little Google maps feature like an arrow or "turn left in 200m" would be a huge improvement in my opinion. I'm not a programmer but there seem to be protocols for this since you can get this kind of information on your SmartWatch or Xiaomi MiBand.

Greetings :-)

tedsalmon commented 1 year ago

Hi, is it planed to display navigation prompts e.g. Google Maps on the OEM screen via Bluetooth? Including a little Google maps feature like an arrow or "turn left in 200m" would be a huge improvement in my opinion. I'm not a programmer but there seem to be protocols for this since you can get this kind of information on your SmartWatch or Xiaomi MiBand.

Greetings :-)

I would love to do this, but I am struggling to find the APIs to achieve it. In fact, this is the main reason I want to create an app and make use of BLE. Alas, I must dig deeper.

Seilafeh commented 1 year ago

I did some research. I am no programmer but tried my best to find a solution. Here are my findings:

An app will be required

The app needs notification access

The Google maps notification needs to be fetched by the app (could also be done with any other notification)

The app needs to send the maps data to the bluebus

Bluebus needs to display the last information and update it whenever there is an update, but keep displaying it when not.

The Google maps push notification includes ETA, distance left, distance until next turn and direction of turn.

I hope it helps :-)

Keff789 commented 1 year ago

Yea that is maybe a great idee. To have a BlueBus Android App that fetches Notifications, then we also could show incoming Messenger data (which was a request at one point i think).

There is the NotificationListenerService (https://is.gd/5yKS7p) that maybe should do the trick :)

nabucho commented 1 year ago

Hi, just curious here - if you have a phone holder on a vent - the screen of the phone is way bigger than headunit, and you can have all the UI for maps and Android Car Mode with big buttons just there on the dash. Does this not work well enough? (It does for me, but I am trying to understand value, apart from having comprehensive support of whatever can be supported). Also, for navigation - you cannot display arrows, just some text information - cannot imagine it would be safe to try to read the text navigation info on that small screen. And the text "turn left in 20m" would be inaccurate in few seconds as you move, not sure you would be getting updated notifications every second.

I am trying to understand. If Android developers out there can make the stream of notifications work as a POC without getting the data pushed to BB yet, just on a phone, we can look at processing and displaying on the screen.

Keff789 commented 1 year ago

I dont always have my Phone on the Vent so in that case it would be nice to have the information. Also as i am aware since november 2022 andoird car on the phone is almost dead, you can just use google maps with the drive assistant bull.

Also the 16:9 navi unit is able to indicate that a turn is approching by showing the meteres to the turn in the instrument cluster, but that would be impossible to emulate correct?

nabucho commented 1 year ago

To me the biggest question is, what data can you capture on the phone, if you could get this info from the "notifications" the apps send to notification system, if they send them often enough etc. But that is a task for an Android developer to bite into.