Vector Databases 101 - An introduction to the world of Vector Databases
Domotic dojo!
1. Domotic Dojo! Why me? What is domotic? What is home automation? What are the current platform? What are the current trends? How does Robomotic see the future? 7/16/2011 1 www.robomotic.com
2. An overview Domotic Home Automation Robotic Artificial Intelligence Mechatronic
3. Robots are taking over Yes they are taking over Roomba sold 940,000 vacuum in 2008, not too bad for a young market
9. Home automation It is the use of computerized systems or components to control devices and/or processes, in a hose or building, so that the user of the compound can satisfy their needs in a more simple, quick and effective way, than without automation.
10. Domotic Introduced in 1984 by Bruno De Latour Several meanings: Domus + Informatics Domestic robotics It is ubiquitous home automation with built in intelligence A typical architecture follows
11. Domotic Architecture Internet RF wired or Wireless network Gateway Stuff App Layer: Simplicity RF layer: Zigbee etc. Pachube Internet of Things FHEM HouseAgent HomeNet
12. RF layer RF layer: carrier frequency and modulation Example: 433 Mhz, ASK modulation IEEE standard allocates RF bands for home and recreational use: Sub Ghz band:300-348 MHz, 387-464 MHz and 779-928 MHz 2.4 Ghz band: Zigbee What is better in the indoor environment?
17. Security Private and public encryption could be implemented virtually on every RF layer but.. Lower frequency= lower data rate Most cheap producers don’t bother Common RF protocols are vulnerable to reply attacks. High end RF modules provides dedicated hardware like AES block etc.
18. Security examples TI CC2520: 128 bit AES Xbee: 129 bit AES hardware and asymmetric encryption PanStamp implements NONCE with the CC1101 Jeenode uses a simple MD5 symmetric
19. ZigBee ISO standard 2003: IEEE 802.15.4 ISO manufacturers: Ember: certified original firmware stack Amber wireless: Zigbee. Sub Ghz, Bluetooth Texas Instruments: Zigbee. Sub Ghz, Bluetooth DigiMark from Zigbee Standard Freaklabs: open source firmware stack!
24. And now the bad news... Although we kind of managed to choose a common RF protocol A proliferation of application protocols: FS20, FHT, HMS, OneWire, X10, S300, EM, HomeMatic, KNX
25. A first attempt: KNX KNX is the only global standard for home and building control with A single, manufacturer independent design and commissioning tool (ETS). A complete set of supported communication media (TP, PL, RF and IP). A complete set of supported configuration modes (system and easy mode). Why is not widely adopted? Don’t ask me!
26. Zwave an example How closed and open source coexists Zwave is proprietary BUT some vendors opened and now there’s Open ZWave
27. What about the open community? Open hardware: Sensor network like Jeenode, Panstamp, Norduino Plug computers: Chumby Hacker Board, Open Picus, TuxGraphics Board Open software: Gateways: HomeNet, HouseAgent, FHEM Utils ... Protocols: PANSTAMP Cloud computing: Pachube, ThingSpeak
29. Anatomy of a gateway FHEM: GPL'dperl server for house automation Supports many protocols except OpenZWave RF interface: CUL busware Web Front End Client: command line,telnet, TCP/IP Control Logic Perl Protocol Decoder Hardware RF
39. Heterogeneous hardware RF module MCU Sensor type IO Different MCU, different IO BUT all based on the same radio interface: NORDIC NRF24L01+ or NRF24L01 A simple but effective 2 Mbps transceiver in the 2.4 Ghz band
40. Heterogeneous hardware RF module Same MCU Sensor type IO But also can be a different RF module like the RFM12B in Sub Ghz band
41. Application protocol: Panstamp Lightweight and simple eXtensible & portable Support for automation and medical devices Decision: Panstamp X
42. Panstamp is registry based Set of standard registers Set of custom registers Light Humidity HeartRate Encapsulated in standard packet
43. Gateway level Software Hardware OpenPicus Chumby Gateway Decoders Arduino Plug Computer Protocol XML USB serial or HID
44. Integration Cloud: Pahcube Local: Web House Agent Home Net Home Net Plugin PanStamp Jeenode Medical Simplicity Protocol Decoder USB serial or Driver RF receiver: Nordic, Jeenode, Bluetooth
52. Freescale iMX.233 processor running at 454 MHZ 64 MB onboard RAM Comes with 512MB uSD card with 100 MB Linux installation all ready to go Three USB ports! MMA7455 3-axis +-2G to +-8G accelerometer on-board 3.3V TTL serial port for easy shell access Full GCC toolchain is ready for you to download and get crackin'! Chumby hacker board
A breakdown by application: 30 percent (20,000 units) for defense, security, and rescue applications; 23 percent for milking robots; 9 percent for cleaning robots; 8 percent each for medical and underwater robots; 7 percent for construction and demolition robots; 6 percent for robot platforms for general use; and 5 percent for logistic systems.As for service robots for personal use: 4.4 million units sold for home applications (vacuuming and lawn mowing bots) and about 2.8 million for entertainment and leisure (toy robots, hobby systems, and educational bots).And here's an eye opening number: In 2008 alone about 940,000 vacuum cleaning robots (like the iRobotRoomba 562 Pet Series above) were sold, almost 50 percent more than in 2007. That's 1 million new living rooms getting cleaned by robots!
Free Space Path lossFor f,d in meters and megahertz, respectively, the constant becomes -27.55 .where: PRX = received power (dBm) PTX = transmitter output power (dBm) GTX = transmitter antenna gain (dBi) LTX = transmitter losses (coax, connectors...) (dB) LFS = free space loss or path loss (dB) LM = miscellaneous losses (fading margin, body loss, polarization mismatch, other losses...) (dB) GRX = receiver antenna gain (dBi) LRX = receiver losses (coax, connectors...) (dB)
Example:Suppose there exists a situation where it is desired to communicate 100 meters through 4 standard sheetrock walls andone concrete wall. Table 1 indicates that the free-space loss for 100 meters at 900 MHz is approximately 93 dB. In thisparticular indoor situation, it is necessary to also take into account the effect the walls will have on communication.The office walls consist of two pieces of drywall (-0.8 dB each) and lumber (-2.8 dB) for a total attenuation of about4.4dB per wall. The concrete wall is 102mm thick and attenuates the signal by 12dB. Using the equation:Power (TX) - Sensitivity (RX) >= Signal Attenuation148 dB >= 93 dB + (4 walls * 4.4 dB) + (12 dB)148 dB >= 122.6 dBThe link margin of 148 dB is greater than the path loss of 122.6 dB, allowing communication to occur. It should be keptin mind that this is only a theoretical estimation. An on sight test should be performed in order to verify conditionsand assumptions.
The IEEE 802.11b and 802.11g Wireless LAN (WLAN) standards operate in a total of 14 channels available in the 2.4-GHz band, numbered 1 to 14, each with a bandwidth of 22 MHz and a channel separation of 5 MHz. This channel mapping can be seen in the channel frequency table of Appendix D. WLAN output powers are typically around 20 dBm and operate within a 100-m range.
It seems that Zigbee is finally following the steps of other "promising" standards. Started in 2003, Zigbee appeared as the solution for all our frustrations in terms of interoperable wireless control. Most important manufacturers were there, supporting the emergent standard and publishing imminent dates for the release of new products. Any Zigbee device from any manufacturer was going to provide total interoperability with any Zigbee compliant product. From light control systems to thermostats and even remote controls for the multimedia equipment, this standard made us think that the total solution for controlling devices wirelessly was just arriving. The massive production of Zigbee compliant devices was initially announced for 2004, then 2005, ... Now, three years after the rings and bells, Zigbee is still in the oven.This article doesn't pretend to question Zigbee itself as technology. Indeed, Zigbee was started on a solid technological base. Based on a well defined low-level standard as IEEE 802.15.4 and providing support for different frequency bands, a great amount of IC manufacturers soon released Zigbee compatible interfaces and OEM modules. The price of the new RF controllers corroborated the promise of producing really low-cost devices and the presentation of a couple of prototypes in some international exhibitions removed the doubts of some of the most critic technologists. Moreover, the wish of the Zigbee organization has always been to provide reliable-interoperable low-cost devices.Thus, what happens with these international standards? Why is moving these things ahead so hard? This is the actual subject of this article.Communication standards are often created as a way of sharing costs and resources among the promoters. Besides, a company wanting to develop a product under a certain standard will find a communication protocol already defined and even the availability of well-tested platforms where to start developing from. But the companies creators of the standard always assume the extra work and costs of participating in the definition of the new technology. As result, these companies usually try to impose their decisions, all them based on their own commercial and technical interests. When a committee is formed by dozens of members, each one with its own market and a precedent technological basis, the negotiation process becomes complicated. Mainly when the members are big companies that don't worry about the costs of delaying the release of the new technology up to the infinite.In contrast to these open standards, other "de facto" standards leaded by a single company producing a one-chip solution get sometimes better results. This is the case of Lonworks, a technology created and promoted by Echelon. But I don't mean that "democratic" open standards have a worse future than proprietary ones. Some open initiatives as CanOpen, Devicenet, EIB, BacNet, etc. are example of collaboration among companies and academic institutions. The secret of the success is maybe in understanding that interoperability is something positive for the market.
Z-Wave is a proprietary wireless communications protocol designed for home automation, specifically to remote control applications in residential and light commercial environments. The technology uses a low-power RF radio embedded or retrofitted into home electronics devices and systems, such as lighting, home access control, entertainment systems and household appliances.The Z-Wave Alliance is a consortium of over 160 independent manufacturers who have agreed to build wireless home control products based on the Z-Wave standard. Principal members include Cooper Wiring Devices, Danfoss, Fakro, Ingersoll-Rand, Intermatic, Leviton, Universal Electronics, Wayne-Dalton, Z-Wave and Zensys.Bandwidth: 9,600 bit/s or 40 kbit/s, fully interoperableModulation: GFSKRange: Approximately 100 feet (or 30 meters) assuming "open air" conditions, with reduced range indoors depending on building materials, etc.Frequency band: The Z-Wave Radio uses the 900 MHz ISM band: 908.42 MHz (United States); 868.42 MHz (Europe); 919.82 MHz (Hong Kong); 921.42 MHz (Australia/New Zealand).
Mako Template (for web page templating)PyRRD (for historic graphing)py-serial (serial communication)pywin32 (Windows only)Linux needs a lot more prerequisites:RabbitMQErlangTwisted MatrixMako template engine
Written in PHPUsing Zend FrameworkFully Ajax/Web 2.0Using JqueryUsing JqueryUIMobile Website using Jquery Mobile
Public feeds1 month historical storage5 datastreams5 API requests / minuteImport 500 existing datapoints / dayPachube PremiumPrivate and public feedsUnlimited historical storage250 datastreams250 API requests / minuteImport unlimited existing datapoints