Sanav GC-101 Manual de Instalação Página 31

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 30
9) Creating your own Device Communication Server
In order for OpenGTS to receive data from a device, a customized "Device Communication Server" will need to be
implemented that understands the protocol used to communicate with the remote device, and insert received events into
the SQL database. This section provides a brief description of the example 'template' servers provided with OpenGTS
for implementing your own remote device communication server.
The method used by remote devices to transport events to the server varies greatly with the manufacturer of the device.
Some transport data to a server via SMS messages, some use an SMTP email transport to send data to a server, some
use an HTTP-based protocol which encode data in the request to the server, and many use some form of raw-socket
based communication (via TCP/UDP) to connect to a listener on the server to transmit data. In order to create a device
communication server that is able to parse incoming data from a device, an intimate understanding of the specifics of
the protocol used by the device manufacturer is required. OpenGTS includes examples for HTTP-based servers, and
raw-socket based servers (supporting both TCP and UDP), however, since each device manufacturer typically has their
own protocol and way of transporting data, these example servers cannot be assumed to just-work with any/every
device. Depending on the particular device chosen, there may be a significant and substantial amount of work
necessary in order to support the chosen hardware device.
The first, and most important, step when starting to implement a device communication server for a chosen hardware
device is to obtain and fully understand the protocol documentation from the manufacturer of the device. While http-
based communication can often be reverse-engineered from observing the data arriving at the server, attempting to
reverse-engineer a raw-socket based protocol can prove extremely difficult, if not impossible, without proper protocol
documentation.
9.a) Important note regarding the implemention of a device communication server:
Implementing a device communication server for a given device may take a significant and substantial amount
of programming work to accomplish, depending on the device protocol. To implement a server, you will likely
need an in-depth understanding of TCP/UDP based communication, and a good understanding of Java
programming techniques, including socket communication, multi-threading, and possibly bitwise manipulation
techniques for extracting bit fields from binary data (including knowing whether the tracking device sends data
in big-endian or little-endian formats). If using an http-based protocol, you may also need an understanding of
how servlets are built, and how they operate within a Servlet container, such as Apache Tomcat.
OpenGTS Configuration and Installation Manual Page 31 of 60
Vista de página 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 59 60

Comentários a estes Manuais

Sem comentários