User's Manual
- The parameter alarmdescr must start with <alarmdescr> and end with the </
alarmdescr> tag
- The parameter msg must start with <msg> tag and end with the </msg> tag
- The parameter remove_after must start with <remove_after> tag and end with the
</remove_after> tag
• The parameter set_or_reset can supports the following values: *SET or *RESET
• The parameter group refers to a configured group defined in the eKERNEL_GROUP table
• The parameter alarm_descry refers to a configured alarm description, defined in the
eKERNEL_ALARM table
• The parameter remove_after supports the following values: *SENT, *RESET or *CALC
Refer to the appropriate chapters of this document for more information on the tables.
Introduction to a sockets client
Refer to the documentation of your development environment for more information on sockets
programming.
The code sample shown in Figure 36: Sample socket client code on page 69 describes an
introduction for beginner programmers on how to build a very simple Visual Basic program that
contacts the DECT Messenger eKERNEL module and delivers a message request. Note that
the source code is provided for illustration only, and does not include error recovery.
Creating a basic sockets client using Visual Basic
Creating a basic sockets client using Visual Basic
1. Start Visual Basic, and open a new project of Standard .EXE type. In the menu,
choose Project > Components and add the Microsoft Winsock Control component
to the project. This component usually refers to C:\WINNT
\system32\MSWINSCK.OCX.
2. Drag a CommandButton control to the form. You can use the default name
Command1.
3. Drag a Winsock control to the form. You can use the default name Winsock1.
4. Add the code shown in
Figure 36: Sample socket client code on page 69 in the
Private Sub Command1_Click.
5. Specify the correct IP address (the IP address of the system where eKERNEL runs)
and port number (the configured port for eAPI, as defined in
eKERNEL_TCPCLIENT table).
Introduction to a sockets client
DECT Messenger Installation and Commissioning — Book 1 March 2012 67