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

正文內(nèi)容

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

2025-07-06 20:49本頁面
  

【正文】 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è)設(shè)計 第 31 頁 共 46 頁 附錄 B:溫度采集仿真 陜西理工學院畢業(yè)設(shè)計 第 32 頁 共 46 頁 附錄 C 外文翻譯 Single Connection Command AT+CIPMUX=n is used for selecting TCPIP connection mode, when n=0, it is single connection。 endif //delay_long_1S(2)。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 GPRS_TCP_SEND_DATA(temperature,strlen(temperature))。 GPRS_TCP_LINK()。 //sim900a_send_message(temperature,strlen(temperature),user_tel)。 //顯示十次 } int2asc(tmpt)。a0。 while(1){ tmpt = ReadTemp()。 //delay_long_1S(10)。 Uart0_PutString(start_str,strlen(start_str))。 uint tmpt。 sim900a_start()。 } void init() { Uart0_Init()。 temperature[3] = 39。 temperature[1] = dat%100/10 + 0x30。j++) { delay(10)。x++ ){ for (j = 0。 for (x = 0。 j++)。 i++) for( j=0。 for( i=0。 sbit ELVD = IE^6。 陜西理工學院畢業(yè)設(shè)計 第 29 頁 共 46 頁 sfr WAKE_CLKO = 0X8F。 unsigned char user_tel[] = 15319382834。 } unsigned char start_str[] = Temperature Monitoring System。 P3 = 0x0。 } void board_init(void) { P1 = 0x0。 //P1M0 amp。 delay1S(300)。 delay1S(100)。 //delay1S(20)。= ~0x40。= ~0x40。 } return res。 } if(tmp == 0x40){ res = 2。 0xC0。 tmp = P1。 } } unsigned char get_key() { unsigned char tmp = 0。 break。 break。 break。 break。 default: break。 case 4: LED4 = 0。 case 3: LED3 = 0。 case 2: LED2 = 0。 } } void LED_ON(unsigned int n) { switch(n){ case 1: LED1 = 0。x z。 } } /******************************************************************** 長延時函數(shù) *********************************************************************/ static void delay1S ( unsigned int z ) { unsigned int x = 0。 j it。 } static void delay ( unsigned char t ) { unsigned char i = 0,j = 0。 wela=0。 P0=0x80。 //顯示個位 dula=1。 delay1(1)。 wela=1。 wela=0。 //顯示十位帶小數(shù)點的 dula=1。 dula=0。 wela=0。 P0=0x20。 dula=0。 P0=table[A1]。 A3=A2t%10。 A2t=temp%100。 //分離出三位要顯示的數(shù)字 SBUF=ser。 } void display(uint temp) //顯示程序 { uchar A1,A2,A2t,A3,ser。 temp_value=tt。 tt=temp_value*。 //讀取溫度值高位 temp_value = b8。 a=ReadOneChar()。 WriteOneChar(0xBE)。 Init_DS18B20()。 WriteOneChar(0x44)。 Init_DS18B20()。 unsigned char b=0。 dat=1。 delay_18B20(50)。 DQ = datamp。 i0。 } void WriteOneChar(uchar dat) { unsigned char i=0。 delay_18B20(40)。 DQ = 1。i) { DQ = 0。 for (i=8。 } unsigned char ReadOneChar(void) { uchar i=0。 x=DQ。 //精確延時大于 480us DQ = 1。 //稍做延時 DQ = 0。 DQ = 1。 } } void delay_18B20(unsigned int i) { while(i)。 while(i0) i。 void delay1(uint count) //delay { uint i。 unsigned char code table1[]={0x40,0x79,0x24,0x30,0x19,0x12,0x02,0x78,0x00,0x10}。 unsigned char code table[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e}。 // sign of the result positive or negative sbit dula=P2^6。 } } uint temp。= ~0x02。 } if( S2CON amp。 陜西理工學院畢業(yè)設(shè)計 第 23 頁 共 46 頁 t_dat = S2BUF。 0x01 ) { S2CON amp。 } /******************************************************************** 串行 2 接收中斷函數(shù) *********************************************************************/ void uart1_isr() interrupt 8 { unsigned char t_dat = 0。 //讀入緩沖區(qū) 的值 //把接收到發(fā)送到 UART2 Uart1_PutChar(Temp)。 //定義臨時變量 if(RI) //判斷是接收中斷產(chǎn)生 { RI=0。 //DelayXus(200)。i len。 } void Uart1_PutString(char * pString,unsigned int len) { unsigned char i = 0。= ~S2TI。 S2TI))。 S2BUF = ch 。 } /******************************************** //! 串 口 1 字符串輸出函數(shù) //! 參數(shù)說明: pString 為字符串緩沖區(qū)首地址 //! 備注:此函數(shù)一方面向串口 1 發(fā)送數(shù)據(jù) , //! 另一方面也向串口 0 發(fā)送數(shù)據(jù) , //! 目的是為了方便調(diào)試 *********************************************/ void Uart1_PutChar(char ch) 陜西理工學院畢業(yè)設(shè)計 第 22 頁 共 46 頁 { IE2 amp。 //獨立波特率發(fā)生器時鐘為 Fosc,即 1T IE2 |= 0x01。 //優(yōu)先級默認 BRT = 0xDC。 //方式 1,八位數(shù)據(jù),可變波特率 AUXR1 = 0x00。i++ ){ Uart0_PutChar(pString[i])。 for (i = 0。 ES = 1 。 while(!TI)。 } 陜西理工學院畢業(yè)設(shè)計 第 21 頁 共 46 頁 void Uart0_PutChar(char ch) { ES = 0 。 //啟動定時器 1 ES = 1。 //設(shè)定定時器重裝值 ET1 = 0。 //設(shè)定定時器 1 為 8 位自動重裝方式 TL1 = 0xfd。= 0x0f。= 0xfe。 //8 位數(shù)據(jù) ,可變波特率 AUXR |= 0x40。 _nop_()。 _nop_()。 } //bit busy。 } void GPRS_RESET() { GPRS_CLOSE()。 陜西理工學院畢業(yè)設(shè)計 第
點擊復制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1