Clipsal C-Bus Guia do Utilizador Página 8

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 7
cbus Documentation, Release 0.1-dev
libcbus also includes an abstraction daemon called cdbusd which will allow multiple applications to simultane-
ously use the PCI. This daemon requires D-Bus, which is not available on Windows. Other components of libcbus
will continue to function.
1.2.2 Comparison to C-Gate
C-Gate is Clipsal’s own C-Bus control software. It is a closed source application written in Java, that uses the SerialIO
library (also closed source) or sockets to communicate with a PCI.
Toolkit itself uses C-Gate in order to communicate with the PCI. It supports a wide range of operations through it’s
own protocol, including reprogramming units on the network.
However, the SerialIO library included with C-Gate is only available on 32-bit platforms, and even then only on
Windows and ancient versions of Linux.
1.3 So where does libcbus come in?
libcbus primarily provides three ways to communicate with C-Bus, with varying levels of complexity and abstraction:
A low level API which allows direct encoding and decoding of packets. It exposes parts of the packet as classes
with attributes.
A medium level API which handles access to the C-Bus PCI through the Twisted networking library and PySe-
rial. You can insert your own protocol handler, or work with the lower level API in order to access the library at
a level that suits you. There are both server (FakePCI) and client interfaces.
A high level API which provides access to C-Bus over DBus. This allows multiple applications on your com-
puter to interact with the CBus network in a simple way, and allows you to use other DBus supporting languages
(such as bash, C, C#, Perl, Python, Ruby, and Vala) to interact with the network through a single PCI.
libcbus does this using completely open source code (LGPLv3), and works across all Python supported platforms.
Platforms that don’t support DBus (such as Windows) will be able to use the lower level APIs only, and lack the
sharing functionality.
I’ve tested this primarily with Linux on armel, armhf, amd64 and i386, and Windows on amd64.
1.4 Installing
Note: This section is incomplete.
1.4.1 Linux
Most Linux distributions have D-Bus installed by default. As a result, you should only need to install the Python
bindings:
python-dbus
4 Chapter 1. Introduction
Vista de página 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 59 60

Comentários a estes Manuais

Sem comentários