1. Attachments are working again! Check out this thread for more details and to report any other bugs.

So has anyone downloaded the source code for the Panasonic radios yet?

Discussion in 'Gen 4 Prius Technical Discussion' started by JStrenk, May 9, 2019.

  1. JStrenk

    JStrenk Member

    Joined:
    Nov 29, 2011
    202
    98
    0
    Location:
    Ravenna
    Vehicle:
    2016 Prius
    Model:
    Two
    565CA073-42AC-4DAF-B461-F2DF2B956A1A.jpeg AF1EE985-B8F7-47F3-B151-6AEBA06385CE.jpeg FA4E4B3B-05C0-4DDB-86A3-26DA42987515.jpeg 81D506E7-497B-4142-BE61-EB0DFA331F86.jpeg A3ED86D4-6302-49C9-8318-E721CAB2B47D.jpeg 81EA5A81-B41F-4D50-BAA6-CC15AA7B3820.jpeg 0B9DECE4-4089-403A-9CCE-0A83E4121AEF.jpeg

    i was going through the Setup > General > Software Information screen and read that after 3 years of delivery, Panasonic will release the source code to any interested parties.

    Well it’s been 3 years now.

    It would be kind of fun to see what anyone has done anything with it.
     
    #1 JStrenk, May 9, 2019
    Last edited: May 9, 2019
  2. Prodigyplace

    Prodigyplace Senior Member

    Joined:
    Nov 1, 2016
    11,696
    11,317
    0
    Location:
    Central Virginia
    Vehicle:
    2017 Prius
    Model:
    Two
    I doubt it. There is nothing there.

    upload_2019-5-9_19-6-20.png
     
  3. JStrenk

    JStrenk Member

    Joined:
    Nov 29, 2011
    202
    98
    0
    Location:
    Ravenna
    Vehicle:
    2016 Prius
    Model:
    Two
    It might of changed in 3 years. You could always try the email....
     
  4. Prodigyplace

    Prodigyplace Senior Member

    Joined:
    Nov 1, 2016
    11,696
    11,317
    0
    Location:
    Central Virginia
    Vehicle:
    2017 Prius
    Model:
    Two
    True.
    Since you own the product they are required to offer & provide you with the source code or they are illegally distributing it.
     
  5. JStrenk

    JStrenk Member

    Joined:
    Nov 29, 2011
    202
    98
    0
    Location:
    Ravenna
    Vehicle:
    2016 Prius
    Model:
    Two
    I did find one car source code download.
    Similar to above but it ends in "e01vdl56/"
    Not sure what sound system it's about.

    has a bunch of stuff about Advanced Linux Sound Architecture - Utilities

    even with an I7 with SSD drive it's taking some 45 min to unzip all 54,000 files from one of the down loads.

    Sample of a demo code:

    ******************************************************************************************************
    /*
    * This small demo sends a simple sinusoidal wave to your speakers.
    */
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sched.h>
    #include <errno.h>
    #include <getopt.h>
    #include "../include/asoundlib.h"
    #include <sys/time.h>
    #include <math.h>

    static char *device = "plughw:0,0"; /* playback device */
    static snd_pcm_format_t format = SND_PCM_FORMAT_S16; /* sample format */
    static unsigned int rate = 44100; /* stream rate */
    static unsigned int channels = 1; /* count of channels */
    static unsigned int buffer_time = 500000; /* ring buffer length in us */
    static unsigned int period_time = 100000; /* period time in us */
    static double freq = 440; /* sinusoidal wave frequency in Hz */
    static int verbose = 0; /* verbose flag */
    static int resample = 1; /* enable alsa-lib resampling */
    static int period_event = 0; /* produce poll event after each period */
    static snd_pcm_sframes_t buffer_size;
    static snd_pcm_sframes_t period_size;
    static snd_output_t *output = NULL;

    static void generate_sine(const snd_pcm_channel_area_t *areas,

    snd_pcm_uframes_t offset,
    int count, double *_phase)

    {
    static double max_phase = 2. * M_PI;
    double phase = *_phase;
    double step = max_phase*freq/(double)rate;
    unsigned char *samples[channels];
    int steps[channels];
    unsigned int chn;
    int format_bits = snd_pcm_format_width(format);

    ***********************************************************************************

    does this mean anything to you guys?
     
  6. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,277
    15,074
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    Lots of products are built using a bunch of open-source infrastructure (Linux, ALSA, various libraries, and so on) and also proprietary software written above it.

    The open-source components will have licenses that require the manufacturer to include a notice like the one you're seeing, and make it possible for customers to obtain all of the original open-source parts of the software.

    Depending on the open-source licenses involved, the manufacturer might also be required to open-source their own added code, if it interfaces with the open-source parts in such a way as to make it a "derivative work". But under LGPL, there are also ways of developing code that uses the infrastructure but is not considered to become a "derivative work". In those cases, most of the interesting software on the radio is going to be proprietary to the manufacturer, and when you go to try and obtain "the LGPL Software", you will end up getting a ton of files making up Linux, ALSA, certain sound chip drivers maybe, but very likely none of the stuff you're most interested in seeing.
     
    Prodigyplace likes this.
  7. kithmo

    kithmo Couch Potato

    Joined:
    Apr 25, 2010
    2,404
    2,773
    47
    Location:
    South Yorkshire, UK
    Vehicle:
    2016 Prius
    :confused: Where's the "way over my head" emoji o_O
     
    Prodigyplace likes this.