Overview
In this tutorial I will be going through how to use a Garmin GPS device, DISE Parser and some scheduling to create a location aware digital signage presentation, for use in a moving train, for example.
Files used in this tutorial
Download: File:POI.zip
Setup
- Follow the instructions given in DISE Parser Modifiers to setup your GPS device.
- Extract the attached files in "C:\DISEContent\Content\GPS".
- In DISE Parser, File > Import the "C:\DISEContent\Content\GPS\poi_simulate.dpmodifiers" file.
- Open up and take a look at the file "C:\DISEContent\Content\GPS\poi.xml". This file contains Points of Interest, a sample POI equals to the DISE HQ in Karlstad, Sweden. The id "DISEHQ" is what Parser will send on the network.
- (You can later copy this POI and give your new POI ids and positions (latitude and longitude), but for now leave it as is).
Initial testing
- Open up DISE Replay.
- Go into Replay's settings and the Communication tab.
- Check the boxes Enable Remote Control of this player and Enable multicast communication.
- Make sure IP is set to "224.1.1.100" and Port is "4000".
- Click Ok.
- Select Information > Remote Control View in the top menu. You will now be able to see incoming messages on the multicast address (none yet).
- In DISE Parser, click Test to start the process.
- Open up the file "C:\DISEContent\Content\GPS\simulate.xsl" in a text editor. Look for the following line:
Example:
<xsl:variable name="simulated_distance" select="51"/>
- Change the 51 to 50. Save the file.
- Notice that in Replay in the Remote Control View dialog, when the distance changes to be less or equal to 50, its id will be sent and displayed as: "<timestamp>|Garmin|DISEHQ", once every second.
Create and schedule content
DISE Composer
- I create two DISE Movies, one that will be play by default and one that will be triggered.
- In the first DISE Movie, background.disemovie, I insert a simple image.
DISE Bridge
- Create a new destination.
- In the "Main" channel, drag and drop the file background.disemovie.
- Create a new channel, and call it "POI".
- We want this channel to appear when "DISEHQ" is on the multicast channel, indicating that the point of interest "DISEHQ" is less than 50 meters away.
- Select the channel POI, put some content for triggered play, the file disehq.disemovie.
- Right click the POI channel and select Schedule.
- In the Remote Control tab, check Remote Control and type Garmin|DISEHQ in the Trigger field.
200px
- This informs the channel that it should listen for the trigger "DISEHQ" with the identity "Garmin".
- In the Valid field enter 10. It is how long after the POI has been passed the channel should be visible.
- Send out the destination.
DISE Replay
Test
Before deployment
- To use the real device, in DISE Parser, File > Import and select the file "C:\DISEContent\Content\GPS\poi.dpmodifiers".
- Add points of interests in the poi.xml file.
- Tweak the settings for the accuracy in the near.xsl file.
- Look for the following line:
Example:
<xsl:variable name="radius" select="50"/>
- This specifies the radius of the area within which the POI will be detected.
- Click the Install button to make Parser a Windows service, then Start to start the service.