freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于gprs的溫度實時監(jiān)測系統(tǒng)設計畢業(yè)設計(文件)

2025-07-31 20:49 上一頁面

下一頁面
 

【正文】 0xfe。 //設定定時器 1為 8位自動重裝方式 TL1 = 0xfd。 //啟動定時器 1 ES = 1。 while(!TI)。 //方式 1,八位數(shù)據(jù),可變波特率 AUXR1 = 0x00。 //獨立波特率發(fā)生器時鐘為 Fosc,即 1T IE2 |= 0x01。在 GPRS模塊連接到互聯(lián)網(wǎng) ,也得到了一個動態(tài)的 IP地址,數(shù)據(jù)傳輸?shù)倪^程開始了。從外部經(jīng)歷三個階段 :數(shù)據(jù)加載 TCP數(shù)據(jù)包 ,加載 IP數(shù)據(jù)包 ,加載 PPP框架。使用匯編語言 ,然后用 C開發(fā) ,更深刻的體驗。 陜西理工學院畢業(yè)設計 第 12 頁 共 46 頁 上位機程序及仿真界面 Visual Basic 簡介 Visual Basic是一個由微軟開發(fā)的協(xié)助開發(fā)環(huán)境的事件驅(qū)動編程語言。程序員可以很容易地使用 VB組件快速構建應用程序。其中應該注意的是在程序開始以前,切記需要清空發(fā)送和接收緩沖區(qū),避免出現(xiàn)異?;蛘咤e誤。最后合在一起時,數(shù)據(jù)庫連接不成功,最后逐個修改程序中連接數(shù)據(jù)庫的目錄,花了很長的時間。圖 陜西理工學院畢業(yè)設計 第 13 頁 共 46 頁 圖 前面板顯示界面 陜西理工學院畢業(yè)設計 第 14 頁 共 46 頁 由于本人原因,本次畢設實體部分沒有全部實現(xiàn),只將采集模塊和客戶端做出來了,沒能實現(xiàn)客戶端檢測的功能。由于器材限制,由原本設定的 STC89C52單片機在中途換成 AT89C52,焊接技術不夠熟練,將萬能板焊接的不成樣子,將幾個電阻焊接壞,以至于借了個開發(fā)板,將溫度采集實體做好。在論文完成之際,謹向尊敬的賈老師致以深深的謝意。 通過這次設計,使我較充分地掌握了電子設計的基礎知識,培養(yǎng)了自身的系統(tǒng)設計思維,開拓了設計視野,能夠做到理論聯(lián)系實踐,為以后進一步深入學習和深造奠定了基礎。 [6] 袁 紅 濤 , GPRS 技 術 應 用 的 軟 硬 件 開 發(fā) 環(huán) 境 [J]. 北京: 現(xiàn) 代 電 子 技術 ,20xx,27(16):97– 99。 [10]謝自美 .電子線路設汁 [13] DALLAS Data Sheet [Z].20xx:126. [14] Lin Chine E,Wu real time GPRS surveillance system using the embedded system [J].IEEE Teleunicatio Conference,20xx,(v2):16781682. [15] , FiresignalData acquisition and control system and Design 82(20xx)13591364. 陜西理工學院畢業(yè)設計 第 17 頁 共 46 頁 附錄 A 程序代碼 /*SMS*/ unsigned char AT_CMGF[] = AT+CMGF=1。 unsigned char AT_ATH[] = ATH。 unsigned char AT_CSTT[] = AT+CSTT=\UNINET\。 unsigned char AT_CIPSEND[] = AT+CIPSEND。 unsigned char AT_TEL_END = 39。 i t。 } static void m_long_delay(unsigned int z) { unsigned int i = 0。 } } void sim900a_send_message(char * msg,int len,char * tel) { if(len = 0){ return 。 UART_SEND_STR(AT_CSCS,strlen(AT_CSCS))。 UART_SEND_STR(tel,strlen(tel))。 UART_SEND_STR(AT_END,2)。 UART_SEND_CHAR(AT_SMS_TEXT_END)。 UART_SEND_STR(AT_END,2)。 delay(1000)。 /*STEP 2 非透明傳輸 */ UART_SEND_STR(AT_CIPMODE,strlen(AT_CIPMODE))。 UART_SEND_STR(AT_END,2)。 m_long_delay(60)。 /*STEP 6 獲取本機地址 */ UART_SEND_STR(AT_CIFSR,strlen(AT_CIFSR))。 UART_SEND_STR(AT_END,2)。 m_long_delay(80)。 m_long_delay(50)。 } void GPRS_RESET() { GPRS_CLOSE()。 _nop_()。 //8 位數(shù)據(jù) ,可變波特率 AUXR |= 0x40。= 0x0f。 //設定定時器重裝值 ET1 = 0。 } 陜西理工學院畢業(yè)設計 第 21 頁 共 46 頁 void Uart0_PutChar(char ch) { ES = 0 。 ES = 1 。i++ ){ Uart0_PutChar(pString[i])。 //優(yōu)先級默認 BRT = 0xDC。 } /******************************************** //! 串 口 1 字符串輸出函數(shù) //! 參數(shù)說明: pString 為字符串緩沖區(qū)首地址 //! 備注:此函數(shù)一方面向串口 1 發(fā)送數(shù)據(jù) , //! 另一方面也向串口 0 發(fā)送數(shù)據(jù) , //! 目的是為了方便調(diào)試 *********************************************/ void Uart1_PutChar(char ch) 陜西理工學院畢業(yè)設計 第 22 頁 共 46 頁 { IE2 amp。 S2TI))。 } void Uart1_PutString(char * pString,unsigned int len) { unsigned char i = 0。 //DelayXus(200)。 //讀入緩沖區(qū) 的值 //把接收到發(fā)送到 UART2 Uart1_PutChar(Temp)。 0x01 ) { S2CON amp。 } if( S2CON amp。 } } uint temp。 unsigned char code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}。 void delay1(uint count) //delay { uint i。 } } void delay_18B20(unsigned int i) { while(i)。 //稍做延時 DQ = 0。 x=DQ。 for (i=8。 DQ = 1。 } void WriteOneChar(uchar dat) { unsigned char i=0。 DQ = datamp。 dat=1。 Init_DS18B20()。 Init_DS18B20()。 a=ReadOneChar()。 tt=temp_value*。 } void display(uint temp) //顯示程序 { uchar A1,A2,A2t,A3,ser。 A2t=temp%100。 P0=table[A1]。 P0=0x20。 dula=0。 wela=0。 delay1(1)。 P0=0x80。 } static void delay ( unsigned char t ) { unsigned char i = 0,j = 0。 jx z。 case 2: LED2 = 0。 case 4: LED4 = 0。 break。 break。 } } unsigned char get_key() { unsigned char tmp = 0。 0xC0。 } return res。= ~0x40。 delay1S(100)。 //P1M0 amp。 P3 = 0x0。 unsigned char user_tel[] = 15319382834。 sbit ELVD = IE^6。 i++) for( j=0。 for (x = 0。j++) { delay(10)。 temperature[3] = 39。 sim900a_start()。 Uart0_PutString(start_str,strlen(start_str))。 while(1){ tmpt = ReadTemp()。 //顯示十次 } int2asc(tmpt)。 GPRS_TCP_LINK()。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 endif //delay_long_1S(2)。 when n=1, it is transparent mode. The default configuration is nontransparent mode. There are three working modes for SIM900 under this mode: TCP client, UDP client and TCP server. How to Establish a TCP Client Connection Firstly, before any TCP/UDP related operation is set up, the module should be connected to GSM or GPRS work. User can use the mands “AT+CREG?” and “AT+CGATT?” to query the GSM work registration status whether the module has been attached to GPRS service. AT+CPIN? +CPIN: READY OK AT+CSQ CSQ: 20,0 OK AT+CREG? +CREG: 0,1 OK AT+CGATT? +CGATT: 1 OK Secondly, user should use the mand group AT+CSTT, AT+CIICR and AT+CIFSR to start the task and activate the wireless connection. Lastly, user can establish TCP connection between SIM900 and the server by AT mand (AT+CIPSTART=”TCP”,”IP Addre。 } } 陜西理工學院畢業(yè)設計 第 31 頁 共 46 頁 附錄 B:溫度采集仿真 陜西理工學院畢業(yè)設計 第 32 頁 共 46 頁 附錄 C 外文翻譯 Single Connection Command AT+CIPMUX=n is used for selecting TCPIP connection mode, when n=0, it is single connection。 GPRS_TCP_SEND_DATA(temperature,strle
點擊復制文檔內(nèi)容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1