Charmed Quark Systems, Ltd. - Support Forums and Community
Official RIVA thread - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: Third Party Development (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=8)
+--- Forum: Third Party Development (General) (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=22)
+--- Thread: Official RIVA thread (/showthread.php?tid=5632)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


Official RIVA thread - Dean Roddey - 05-14-2009

This thread is for official discussion of the RIVA protocol. Since it is fairly new, there are likely to be questions or issues or requests. So use this thread for such general discussion. If you are creating a product, feel free to create your own thread for discussion particular to that product.

The latest RIVA protocol header is attached. The protocol is discussed in technical detail in the Remote Viewer Protocol technical document, available via the web site. This version of the header is valid for 3.0.13 and up.

Here is the latest (V2) RIVA development guide document:

http://charmedquark.com/Web2/Downloads/Documents/3_4/RemoteViewerProtocol_3_4.pdf

Here are the changes for Version 2 of the protocol. Everything else is the same:

Code:
// ---------------------------------------------------------------------------
//  All of the Version 2 protocol stuff is below here. This does make things
//  a little less readable than having it all together, but it makes it far
//  easier to track changes, which is really the most important for sanity.
// ---------------------------------------------------------------------------
namespace kCQCRemVComm
{
    // -----------------------------------------------------------------------
    //  New V2 opcodes
    // -----------------------------------------------------------------------
    const tCIDLib::TCard1 c1OpCode_DrawPBar     = 21;
    const tCIDLib::TCard1 c1OpCode_NewTemplate  = 75;

    // -----------------------------------------------------------------------
    //  Values for c1Dir of DrawPBar, and possible other direction
    //  oriented stuff in the future.
    // -----------------------------------------------------------------------
    const tCIDLib::TCard1 c1Dir_Left            = 0;
    const tCIDLib::TCard1 c1Dir_Right           = 1;
    const tCIDLib::TCard1 c1Dir_Up              = 2;
    const tCIDLib::TCard1 c1Dir_Down            = 3;
};


namespace tCQCRemVComm
{
    // -----------------------------------------------------------------------
    //  c1OpCode_DrawPBar
    //
    //  Draw a progress bar
    // -----------------------------------------------------------------------
    struct TDrawPBar
    {
        THeader             hdrInfo;
        tCIDLib::TCard1     c1Opacity;
        tCIDLib::TFloat4    f4Percent;
        TRVArea             areaSrc;
        TRVArea             areaTar;
        tCIDLib::TCard1     c1Dir;
        TRVColor            clrFirst;
        TRVColor            clrSecond;
        TRVColor            clrFill;
        tCIDLib::TCard4     c4ImgSerial;
    };


    // -----------------------------------------------------------------------
    //  c1OpCode_NewTemplate
    //
    //  A new base template has been loaded. The template path is provided as
    //  text in the usual way.
    // -----------------------------------------------------------------------
    struct TNewTemplate
    {
        THeader         hdrInfo;
        tCIDLib::TCard4 c4Width;
        tCIDLib::TCard4 c4Height;
    };
}



Official RIVA thread - Dean Roddey - 05-19-2009

As of 2.4.48, a couple slight additions were made, and the header above updated.

- There is a new Ping command which simple clients can use if they want a persistent image download connection. There's a chance in certain simple templates that there will be no changes for over a minute, and the image server could time out. So if you've made no snapshot requests in around 45 seconds or so, send a ping to keep the connection alive. It's just an opcode so it uses the TGenOpCode structure.

- There's a new TGenOpText structure for those simple commands that include just an opcode and a piece of text.

- The server will send a new PlayWAV command (using the new TGenOpText structure) when the client has configured a WAV file to be played. It will include the wave file as text after the structure in the usual way. You should play it asynchronously, since you don't want to block to play some long file. The user will have to have placed the WAVs such that the path you receive is accessible from where you are running, else obviously your attempt to play it will fail.


Official RIVA thread - gacevich - 05-20-2009

i have not spent much time trying to understand the riva, other than i think it is designed to run on machines with low computing capacity. assuming i am right, would using riva on my samsung q1 improve its responsivness?


Official RIVA thread - sic0048 - 05-20-2009

Actually RIVA is designed to allow some sort of CQC IV to run on something other than a full Windows OS systems. So unless you changed your Q1 to run on some other OS (like linux, Windows CE, etc), RIVA will not play a part in your Q1 life.


Official RIVA thread - gacevich - 05-20-2009

ok, thanks. i'll continue to ignore riva.


Official RIVA thread - Dean Roddey - 05-20-2009

Actually it could still. It's a lower resource consumption viewer as well. Sergio reported that it runs faster on their Vidabox tablets than the regular one. The regular one is still best otherwise. But on a small device, it's possible that the remote one may work better.


Official RIVA thread - sic0048 - 05-20-2009

Dean Roddey Wrote:Actually it could still. It's a lower resource consumption viewer as well. Sergio reported that it runs faster on their Vidabox tablets than the regular one. The regular one is still best otherwise. But on a small device, it's possible that the remote one may work better.

Will there be a XP or Vista version created by CQC? Or is that something that would have to be writen by someone else? I guess it sounds like Vidabox is already experimenting with one.


Official RIVA thread - Dean Roddey - 05-20-2009

There is an XP, eXP, Vista version in the current beta releases. Mark has a .Net version going in the lab as well.


Official RIVA thread - potts.mike - 05-20-2009

riva doesn't support web widgets though does it. If we were to use it on xpe we would lose our weather and traffic maps?


Official RIVA thread - Dean Roddey - 05-20-2009

No, because of how it works it can't support web widgets, and for now it won't support the progress bar.