- 博客(10)
- 资源 (21)
- 收藏
- 关注
原创 基于mtk2625 Onenet lwm2m协议移植
static void *OneNetServerThread(void *pArg){int i,OldStatus,RetryCount,ReadyFdNum,MaxFd,UserIndex;DWORD TimeOut,DelayCount=0,MaxDelayCount=10;struct in_addr LocalAddr;fd_set Rset,Wset;char Re...
2019-08-12 15:41:17 571
原创 RTL8723BU wifi和蓝牙二合一芯片启动脚本
echo "${GREEN}Start WiFi Service ...${NORMAL}"modprobe cfg80211modprobe 8723busleep 5ifconfig wlan0 192.168.3.50 upif [ $? = "0" ] ;then mv /dev/random /dev/random.org ln -s /dev...
2019-08-13 14:25:20 1135 1
原创 ubi文件系统常用命令汇总
mkfs.ubifs -F -x lzo -m 2048 -e 126976 -c 260 -o rootfs_ubifs.img -d ./rootfsubinize -o ubi.img -m 2048 -p 131072 -s 2048 ubinize.cfgubinize.cfg[rootfs-volume]mode=ubiimage=rootfs_ubifs.img...
2019-08-13 14:22:43 980
原创 通过iptables实现NAT网络地址转换
内核配置## IP: Netfilter Configuration#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_CONNTRACK_IPV4=mCONFIG_NF_CONNTRACK_PROC_COMPAT=yCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCON...
2019-08-13 14:20:19 1259
原创 Kxtj2-1009加速度传感器程序
extern bool Kxtj2_Init(void){unsigned char data_byte1=0,int_ctrl=0,ctrl_reg1=0,ctrl_reg2=0,data_reg=0;bool ret=FALSE;if(!Kxtj2IsReady){ret=Kxtj2_RegRead(KREG_WHO_AM_I,&am...
2019-08-13 14:12:20 1139
原创 基于mtk2625 mqtt协议移植
static void *MqttServerThread(void *pArg){int i,OldStatus,RetryCount,ReadyFdNum,MaxFd,UserIndex;DWORD TimeOut,DelayCount=0,MaxDelayCount=10;struct in_addr LocalAddr;fd_set Rset,Wset;char RecvBuf...
2019-08-12 15:42:54 760
原创 linux下通过wpa_supplicant实现wifi方式上网
wpa_supplicant -iwlan1 -Dnl80211 -c/etc/wpa_supplicant.confSuccessfully initialized wpa_supplicantnl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)wla...
2019-08-12 15:33:40 2393 1
原创 移植linux基数树
头文件及定义#define RADIX_TREE_MAX_TAGS 3#define RADIX_TREE_INIT() {.m_Height=0,.pRootNode=NULL,}#define RADIX_TREE(name) RADIX_ROOT name=RADIX_TREE_INIT()#define INIT_RADIX_TREE(root) do{(root)->m_H...
2019-08-09 15:34:45 156
原创 移植linux红黑树
头文件及定义typedef struct _RB_NODE{unsigned long m_Color;struct _RB_NODE *pRight;struct _RB_NODE *pLeft;}RB_NODE,*PRB_NODE;typedef struct _RB_ROOT{struct _RB_NODE *pRootNode;}RB_R...
2019-08-09 15:32:53 179
原创 hash实现
头文件及定义typedef int SymbolsHash; typedef enum SymbolType{ undefined=0, byteint=1, shortint=2, integer=3, hex=4, percent=5, octal=6, big=7, flag=8, floating=9...
2019-08-09 15:29:04 148
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人