2004 to 2020 Mazda 3 Forum and Mazdaspeed 3 Forums banner

Custom Applications SDK - Write and deploy your own applications

1 reading
237K views 426 replies 112 participants last post by  Sid Meyer  
#1 · (Edited)
The Custom Application SDK for the Mazda Infotainment System

It's finally coming. Instead of figuring out each application individually, I created this minimalistic micro framework and runtime that allows you to write and deploy custom applications to the Mazda Infotainment System without the hassles.

It also comes with a 1:1 simulator that allows you to run and debug your applications locally without having to deploy to the Infotainment system.

This project is currently under heavy development but hey, we got an alpha release available. There is little documentation available at this point.

Please contribute if you have the time and the energy.

We have an active Trello board running for organization:

https://trello.com/b/rBEWRDdg/alpha-sprint

If you find CMU values that actually provide meaning, please add them here:

https://docs.google.com/spreadsheets/d/1lkVUzhLEMglb7eFglne1iDiJ5vKMpaoxXKW-7bSZ6Ws/edit#gid=0

---

IF YOU USE THIS IN YOUR CAR, PLEASE MAKE SURE YOU HAVE A FIRMWARE VERSION OF V55.x OR HIGHER INSTALLED

Earlier version might be compatible but have not been tested.

---

https://github.com/flyandi/mazda-custom-application-sdk

Download the Simulator:

OSX: https://github.com/flyandi/mazda-cu...plication-sdk/releases/download/0.0.1-alpha/casdk-simulator-0.0.1-alpha-osx.zip

Win: https://github.com/flyandi/mazda-cu...ication-sdk/releases/download/0.0.1-alpha/casdk-simulator-0.0.1-alpha-win32.zip

The runtime SDK with USB installers: https://github.com/flyandi/mazda-cu...azda-custom-application-sdk/releases/download/0.0.1-alpha/casdk-alpha-0.0.2.zip - also needed for the Simulator.

---

To get started:

1) Download the runtime SDK which contains the deploy images. Copy and paste the files in deploy/install to an USB stick, plug the stick on your infotainment and reboot your Infotainment system.

2) Download the Simulator

3) Follow the tutorial in the wiki page on GitHub

4) Copy the contents of the folder sdcard to an SDCard and reboot your system.

5) Enjoy your custom applications
 

Attachments

#3 ·
The Custom Application SDK for the Mazda Infotainment System

It's finally coming. Instead of figuring out each application individually, I created this minimalistic micro framework and runtime that allows you to write and deploy custom applications to the Mazda Infotainment System without the hassles.

It also comes with a 1:1 simulator that allows you to run and debug your applications locally without having to deploy to the Infotainment system.

This project is currently under heavy development but hey, we got an alpha release available. There is little documentation available at this point.

Please contribute if you have the time and the energy.

We have an active Trello board running as well:

https://trello.com/b/rBEWRDdg/alpha-sprint

---

https://github.com/flyandi/mazda-custom-application-sdk

Download the Simulator:

OSX: https://github.com/flyandi/mazda-cu...plication-sdk/releases/download/0.0.1-alpha/casdk-simulator-0.0.1-alpha-osx.zip

Win: https://github.com/flyandi/mazda-cu...ication-sdk/releases/download/0.0.1-alpha/casdk-simulator-0.0.1-alpha-win32.zip

The runtime SDK with USB installers: https://github.com/flyandi/mazda-cu...azda-custom-application-sdk/releases/download/0.0.1-alpha/casdk-0.0.1-alpha.zip - also needed for the Simulator.

---

To get started:

1) Download the runtime SDK which contains the deploy images. Copy and paste the files in deploy/install to an USB stick, plug the stick on your infotainment and reboot your Infotainment system.

2) Download the Simulator

3) Follow the tutorial in the wiki page on GitHub

4) Copy the contents of the folder sdcard to an SDCard and reboot your system.

5) Enjoy your custom applications
Great JOB!!!!!! i'll start to test it today.
 
#6 ·
Amazing work! Very exciting to see such huge progress and what's to come.

I will be first to ask a stupid question. I am trying to load the runtime in the simulator but only get "Loading system runtime from /../mazda-custom-application-sdk/src/runtime", nothing else happens. Am I choosing the wrong directory or missing a setup step? Thanks again
 
#7 ·
The Custom Application SDK for the Mazda Infotainment System

To get started:

1) Download the runtime SDK which contains the deploy images. Copy and paste the files in deploy/install to an USB stick, plug the stick on your infotainment and reboot your Infotainment system.
The folder deploy\install from casdk-0.0.1-alpha.zip is emty.
 
#22 ·
So two bugs that I know of right now - and I am trying to fix them tonight:

1) Sometimes after recovery (when your system just went to sleep) it might stall and the screen locks up. Workaround is right now to hold down MUTE+NAV+BACK for 10s to manual reboot the system. It's something with the SD Card not mounted yet and the system trying to read from it. This will fix as soon I have implemented USB support. It's a design issue from the initial concept.

2) When you switch between apps (native and custom) the DataHandler stops working and your app doesn't receive any values anymore. I will fix this today.

Thx,

Andy
 
#24 ·
No worries - basically copy the contents of the sdcard/ folder in the release package to the root of your SD Card.

Also if it isn't obvious you need to install the proxy patch to your Infotainment system by preparing a USB stick and copy the contents of deploy/install to it. Plug in the USB stick to your Infotainment system and reboot and wait.

If there is any issues, you can use the deploy/uninstall script to remove everything.

The scripts "should" be pretty safe since there are many checks in there and really is a minor modification to the system - other than changing the opera configuration on your system.


I probably installed/removed/installed/removed .. about a 100 times and never had an problem :)
 
#25 ·
Thanks! Successfully installed runtime and got apps running smoothly in my car. Had to reboot the CMU to get it to install, but once it did it installed pretty quickly like any other tweak. It did hang during the startup main screen during the install but I realized it was because I hadn't put in the SD card yet, so it was probably trying to read from it. Manually rebooting got it going as you said. Simulator works great as well. Looking forward to testing how it goes and learning more about the SDK. Amazing work!
 
#28 ·
What do you mean? The Simulator operates all on metric values. The apps have a duty to convert that themselves.

The framework is data helpers that help to convert these, e.g.

Code:
 var mph = DataTransform.toMPH(speed);
 
 var mpg = DataTransform.toMPG(kmpl);
If you talk about the speedometer .. if the region is NA - than yeah the default is imperial but that app is just an example and if you hit the center button of the multicontroller (in the Sim or Car) it converts these.
 
#34 ·
Thanks for all of this Andy,
Are you updating the master zip files linked to at the start of this thread for all the changes or would we need to install the sources and rebuild them for now?
Looking forward to the use of websocketdto see if the CMU performance is better, :smile2: