⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 MANTIS是由科罗拉多大学开发的传感器网络嵌入式操作系统。 这是mantis的0.9.5版本的源码。
💻
字号:
//  This file is part of MANTIS OS, Operating System//  See http://mantis.cs.colorado.edu/////  Copyright (C) 2003,2004,2005 University of Colorado, Boulder////  This program is free software; you can redistribute it and/or//  modify it under the terms of the mos license (see file LICENSE)MST Proto Example README:This app is meant to be an example of the minimum spanning treenetwork protocol (which is a multi-hop network routing protocol) usedin combination with sensor devices. It is very similar to themst_proto_example application.There are two parts to this application, the sending node(s) and the base.Sending (sample_app_send.c):This application has two threads, one thread which formats packets to besent out using the event layer on top of the minimum spanning tree whichfits into the network layer. Data from the light sensor fills theevent structure and the packet is sent sent using the net_sendfunction. Light strength is displayed on the sending node's LEDs. The other thread is meant to show bi-directional communication in thatpackets sent from the basestation to an application are handled in thisthread.Receiving (sample_app_recv.c):The receiving application additionally has two threads. One of these threadsis the periodic beacon, which sends out a broadcast packet every so-oftenso leaf nodes can setup routes to the basestation. The recv thread is the one which receives the data (data meant for the basestation). As each packet is received, the light value, hop count,and packet sequence is displayed in the shell. If one node is hoppingoff another to reach the receiving node, the hop count increases.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -