Home Automation with Perl and X10 - perlmeister:家庭自动化与perlmeister.ppt
What ’ s X10? ? Sender sends signals over power lines ? Receiver switches electrical devices on/off ? Cheap Technology – Sender $10 – Receiver $10 What can you do with X10? Examples include …? Water your plants ? Reboot your cable modem ? Control any device via Gaim/Jabber X10 Signal Flow X10 CM11 Control Unit ? Serial plug connects to PC ? Power plug injects X10 signals into power line ?< $10 plus shipping on Ebay ? Don ’ t have a serial port? Buy a PCI card (ttyS4/5) ? Alternatively: CM17 (RF) No Serial Port? ? PC: $10 PCI card –/dev/ttyS4 ? Mac: $30 Keyspan 19HS –/dev/ttyS0 Receiver ? . connected to your Cable Modem: Protocol ? One four-bit house code (A-P) ? One or more four-bit unit code(s) (1-16) ? One four-mand ? Example: “ House Code K ”, “ Unit 9 ”, “ Turn on ” How X10 transmits How X10 transmits Protocol ? 1110 Starting sequence ? Binary 1: Presence, Absence ? Binary 0: Absence, Presence ? Each signal sent twice ? Overall data transfer: 20 bits/sec
Home Automation with Perl and X10 - perlmeister:家庭自动化与perlmeister 来自淘豆网www.taodocs.com转载请标明出处.