CC2530 控制输出功率的寄存器是 TXPOWER:
推荐功率设置:
协议栈默认的设置是 0xd5,为了扩展信号传输的距离,我把TXPOWER寄存器值改为0xf5, 此时输出功率为4.5dBm.在mac_radio.c文件,做了如下修改:
void macRadioSetTxPower(uint8 txPower)
{
halIntState_t s;
/* if the s...
分类:
其他 时间:
2015-07-07 16:58:25
收藏:
0 评论:
0 赞:
0 阅读:
415
今天发布工程,访问其中一个模块,老是返回404异常。
/vweb/view/vweb.action
查看struts2配置文件和Action中的方法,没有问题啊。
于是怀疑是缓存引起的。 rm -rf Catalina/结果还是不行。忽然想到了
tomcat的server.xml中加了对应的模块的资源映射<Context docBase="/home/resource/vweb/" path...
分类:
其他 时间:
2015-07-07 16:58:24
收藏:
0 评论:
0 赞:
0 阅读:
225
在sedna的安装目录下,看一下cfg目录:
[xuzhina@localhost sedna]$ ls cfg
books_cfg.xml
[xuzhina@localhost sedna]$ ls data/
books_files event.log
可知,它有books这个数据库。
再查看data的event.log:
[xuzhina@localhost sedna...
分类:
数据库技术 时间:
2015-07-07 16:57:13
收藏:
0 评论:
0 赞:
0 阅读:
194
Greedy.
证明:
Let's say we have job 1, 2, ..., n, and they have time and fine as t1, f1, t2, f2, ..., tn, fn
and they are in the order of t1/f1
So this is the objective schedule. Now w...
分类:
其他 时间:
2015-07-07 16:56:52
收藏:
0 评论:
0 赞:
0 阅读:
250
ok6410使用的网卡是DM9000,从启动信息来看uboot默认的网卡是CS8900。
修改驱动代码(board/Samsung/ok6410/ok6410.c):
int board_eth_init(bd_t *bis)
{
int rc = 0;
#ifdef CONFIG_CS8900
rc = cs8900_initialize(0,CONF...
分类:
其他 时间:
2015-07-07 16:56:22
收藏:
0 评论:
0 赞:
0 阅读:
332
页面中使用uploadify,在google浏览器中会出现浏览器崩溃的问题,如下图所示:
通过百度查资料找到了解决方案,如下:
setTimeout(function(){
$("#file").uploadify({
//...
});
},10);记录下来,希望可以帮助其他人...
分类:
其他 时间:
2015-07-07 16:56:12
收藏:
0 评论:
0 赞:
0 阅读:
309
在静态代理中代理对象与被代理对象必须实现同一个接口,完整保留被代理对象的接口样式,也将接口不变的原则一致保留。
下面通过一个简单的示例来说明:
HelloInterface接口
package proxy;
public interface HelloInterface {
public void sayHello();
}
实现HelloInterface接口的类HelloIn...
分类:
编程语言 时间:
2015-07-07 16:56:03
收藏:
0 评论:
0 赞:
0 阅读:
182
MySQL的sql语句有好多可以省去服务器端的复杂处理
1、group_concat
这玩意儿可以实现 将一个字段如id查询出来 成为这样的格式:121,122,123,124,125,126
select group_concat(id)
as nids from 表名 搞定...
分类:
数据库技术 时间:
2015-07-07 16:55:52
收藏:
0 评论:
0 赞:
0 阅读:
568
一、ODBC环境配置
系统环境:
Win7 64位系统
1、安装:mysql驱动程序_mysql-connector-odbc-5.1.6-win32
2、64位系统, 那就在这个目录下C:\Windows\SysWOW64找到odbcad32.exe运行,配置mysql数据源(如果你是32位的,在C:\Windows\System32路径下)
二、ODBC协议脚本编写...
分类:
数据库技术 时间:
2015-07-07 16:53:52
收藏:
0 评论:
0 赞:
0 阅读:
455
If we take 47, reverse and add, 47 + 74 = 121, which is palindromic.
Not all numbers produce palindromes so quickly. For example,
349 + 943 = 1292,
1292 + 2921 = 4213
4213 + 3124 = 7337
That is...
分类:
其他 时间:
2015-07-07 16:53:43
收藏:
0 评论:
0 赞:
0 阅读:
222
题目mplement regular expression matching with support for '.' and '*'.'.' Matches any single character.
'*' Matches zero or more of the preceding element.The matching should cover the entire input string...
分类:
其他 时间:
2015-07-07 16:53:34
收藏:
0 评论:
0 赞:
0 阅读:
156
MEAN开发框架的资料很少,主要的资料还是来自于learn.mean.io网站上的介绍。于是抱着一种零基础学习的心态,在了解的过程中,通过翻译加上理解将MEAN框架一点点消化并且吸收,一步一步来,慢慢地记录我学习MEAN的点点滴滴。...
分类:
其他 时间:
2015-07-07 16:53:22
收藏:
0 评论:
0 赞:
0 阅读:
237
MYSQL里的日志主要分为4类,使用这些日志文件,可以查看MYSQL内部发生的事情。
分别是
1、错误日志:记录mysql服务的启动、运行、停止mysql服务时出现的问题
2、查询日志:记录建立的客户端连接和执行的语句
3、二进制日志:记录所有更改数据的语句,可以用于数据复制
4、慢查询日志:记录所有执行时间超过long_query_time的所有查询或不使用索引的查询
默认情况下,所...
分类:
数据库技术 时间:
2015-07-07 16:53:13
收藏:
0 评论:
0 赞:
0 阅读:
242
现象:明明已经在.gitignore文件了加了/bin/,更新提交的时候还是显示bin目录下文件。
原因:可能是已经提交了,有记录了,所以不起作用。
解决:先删除bin目录再提交,等再次生成的时候这个目录已经有减号了,起了作用。...
分类:
其他 时间:
2015-07-07 16:53:03
收藏:
0 评论:
0 赞:
0 阅读:
202
//数字在排序数组中出现的次数(修改)
//统计一个数字在排序数组中出现的次数。例如:排序数组{1,2,3,3,3,3,4,5}和数字3,由于3出现了4次,因此输出4.
#include
int One_Num_Times(int *arr, int len, int num)
{
int i = 0;
int times = 0;
for (i = 0; i =*arr;i++,arr+...
分类:
编程语言 时间:
2015-07-07 16:52:42
收藏:
0 评论:
0 赞:
0 阅读:
221
所谓游戏主角就是第三视角看到的在屏幕中间附近跑来跑去,然后周围景物随之变换的节点。实现的思路很简单,分为以下三步
1. 获取键盘输入
2. 移动主角,并且在需要的时候更改动画
3. 移动摄像机...
分类:
其他 时间:
2015-07-07 16:52:33
收藏:
0 评论:
0 赞:
0 阅读:
246
大一寒假
1.写代码时我犯了一个很大的错误(不然早就搞定了)把&&与||混淆了;大忌啊
2.这里实现了数字化编码
3.上72 下80 左75 右77
4.特殊图形可以到QQ拼音符号里获取
#include
#include
#include
#define x 1//人的位置
#define y 5
#define n 10//地图大小
int cont;
void ...
分类:
其他 时间:
2015-07-07 16:52:22
收藏:
0 评论:
0 赞:
0 阅读:
142
原版始于2012.1.10
#include "stdio.h"
#include "conio.h"
#include "time.h"
#include "stdlib.h"
void diao(int year,int month);//第一个被调用函数,只是获得space;
int leap(int year);//是闰年加1
int jjmonth(int year,int mont...
分类:
其他 时间:
2015-07-07 16:52:12
收藏:
0 评论:
0 赞:
0 阅读:
182
//大一暑假
#include
#include
#include
#define n 10//地图大小
int m=1;
int g=5;
//////////////////////////人是1,墙是9,星星是8/10,空位是0,光是2;
int count=0;
int point='w';
void move(int a[][10],int i,int j...
分类:
其他 时间:
2015-07-07 16:52:02
收藏:
0 评论:
0 赞:
0 阅读:
158
#include
#include
#include
#include
#define MAXzhansize 30
char stack[MAXzhansize];//
char deleted(int *top);
void add(int *top,char item);
//////////////////////////////////////////////////////...
分类:
其他 时间:
2015-07-07 16:51:52
收藏:
0 评论:
0 赞:
0 阅读:
228