This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package command; | |
// meta message | |
message meta_config { | |
required string k = 1; | |
required int32 v = 2; | |
} | |
message meta_time { | |
required string timestamp = 1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message MessageHeader0x01 | |
{ | |
required int32 message_id = 1; | |
optional int32 session = 2; | |
optional HeaderPayLoad data = 3; | |
message HeaderPayLoad | |
{ | |
required int32 birth_type = 1; | |
required int32 fd = 2; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __MESSAGE__H__ | |
#define __MESSAGE__H__ | |
#include <inttypes.h> | |
const static char HEADER[] = "MUSHROOM"; | |
const static char END = 0x13; | |
struct message_s { | |
char header[sizeof(HEADER)]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install boinc-client -y | |
service boinc-client restart | |
sleep 3 | |
boinccmd --project_attach https://www.worldcommunitygrid.org 2be7244693cbadc980d890b1cdc88b3f | |
sleep 10 | |
service boinc-client restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************************** | |
* Copyright (C) 2013 by wsn studio *** | |
***********************************************************************/ | |
/** | |
* @file example.h | |
* @author Liu Peng | |
* @date 2013-11-06 | |
* @brief 这是一个小例子, 目的是教你如何快速使用doxygen | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server 中心控制服务器 | |
Client 硬件底层 | |
Server -> Client | |
功能: | |
ID int 大端小端 | |
1. 打开/关闭 温度、湿度、光照(灯带)、二氧化碳浓度控制器 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
车子相关: | |
头盔 | |
驼包 | |
货架 | |
补胎工具 | |
水杯 | |
内胎 | |
码表 | |
V刹皮 | |
强光手电筒(18650电池也要带几块备用) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef __SENSOR_H_ | |
#define __SENSOR_H | |
#include "SmartIrrigation.h" | |
#include "message.h" | |
#define BITSET(n) (1 << (n)) | |
enum { | |
TYPE_DS18B20 = 0x00, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startOneShot有一个坑... | |
功率管NMOS IRF540N开启电压居然在4v以上, 一开始都让它G极电压在3.2V左右, R(DS)居然到达了1K欧, 怪不得一直会很烫, 原来确实工作在了放大区... | |
tinyos的radio在多个任务同时发送时确实会radio_busy...又是一个坑啊...解决这个办法要么就是将并发变成串行, 要么就不要在同一时刻发送, 时间错开来... | |
经过测试, 使用冲突避免的方法在高层是不靠谱的 | |
妈呀, 焊了好几天, 最后一天才发现高总的电烙铁有问题...... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SMART_IRRIGATION_H | |
#define SMART_IRRIGATION_H | |
#define RESERVED_LEN 1 | |
#define OFF 0 | |
#define ON 1 | |
#define AUTO 2 | |
enum { | |
AM_SENSOR_MSG = 7, |