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

📄 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).There are two parts to this application, the sending node(s) and the base.Sending (mst_proto_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. The appropriate fields in the event structureare filled out and the packet is sent sent using the net_send function.The other thread is meant to show bi-directional communication in thatpackets sent from the basestation to an application are handled in thisthread.Receiving (mst_proto_base.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 sink thread is the one which receives the data (data meant for the basestation). There is code which is commented out which will printout each part of the mst protocol packet. Currently the basestationis setup to forward the packets exactly as they exist over the serial line. These packets can be viewed using the gateway which is locatedin src/tools/gateway/gateway.py.

⌨️ 快捷键说明

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