Section 4

From CS160 User Interfaces Fa06

Jump to: navigation, search

Contents

Setting up the system

This section will help you set up Anoto an R3 on your own system. I will be referring to Ron Yeh's help page [[1]]

Development Environment

You can find a list of required and recommended tools at [[2]]. The smallest subset of those required to get started are the following:

  • You can use your favorite Java IDE. Here is mine: Eclipse IDE [[3]]
  • If you want to be up to date with the R3 toolkit, you'll need Tortoise SVN from [[4]]

Anoto SDK

  • You should now have a copy of the Anoto SDK given out by us during the sections. If you missed the sections come and see me or Jerry. Install the SDK on your system as you would with any windows application.
  • There are two options for getting the R3 toolkit: First, grab it off from a local site, here [[5]]. This link will always contain the version of the toolkit that I'm currently using to write the demo applications, and hence I'll likely be able to answer questions or help troubleshoot when you run into problems with the toolkit.

    The other option is to grab the most recent release of R3 from Google Code; follow the instructions here [[6]] (You'll need to install Tortose SVN first). For those of you going for the second option there is one caveat: R3 is a research toolkit that's under active developement, hence the latest release will likely contain code that I have not seen. As such, I'll be much less of a help if problems crop up as result of newly added toolkit source.

  • Next, you want to import R3 into your eclipse IDE. If you are not familiar with Eclipse then follow the link [[7]], scroll down to point 5 and start from there.

Mead demo

If the first section, we'll show you both Anoto's batch and streaming capabilities. For this exercise, we'll be using the Mead 8.5 by 11 notebook.

Batch

Make sure your pen is properly charged. Take out your Mead note book and scribble something on one or more pages. When you are done, dock your pen into the cradle. A dialog should pop up to show that data is being uploaded. Wait for it to finish, then open the Nokia browser to view the scribbles you've just created.

Streaming

To set up streaming follow the instructions set out in this page: [[8]]. You can safely skip the firmware upgrade task since the pens we give you have already been "flashed" with the required upgrade (thanks Jerry!).

For streaming you'll need a Bluetooth receiver. We'll be supplying you with Bluetooth dongles or you can also use the in-built Bluetooth on your laptop.

Since Bluetooth receivers have a reception range of about 10m, a single receiver will pick up more than one Nokia Pen in the room. To disambiguate, you will be given an unique MAC address for the pen in your possession. After you've done step 6 "Search for devices in range" in [[9]], look at the text description of the device and find the line between "Nokia SU-1B" and "Image Device". That line is the MAC address of the corresponding pen. For example, mine reads 00:07:cf:53:71:06. Find the pen that matches your MAC address. Follow the remainder of the instructions [[10]] to finish the setting up.

To test that your pen is streaming, we'll be providing you a little demo application which you can download from [[11]]. There are a number of ways to run the .jar. One simple way is to make a new project in Eclipse, call it MeadDemo. Then, Right-click -> Properties, and select Java Buildpath. Under "Projects" add the R3 toolkit; under "Libraries", click "Add External Jar" and add mead.jar. Finally, click "Ok". You should now see mead.jar appearing under your project in the package explorer.

To run the mead demo, right click mead.jar -> Run as "Java Application". Voila! Now scribble on your Mead notebook to see live rendering of the strokes.



[add comment]
Personal tools