Wincomm WEB-6681 Series Manual de usuario Pagina 3

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 5
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 2
Escape
g) Interface Hardware
On selecting Hardware the following menu appears
Datapin 1 on Datapin 1
off
Datapin 2 on Datapin 2
off
Pattern 1 Pattern 2
Pattern 3
2)
Operations
In this section
we
discuss the internal operations which are
perfonned by the "ARC Client Program".
Firstly the program discovers all the nearby devices using
startlnquiry( ) [6].
Figure 3. Inquiry Flow. Adapted from Sun Website.
Once the device
is
discovered a RFCOMM Stream
connection or a virtual serial port connection is established
with the Personal Computer and the Interface three is
displayed to the user. On the selection
of
an option from a sub
menu a command is sent to the "ARC Server Program".
This command is actually a 5 character code.
XXXXX
43210
Character 4,3,2,1 defines the application on which
the operation has to be done. Character 0 defines the operation
which has to be done on the application specified
by
the
character 4,3,2,1.
E.g.
If
the user selects Previous from the Interface
Microsoft PowerPoint then the following code
is
generated.
a a
abc
43210
Here aaab is for Microsoft PowerPoint and c stands for
Previous.
B.
ARC
Server Program
The "ARC Server Program" has been implemented using
J2SE.
1)
Interfaces
of
ARC
Server Program
The server has only one interface which
is
to be used
by
the
user to select the virtual COM port where the Bluetooth serial
port server
is
running.
The interface
is
shown below.
Figure 4. ARC Server
As soon as the user selects a COM port and presses
the Open Port button the ARC server will start and will run in
the system tray hereafter.
The system tray interface
of
ARC server is shown
below.
Figure
5.
ARC in Windows tray.
2)
Operations
The commands received from the client will be decoded and
the corresponding action will be performed
by
the ARC
server.The ARC server has four classes namely Blue,
TrayInterface,
W32
Uti!,
AlertDialog.
Blue class is the main class
of
ARC server. This class uses
driver "com.sun.comm.Win32Driver" to access various
functionalities
of
the Virtual serial ports. The available COM
port list is then read using a separate module
of
the Blue class.
To open a port for reading, on selected COM port an
independent module is executed. In this module a module
is
used for reading command on this port. In order to avoid
errors exception handling [8] has been very efficiently used.
Errors are reported to the user using class
AlertDialog.
Authorized licensed use limited to: ZAKIR HUSSAIN COLLEGE OF ENG AND TECH. Downloaded on March 2, 2009 at 07:16 from IEEE Xplore. Restrictions apply.
Vista de pagina 2
1 2 3 4 5

Comentarios a estos manuales

Sin comentarios