U
SER
M
ANUAL
WRAP
P
RODUCT
S
ERIES
Example, source in
wrap/src/examples/
Usage, when installed to mnt/ram/tmp and
it is the current directory
Purpose
helloworld
./helloworld
The "Hello, world!" application.
serial
./serial /dev/ttyS3
"Hello, world!" to the serial port.
btsend
./btsend – 12 on the first device,
./btsend <bdaddr of first> 12 on second
Machine 2 Machine example.
"Hello, world!" over Bluetooth.
Note:
currently uses the default
Bluetooth password "buffy"
io/led
io/dip
io/gpio
io/ad
./led
./dip
./gpio
./ad
I/O: LED example.
I/O: DIP example.
I/O: GPIO example.
I/O: A/D example.
Only for WRAP 2151.
m2n
echo testmessage | ./m2n
Machine 2 Networks example.
System Logger configuration
needed for actual remote
connection. Without it, simulates
it locally.
man2m ./ledserver
&
browse with Java-enabled browser to
Note:
assumes WWW pages moved as
guided.
Man 2 Machine example. Also
demonstrates Java applets.
Note:
assumes WWW pages moved as
guided.
Demonstration of the web server
capabilities.
waba CLASSPATH=$CLASSPATH:.
export CLASSPATH
waba –a ConnectionTest
cat tmp
A WABA application which
retrieves a web page from
http://www.hut.fi into file "tmp"
Note:
assumes WWW pages moved as
quided, "makesms" example application is
in /usr/local/bin and WRAP SMS
Gateway is up and running (see section
4.2.2).
Demonstrates WRAP SMS
Gateway by sending SMS
messages with required Nokia
N30 or N20 GSM Terminal.
obexbrowser
Documented in the WRAP SDK Manual.
Demonstrates the usage of the
WRAP OBEX libraries
implementing Object Push
Profile and File Transfer Profile
clients.
Table 5. Examples, Their Usage and Purpose.
If you do not want to re-install the examples after every system power-off, they can be stored to the flash
filesystem. Simply use mv command to move the executables of the examples you want to save into
/usr/local/bin. After this, you can execute the examples from anywhere (without the ./) and access the web
examples directly under
4.6 S
YSTEM
R
E
-I
NSTALL
The WRAP platform can be re-installed with the WRAP CD. It contains applications for both Windows and
Linux that erase the flash file system and re-install the platform with the default configuration settings. The
same program can be used to upgrade the WRAP or to reset the WRAP to initial (delivered) state.
23 (26)