Jornada 720: Running programs
Setting the network configuration for Jornada
Your Jornada systems can run programs and send messages between them either through a central server (Rover network) or directly via an ad-hoc network.
Rover network configuration
- On Jornada go to Start/Programs/Orinoco Client.
- From menu Tools choose "Edit Wireless Profiles"
- In the dialog box that pops up press button Edit, Next>
- Insert "rover" for the Network Name and press Next> followed
by another Next> and Finish
- Close the application by pressing button OK for the dialog
box. An error popup will appear saying you don't have the card
connected yet, click on "x" to get rid of it. Click X for the
main application as well.
- Plug in the wireless card (if is already pluged in pull it
off and plug it again). A popup asking you if you want to use
this card on battery power will pop up. Click "Yes".
- From Control Panel select Network icon and from the list of
network cards select ORINOCO and press Properties button
- Select Radio button Specify an IP address and choose the option to obtain an IP address via DHCP
Ad-hoc configuration
- Start the program ORINOCO Client (Start, Programs) and
select Edit Wireless Profiles from the Tools menu.
-
Press Add button to add a new profile, choose CS415 for the profile
name, Peer-to-peer for the network type followed by Next>>
-
Choose CS415 for the network name and then NEXT>> and FINISH
- From Control Panel select Network icon and from the list of
network cards select ORINOCO and press Properties button
-
Select Radio button Specify an IP address and introduce
192.168.1.x as the IP Address where x is 4*group number+i (i is 1,2 or
3; different for each of the group members). For example if you are in
group 15 and your are the 2nd member x is 15*4+2=62 for you
- Set Subnet Mask to 255.255.255.0 and Gateway to 192.168.1.254
Tips and tricks for running programs on Jornada
- At the beginning of a program A , network_initialize() prints an IP address assigned to the machine (may be a Jornada system) on which the program A runs. The printed IP address must be used by another program B that runs on another machine (another Jornada system) and wants to communicate with program A. If program A runs on a Jornada system, you must unplug the USB cable from the Jornada system before running A in order for network_initialize to print the IP address assigned to the wireless card
- Because of the periodic clock interrupts, a program that runs on a Jornada system is shut down only when you reset the Jornada system
- A new method to give parameters to programs that run on Jornada system is defined in defs.h
Compiling Jornada applications in CSUG lab
- Install Handheld PC 2000 SDK on the desktop that communicates with the mobile device
- On the CSUGlab desktop add C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin to PATH environment variable :
- go to Start/Control Panel/Performance and Maintenance
- choose System option
- go to Advance
- choose Environment Variables
- go to User Variables
- if PATH environment exists:
- Select PATH environment
- Choose Edit option
- Add ";C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin" at the end of Variable Value field
- if PATH environment does not exist:
- Choose New option
- Enter "PATH" into the Variable Name field
- Enter "C:\Program Files\Microsoft Visual Studio .NET\Vc7\bin" into the Variable Value field
- On the CSUGlab desktop add C:\Program Files\Microsoft Visual Studio .NET\Vc7\include to INCLUDE environment variable :
- go to Start/Control Panel/Performance and Maintenance
- choose System option
- go to Advance
- choose Environment Variables
- if INCLUDE environment exists:
- Select INCLUDE environment
- Choose Edit option
- Add ";C:\Program Files\Microsoft Visual Studio .NET\Vc7\include" at the end of Variable Value field
- if INCLUDE environment does not exist:
- Choose New option
- Enter "INCLUDE" into the Variable Name field
- Enter "C:\Program Files\Microsoft Visual Studio .NET\Vc7\include" into the Variable Value field
- Open a shell window with cmd command
- Go to your project folder with cd command
- Clean the intermediate files with nmake clean command
- Compile the executable for Jornada with nmake wince command
-
If you use Active Sync to move a file to Jornada, you can specify the folder used by Active Sync on the desktop with the variable SYNCDIR from the Makefile_WinCE file.