tailieunhanh - Smart Home Automation with Linux- P14
Smart Home Automation with Linux- P14:I will end on a note of carefree abandon—learn to steal! Once you’ve learned the pieces of the puzzle and how to combine them, there is very little new to invent. Every new idea you discover is a mere permutation of the old ideas. And ideas are free! Every cool feature discussed on TV shows or presented in the brochures or web sites of commercial HA companies can be taken, adapted, and implemented with the information presented here using very little effort | CHAPTER 3 MEDIA SYSTEMS Adventurous developers can utilize a cheap all-in-one remote control and incorporate its workings along with an IR relay and replacement switches into their own wall unit. Relay Control Although few consumer products come with anything other than IR this doesn t mean that you have to control it with IR provided there is something in between that understands both protocols. Bluetooth for example is found on all current mobile phones and although it is slightly power hungry there are many free or nearly free applications that interface with a suitably equipped PC. And since many people carry their phone on them at all times this provides a very accessible way of providing control. All Bluetooth communication requires a Bluetooth address. This looks like a MAC address from traditional network scenarios and can be discovered with the following hcitool scan Note that there is a slight delay in scanning the area for devices and a further delay is realizing when it has disappeared So although this program can be used to determine when the Bluetooth signal is coming back into range and therefore you are returning home it is best to perform a directed scan for a single phone using bluemon. Bluetooth control apps come in two halves one for the PC and one for the mobile. The mobile side is usually Java-based but despite its write once-run anywhere mantra usually needs a version specific to your phone because of the vagaries of mobile development. The messages sent are usually in a protocol that the receiving PC app can process. This is then configured to send a suitable IR signal to the device in question that might be to control the media player currently running on the PC or lock the desktop screen should the Bluetooth signal fall out of Vectir provides such functionality for Windows users while those in the Linux community can choose packages10 like Remuco Amarok or RemoteJ. There are other packages to permit file transfers between phones .
đang nạp các trang xem trước