原创 Linux C下的shell命令調用

shell命令的調用,可用system函數或exe族函數實現。 函數原型:                         int system(const char *string);       如設置IP地址,語句爲:       

原创 http://blog.csdn.net/haomcu/article/details/7313006

打開串口1,設置9600波特率、8位數據位、1位停止位以及空校驗,之後利用while語句循環判斷串口中是否可以讀出數據,將串口中數據連續讀出後重新寫回到串口中。 #include     <stdio.h>#include     <

原创 can總線配置

CAN 總線配置 在 Linux 系統中, CAN 總線接口 設 備作爲網絡 設 備 被 系統進行統一 管 理。在控制 臺下 ,  CAN 總線 的配置和以 太 網的配置使用相 同 的 命令 。 在控制 臺 上輸 入命令

原创 C/C++內存泄漏及檢測

http://www.51testing.com/html/57/n-2422457.html  wikipedia中這樣定義內存泄漏:在計算機科學中,內存泄漏指由於疏忽或錯誤造成程序未能釋放已經不再使用的內存的情況。內存泄漏並非指

原创 安卓開發什麼時候使用jni

http://zhidao.baidu.com/link?url=0BGq9nfwWoXaXi9-mL-btbxfTG1-OHyt7iR0Jqlg99aillKUrzHCNtEVmkgZJ5FNee1m3L2ngNSEFF2mALSO4P

原创 轉換

#include<stdio.h> #include<stdlib.h> #include<string.h> #include<sys/types

原创 設置超時

http://blog.chinaunix.net/uid-28458801-id-4243864.html int fd; struct termios options; /* open the port */

原创 socket

http://blog.csdn.net/williamwanglei/article/details/17378397 點贊 收藏 分享 文章舉報 piaofenglanya

原创 sudo apt-get update遇到的問題

http://www.cnblogs.com/arrongao/archive/2012/12/15/Hash_Sum_mismatch_key.html http://www.acehat.com/os/201502/38285.ht

原创 Android button靠右側顯示

http://www.aichengxu.com/view/23734

原创 串口 學習

http://blog.chinaunix.net/uid-24219701-id-3034362.html 點贊 收藏 分享 文章舉報 piaofenglanyan 發佈

原创 文件操作

/*#include<fstream> #include<iostream> using namespace std; int main() {in

原创 串口設置超時

http://my.oschina.net/mlgb/blog/300925 通常I/O操作都是有阻塞與非阻塞的兩種方式。 其中"超時"這個概念其實是阻塞中的一種處理手段,本質還是屬於阻塞的I/O模式. 在Linux中串口的

原创 linux串口編程 非規範模式 read()問題

http://blog.csdn.net/haomcu/article/details/7313006

原创 Linux串口的設置

http://www.360doc.com/content/12/0309/13/532901_192990022.shtml 設置流控制  ter