Lecture Slides
Week 2 IoT Lecture.ppt
week 2 exam questions.pdf
Lab files
static void print_float(float number){
int integer_part = (int)number;
int decimal_part = (int)((number - integer_part) * 1000); // Get the two decimal places
printf("Random number: %d.%02d\\n", integer_part, decimal_part);
}
PROCESS_THREAD(hello_world_process, ev, data)
{
PROCESS_BEGIN();
int i;
random_init(2);
for (i = 0; i < 10; i++) {
int random_integer = random_rand() % (MAX_RANDOM + 1);
float random_float = random_integer / 1000.0;
print_float(random_float);
}
printf("Hello, world\\n");
PROCESS_END();
}
Wireless Sensors and Actuators Networks (WSN’s)
- Sensors: Monitor conditions in a specific environment
- Actuators: Execute specific actions and respond to commands within the environment
- Operating System: helps the hardware to be programmed.
- If the sensor has to communicate with each other, there has to a protocol
- Sink node: A type of sensor with enhanced processing power. It's used to offload some processing tasks from other sensors.
- Gateway: A PC or machine with more processing power than the sink node. It acts as a link between networks (typically from a wireless network to another network) and manages services. There should be another type of protocol (IPv4, IPv6)
- service representation, cache/storage, discovery and other functions
Types of Application
We can plan for the sensors to solve for certain applications.
- Event detection
- Reporting abnormalities and changes
- Reporting occurrences of the events
- Periodic measurements
- e.g., counting people entering through a door
- Measure and report the observation and measurement data