Skip to main content

Programatically registering new apps (XAITGenerator status?)

4 replies [Last post]
chihiro_saito
Offline
Joined: 2006-11-08
Points: 0

Hi -

I'm looking for a way to register new apps (xlets) to the AppsDatabase during the tru2way set-top box runtime, in order to have an application launcher that can start new apps on the fly.

It looks like org.ocap.application.AppManagerProxy.registerUnboundApp(InputStream) is a good API to use. However, I'm having trouble constructing a valid stream to pass into it. I'm reading that the InputStream should be the XAIT table, which is in a binary format.

I was so excited to find a utility to generate XAIT in ocap-ri, called XAITGenerator.java at:

ODLSrc/OCAP-1.0/apps/qa/org/cablelabs/lib/utils/XaitGen/XAITGenerator.java

but I seem to be getting parsing error at ocap-ri's runtime (from AitParser) when using a stream generated by the XAITGenerator utility, taken from 1.1.3 RelB tag. Could this tool be outdated? It's a pity if so. In this case, does anybody have an idea if there was any recent spec updates in the XAIT format, which would help in figuring out where in the binary form has gotten out of sync?

Thanks in advance,
Chihiro

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
greg80303
Offline
Joined: 2008-07-03
Points: 0

This tool is EXTREMELY out of date and has not been used by the project in quite some time (years). Should you feel so inclined, we would be happy to have you contribute code fixes for the XAIT generator :-). It would indeed be nice to have that tool working again so everyone could benefit! I'm sorry to say that fixes to that tool are just not in our very tight schedule for 1.1.4. However, any patches contributed within the next 3-4 weeks could definitely be reviewed in time to make it into our 1.1.4 release.

Greg

chihiro_saito
Offline
Joined: 2006-11-08
Points: 0

Hi Greg,

Thanks for the information about XAITGenerator. I have a need to get something up and running in a few days, that I'll probably move away from programatically generating XAIT for now, in this case. Meanwhile there's a decent chance that we need a tool like this sooner or later, and I personally would be happy to contribute it back to the ocap-ri. If I seem to be able to do it, then I'll contact you directly on how to move forward.

While we're at the status of the code, may I ask if the unit tests and app code, below, are maintained or not?

https://community.cablelabs.com/svn/OCAPRI/tags/RI_I1_1_3_REL_B/ri/ODLSr...
https://community.cablelabs.com/svn/OCAPRI/tags/RI_I1_1_3_REL_B/ri/ODLSr...

It is really helpful to have code samples when exploring new APIs, and I've been hoping that those above are somewhat reliable. (It'll be so great if tru2way provides a set of sample classes just like the java sample archive that comes with BD-J's spec, but I can imagine that it's more of a luxury).

Thanks,
Chihiro

greg80303
Offline
Joined: 2008-07-03
Points: 0

The JUnit tests (under OCAP-1.0/java/test), unfortunately, are pretty out of date as well. We do have a low priority task to whip them back into shape, but those won't be available in the 1.1.4 release.

The QA integration xlets (under OCAP-1.0/apps/qa) are actively undergoing a checkup for the 1.1.4 release. I would expect that even in the 1.1.3 release you would find most of them to be functional.

Greg

chihiro_saito
Offline
Joined: 2006-11-08
Points: 0

OK. Glad to learn that the QA integration xlets are likely to be good now and being updated for the next release. I'll keep on looking at them then.

Chihiro