Home
Motorola Mobility - The Capstone Experience
Contents
1. 10 4 1 2 PostgreSQL jar files 10 4 1 3 Glassfish Deployment 10 4 1 4 Glassfish Connection Pools 10 4 1 5 Configuration Test 11 4 2 VodServerDouble STB and the TV Portal 11 4 2 1 VodServerDouble service Setup 11 4 2 2 STB and TV Setup 16 4 2 3 Setup of Streaming Network 18 4 2 4 Start Streaming 20 4 3 Content Service 21 4 3 1 Database Setup 21 4 3 2 Application Setup 21 4 4 Ide
2. 7 2 3 2 Config properties problem 8 3 Server Configuration 8 31 JAVA 4 47 44422 nn 8 32 ANnt 44 744442 nann 8 3 3 Sun Glassfish v2 1 1 Enterprise Server 8 3 4 Echoprint Server 9 3 4 1 Tokyo Cabinet 9 3 4 2 Tokyo Tyrant 9 3 4 3 Echoprint Server 9 3 4 4 Echoprint Codegen 9 3 5 POStgreSsQL nn 22 nnnnn nnn n enna nnn nena nnn cnnnenncnnnannecsnnnnncnssnnscnsssenccsn 10 4 Synchronized Program Content Delivery Configuration 10 41 Electronic Programming Guide 10 4 1 1 Database Setup
3. 31 AA MAOTOFRROLA NMIOBILITY 1 Summary This document is intended to facilitate the building configuration and deployment of the Synchronized Program Content Delivery framework The following sections explain the build process as well as the configuration needed to run deploy the Synchronized Program Content Delivery framework 2 Build Instructions 2 1 Generic Instructions All programs that are not listed below can easily be built using maven Navigate into the projects root directory where there is a pom xml file From the command line you can simply run the command mvn clean package and it will clean previous builds and re package the war files 2 1 1 Configuration Files For programs that require configuration files the file will be named config properties It is located in src main resource config config properties This holds the base uri s of the different services the program interacts with They should be changed before building The resources directory is the default directory maven uses for static files that are to be placed in the same place as our java files Maven does and will miss non java files while packaging a war See Config problems 2 1 2 SqlMapConfig Files Some services such as the User Service and the Content Service require database configuration files used by the java library MyBatis These are xml files that come already configured but minor modification may be necessary SglMapCon
4. Archive CDocument eclipse jee helios SR2 winsz zip extracting Feature properties loo Elapsed time 00 00 07 Time left 00 08 28 Processed 1 7 After unzipping eclipse right click on eclipse exe and select open eclipse ini Configuration RUM as 8 Select File in menu and select Import SEN Edit Navigate Search Project Run New Alt Shift N gt Open File a TT Rename F2 Refresh FS Convert Line Delimiters To gt Switch Workspace gt Restart aJa Eynork 9 Inthe General folder select Exsiting Projects into Workspace And than click Next Select Create new projects From an archive file or directory Select an import source General 10 Click on Browse 12 amp gt REO TO LA NIOBILITY CX Import Projects Select a directory to search For existing Eclipse projects f l i a 11 Find and select autonomics libraries directory and click on OK Browse For Folder Select root directory of the projects to import My Computer S BOOTCAMP C oO 64beef3fcf18a982dbF0178d54 H X9 84658544c7dF5fScch24aabe90 G ams X9 ChannelStreamerService a f lib 12 Click on Finish to import the project ry 13 Repeat step 11 to 15 to import the VodServerDouble2 Project into workspace Now you will have two projects in the Proj
5. Microsoft Windows 2 Download and install the Java SDK and JRE from link below JDK http download oracle com otn pub java jdk 6u25 b06 jdk 6u25 windows i586 exe a JER http download oracle com otn pub java jdk 6u25 E b06 jre bu25 windows 1586 exe 3 Download and install VLC from link below http sourceforge net projects vlc files 1 1 9 win32 vlc V d CO L A N 1 1 9 win32 exe download 4 Download and install Sun Glassfish 2 1 1 from link below http cds sun com is bin INTERSHOP enfinity WFS CDS CDS SMl Site en US USD VerifyItem Start sges ee 2 1 I windows Sun GlassFish Enterprise Server Installation Wizard Welcome Welcome to the Sun GlassFish Enterprise Server with HADB Installation Wizard This program will install the Sun GlassFish Enterprise Server with HADB on your computer Sun GlassFish Enterprise Server v2 1 be Next gt L Cancel Help ml exe BundledLineItemUUID Ei2J_ hCyCdEAAAEVELYIR4bY amp OrderID 1ihCJ hCyp 6AAAAEv8rUIR4bY amp ProductID 061IBe p09sAAAEk3fsuA36m amp FileName sges ee 2 1 I windows ml exe 11 amp gt RIO TO reOoLe A NIOB LITY 5 Download Eclipse IDE for Java EE Developers from link below http mirrors med harvard edu eclipse technology epp downloads release helios SR2 ecli pse jee helios SR2 win32 zip eclipse jee helios SR2 win32 zip 6 Unzip Eclipse to a workspace path ai Extracting from eclipse jee hel E
6. DD ADIT DR Dl A VOBILITY 17 Touch Development below Unknown sources and check USB debugging to enable debug mode on the Xoom 18 If you re using Window XP and your Microsoft Media Player is not up to date you may need to install the latest Microsoft Media Player for MTP drivers If you connect Xoom to your development environment and all the drivers are installed You can skip this step 19 Go to the link below to register download and install the MOTODEV Xoom usb drivers http developer motorola com docstools USB Drivers Handset USB Driver 20 Connect Xoom to the develop environment 21 Start Eclipse and import the AndroidCompleteTV project into workspace 22 Run AndroidCompleteTV project as Android Application Eclipse will build install and run Android Complete TV on Xoom automatically 2 3Build Instructions Problem Solving This section is written for common problems that are run into while building programs Maven is a powerful too but often times can reguire tweaking 2 3 1 SqlMapConfig problem If you run into errors regarding the SglMapConfig files You may manually have to copy the xml files into the war The files should be placed in the same place that classes are located inside a war Take the files from src main resources conf MyBatis to WEB INF classes conf MyBatis xml in the war file If you are unaware of how to edit things within a war file refer to Editing War file
7. AA MOTOROLA MIOBILITY TITLE Administrator Manual Synchronized Program Content Delivery SOURCE Michigan State University Capstone Team AUTHORS Kabe VanderBaan _ Applied Research Center Motorola Mobility Krunal Shah Timothy Belcher Paul Detkowski MSU Capstone Team Tareq Musleh DATE November 23 2011 Version 0 1 Revision History Version Date Change Description 11 23 2011 1 0 12 6 2011 AA MOTOROLA VIOBI LITY 1 SUM MOP Y 22an aa AAL LL ALAN ALAN LL ALAN ANN ALAN LAN A NAN A NAN N NAN NN ANN NN NAN NN ANN NNNAN 4 2 Build Instructions 4 2 1 Generic Instructions 4 2 1 1 Configuration Files 4 2 1 2 SqlMapConfig Files 4 2 2 Complete TV Applications 4 2 2 1 Android 4 2 3 Build Instructions Problem Solving 7 2 3 1 SqlMapConfig problem
8. 25 6 1 Electronic Programming Guide 25 6 2 VodServerDouble 26 6 3 Content Service 2 nnn nnn nnn nnn nnn nner nnn nnn nnn n nnn ennnnnnnanenserecnansans 27 6 4 Proxy SCrViCC 2222 2 n nnn nnn nnn nnn rene nnn nnn n nnn nnn nnn n nnn nnn enn nnannannnsereonansans 27 6 5 Identity Management Service 28 6 6 SYNC Service 2 22 22 n neon nn nn nnn rene nnn n nn nnn none cnn nnn nnnnenecnannannnserecnannens 29 7 Reference Manual 29 7 1 Managing Environment Variables 29 7 2 Windows Command Prompt 30 7 3 Glassfish Deployment 30 7 3 1 Autodeploy 30 7 3 2 Web Deployment 2 0n na ne nn owen nnn nnnnenenannnnnnnnawnnenannnwanananannennsans 30 7 4 Editing Files inside a Web Archive WAR
9. i 2 Remove fr te trl Alt 5 Down laying_access f Build Path p jaying muha a f Refactor Alt Shift T p aaa extensio i anscode targe a d Import gt ranscode aspet a Export PI WAR file 1 F3 yl H 9 Refresh F5 t Export 1 F L a d Close Project ideo return rt 34 Close Unrelated Projects pture return Validate ssion_instanc Show in Remote Systems view E A m2 Maven gt t Ruin s b 17 Select Browse to locate an export destination 6 Export WAR Export Export Web project to the local File system Web project Melek ea Bl Destination state 18 Select a location and click Finish to generate a WAR file that can be deployed to glassfish Do Export WAR Export Export Web project to the local file system Target runtime Optimize For a specific server runtime ava EE Export source files Overwrite existing file Exporting archive YODServerDouble2 war Refreshing V ODServerDouble2 19 Click on Run under Windows Start menu g A Log Off Disconnect Google Talk 20 In Open type cmd and click OK to run Command Prompt in Windows 14 DD ROTOROLA MOBILITY Type the name of a program folder document or Internet resource and Windows will open it For you Open Use cd command to enter the bin directory under the GlassFish For example cd C Project
10. 1 1 can be installed at http glassfish java net downloads v2 1 1 final html After downloading glassfish and placing the jar in the desired directory you must run a few command line programs If you are unfamiliar with the windows command prompt see Windows Command Prompt Navigate to the same directory that you placed the glassfish jar file in I java Xmx256m jar filename jar 2 cd glassfish 3 lib ant bin ant f setup xml To test the installation start a domain by open the command prompt if you have not already done so cd C path to glassfish bin asadmin start domain Open any web browser and navigate to http localhost 8080 At the top of the page You should see the following or something very close eae ee Sun GlassFish Enterprise Server v2 1 1 v2 1 PatchO6 9 1_02 Patch12 build b31g fcs Your GlassFish Enterprise Server is now running Figure 1 Glassfish Server Welcome amp gt MOTOROLA VIOBI LITY Echoprint Server Note Everything regarding the Echoprint server must be installed on a unix machine Such as Ubuntu or Mac OS X 3 4 1 Tokyo Cabinet 1 Download Tokyo Cabinet from http fallabs com tokyocabinet tokyocabinet 1 4 47 tar gz 2 Save it to your system 3 Open this page to view the installation instructions http fallabs com tokyocabinet spex en html installation 4 Extract the file to the directory you want it in Projects Apps tokyocabinet Follow the installation instruction
11. infocast c sinfocast _ 5 Type in java jar InfocastServer jar to update the channel configuration table to STB 20 AA MAOTOFRROLA NMIOBILITY ciMinfocast gt java jar InfocastServer jar Infocast Server yvi i5 Cc 2666 2664 Kreatel Communications AB 2611 84 26 84 58 28 Reading configuration 2611 84 26 4 98 21 t224 2 2 1J 22222 Transmitting packets at 512 kbit s 2611 84 26 H4 58 235 224 2 2 11 22222 Transmitting packets at 2648 kbit s 2611 64 26 4 58 23 t224 2 2 2 22222 Transmitting packets at 8 kbit s Turn On STB and TV When the STB finished loading press menu on the remote Navigate to the Kreatel icon then down and press OK The TVPortal should now be visible on the TV screen See the TV Portal user manual for instructions on how to use the TV Portal Sa PA 4 3 Content Service The content service is a restful web service that allows all data about secondary content types and associations to be stored in a Postgres database The content service is built on top of the Restlet Framework 4 3 1 Database Setup Open up the pgAdmin program and connect to your postgres database server default is localhost 5432 Right click on Databases click New Database Create a database recommend using name content service for easiest setup Select the newly created database Navigate to the toolbar at the top and open up the SOL Ouery browser g ee a ae ae bject
12. Flow fe Shortcut to docroot on Cse498 doia 27 Click OK in the bottom right corner to finish the deployment 28 Select Web Applications in left panel and click Deploy again Click on browse and this time export the supplied WAR file TVPortal Click OK in the bottom right corner to finish the deployment 29 Type http localhost 8080 VodServerDouble2 in address bar to address the test page 7 Q ste porta oS CG Q localhost 8080 VoDServerDouble2 Cpstone Video Description Sent by 30 Type http localhost 8080 TV Portal in address bar to address the test page 31 Select Web Applications in left panel and click Deploy again Click on browse and this time export the supplied WAR file Interceptor Click OK in the bottom right corner to finish the deployment 4 2 2 STB and TV Setup 3 16 AA RIO TO LA NIOB LITY 1 Connect HDMI cable on the STB 2 Connect HDMI cable to the TV 3 Connect both the STB and TV to their respective power cords amp gt MOTOROLA VIOBILITY 4 2 3 Setup of Streaming Network Rout 1 We will need at least five CAT 5E Ethernet cable and two routers to connect the VodServerDouble and STB in this architecture To make things simpler mark each router with a number or a letter to avoid the confusion In this case Netgear Router will be Router A and Linksys router will be Router B 2 Connect the AC DC Adapt
13. I prefix for the CSF s REST web services the part before tod v1 gt http 10 2 207 143 8888 WebServices lt p property gt to your localhost assuming your http port is 8888 lt p property id base_uri tip The URI prefix for the CSF s REST web services the part before tod v1 gt http localhost 8888 WebServices lt p property gt 4 1 3 Glassfish Deployment Start your glassfish server and go to http localhost 4848 From Applications Enterprise Applications deploy the CSF trunk_core_ EAR file 4 1 4 Glassfish Connection Pools On your glassfish admin page go to Resources JDBC Under Connection Pools create a PostgreSQL pool Select Postgresgl in the Database Vendor box Glassfish will then automatically select following JDBC driver org postgresql ds PGConnectionPoolDataSource In the Additional Properties table you need to specify which database the connection pool is connecting to Following is the example of basic information you need to enter in order to configure the connection pool for Postgresgl Additional Properties Name Value User lt your user name gt DatabaseName TOD Password lt your password gt ServerName lt database server s IP address localhost for local gt PortNumber lt port number gt default is 5432 Go into the JDBC Resources page in the glassfish admin console Create two new JDBC resources each pointing to the pool that you created in the previous step Name one com mot tod
14. Open an internet browser and type link http localhost 4848 to address bar Use admin as user name and adminadmin as password to get access to the Server Sun GlassFish Enterprise Server v2 1 1 Administration Console User Name admin Password cococ Select Web Applications in left panel and click Deploy User admin Domain domain Server localhost Sun GlassFish Enterprise Server v2 1 1 Aa Common Tasks Applications Web Applica _ Registration Web Applications Application Server A Web application module co HTML pages that are package T Applications paz p a Enterprise Applications a Deployed Web Applicatio Web Applications Deploy a a a 15 AA RIO TOrOoLe A NAOBILITY 26 Click on Browse and choose the exported WAR file for the VodServerDouble2 AppItaturis WER Sppmcauoris l Deploy Enterprise Applications Modules Specify the location of an application to deploy Applications can be in packaged files such war ear jar and rar Type Web Application war v Location Packaged file to be uploaded to the server Choose File to Upload Look in B Desktop O e pe am PN 2 Om Documents amp UIMockUps 4 My Computer GD Autodeploy PA My Recent My Network Places ChannelStreamer war Pees Documents 4LPHA amp Shortcut to autodeploy on Motorolaservis Conte Co ConnectChanndelStreamer adi Shortcut to docroot _ O Content
15. browser H Server Groups Servers 2 Pre f Default dlocalhost 5432 Fl Databases 8 ES IdentityManagement ES Sync5ervice ES TOC rah auth FI con FSI Es a content service FS 6 Click File gt Open select the ContentService sgl included with this document 7 Execute the sql script 4 3 2 Application Setup Take the content war file that is included with this file and deploy it to the glassfish server For instructions on deploying to a glassfish server refer to Glassfish Deployment If you changed the name of the database you will need to edit the content war WEB INF classes conf MyBatis SqlMapConfig xml to have the proper connection strings ex jdbc postgresql localhost 5432 content service To edit files within a war file please refer to Editing Files inside a Web Archive 21 AA MAOTOFROLA MIOBILITY 4 4 Identity Management Device Service The identity management service is a web service that allows all data about users and their devices to be stored in a Postgres database The identity management service is built on top of the Restlet Framework 4 4 1 Database Setup Open up the pgAdmin program and connect to your postgres database server default is localhost 5432 2 Right click on Databases 3 click New Database 4 Create a database recommend using name IdentityManagement for easiest setup 5 Select the newly created database FO Ease BO x Object browse
16. db readonly and the other com mot tod db readwrite 10 AA ADIT DR Ml A MOBILITY 4 1 5 Configuration Test Assuming you set up your HTTP port on your glassfish server to be 8080 go to your browser and navigate to http localhost 8080 WebServices tod v I admin and use TOD as the username and RESTful as the passwd to access the admin page and make sure you can see the admin page 4 2 VodServerDouble STB and the TV Portal The VodServerDouble is a restful web service that allows specific media file s stream to the local network by multicasting The STB will receive the media stream in domain network and display the content of media file on TV This part will request experience on setting up hardware and software environment Please concern system administrator for more information 4 2 1 VodServerDouble service Setup The VodServerDouble will decode and stream the media file s to all computers on the local network The machine running the service has some requirements to allow it to decode and stream media files First this machine should at least have enough hardware resources and stable software environment to decode more than one media file simultaneously Service Performance Second this machine will send a large amount of packets through its local network Network Performance 1 There are a few compatibility issues when running the service on Windows 7 These instructions will be for a new Windows XP 32 bit machine
17. ect Explorer 14 Unfold VodServerDouble2 project And Unfold sre com mot config in order Double click to open vodserver properties toy VODServerDoublez content authoring services branch F E i settings E e build fice sre ay com Soy mot lay tod E i vodserver E i adapters E i assetmanager E i capturecontroller 4 gt channel components fl Ly config E Config jawa 163 10 21 11 10 tod and vodserwer properties 204 10 15 Change the mediaPlayerLoc to where your VLC is installed and plugins to where your VLC plugins folder is located For example if you install VLC at C Projects Apps VideoLAN VLC you will need to modify to mediaPlayerLoc C Projects Apps VideoLAN VLC vlc exe and modify plugins C Projects Apps VideoLAN VLC plugins mediaPlayerLoc C Projects Apps VideoLan VLC vle exe pluginss C V1 Projects Apps VideoLAN VLC plugins 13 DD NA DT LA NAOBILITY 16 Right click on VodServerDouble2 in Project Explorer and select WAR file under the Export sub menu H 9 temp savesc fat oo m CE aim pd m f A Jax New gt fmpeg C uge E B Depli Go Into presentat ionl g E Jaya diaPlayer v1 d 3 lugins C Pi 4 HE Copy Ctrl C H ified plication col E B Copy Qualified Name ive ingest mu i B Paste Ctrl V ive ingest pre i j XM Delete Delete ive ingest acc
18. er to Router A 3 Connect Router A to the local network In this case connect Internet port of Router A to the switch by Ethernet cable 18 amp gt RIO TO rOoLe A NIOB LITY 4 Connect the AC DC Adapter to Router B ROUTER B 7 Connect STB to Ethernet port on Router B 19 AA RIOTOROLA VIOBILITY ROUTER B 8 Set VodServerDouble Service as DMZ service at Router B 4 2 4 Start Streaming 1 Unzip infocast zip to disk on the machine that holds the VodServerDouble Extracting from infocast 1 zip Archive C Users Permissivism Downloads infocast 1 zig infocastdientconfig xml 78 Elapsed time 00 00 00 Time left 2222 Processed 82 Background Pause Cancel Mode Hep 2 Go to where you unzipped infocast and open up the portalurls xml file Modify the first PortalURL to point to the web server that has your TVPortal deployed use the actual IP address not localhost lt xml version 1 0 ES SIDUCTYPE PortalUJRLs SYSTEM portalurl3 dtd t FortalURLzss PortalURL http 192 168 1 9 8080 TVPortal x PortalURLs FortalUKLs file ffusrflocalfportalzs z PortalUEL lt PortalUJRLs gt Open the windows command prompt Type the name of a program folder document or Internet resource and Windows will open it for you Open 4 Use cd command to address the unzipped file folder e secd c
19. er to the javadoc of com mot tod dto v1 EPG com mot tod dto v1 EPGStation and com mot tod dto v1 EPGAsset e GET lineup ilimeup id epg starttime starttime endtime endtime Retrieve the list of EPGStations of specified lineup of lineup_id which contains EPGAssets whose starttime and endtime fall into the interval of starttime endtime e GET lineup ilimeup id station istation id epg 25 6 2 amp gt ARIOTOROLA VIOB ILITY Retrieve the list of EPGAssets on the specified station of station_id on the specified lineup of lineup_id GET lineup lineup_id station station_id epg starttime starttime endtime endtime Retrieve the list of EPGAssets on the specified station of station_id on the specified lineup of lineup_id whose starttime and endtime fall into the interval of starttime endtime GET asset asset_id Retrieve the asset of specified asset_id GET epg asset asset_id Retrieve the EPG asset of specified asset_id An EPG asset contains extra information in addition to Asset such as Capture Visibility and Classes TOD LiveTV VOD For more information please refer to the javadoc of com mot tod dto v1 EPGAsset GET lineup lineup_id epg Retrieve a list of all EPGStations each of which contains a list of EPGAssets all on the specified lineup of lineup_id GET lineup lineup_id station station_id epg Retrieve a list of EPGAssets on the station of specified statio
20. es by id association Create or retrieve all secondary content associations association type Retrieve secondary content associations of a particular type association type id Retrieve edit delete or create a secondary content association by type and id stationassoc id Retrieve edit delete or create a station association by id stationassoc Create or retrieve all station associations assetassoc id Retrieve edit delete or create an asset association by id assetassoc Create or retrieve all asset associations abstractassoc id Retrieve edit delete or create an abstract association by id abstractassoc Create or retrieve all abstract associations Proxy Service All GET api s support JSONP to receive JSONP you should add the following query term to your request callback some javascript funciton O content id Retrieve a piece of secondary content according to its id Variables o 1d Secondary Content Id Integer Example o http localhost 8080 proxy content 101 content types Retrieve all the different types of content Example o http localhost 8080 proxy content types associations Retrieve the associations for a specific TV Program Query Terms o asset Asset Id Integer Example o http localhost 8080 proxy associations asset 59838 abstractasset assets 27 6 5 amp gt ARIOTOROLA VIOB ILITY Return program
21. fig holds things like postgres configuration settings and database connection strings that should be changed according to your database See SglMapConfig problems 2 2 Complete TV Applications 2 21 Android 1 Download and install the Android SDK from link below http dl google com android installer_r10 windows exe 2 Start Eclipse and select Install New Software under the Help menu C Hep j E Welcome D Help Contents Search Key Assist Ctrl Shift L Report Bug or Enhancement Cheat Sheets ata GlassFish Java EE 6 Documentation Java EE 5 Documentation 13 Report Maven Issue Check for Updates Install New Software Ss mn mu m O 3 Type in https dl ssl google com android eclipse in Work with address bar DD NA DT LA NAOBILITY Available Software Check the items that you wish to install Work with https dl ssl google com android eclipse 4 Select Developer Tools and click Next gt Version Name MJ 000 Developer Tools Select All Deselect All 4 items selected Details Show only the latest versions of available software Hide items that are already installed Group items by category What is already installed Contact all update sites during install to find reguired software 5 Click Next gt on Install page 6 Read the license agreements and select I accept t
22. he terms of the license agreements and click Finish I accept the terms of the license agreements OI do not accept the terms of the license agreeme vext gt Mario JI 7 Once the Installation finishes a restart of Eclipse is required 8 Select Preferences under the Window menu G Help New Window New Editor Open Perspective Show View Customize Perspective Save Perspective As Reset Perspective Close Perspective Close All Perspectives Navigation Android SDK and AVD Manager Web Browser Preferences 9 Select Android in left panel and type in the correct SDK Location then click OK AA ROTOROLA MOBILITY 10 Click on the Android SDK manager button a on the toolbar IDE aed Lil Froyece Reba lur WITTY gsi Boh ie A 48 FT ka 11 Select Installed packages in left panel and click on Update All Virtual devices aan Installed packages eee ae Available packages Installed packages X Android SDK Tor Description Update All 12 Click on Install to install all packages needed especially Google Android API 11 SDK Platform Android 3 0 API 11 13 Turn on the Xoom 14 On the Xoom s homepage Touch in the top right corner 16 Touch Settings and select Applications Check Unknown sources to allow installation of non Market applications
23. l packaged file or directory that is accessible from the Application Server Lifecycle Modules Browse Files Browse Folders Application Client Modules Web Services General Ai fa Service Assemblies gt Components Context Root gt Shared Libraries Path relative to server s base URL Custom MBeans Virtual Servers gt A Resources sisa gt E Configuration Y Figure 4 Glassfish Web Deployment Application Name a 7 4 Editing Files inside a Web Archive WAR L Change the file extenion of the WAR file to a ZIP extension 2 Extract all the files 3 Edit files 4 ZIP up the file 5 Change the file extension of the ZIP file to a WAR extension 31
24. lete a user e PUT user userId Update a user s information 28 DD MOTOROLA VIOB LITY username test password foo firstName Tim lastName Belcher createdAt timestamp emailAddress test test com e POST login Post the username and password to allow the user to login 99 99 99 66 Ex username username password password e POST device Post the device s information to create a device 29 99 type STB provider Comcast manufacturer Motorola physicalld 12 23 45 67 ab model Kreatel 5163 e PUT device deviceld Update information for the device type STB provider Comcast manufacturer Motorola physicalld 12 23 45 67 ab model Kreatel 5 163 e GET device deviceld Get information for the device based on the deviceld e GET device id physicalld Get information for the device based on the physicalld in the database e DELETE device deviceld Remove a device based on the deviceld 6 6 Sync Service o GET device deviceld Get the most recent sync event for the device with id deviceld e POST syncevent Post a sync event to the sync service directly deviceld 12 34 56 68 ab abstractAssetId 12345 abstractAssetOffset 45543 syncEventType PLAY timestamp
25. metadata for a particular TV show Example o http localhost 8080 proxy abstractassets asset syncevent user userId Getting sync events by user user login Have a user login Variables o username UserName String o password Password String Example o http localhost 8080 proxy user login username boydale amp password a pple123 Identity Management Service o GET user fuserId devices Get all the devices registered to a user e GET user userld device deviceld Get the association between a userId and deviceld e PUT user userld device deviceld Update the association between a userId and deviceld deviceld 123 userld 12 alias Bedroom STB e DELETE user userId device deviceld Delete the association between a userId and deviceld o GET user fuserId devices Get all associations for a userId e POST user userId devices Add an association for a userId deviceld 123 userld 12 alias Bedroom STB e DELETE user userId devices Delete all associations for a userId e POST user Create a new user username test password foo firstName Tim lastName Belcher createdAt timestamp emailAddress test test com e GET user userld Get a user s information based on the userId e DELETE user userId De
26. n_id on the lineup of lineup_id VodServerDouble The URI s for controlling the VodServerDouble are listed below The Base URI is http SERVER PORT VodServerDouble2 e g if you deploy it on localhost with 8080 port this would be http localhost 8080 VodServerDouble2 POST api session Create a session with json similar to the following Session 1p 225 1 1 119 port 6001 videold 123 1 POST api channel ip tip address port fip port Starts streaming video 1d s specified in the request to ip address 4ip port Format videold1 videold2 videold3 DELETE api channel ip fip address port fip port Stops streaming video id s specified in the request at fip address 1p port PUT api stream play session_id Play the video created in the session call where the session is specified by session id PUT api stream pause session_id Stop the video created in the session call where the session is specified by session id PUT api stream stop session_id Pause the video created in the session call where the session is specified by session id 26 6 3 6 4 amp gt ARIOTOROLA VIOB ILITY Content Service secondarycontent Create or retrieve all secondary content secondarycontent id Retrieve edit or delete secondary content by id type Create or retrieve all content types type id Retrieve edit delete or create content typ
27. ntity Management Device Service 22 4 4 1 Database Setup 22 4 5 SYNC Service 22 4 5 1 Database Setup 22 4 6 Proxy Service 23 AA MOTOROLA MIOBILITY 4 7 Mobile Web Application 23 4 8 Complete TV Applications 23 4 8 1 Android 7 23 Refresh button web application 0nonanannnnnnnnnnanan 23 5 DLNA Configuration 24 5 1 XBMC 24 5 2 Control Point 24 6 Service API s
28. o control XBMC Go to Home gt Videos gt Add Source If Add Source doesn t appear make sure that you aren t in Library Mode Browse to the folder containing your mpg files press OK Change the name for the media source to Movies and press OK Press OK again Click on Movies you should be able to see the video files in the folder you selected Right click the video you want to add to your library and click Manually add to library Change the title to the following format SeriesName_SeriesNumber_ProgramName_AbstractAssetID mpg Select a genre or add a new one press ok Repeat the last 4 steps for all videos you want in your library Control Point Control Point is an Android application developed by Motorola After checking it out from SVN do the following 24 amp gt ARIOTOROLA VIOB ILITY e Open src res values strings xml e Change the defaultSyncUrl to whatever URL you use to post sync events to e Change defaultSleepPeriod to the interval in milliseconds for posting sync events e Connect your Android device to the computer via USB making sure that USB debugging is enabled e Once this is done go to Run gt Run As gt Android Application and select the device you have plugged in e You can now use the app from your Android device to connect to XBMC You may need to make sure that port 8056 which was set in XBMC is forwarded from the router that machine is connected to F
29. or this go to http www portforwarding com and find your router then follow the appropriate instructions 6 Service API s 6 1 Electronic Programming Guide The URI s for accessing the EPG data objects are listed below The BaseURI for GET is http SSERVER PORT WebServices tod v1 e g if you deploy it on localhost with 8080 port this would be http localhost 8080 WebServices tod v1 Motorola is hosting this service now and it was located at http 144 188 54 214 8080 WebServices tod v1 e GET lineups Retrieves a list of lineups e GET lineup lineup_id Retrieve the lineup of specified lineup_id e GET lineup lineup_id stations Retrieve the stations on the specified lineup of lineup_id e GET Ylineup lineup_id station station_id Retrieve the station of specified station_id on the lineup of lineup_id e GET Ylineup lineup_id station station_id asset Retrieve a list of Assets on the station of specified station_id on the lineup of lineup_id e GET Ylineup lineup_id station station_id asset starttime starttime endtime end ttime Retrieve a list of Assets on the station of specified station_id on the lineup of lineup_id whose starttime and endtime falls into the interval of starttime endtime e GET lineup ilineup id epg Retrieve the list of EPGstations of specified lineup of lineup_id An EPGStation contains a list of EPGAssets For more information please ref
30. r Pri Server Groups Servers 2 5 4 Default localhost 5432 Databases 8 MIN IdentityManagement Figure 2 pgAdmin SQL Browser 6 Navigate to the toolbar at the top and open up the SOL Ouery browser 7 Click File gt Open and select the IDMS sgl included with this document 8 Execute the sgl script 4 5 Sync Service The sync service is a web service that allows all data about sync events and devices to be stored in a Postgres database The identity management service is built on top of the Restlet Framework 4 5 1 Database Setup Open up the pgAdmin program and connect to your postgres database server default is localhost 5432 9 Right click on Databases 10 Click New Database 11 Create a database recommend using name SyncService for easiest setup 12 Select the newly created database 22 AA MAOTOFROLA VOBILITY A Ak ON amp Object browser Pr ts Server Groups Servers 2 Pre Default localhost 5432 FI Databases 8 Fs J IdentityManagement Es O Ban Fs Figure 3 pgAdmin SQL Browser 13 Navigate to the toolbar at the top and open up the SOL Ouery browser 14 Click File gt Open and select the SyncService sgl included with this document 15 Execute the sql script 4 6 Proxy Service The Proxy Service is built on top of the Restlet Framework It is the client portal to access the EPG Content Service and VodServerDouble You mus
31. re are two different options which are both explained below 7 3 1 Autodeploy Simply copy the war file into your domains autodeploy directory ex C path to glassfish domains domain1 autodeploy Another easy way to do this when using maven is to edit your pom xml file Add the following to your plugins cplugins lt grouplid gt org apache maven plugins lt groupId gt lt artifactId gt maven war plugin lt artifactId gt lt Contiguracion gt lt warName gt CompleteTVWebApplication lt warName gt lt failOnMissingWebXml gt false lt failOnMissingWebXml gt lt OUtpuLDirectory autodeply dir lt outputDirectory gt COnriguration gt plagin s 7 3 2 Web Deployment L Navigate to the admin interface for your glassfish installation by going to http localhost 4848 login jsf 2 Default Username is admin and default password is adminadmin 3 Click Applications gt Web Applications 30 amp gt RIOTOROLA VOBILITY 4 Click deploy 5 Choose the war file you wish to deploy and type in an application name Ez Common Tasks Applications Web Applications T Registration Deploy Enterprise Applications Modules E Application Server Specify the location of an application to deploy Applications can be in packaged files such war ear jar and rar v Applications Enterprise Applications ES Sean al CAT Location Packaged file to be uploaded to the server 8 mobile No file chosen EJB Modules Connector Modules Loca
32. s AA MAOTOFROLA VOBILITY 2 3 2 Config properties problem If it appears as if your configuration files are missing they probably are You shold manually try to copy the files into the correct location and see if the problem is fixed Copy files from src main resources config folder to WEB INF classes config folder within the war If you are unaware of how to edit things within a war file refer to Editing War files 3 Server Configuration The server is where you will be hosting all the software and external programs used by our application The first step you will have to do is get the Eclipse IDE You can get Eclipse at http www eclipse org 3 1JAVA Java can be downloaded at http java sun com javase downloads widget jdk6 jsp Be sure to set the JAVA HOME environment variable ex JAVA_HOME C Path to Java jdk1 6 0_20 Check the version numbers 1 6 0 20 may very well change 3 2Ant Ant is a build tool for java applications Ant can be downloaded at http ant apache org Set the ANT HOME environment variable ANT HOME D Path to ant 1 8 1 and add that variable to your PATH environment variable If you are unfamiliar with environment variables please see Managing Environment Variables 3 3 Sun Glassfish v2 1 1 Enterprise Server Glassfish v2 1 1 is the web server that host our applications Glassfish v2 1 1 depends on Java JDK and Ant If those are not installed yet please refer to Java and Ant Glassfish v2
33. s a cd Projects Apps tokyocabinet sudo configure sudo make sudo make check sudo make install A 0 aop g 3 4 2 Tokyo Tyrant 1 Download Tokyo Tyrant from http fallabs com tokyotyrant tokyotyrant 1 1 41 tar gz 2 Save it to your system 3 Open this page to view the installation instructions http fallabs com tokyotyrant spex html installation 4 Extract the file to the directory you want it in Projects Apps tokyotyrant Follow the installation instructions cd Projects Apps tokyotyrant sudo configure sudo make sudo make install Now run the server i ttserver To check the installation open another terminal and execute the following 1 cd Projects Apps tokyotyrant ii sudo make check A ono oR rh 3 4 3 Echoprint Server 1 Download the Echoprint Server from https github com echonest echoprint server 2 Save it to your system 3 Extract the file to the directory you want it in Projects Apps echonest echoprint server 4 Follow the instructions for How to run the server a cd Projects Apps echonest echoprint server solr solr b java Dsolr solr home Projects Apps echonest echoprint server solr solr solr Djava awt headless true jar start jar 3 4 4 Echoprint Codegen 1 Download the Echoprint codegen from https github com echonest echoprint codegen 2 Save it to your system 3 Extract the file to the directory you want it in Projects Apps echonest echoprint codegen 4 Follow the instruction
34. s Apps glassfish bin z5 Documents and Settings Team Motorolascd Projects Apps qlassfish bin Projects Apps qlassfish bin gt Type asadmin start domain to start all domains in GlassFish C Projects Apps glassfish bin gt asadmin start domain Starting Domain domaini please wait Default Log location is C Projects Apps glassf ish domains domaini logs server 1 og Redirecting output to C Projects Apps glassf ish domains domain1 logs server log Domain domaini is ready to receive client requests Additional services are bein g started in background Domain domaini is running Sun GlassFish Enterprise Server v2 1 1 v2 1 Patch 06 gt 9 1_62 Patch12 build h31g fcs 1l with its configuration and logs at C P ro jects Apps glassfish domains 1 Admin Console is available at http localhost 48481 Use the same port 4848 for asadmin commands User web applications are available at these URLs Chttp localhost 8686 https localhost 8181 1 Following web contexts are available I webl __wstx services l Standard JMX Clients like JConsole gt can connect to JMKServiceURL service jmx rmi jndi rmi motorola media 8686 jmxrmil for domain management purposes Domain listens on at least following ports for connections 8686 8181 4848 3766 3826 3926 8686 1 Domain does not support application server clusters and other standalone instanc es C Projects Apps glassfish bin gt _
35. s under Requirements for installing ffmpeg and taglib if you don t already have them installed a Weare using a Mac so we ran brew install ffmpeg boost taglib 5 Now make the codegen a cd Projects Apps echonest echoprint codegen src b sudo make c sudo make installPostgresSQL Configuration 9 amp gt ARIOTOROLA VIOBI LITY 3 5 PostgresQL PostgresSQL is the Database Management System that our application uses to store data PostgresSQL can be downloaded by http www enterprisedb com products services training pgdownload windows After running the windows installer and following the on screen instructions open up pgAdmin to verify that the install was successful 4 Synchronized Program Content Delivery Configuration 4 1 Electronic Programming Guide 4 1 1 Database Setup Create TOD database from postgreSQL Admin console From Tools on the main menu of the console select restore and select the TOD backup file to create all tables and load data into them Check the TOD database todasset table to see if data has been successful loaded 4 1 2 PostgreSQL jar files Copy postgresql 8 4 701 jdbc4 jar and Configuration LAB CoreEdge jar to your glassfish domains domain1 lib Change the configuration files contained in Configuration LAB CoreEdge jar according to your local settings For example inside the jar you need to change the following line in com_mot_tod_webservices xml lt p property id base_uri tip The UR
36. t fix the configuration files used by the proxy To do this you must change the file proxy war WEB INF classes conf conf properties so the Base URI s for the Content Service and the EPG point to the correct hose To edit files within a war file please refer to Editing Files inside a Web Archive After editing the files you must deploy the war to your glassfish server For instructions on deploying to a glassfish server refer to Glassfish Deployment 4 7 Mobile Web Application 4 8 Complete TV Applications The Complete TV applications are the wrapper applications so that the Mobile Web Application can be put into the Android market and iTunes store 4 8 1 Android 1 Refresh button web application oo M Address About 1 Address button can change web application address 23 AA RIO TO rOoLe A NIOB LITY Set Target URL http 35 9 22 247 8080 webapp 2 About button contain the Author and Special Thanks 5 DLNA Configuration 5 1 XBMC Download and install XBMC for whichever operating system you are running After it s installed do the following 5 2 Go to Home gt System gt Network gt Services Enable Share video and music libraries through UPnP Enable Allow Control of XBMC via UPnP Enable Allow Control of XBMC via HTTP Change the port to 8056 Enable Allow programs on this system to control XBMC Enable Allow programs on other systems t
37. timestamp userld 123 e GET user fuserld Get the most recent sync event for each device registered to user with id userId e POST user userld device deviceld Post deviceld and userId to the sync_request table for logging purposes No json is required in the request 7 Reference Manual This manual provides you with useful instructions on tasks that need to be done multiple times throughout the configuration process 7 1 Managing Environment Variables 1 Right click Computer then click Properties 29 AA ADIT DR Ml A MOBILITY 2 On the left side click Advanced system settings 3 In the advanced tab select environment variables 7 2 Windows Command Prompt 1 Click on the Windows start menu 2 Type cmd exe in the search box 3 Click and open the cmd exe program 7 3 Glassfish Deployment You will need to add a few extra libraries in glassfish_home lib asm 3 I jar activemq all 5 5 1 jar camel core 2 8 1 jar camel jms 2 8 0 jar cglib 2 2 2 jar commons logging 1 1 1 jar log4j 1 2 14 jar postgresgl 9 0 801 jdbc4 jar slf4j log4j12 1 5 11 jar spring asm 3 0 1 RELEASE jar spring beans 3 0 1 RELEASE jar spring context 3 0 1 RELEASE jar spring core 3 0 1 RELEASE jar spring expression 3 0 1 RELEASE jar spring jms 3 0 1 RELEASE jar spring tx 3 0 1 RELEASE jar You may also need to remove jackson asl jar Below are instructions on deploying a war file to a glassfish server The
Download Pdf Manuals
Related Search
Related Contents
(第5工区)(PDF:228.1KB) gymnastique artistique mode d`emploi des qualifications olympiques Importing Information to the Program Model PMD580 User Guide Network Solid State Recorder 7月15日号(PDF形式:940KB) Manager les competences Weider PRO 375 User's Manual Copyright © All rights reserved.
Failed to retrieve file