Clipsal C-Bus Betriebsanweisung Seite 1

Stöbern Sie online oder laden Sie Betriebsanweisung nach Touchscreen-Monitore Clipsal C-Bus herunter. Clipsal C-Bus User guide Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Michael Farrell

cbus DocumentationRelease 0.1-devMichael FarrellDecember 10, 2014

Seite 2

cbus Documentation, Release 0.1-dev6 Chapter 1. Introduction

Seite 3

CHAPTER 2HackingInformation about using the hardware and software.2.1 Official documentationOfficial serial protocol documentation is available from Cli

Seite 4 - Python Module Index 51

cbus Documentation, Release 0.1-dev2.3 Setting up a fake CNI and sniffing the protocolIf you want to see how Toolkit interacts with a Serial PCI, use t

Seite 5 - Contents 1

cbus Documentation, Release 0.1-dev2.5 Unit TestsThere’s some basic unit tests that are written that require you have the nosetests package (nose on p

Seite 6 - 2 Contents

cbus Documentation, Release 0.1-dev10 Chapter 2. Hacking

Seite 7 - 1.1 What is CBus?

CHAPTER 3CNI DiscoveryAt the moment this is a rather unorganised set of notes while I’m still figuring out the protocol.I’ve started working on a test

Seite 8 - 1.4 Installing

cbus Documentation, Release 0.1-devProduct IDs:• 01: CNI2• 02: Hidden – Toolkit ignores packets with this product ID. May be used for internal develop

Seite 9 - 1.4.3 Windows

CHAPTER 4WiserThe Wiser is a rebadged SparkLAN WRTR-501 802.11b/g/draft-n WiFi Router with custom firmware. It runs anembedded Linux system, with an ex

Seite 10 - 6 Chapter 1. Introduction

cbus Documentation, Release 0.1-dev4.2 Protocol4.2.1 Discovery and HandshakeAfter the SWF is started, it loads the configuration file from /clipsal/reso

Seite 11 - 2.2 CNI / network protocol

cbus Documentation, Release 0.1-dev<ka cbus_connected="1" /><cbd_version version="Kona_1.24.0" /><net_status cni_tr

Seite 13 - 2.5 Unit Tests

cbus Documentation, Release 0.1-dev4.4 CFTPCFTP is a service which acts as a back-door into the device. It runs on port 8336, and is managed by the se

Seite 14 - 10 Chapter 2. Hacking

cbus Documentation, Release 0.1-dev4.4.3 Authenticated stateWhen in the authenticated state, the network code appears to be far less robust. Sending l

Seite 15 - CNI Discovery

cbus Documentation, Release 0.1-devGETFILELISTClient command:GETFILELISTServer response:202 FILE1=C:\HomeGate\Projects\Current\EXAMPLEproj.tar.gzRetri

Seite 16

cbus Documentation, Release 0.1-dev– cftp_daemon will not be able to copy a new project file into RAM temporarily for flashing, and may be perma-nently

Seite 17 - 4.1 Downloading SWFs

cbus Documentation, Release 0.1-dev20 Chapter 4. Wiser

Seite 18 - 4.2 Protocol

CHAPTER 5daemonsThe cbus.daemon package defines a number of daemons used to interact with the C-Bus network.5.1 cdbusdcdbusd is a daemon that is used t

Seite 19 - 4.3 Getting a shell

cbus Documentation, Release 0.1-dev• saged which is a backend WebSockets server that translates WebSockets messages into messages in cdbusd,and implem

Seite 20 - 4.4 CFTP

cbus Documentation, Release 0.1-dev• locations: A dictionary of locations, with the key representing the ID of the location, and the value repre-senti

Seite 21 - 4.4.3 Authenticated state

cbus Documentation, Release 0.1-dev5.3.3 ScreenshotsAndroid (Chrome)24 Chapter 5. daemons

Seite 22 - 4.4.4 Project file transfer

cbus Documentation, Release 0.1-dev5.3. sage 25

Seite 23 - 4.5 Firmware image

Contents1 Introduction 31.1 What is CBus? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.2 Clipsal’s o

Seite 24 - 20 Chapter 4. Wiser

cbus Documentation, Release 0.1-deviOS “Web App”26 Chapter 5. daemons

Seite 25 - 5.3 sage

cbus Documentation, Release 0.1-dev5.3. sage 27

Seite 26 - 5.3.1 Running

cbus Documentation, Release 0.1-dev5.4 stagedstaged is a scene control daemon. This isn’t finished yet.It connects to cdbusd, and allows you to create

Seite 27 - 5.3.2 Other options

CHAPTER 6dump_labels utilitydump_labels parses a Toolkit backup file (CBZ) and prints out group and unit address labels into a JSON file.It will remove

Seite 28 - 5.3.3 Screenshots

cbus Documentation, Release 0.1-dev30 Chapter 6. dump_labels utility

Seite 29 - 5.3. sage 25

CHAPTER 7D-Bus Client APIThe recommended way to interact with libcbus is through cdbusd and it’s D-Bus API.It allows many applications, written in any

Seite 30 - 26 Chapter 5. daemons

cbus Documentation, Release 0.1-dev• level (d) – An amount between 0.0 and 1.0 indicating the brightness to set.Returns Single-byte string with code f

Seite 31 - 5.3. sage 27

CHAPTER 8libcbus module index8.1 cbus PackageThis is the package where all C-Bus modules are defined.8.1.1 Common functionscbus.common defines various c

Seite 32 - 5.4 staged

cbus Documentation, Release 0.1-devThrows ValueError If the given duration is too long and cannot be represented.cbus.common.get_real_cbus_checksum(i)

Seite 33 - 6.1 Invocation

cbus Documentation, Release 0.1-devclass cbus.protocol.base_packet.SpecialPacketBases: cbus.protocol.base_packet.BasePacketchecksum = Falsedestination

Seite 34

Python Module Index 51ii

Seite 35 - D-Bus Client API

cbus Documentation, Release 0.1-devapplication = Noneclassmethod decode_packet(data, checksum, flags, destination_address_type, rc, dp, priority_class)

Seite 36 - # Stops ramping on GA 5

cbus Documentation, Release 0.1-devParameters line (str) – CBus event dataReturns Remaining unparsed data (str) or None on error.Return type str or No

Seite 37

cbus Documentation, Release 0.1-devReturn type stringlineReceived(line)Called by LineReciever when a new line has been recieved on the PCI connection.

Seite 38 - 8.1.2 Protocol

cbus Documentation, Release 0.1-devon_lighting_label_text(source_addr, group_addr, flavour, language_code, label)Event called when a group address’ lab

Seite 39

cbus Documentation, Release 0.1-devconnectionMade()Called by twisted a connection is made to the PCI.This doesn’t get fired in normal serial connection

Seite 40

cbus Documentation, Release 0.1-devlighting_group_terminate_ramp(source_addr, group_addr)Stops ramping a group address at the current point.Parameters

Seite 41

cbus Documentation, Release 0.1-devApplicationsRunning ontop of the C-Bus protocols are applications.This package provides encoders and decoders for a

Seite 42

cbus Documentation, Release 0.1-devParameters• packet (cbus.protocol.base_packet.BasePacket) – The packet that this SAL is to be includedin.• variable

Seite 43

cbus Documentation, Release 0.1-devclassmethod decode(data, packet)Decodes a enable control application packet and returns it’s SAL(s).Parameters• dat

Seite 44

cbus Documentation, Release 0.1-devBase type for lighting application SALs.This should not be called directly by your code!Use one of the subclasses o

Seite 45

cbus Documentation, Release 0.1-devProject Page / Source repository: https://github.com/micolous/cbuslibcbus is a set of Python libraries for interact

Seite 46

cbus Documentation, Release 0.1-devclass cbus.protocol.application.lighting.LightingOffSAL(packet, group_address)Bases: cbus.protocol.application.ligh

Seite 47 - Enable Control Application

cbus Documentation, Release 0.1-devclass cbus.protocol.application.temperature.TemperatureSAL(packet=None,group_address=None)Bases: objectBase type fo

Seite 48

cbus Documentation, Release 0.1-devThis library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even theimplied w

Seite 49

CHAPTER 9Indices and tables• search49

Seite 50

cbus Documentation, Release 0.1-dev50 Chapter 9. Indices and tables

Seite 51 - 8.1.3 toolkit Package

Python Module Indexccbus.common, 33cbus.protocol.application.clock, 42cbus.protocol.application.enable, 43cbus.protocol.application.lighting, 44cbus.p

Seite 52 - Invocation

cbus Documentation, Release 0.1-dev52 Python Module Index

Seite 53

IndexAadd_cbus_checksum() (in module cbus.common), 33application (cbus.protocol.pm_packet.PointToMultipointPacketattribute), 35application_addr1 (cbus

Seite 54

cbus Documentation, Release 0.1-devdecode_cbus_event() (cbus.protocol.pciprotocol.PCIProtocolmethod), 36decode_cbus_event() (cbus.protocol.pciserverpr

Seite 55

cbus Documentation, Release 0.1-devlighting_group_terminate_ramp(), 32lighting_group_terminate_ramp()(cbus.protocol.pciprotocol.PCIProtocolmethod), 37

Seite 56 - 52 Python Module Index

cbus Documentation, Release 0.1-dev2 Contents

Seite 57

cbus Documentation, Release 0.1-devSpecialServerPacket (class in cbus.protocol.base_packet),35status_request (cbus.protocol.pm_packet.PointToMultipoin

Seite 58

CHAPTER 1IntroductionWelcome to libcbus!This is a Python library for interacting with Clipsal CBus units, and provides some additional utility functio

Seite 59

cbus Documentation, Release 0.1-devlibcbus also includes an abstraction daemon called cdbusd which will allow multiple applications to simultane-ously

Seite 60

cbus Documentation, Release 0.1-dev1.4.2 Mac OS XIn order to run this software, you’ll need to first install Xcode (from the App Store) and MacPorts.Yo

Kommentare zu diesen Handbüchern

Keine Kommentare