⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cwp76.htm

📁 WJ Communications RFID example code
💻 HTM
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>WJ.MPR.Reader.MPRComm.ResetMPR</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">WJ.MPR.Reader.MPRComm.ResetMPR Function</DIV><DIV CLASS="Description">
Hard reboot the MPR's processor.
Resetting can bring the MPR up in one of two programs.
	If the Bootloader line is high, we enter the bootloader.
	Else, the normal Application is started.
The Application uses no Handshaking, 57600 baud, and communicates through MPRMsg Frames.
The Bootloader uses XonXoff Handshaking, 115200 baud, and communicates through ASCII text.
The two different types of message require different Message handlers 
(SerialPort_DataRecevied and SerialPortBL_DataRecevied).

This Method waits 100 msec after toggling the Reset Line, for the MPR to reboot.

There are two ways of communicating with the MPR, serial mode and PC Card mode.

In serial mode, the BOOTLOAD and RESET lines are brought out to the 68-pin connector,
and must be toggled with dedicated hardware lines.

In PC Card mode, the BOOTLOAD and RESET lines are internal to the MPR and are toggled
by special commands.  These special commands are accessed by changing the serial port
settings to {57600 BPS, 5 Data bits, 1.5 stop bits, no parity}.  
The reset line is then accessed as bit 4 (0x10). 
The BOOTLOAD line is then accessed as bit 0 (0x01).

This MPRComm.ResetMPR Method only works in the PC Card Mode.

<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Public void ResetMPR (bool)</SPAN></DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20>&nbsp;</TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" >Type</TD><TD CLASS="TableLightLabel" >Name</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc">bool</TD><TD CLASS="TableLightDesc">BootLoader</TD><TD CLASS="TableLightDesc">Whether the MPR should start in the boot loader (true) 
or the application (false).</TD><TD width=20>&nbsp;</TD></TR></TABLE><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20>&nbsp;</TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Return</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc">void</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD width=20>&nbsp;</TD></TR></TABLE></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -