您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 交通运输 > 基于WindowsCE的物流车载终端设计与实现
WindowsCE610054WindowsCEGPSGPRSGPSGPRSAbstract:Thispaperproposedalogisticson-vehicleterminaldesignschemebasedonembeddedoperatingsystemWindowsCE.Thisdesignintegrateselectronicmap,GPSlocating,GPRSwirelesscommunication,thermalprinter,electronicgauge,etc.Thepaperalsoimplementedandtestedthedesignscheme.Keywords:logistics,embedded,electronicmap,GPSlocating,GPRScommunication1WindowsCELiodLiodWindowsCE142GPRS3GPS452LiodLiodPXA270IntelXScaleFlashLCDUSBFFUARTBTUARTLCDWindowsCEWindowsCEWindowsCEWindowsAPIWindowsCEeMbeddedVisualC++eVCeVC4.033.1LiodLiodGPRSModemGPRSModemLiodCOM1GPS12GARMIN15LTD58C8051F020LiodGPSLiodLiodZNE-100TLiod1BNCDTEPOWERSTATUS4PORTMODULARTRANSCEIVERMODELMIL210XPORT2PORT1TX1TX2CXMenuSelectReturnGoStop*13.2ZNE-100TZNE-100T11ZNE-100T1EthernetTX+2EthernetTX-23GPIO03EthernetRX+22GPIO14EthernetRX-21GPIO25LED20GPIO36SerialTXD19Ether_TXD_LED7SerialRXD18GPIO48485_TXD_EN1791610nRST15Ether_RXD_LED11GND14VCC(+5VDC)12GND13VCC(+5VDC)GPIO0-GPIO4I/O3RS232GPSMAX3221GPIO0-GPIO23MAX3221#EN013.3AD8221C8051F02022AD8221C8051F020ADC1UART0PC9600bpsC8051F020ADC180255205.144.1(0,0)XWYH(x,y)(x/W,y/H)(0.0,0.0)(1.0,1.0)GPSxxy42251x1557BMP8211282x195chengdu1.bmp22563x390chengdu2.bmp341125x779chengdu3.bmp482251x1557chengdu4.bmpGPS3GPSGPSxy1point1=(lon1,lat1,x1,y1)2point2=(lon2,lat2,x2,y2)point1point2(0.0,0.0)(1.0,1.0)pointTLlonTLlatTLpointBRlonBRlatBRTLTopLeftBRBottomRightpointTL(lonTL,latTL,0.0,0.0)pointBR(lonBR,latBR,1.0,1.0)point1point2pointTLpointBRXYLatitudeLongitude((x2-0.0)*lon1-(x1-0.0)*lon2)lonTL=;(x2-x1)((y2-0.0)*lat1-(y1-0.0)*lat2)latTL=;(y2-y1)⎧⎪⎪⎨⎪⎪⎩1((1.0-x2)*lon1-(1.0-x1)*lon2)lonBR=;(x1-x2)((1.0-y2)*lat1-(1.0-y1)*lat2)latBR=;(y1-y2)⎧⎪⎪⎨⎪⎪⎩23(longitude)(latitude)xyGPSgpx2xy.htypedefstructtagMAPNODE{doublelongitude;//doublelatitude;//doublenormCartX;//xdoublenormCartY;//y}MAPNODE;//.dat44(offset)(size)(name)(description)04(nNodes)4321(node1)1MAPNODE36322(node2)2MAPNODE4+32*(n-1)32n(noden)nMAPNODE(byte)WindowsCEAPI4.2GPRSGPRSModemGPRSModemASCII0SPACE0x20NULLC0x00UNICODE1(locationupdatepacket,UPDT)2(receivedfromuserpacket,RECV)3(sendtouserpacket,SEND)4(newtaskpacket,NTSK)5(clientacknowledgepacket,CACK)6(serveracknowledgepacket,SACK)7truckmalfunctionpacket,TMLF8roadcongestionpacket,RCNG(head)(packettype)(timestamp)(packetsequencenumber)(body)NTSKTMLFRCNGRECVSENDUPDTCACKSACK4.3ZNE-100TLiodWindowsCEZNE-100T3003ZNE-100T4001winsock1.1TCPOnRead()OnError()OnDisconnect()GPSZNE-100TLiodGPSZNE-100T3003C8051F020Liod40510040xAA0x550x054WindowsCEUNICODECwcstombs()4.4WindowsCEAPIBOOLWINAPIPlaySound(LPCSTRpszSound,HMODULEhmod,DWORDfdwSound);NULL55GPRSUPDT64200RECV296200SEND296200NTSK296200CACK40200SACK40200TMLF64200RCNG642005.3650020512122.4%1000201040404.0%1500201560603.8%7Welcome.wavNewTask.wavAfterPrint.wav6LiodGPSGPRS[1].—IntelXscale.2004[2].—StrongARM/Xscale.2004[3].MFC2.2004[4].EVC.2005[5].WindowsCE.2003[6].C8051FC.2005[7]MapXHelpOnline.MapInfo[8].VisualBasic6.0API.,2000
本文标题:基于WindowsCE的物流车载终端设计与实现
链接地址:https://www.777doc.com/doc-751361 .html