2019年4月9日

zigbee路由(报文实例)

摘要: 4855 广播 routeRequestId = 6, pathCost = 0 radius=1E 62BB 继续广播 routeRequestId = 6, pathCost = 1 radius=1D 4855收到RouteReply后,正常发送数据包。 RouteReply回应: 阅读全文

posted @ 2019-04-09 18:59 YZG 阅读(955) 评论(0) 推荐(0) 编辑

2018年10月16日

Zigbee系列(路由机制)

摘要: 参考文档: ug103-02-fundamentals-zigbee.pdf section4 zigbe routing concepts docs-05-3474-21-0csg-zigbee-specification.pdf 3.6.3 Routing Broadcast Routing B 阅读全文

posted @ 2018-10-16 23:15 YZG 阅读(1584) 评论(1) 推荐(0) 编辑

Zigbee系列(end device)

摘要: End device设备分为睡眠和非睡眠两种(RxOnWhenIdle标记不同)。 入网时的association请求,会使用这个标记。 共同特性 子节点多次发送数据失败(无回应),发送孤点扫描(realignment), 尝试重回网络。 802.15.4 : 用于网络同步,设备与协调器通信异常,可 阅读全文

posted @ 2018-10-16 23:13 YZG 阅读(1713) 评论(0) 推荐(0) 编辑

Zigbee系列(网络)

摘要: Zigbee设备类型 Coordinator:形成网络,选择信道、PANID、允许其他设备加入等。 Router: 作为路由节点,转发报文。 End Device: 终端节点,不转发报文。 Zigbee网络类型 Zigbee PRO标准只支持mesh网络类型。 R outer device常规入网流 阅读全文

posted @ 2018-10-16 23:10 YZG 阅读(3978) 评论(0) 推荐(1) 编辑

Zigbee系列(概览)

摘要: Zigbee技术特点 低速率: 数据传输速率只有20~250kb/s, 2.4GHZ提供250kb/s, 915MHz对应40kb/s, 868Mhz对应20kb/s 低功耗:睡眠模式设备使用电池供电,可使用6个月~几年。如传感器、门锁等。 低成本:协议简单,对硬件要求低,如TI使用8051单片机实 阅读全文

posted @ 2018-10-16 23:06 YZG 阅读(1345) 评论(0) 推荐(0) 编辑

2015年10月14日

kallsyms , addr to symbol

摘要: #!/usr/bin/env python# addr2sym.py - resolve addresses to symbols, using a map file# Reads a log file, and map file, and substitutes function# names a... 阅读全文

posted @ 2015-10-14 11:56 YZG 阅读(412) 评论(0) 推荐(0) 编辑

2014年8月22日

Linux checksum flag in kernel

摘要: net_device->feature| NETIF_F_NO_CSUM: No need to use L4 checksum, it used for loopback device.| NETIF_F_IP_CSUM: the device can compute L4 checksum in... 阅读全文

posted @ 2014-08-22 14:04 YZG 阅读(1112) 评论(0) 推荐(0) 编辑

2014年7月23日

ubuntu apt-xxx

摘要: 1. apt-get install xxx2. dpkg -l ; list software already installed.3. apt-cache dumpavail ; print all available pkgs. 阅读全文

posted @ 2014-07-23 14:52 YZG 阅读(245) 评论(0) 推荐(0) 编辑

2014年5月14日

清空DNS缓存

摘要: windows:ipconfig /flushdnsubuntu:sudo kill -HUP $(pgrep dnsmasq)Tiger或更低版本 Mac OS:sudo lookupd -flushcacheLeopard和Snow Leopard:sudo dscacheutil -flush... 阅读全文

posted @ 2014-05-14 09:46 YZG 阅读(221) 评论(0) 推荐(0) 编辑

2014年4月30日

shell loop

摘要: #!/bin/shdatei=0 while [ $i -le 30 ] do echi $i /usr/sbin/r2/np_test_acl -f rule.txt i=$(expr $i + 1) donedate 阅读全文

posted @ 2014-04-30 17:15 YZG 阅读(295) 评论(0) 推荐(0) 编辑

2014年2月21日

shell 参数

摘要: 转:http://hi.baidu.com/ipvsadm/item/489d9e16460195ddbe9042eelinux中shell变量$#,$@,$0,$1,$2的含义解释linux中shell变量$#,$@,$0,$1,$2的含义解释: 变量说明: $$ Shell本身的PID(ProcessID) $! Shell最后运行的后台Process的PID $? 最后运行的命令的结束代码(返回值) $- 使用Set命令设定的Flag一览 $* 所有参数列表。如"$*"用「"」括起来的情况、以"$1 $2 … $n"的形式输出所有参数。 阅读全文

posted @ 2014-02-21 12:36 YZG 阅读(704) 评论(0) 推荐(0) 编辑

2014年1月3日

power sequece

摘要: 阅读全文

posted @ 2014-01-03 16:47 YZG 阅读(154) 评论(0) 推荐(0) 编辑

2013年12月24日

grep 文件内容搜索

摘要: 比如现在我们要查找在/home/userlan/目录中哪些文件中包含foobar这个关键字1. 打开终端2. 输入命令 grep -rl "foobar" /home/userlan/ 阅读全文

posted @ 2013-12-24 10:55 YZG 阅读(132) 评论(0) 推荐(0) 编辑

2012年9月21日

netif_receive_skb pt_prev why?

摘要: 摘抄 关于netif_receive_skb中的一个链表处理问题 正文 在netif_receive_skb中有一段代码是将receive的数据包clone一份交给ptype_all的链,代码如下:……pt_prev=NULL;list_for_each_entry_rcu(ptype,&ptype_all,list){ if(!... 阅读全文

posted @ 2012-09-21 11:09 YZG 阅读(1110) 评论(0) 推荐(0) 编辑

2012年7月27日

virtual machine

摘要: mount -t vmhgfs .host:/ /mnt/hgfsshould not build linux system on windows filesystem.windows fs doesn't support links which are used in linux. 阅读全文

posted @ 2012-07-27 15:38 YZG 阅读(188) 评论(0) 推荐(0) 编辑

导航