This shows you the differences between two versions of the page.
iothings:proiecte:2022:smart_home_bluetooth_system [2023/01/20 02:46] sergiu.ionescu3107 |
iothings:proiecte:2022:smart_home_bluetooth_system [2023/01/20 03:43] (current) sergiu.ionescu3107 |
||
---|---|---|---|
Line 86: | Line 86: | ||
A little description of the protocol used : | A little description of the protocol used : | ||
- | * webSockets | + | * **webSockets**. With WebSockets, messages can be pushed at any moment without regard to a previous request by both the server and the client. A few drawbacks with HTTP are resolved by WebSocket, including the bi-directional protocol, full-duplex communication (client and server can speak to each other separately at the same time), and a single TCP connection. Firebase databases' use of WebSockets has a number of restrictions. First of all, the database is the central concept, with realtime synchronization (messaging) as an add-on feature. Only the updates to your database are published to connected clients. This forces you to permanently store even the transient events that need to be streamed to your users, leading to an unnecessary increase in storage costs. An example of transient messages in a chat app scenario would be indicators that others are typing – events that occur frequently but have zero need for permanent storage. Speaking of scalability, you can scale the Firebase databases up to a point. We’ve previously mentioned that an instance of the Firebase Realtime Database has a limit of 200.000 concurrent WebSocket connections. You can scale beyond this limit by sharding your data across multiple instances. However, it’s worth bearing in mind that sharding can become a significant challenge that leads to increased complexity and management overhead.\\ |
- | * iMap | + | |
+ | * **iMap**. IMAP serves as a middleman between the email server and email client as an incoming email protocol. When users read an email using IMAP, they read them off the server. The email isn't really downloaded or kept on their local device. This means that users can access the email from anywhere in the world using a variety of devices because it is not tied to a particular device. | ||
=== 4. Demonstration === | === 4. Demonstration === | ||
{{:iothings:proiecte:2022:general.jpeg?600|}}\\ | {{:iothings:proiecte:2022:general.jpeg?600|}}\\ | ||
- | {{:iothings:proiecte:2022:server1.jpeg?400|}} {{:iothings:proiecte:2022:server2.jpeg?400|}}\\ | + | {{:iothings:proiecte:2022:server1.jpeg?300|}} {{:iothings:proiecte:2022:server2.jpeg?300|}}\\ |
- | {{:iothings:proiecte:2022:nano1.jpeg?400|}} {{:iothings:proiecte:2022:nano12.jpeg?400|}}\\ | + | {{:iothings:proiecte:2022:nano1.jpeg?300|}} {{:iothings:proiecte:2022:nano12.jpeg?300|}}\\ |
- | {{:iothings:proiecte:2022:nano2.jpeg?400|}} {{:iothings:proiecte:2022:nano22.jpeg?400|}} \\ | + | {{:iothings:proiecte:2022:nano2.jpeg?300|}} {{:iothings:proiecte:2022:nano22.jpeg?300|}} \\ |
A video demonstrating the functionality of this project can be seen in the video from this archive: | A video demonstrating the functionality of this project can be seen in the video from this archive: | ||
Line 106: | Line 106: | ||
=== 7. Resources === | === 7. Resources === | ||
- | https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html | + | https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html \\ |
- | https://lastminuteengineers.com/arduino-sr04-ultrasonic-sensor-tutorial/ | + | https://lastminuteengineers.com/arduino-sr04-ultrasonic-sensor-tutorial/ \\ |
- | https://lastminuteengineers.com/dht11-dht22-arduino-tutorial/ | + | https://lastminuteengineers.com/dht11-dht22-arduino-tutorial/ \\ |
- | https://learn.sparkfun.com/tutorials/temt6000-ambient-light-sensor-hookup-guide/all | + | https://learn.sparkfun.com/tutorials/temt6000-ambient-light-sensor-hookup-guide/all \\ |
- | https://howtomechatronics.com/tutorials/arduino/how-to-configure-pair-two-hc-05-bluetooth-module-master-slave-commands/ | + | https://howtomechatronics.com/tutorials/arduino/how-to-configure-pair-two-hc-05-bluetooth-module-master-slave-commands/ \\ |
- | + | http://helloraspberrypi.blogspot.com/2021/02/pair-hc-05-master-slave-using-raspberry.html \\ | |
- | + | https://electronicsprojectshub.com/setup-dht11-sensor-with-arduino/ \\ | |
- | DataSheets: | + | https://ably.com/topic/firebase-vs-websocket \\ |
+ | https://www.techtarget.com/whatis/definition/IMAP-Internet-Message-Access-Protocol \\ | ||