- 博客(14)
- 资源 (13)
- 收藏
- 关注
原创 Rime&Contiki Chameleon
PAPER:An Adaptive communication Architecture for Wireless Sensor Nerworks1.An architecture of WSN is difficult in the stack and a reasonable header packet.2.The Chameleon architecture co
2013-01-25 17:57:17 3106
翻译 Protothread机制文档(contiki-2.6\doc\pt-doc.txt)
/**\addtogroup sys@{*/ /**\defgroup pt ProtothreadsProtothread 是一种轻型,栈使用少的线程。这种线程为,如嵌入式系统或传感器结点,等内存受限系统而设计。Protothread用C实现了事件驱动系统的线性执行速度的代码。Protothread可以用于或不用于RTOS(实时系统)。P
2013-01-15 21:47:46 4119
原创 电子信息工程四年学习之思
毕业后,回顾四年学习历程发现,当时以为的明白,到现在都是那时的不明白。或许是自己的经历(参加比赛比较多)导致了现在的反思。但是,回顾那个时候的课程设置,却都是合理的,并没有什么不足,但是又为什么会现在才意识到它们之间的联系。最终的结果是,学了很多门课,很多门孤立的课。不知道它们之间有什么联系。那个时候,又有着要多做比赛,增加实践经验的想法。于是很多时间,放在实验室。真正对于
2013-01-13 00:22:02 13073 17
原创 Contiki:Protothread切换机制理解
在Contiki中,protothread的切换,实质是函数调用,通过call_process()函数调用protothread函数体的函数指针,来切换protothread,即ret = p->thread(&p->pt, ev, data);这里的p->thread指向的就是定义protothread的函数。而由于此函数中代码基本都是在PT_BEGIN和PT_END之间(宏展开后是一个完整的s
2013-01-02 22:00:41 7437
原创 Contiki:__LINE__测试
关于__LINE__最早是在李先静老师的《程序员成长计划》中看到的,当时只是用来调试时使用,由于直接打印出错行,再结合__func__就可以找到是哪个函数,哪一行。后来在分析Contiki时发现里边的protothread切换机制竟然是switch语句+__LINE__,没想到__LINE__还能这样用。虽然写程序时,经常使用,但是对于其本源没有彻底了解,所以这次写个简单的小程序看
2013-01-02 21:59:43 1901
原创 uCOS:时钟节拍代码追踪
uCos中的时钟节拍可以基于软中断实现或者基于时钟节拍任务(但是这个任务要给予很高的优先级)对于STM32(Cortex-M3)来说这个就是SysTick中断0x0000003C当中断发生时调用OS_CPU_SysTickHandler函数,这样就提供了系统的时钟节拍uCos中扩展的应用都是在HOOK函数中实现的,程序关于Time的调用,首先都是基于OSTime的,
2013-01-01 17:33:42 6828
原创 Contiki:关于MAC和RDC层的关系、作用及其实现
参考:http://www.contikistudio.com/forum.php?mod=viewthread&tid=2349&extra=page%3D1The ContikiMAC Radio Duty Cycling Protocol>RDC radio duty cyclingMAC MAC:有两种驱动:CSMA和NULLMAC。默认为CSM
2013-01-01 17:19:02 7658 3
原创 Contiki:初探
Contiki是为了Wireless Sensor Network设计的一个嵌入式系统,侧重于网络。虽然它也可以单独运行,但是这并不是它设计的初衷。从它的core代码的多少就可以看出,在一共2.4M的代码中,net一个文件夹就占用了1.47M的内容。在Contiki中包含的协议或机制:Application: CoApTransport:
2013-01-01 17:15:48 15213 6
原创 Contiki:RDC &CoAP
Paper:主要讲了RDC中的三个优化措施:1、Contiki Timing;2、Packet Detection and fast sleep;3、Transmission phase-lock。讲述了RDC层在contiki中的作用。及实现的原理。如下:RDC:Radio duty cyclingContikiMAC:uses a power ef
2013-01-01 16:52:05 4433 1
原创 Other Concurrency Issues
Synchronization is a fundamentally difficult problem that raises issues that simply do not arise in ordinary sequential programs.Thread safety issues:1.Functions that do not protect shared va
2013-01-01 15:10:31 1001
原创 Out-of-Bounds Memory References and Buffer Overflow
callee:pushl %edp save %edp on stackmovl %esp, %edppushl %ebx save %ebxsubl $20, %esp......popl %ebx
2013-01-01 15:08:50 2901
原创 Understanding Pointers
Pointers are a central feature of the C Programming language. They server as a uniform way to generate references to elements within different data structures. Pointers are a source of confusion for
2013-01-01 15:05:23 850
原创 Contiki:Communication Architecture
Paper:An Adaptive communication Architecture for Wireless Sensor Nerworks1.An architecture of WSN is difficult in the stack and a reasonable header packet.2.The Chameleon architecture co
2013-01-01 11:56:37 1907
原创 Zigee OR 6LowPAN?
The decision to select one standard versus another is determined by the target application. Consider an application for which there is no need to interface with IP-enable devices and the average size
2013-01-01 11:46:37 1508
JLink_Windows_V650b-2019.exe.txt
2019-10-11
ZigBee 测试建议书
2019-01-14
pc_lint工具
2014-02-28
pc_lint(Vers. 9.00j)
2014-01-02
gsmmux-alpha-r3.tb2
2012-12-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人