📄 readme
字号:
Package: net.tinyos.schema Description: Package to manage the schemasof motes that include the MOTEINFO layer anduse a schema (see nest/apps/basic_db_mote for an example mote) Author: Sam Madden (madden@cs.berkeley.edu)This package allows mote-schemas to be parsed in Java. Mote schemasrepresent the capabilities of motes, including: 1) number and types of sensors 2) code revisionSchemas are sent and received via a number of AM messages, as follows:kSCHEMA_MESSAGE: A message containing schema information for a single field of a mote. See Schema.java for a description of the contents of this message.kVERSION_MESSAGE: A message containing version information for a mote. Version is meant to indicate the sensor program type and revision; it consists of four bytes of information, and is specified in tos/include/version.h. See tos/shared/MOTEINFO.c for information about how motes can incorporate versions.kINFO_MESSAGE: A message requesting version or schema information from a mote with the MOTEINFO component included.kFIELD_MESSAGE: A message requesting the value of a sensor field from a mote with the MOTEINFO component.kFIELD_REPLY_MESSAGE: The value of a field sent by a mote in response to a kFIELD_MESSAGE.Executables: noneTest Programs: MoteDBGUI.java, net.tinyos.amhandler.AMTestnet.tinyos.schema.MoteDBGUI.java usage: java net.tinyos.schema.MoteDBGUI [COM1 | COM2 | COM3] descr: Broadcasts requests for mote schemas, shows responding motes in the a simple GUI. Polls motes for sensor readings and shows those too.Classes: Schema.javaJava class representing a mote schema. Given a string from a kSCHEMA_MESSAGE, returnsa data structure containing one or more SchemaFields which can be queried for schemainformation.SchemaField.javaJava class representing a single field of the mote schema.SensorTracker.javaJava class which polls for motes via a kSCHEMA_REQUEST_MESSAGE and builds a vectorof Schemas which represent all motes which respond to that message. Also periodicallypolls those motes for the values of their sensors.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -