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

Closes after ~5 mins (Mazda Binary) #1

Open
Naomarik opened this issue Mar 1, 2016 · 4 comments
Open

Closes after ~5 mins (Mazda Binary) #1

Naomarik opened this issue Mar 1, 2016 · 4 comments

Comments

@Naomarik
Copy link

Naomarik commented Mar 1, 2016

Seems recently you committed Fix socket closed by wrong no-data state .

I'm wondering if this solves the issue. The screen cast works brilliantly for about mins or so and just stops without warning. Rebooting the infotainment system is only thing that works for me. Does your latest commit solve this issue?

If it does, would you mind compiling another binary I can drop into my Mazda? I don't know how to compile for arm.

Thanks a ton for your work on this!

@JonesChi
Copy link
Owner

JonesChi commented Mar 1, 2016

Yes, the issue is fixed by the commit, and I will release a new version when I'm ready.

@JonesChi
Copy link
Owner

JonesChi commented Mar 8, 2016

Hi,
Here is the new version of castscreen_receiver for mazda infotainment system.
In this version, I use adb reverse instead of forward, please follow the steps to test the new version.
castscreen_mazda_20160308.tgz

Steps to try CastScreen on your infotainment system.

  1. Download and decompress the file "castscreen_mazda_20160308.tgz.tgz"
  2. Install the CastScreen(castscreen-1.0.apk) Android APP on your Android device and enable debug mode on your device
  3. Push the "adb", "cs_receiver_arm", "wait_adb_arm.sh" into "/jci/scripts" on your Mazda infotainment system
  4. Change mode of these files "# chmod 755 adb wait_adb_arm.sh cs_receiver_arm"
  5. Add "watch /jci/scripts/wait_adb_arm.sh &" into /jci/scripts/stage_wifi.sh (for auto start the castscreen reveiver)
  6. Execute "# ./wait_adb_arm.sh" or reboot
  7. Connect your Android device with USB cable
  8. On Android, launch CastScreen, change setting to H264, 800x600@160, and 1 Mbps, then input 127.0.0.1 and press input receiver, then tap Start on right-up corner
  9. Here you go

@Naomarik
Copy link
Author

Naomarik commented Mar 9, 2016

Thanks! Will give you feedback once I try it out.

@Naomarik
Copy link
Author

It's been working well so far, I did have one instance where the CastScreen app crashed and left my Mazda infotainment stuck with a frozen casting screen. I tried everything I could to get it out of it unsuccessfully.

Disconnecting/reconnecting the phone would cause CastScreen to crash again sometimes.

This is a bit unhelpful since I don't know how to reproduce nor did I have any the wifi on to SSH in. I'm wondering if the cs_receiver_arm binary has some way of killing itself if it does not get any data from the phone after a certain period; I suspect this file got caught up in a loop.

This only happened once in about 5 drives using it.

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

2 participants