Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Android RIVA Client: taRiva
#1
The Tallus Android Riva application provides two way control over Charmed Quark Systems (CQC) home automation system via an Android phone or tablet (OS >= 1.6).

Information can be found on the wiki. The trial application can be downloaded here while Google Play has the regular version.

Ideally, you would want a template matching the resolution of your device, but orientation change and swiping to see the rest of the template is supported.

[Image: TaRIVA_Template.jpg] [Image: TaRIVA_Background.jpg]

(original post)

I fixed Broconne's code to send a proper logon request (unsigned byte issue and mixed types), which probably means that most of the steps involving talking TO the RIVA server are fine... Now I need to take care of the remaining 99% that involves reading FROM the RIVA server and doing something useful with that incoming data... Wink
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#2
Start off with a black background template and a piece of static text on it. Implement support for drawing of stuff incrementally as required. As long as you implement all of the push/pop stuff, you can easily just ignore any drawing commands you don't yet understand. They just won't display anything. So you don't have to do a go for broke type thing and try to implement it all in one fell swoop. So the area fill, push/pop stuff, and text drawing commands should get you enought to draw that simple type of interface, and prove it's basically working. Oh, and of course you will have to implement the sequence ack message or the server will stop and wait for you.

Just be careful to follow the asynchronous/synchronous processing guidelines in the protocol doc.
Dean Roddey
Software Geek Extraordinaire
Reply
#3
Broconne did a lot of the leg work already (he said about 80%), but he didn't have a riva license to actually test it, so there's still a lot of "connect the dots" to do... Wink Would probably have been faster if I had started from scratch, but it wouldn't have been as pretty internally... Wink
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#4
- I can send a login request.
- I get a login challenge back.
- I can create the MD5 password hash.

But as far as decrypting the challenge data and key, that's failing, as I'm getting 16 x 0 for each. So I guess I will need to print out the values from a challenge with the .NET RIVA client and figure out how to get the same result from the GNU Crypto Blowfish cipher... Probably another annoyance related to not having unsigned byte/short/integer in java. Wink
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#5
I wouldn't think so. The algorithm is very strict, so their implementation would have to deal with that or it wouldn't be of any use at all since it could never interoperate with any other working system. As long as you are passing them in a raw byte array or byte stream with the bytes, it should work out correctly.
Dean Roddey
Software Geek Extraordinaire
Reply
#6
OK, I guess I'm using the GNU Crypto implementation wrong, as I can't even encrypt/decrypt some data and get the original back... Wink I wish they hadn't disabled Blowfish in the default cipher of Android... Wink
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#7
I found BlowfishJ 2.15, which works on the Android, so now I can successfully log on... Wink
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#8
Currently, I can read the 59 messages associated with a logon and the template on the RIVA account that Batwater setup for testing...

So now it's time to figure out how to actually display the UI on Android... Wink
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply
#9
A mere implementation detail :-)
Dean Roddey
Software Geek Extraordinaire
Reply
#10
Would people be building new templates matching the size of there device (say 320x480) and only using the portrait (or landscape) orientation, or should I just go generic and expect people to reuse their 1024x768 (or whatever) templates and have some scrolling/swiping going on?
Field Generator 0.65: Create CQC fields on the fly, from external applications.
Mobile templates 0.4: Main resolution of 320x480 with navigation side bars (384x544).
Sage Media Server 1.1.3 + Sage Player 2.7.8: Display and manipulate SageTV information or player.
TaRIVA 1.26: Android RIVA client.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  TaRiva on Samsung Galaxy Tab 5 ellisr63 17 8,495 12-29-2015, 07:55 PM
Last Post: Dean Roddey
  Native Android app (auto-gen based) Dean Roddey 156 37,839 10-19-2015, 03:28 PM
Last Post: Shaky
  RIVA Client: PlayBook 2.0 Fonceur 13 11,089 11-15-2012, 10:18 PM
Last Post: xlurkr
  native scroll for android client pasha 14 9,525 05-07-2012, 03:15 PM
Last Post: Dean Roddey
  android app burkepaol4 1 7,381 12-19-2010, 07:12 PM
Last Post: Fonceur
  10 android burkepaol4 4 8,390 12-19-2010, 06:44 PM
Last Post: burkepaol4
  Android client ? willplaice 33 26,839 08-14-2010, 10:42 AM
Last Post: Fonceur

Forum Jump:


Users browsing this thread: 1 Guest(s)