Clipsal C-Bus Guia do Utilizador Página 12

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 60
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 11
cbus Documentation, Release 0.1-dev
2.3 Setting up a fake CNI and sniffing the protocol
If you want to see how Toolkit interacts with a Serial PCI, use the tcp_serial_redirect.py script from the
pySerial example scripts. This can be run even on a non-Windows machine, for dealing with pesky 100 different
revisions of PL2303 USB-Serial adapters that require different and conflicting Windows drivers. For example:
$ python tcp_serial_redirect.py -p /dev/ttyUSB0 -P 22222
Congratulations, you now have turned your computer and a 5500PC into a 5500CN without writing a single line of
custom code, and saved about 200$. Even a Beaglebone can be had for less than 200$. ;)
Go into Toolkit, set the Default Interface type to “IP Address (CNI)” with the IP and port of the machine running the
serial redirector.
You can then use tools like Wireshark to monitor interactions with the C-Bus PCI, instead of using kernel hacks to
sniff serial, other redirects, or wireing up your own serial sniffer device. This will aid if you wish to use undocumented
commands, or isolate issues in the Clipsal documentation.
You could also use this with tools like C-Gate to get a higher level interface with the C-Bus PCI.
2.4 USB support / 5500PCU
Clipsal’s driver is not digitally signed.
It appears to use the driver silabser.sys on Windows, which corresponds to a Silicon Labs CP210X USB-serial
bridge. cbususb.inf lists the following products:
10C4:EA60: Generic SiLabs CP210X
166A:0101: C-Bus Multi-room Audio Matrix Switcher (560884)
166A:0201: C-Bus Pascal/Programmable Automation Controller (5500PACA)
166A:0301: C-Bus Wireless PC Interface (5800PC). This appears to be an unreleased product.
166A:0303: C-Bus Wired PC Interface (5500PCU)
166A:0304: C-Bus Black & White Touchscreen Mk2 (5000CT2)
166A:0305: C-Bus C-Touch Spectrum Colour Touchscreen (C-5000CT2)
166A:0401: C-Bus Architectural Dimmer (L51xx series)
2.4.1 Linux kernel module
The cp210x kernel module in Linux 2.6.30 and later supports this chipset. However, only the generic adapter and
5500PCU device IDs are included with the kernel for versions before 3.2.22 and 3.5-rc6.
Your distribution vendor may backport the patches in to other kernel versions.
To see which devices your kernel supports, run the following command:
$ /sbin/modinfo cp210x | grep v166A
If the following is returned, you only have support for the 5500PCU:
alias: usb:v166Ap0303d
*
dc
*
dsc
*
dp
*
ic
*
isc
*
ip
*
If more lines come back, then your kernel supports all the hardware that is known about at this time.
8 Chapter 2. Hacking
Vista de página 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 59 60

Comentários a estes Manuais

Sem comentários