
cbus Documentation, Release 0.1-dev
on_lighting_label_text(source_addr, group_addr, flavour, language_code, label)
Event called when a group address’ label text is updated.
Parameters
• source_addr (int) – Source address of the unit that generated this event.
• group_addr (int) – Group address to relabel.
• flavour (int) – “Flavour” of the label to update. This is a value between 0 and 3.
• language_code (int) – Language code for the label.
• event_bytes (str) – Label text, or an empty string to delete the label.
on_mmi(application, bytes)
Event called when a MMI was recieved.
Parameters
• application (int) – Application that this MMI concerns.
• bytes (str) – MMI data
on_pci_cannot_accept_data()
Event called whenever the PCI cannot accept the supplied data. Common reasons for this occurring:
•The checksum is incorrect.
•The buffer in the PCI is full.
Unfortunately the PCI does not tell us which requests these are associated with.
This error can occur if data is being sent to the PCI too quickly, or if the cable connecting the PCI to the
computer is faulty.
While the PCI can operate at 9600 baud, this only applies to data it sends, not to data it recieves.
on_pci_power_up()
If Power-up Notification (PUN) is enabled on the PCI, this event is fired.
This event may be fired multiple times in quick succession, as the PCI will send the event twice.
on_reset()
Event called when the PCI has been hard reset.
pci_reset()
Performs a full reset of the PCI.
pciserverprotocol Module
class cbus.protocol.pciserverprotocol.PCIServerProtocol
Bases: twisted.protocols.basic.LineReceiver
Implements a twisted protocol listening to CBus PCI commands over TCP or serial.
This presently only implements a subset of the protocol used by PCIProtocol.
application_addr1 = 255
application_addr2 = 255
basic_mode = True
checksum = False
connect = False
8.1. cbus Package 39
Comentários a estes Manuais