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

Wireless AA over CMU hosted access point #172

Open
RobsonMi opened this issue Feb 9, 2020 · 6 comments
Open

Wireless AA over CMU hosted access point #172

RobsonMi opened this issue Feb 9, 2020 · 6 comments

Comments

@RobsonMi
Copy link

RobsonMi commented Feb 9, 2020

Not entirely sure if it's an issue or intended behaviour but while wireless AA works with hotspot provided by phone it won't connect if hotspot is provided by CMU using AIO AP settings. I was able to successfully connect my phone to this AP but using "Start server..." in AA application on phone yielded no result. Can this be implemented in future?

@RobsonMi
Copy link
Author

Okay, I see that last year auto detection of phone IP was added with netstat function and some regex. It overwrites the IP in headunit.json which I assume is later used to connect to phone. Is there any clean way to hardcode phone IP at this moment?

@RobsonMi
Copy link
Author

RobsonMi commented Feb 26, 2020

Okay. I tried replacing
PHONE_IP_ADDRESS=\netstat -rn|awk '$2~/192.168.43.[0-9]{1,3}/ {print $2}'`withPHONE_IP_ADDRESS=`arp -an|awk '$2~/192.168.53.[0-9]{1,3}/ {print $2}'`inmazda/installer/config/androidauto/data_persist/dev/bin/headunit-wrapper`

But it didn't seem to do the trick although arp -an returns proper list of devices connected to wifi AP. Ideas anyone?

@Altern1ty
Copy link

Would love to see this feature as putting your phone into wifi hotspot every time is a pain and having it automatically connect to the car AP would be great.

@silverchris
Copy link

I am looking into this, as https://github.com/opencardev/openauto/blob/crankshaft-ng/src/btservice/ looks like they have managed to implement it, so the Android Auto communication part has been solved.

I have some code in testing that sets up the needed bluetooth service, and I am working on getting it to the part of actually communicating the access point name and settings to AA on the phone.

The other major change is I believe the way AA works is it will open a connection to the head unit, which is the opposite of the way we do it now.

@silverchris
Copy link

I have a proof of concept of this working, I think :D

@puma3
Copy link

puma3 commented Dec 15, 2020

@silverchris can you share some of the steps you followed?

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

4 participants