spp_dev_b_debug

所属分类:单片机开发
开发工具:C/C++
文件大小:15KB
下载次数:42
上传日期:2010-01-15 11:53:27
上 传 者305112
说明:  Bluelab3.6.2 在原有spp_dev_b(device slave)例子加上了用SPP接收和发送数据功能,内置debug log(spp_dev_b_Log.TXT)。打开有message 输出信息 要定义DEBUG_ENABLED即可。可以移植其他项目中
(Bluelab3.6.2 in the original spp_dev_b (device slave) with examples of using SPP to receive and send data capabilities, built-in debug log (spp_dev_b_Log.TXT). Open a message can be output to define DEBUG_ENABLED. Can be transferred to other projects)

文件列表:
spp_dev_private.h (1359, 2006-12-12)
spp_dev_b.release.mak (1143, 2010-01-15)
spp_dev_b_ori.opt (48640, 2010-01-15)
spp_dev_b_ori.dsp (4840, 2008-10-27)
spp_dev_b_ori.dsw (549, 2008-10-27)
spp_dev_b.xip (1315, 2010-01-15)
spp_dev_b.xiw (62, 2006-12-12)
main.c (10439, 2010-01-15)
spp_dev_auth.c (2312, 2006-12-12)
spp_dev_init.c (794, 2006-12-12)
spp_dev_inquire.c (1521, 2006-12-12)
spp_dev_led.c (1743, 2006-12-12)
spp_dev_auth.h (1504, 2006-12-12)
spp_dev_init.h (589, 2006-12-12)
spp_dev_inquire.h (640, 2006-12-12)
spp_dev_led.h (789, 2006-12-12)
spp_dev_b_Log.TXT (553, 2010-01-15)

{\rtf1\ansi\ansicpg1252\uc1\deff1\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang2057\deflangfe2057{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} {\f2\fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}{\f38\froman\fcharset238\fprq2 Times New Roman CE;}{\f39\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f41\froman\fcharset161\fprq2 Times New Roman Greek;} {\f42\froman\fcharset162\fprq2 Times New Roman Tur;}{\f43\froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f44\froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f45\froman\fcharset186\fprq2 Times New Roman Baltic;} {\f46\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f48\fswiss\fcharset238\fprq2 Arial CE;}{\f49\fswiss\fcharset204\fprq2 Arial Cyr;}{\f51\fswiss\fcharset161\fprq2 Arial Greek;}{\f52\fswiss\fcharset162\fprq2 Arial Tur;} {\f53\fswiss\fcharset177\fprq2 Arial (Hebrew);}{\f54\fswiss\fcharset178\fprq2 Arial (Arabic);}{\f55\fswiss\fcharset186\fprq2 Arial Baltic;}{\f56\fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f58\fmodern\fcharset238\fprq1 Courier New CE;} {\f59\fmodern\fcharset204\fprq1 Courier New Cyr;}{\f61\fmodern\fcharset161\fprq1 Courier New Greek;}{\f62\fmodern\fcharset162\fprq1 Courier New Tur;}{\f63\fmodern\fcharset177\fprq1 Courier New (Hebrew);} {\f***\fmodern\fcharset178\fprq1 Courier New (Arabic);}{\f65\fmodern\fcharset186\fprq1 Courier New Baltic;}{\f66\fmodern\fcharset163\fprq1 Courier New (Vietnamese);}}{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255; \red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0; \red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\nowidctlpar\faauto\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \snext0 Normal;}{\s1\ql \li0\ri0\nowidctlpar\faauto\outlinelevel0\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 1;}{\s2\ql \li0\ri0\nowidctlpar\faauto\outlinelevel1\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 \sbasedon0 \snext0 heading 2;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\*\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv \ql \li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}}{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\rsidtbl \rsid4199***\rsid1910554 \rsid6517556\rsid8348477\rsid9010876\rsid9387880\rsid9520693\rsid10444355\rsid11018558\rsid11085687\rsid13379653\rsid14747885\rsid16396339\rsid16734167}{\*\generator Microsoft Word 11.0.5604;}{\info{\author mb03}{\operator mb03} {\creatim\yr2005\mo5\dy17\hr11\min36}{\revtim\yr2005\mo6\dy3\hr12\min10}{\version11}{\edmins170}{\nofpages2}{\nofwords391}{\nofchars2234}{\*\company CSR}{\nofcharsws2620}{\vern24689}} \widowctrl\ftnbj\aenddoc\noxlattoyen\expshrtn\noultrlspc\dntblnsbdb\nospaceforul\hyphcaps0\horzdoc\dghspace120\dgvspace120\dghorigin1701\dgvorigin1***4\dghshow0\dgvshow3\jcompress\viewkind4\viewscale100\nolnhtadjtbl\rsidroot13379653 \fet0\sectd \linex0\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4 \pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (} {\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \s1\ql \fi-567\li567\ri0\sb240\sa120\keepn\nowidctlpar \tx567\faauto\outlinelevel0\rin0\lin567\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\fs32\cf1\insrsid13379653 1\tab Introduction \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 This readme gives a brief guide to using the }{\f2\fs20\cf1\insrsid13379653 spp_dev_b}{ \fs18\cf1\insrsid13379653 example application. It is not intended to describe procedures that are covered in the xIDE user guide}{\fs18\cf1\insrsid16734167 ,}{\fs18\cf1\insrsid13379653 such as building projects in xIDE etc. \par }\pard\plain \s2\ql \fi-851\li851\ri0\sb180\sa120\keepn\nowidctlpar\tx851\faauto\outlinelevel1\rin0\lin851\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\cf1\insrsid13379653 1.1\tab About the spp_dev_}{\b\cf1\insrsid16396339 b}{ \b\cf1\insrsid13379653 example application \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 This example application implements a simple serial port emulation application. A device running }{ \f2\fs20\cf1\insrsid13379653 spp_dev_b}{\fs18\cf1\insrsid13379653 is initially discoverable for 50 secs. \par During which time it will accept a request to pair from a remote device that is searching for a device that supports the SPP profile as a slave. If pairing is successful an SPP connection is established with the remote device. \par }\pard\plain \s1\ql \fi-567\li567\ri0\sb240\sa120\keepn\nowidctlpar\tx567\faauto\outlinelevel0\rin0\lin567\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\fs32\cf1\insrsid13379653 2\tab Prerequisites \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 To download the application to the chip an SPI connection is required between the development hardware and the PC hosting xIDE. \par If you wish to use an application such as HyperTerminal to communicate with the chip, eg for testing purposes, a serial connection will also be required. \par }\pard\plain \s1\ql \fi-567\li567\ri0\sb240\sa120\keepn\nowidctlpar\tx567\faauto\outlinelevel0\rin0\lin567\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\fs32\cf1\insrsid13379653 3\tab Running the application \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 To run the application: \par }\pard \ql \fi-360\li717\ri0\sb60\sa60\keepn\nowidctlpar\tx717\faauto\rin0\lin717\itap0 {\fs18\cf1\insrsid13379653 1.\tab Open the }{\f2\fs20\cf1\insrsid13379653 spp_dev_b}{\fs18\cf1\insrsid13379653 example application (}{\f2\fs20\cf1\insrsid13379653 sp p_dev_b.xiw}{\fs18\cf1\insrsid13379653 ) as a project in xIDE. \par }\pard \ql \fi-360\li717\ri0\sa120\nowidctlpar\tx717\faauto\rin0\lin717\itap0 {\fs18\cf1\insrsid13379653 2.\tab Use xIDE to Build (}{\b\fs16\cf1\insrsid11018558\charrsid11018558 F}{\b\fs16\cf1\insrsid13379653 7}{\fs18\cf1\insrsid13379653 ) and Run (}{ \b\fs16\cf1\insrsid11018558\charrsid11018558 F}{\b\fs16\cf1\insrsid13379653 5}{\fs18\cf1\insrsid13379653 ) the application. \par }\pard\plain \s1\ql \fi-567\li567\ri0\sb240\sa120\keepn\nowidctlpar\tx567\faauto\outlinelevel0\rin0\lin567\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\fs32\cf1\insrsid13379653 4\tab Pairing and connecting to a remote device \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 When the download is complete, the device is discoverable for 50 secs. If a device is successfully paired during this period an SPP connection is established. \par To establish a connection the PIN 1234 must be used by the remote device. \par }\pard \ql \fi-539\li1106\ri0\sb60\sa120\nowidctlpar\tx357\faauto\rin0\lin1106\itap0 {\b\fs16\cf1\insrsid13379653 Note:}{\fs16\cf1\insrsid13379653 If connecting to a device running }{\f2\fs18\cf1\insrsid13379653 spp_dev_a}{\fs16\cf1\insrsid13379653 which also has the hardcoded PIN 1234 the pairing procedure will complete automatically and a connection will be established without user intervention.}{\b\fs16\cf1\insrsid13379653 \par }\pard \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0 {\fs18\cf1\insrsid13379653 Pressing}{\fs18\cf1\insrsid14747885 PIO 5}{\fs18\cf1\insrsid13379653 }{\fs18\cf1\insrsid14747885 (}{\b\fs16\cf1\insrsid14747885\charrsid14747885 VOL+}{ \fs18\cf1\insrsid14747885 on }{\fs18\cf1\insrsid6517556 a}{\fs18\cf1\insrsid14747885 BlueCore3 Multimedia development board) }{\fs18\cf1\insrsid13379653 makes the device discoverable for another 50 secs}{\fs18\cf1\insrsid9387880 .}{ \fs18\cf1\insrsid13379653 \par }\pard\plain \s1\ql \fi-567\li567\ri0\sb240\sa120\keepn\nowidctlpar\tx567\faauto\outlinelevel0\rin0\lin567\itap0\pararsid13379653 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\fs32\insrsid13379653\charrsid9010876 5}{\insrsid13379653 \tab }{\b\fs32\cf1\insrsid13379653 Testing the connection \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0\pararsid13379653 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 When a connection has been established}{\fs18\cf1\insrsid10444355 ,}{ \fs18\cf1\insrsid13379653 one way to confirm that data can be sent over the link is to open separate HyperTerminal sessions, one with each device. Then characters typed in one session will appea r in the other as the data is transferred over the Bluetooth SPP link. \par }\pard \ql \fi-539\li1106\ri0\sb60\sa120\nowidctlpar\tx357\faauto\rin0\lin1106\itap0\pararsid13379653 {\b\fs16\cf1\insrsid13379653 Note:}{\fs16\cf1\insrsid13379653 If both HyperTerminal sessions are being run from the same PC it is important to use different COM ports for the connections. Also ensure the BAUD rates of both devices are compatible. \par }\pard\plain \s2\ql \fi-851\li851\ri0\sb180\sa120\keepn\nowidctlpar\tx851\faauto\outlinelevel1\rin0\lin851\itap0\pararsid13379653 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\b\cf1\insrsid13379653 1.1\tab LED Status}{ \b\fs18\cf1\insrsid13379653 \par }\pard\plain \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0\pararsid13379653 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs18\cf1\insrsid13379653 The development platform on which the application is being run affects the LED }{ \fs18\cf1\insrsid8348477 e}{\fs18\cf1\insrsid13379653 ffected by the application:}{\b\fs18\cf1\insrsid13379653 \par Casira \par }\pard \ql \li0\ri0\sb60\sa60\nowidctlpar\faauto\rin0\lin0\itap0\pararsid13379653 {\fs18\cf1\insrsid13379653 Rapid blink = discoverable \par Slow blink = connecting \par }\pard \ql \li0\ri0\sb60\sa120\nowidctlpar\faauto\rin0\lin0\itap0\pararsid13379653 {\fs18\cf1\insrsid13379653 Solid (on) = connected \par }\pard \ql \li0\ri0\sa120\nowidctlpar\faauto\rin0\lin0\itap0\pararsid13379653 {\b\fs18\cf1\insrsid13379653 Multimedia board \par }\pard \ql \li0\ri0\sb60\sa120\nowidctlpar\faauto\rin0\lin0\itap0\pararsid13379653 {\fs18\cf1\insrsid13379653 As shipped, the code does not flash the LED on a }{\fs18\cf1\insrsid14747885 BlueCore3 M}{\fs18\cf1\insrsid13379653 ultimedia board. To flash LEDs change LED = 1<<}{\fs18\cf1\insrsid11085687 7}{\fs18\cf1\insrsid13379653 in the }{\f2\fs20\cf1\insrsid13379653\charrsid13379653 spp_dev_private.h}{\fs18\cf1\insrsid13379653 file to LED = 1<<1, then rebuild and run the application. \par }\pard\plain \s1\ql \fi-567\li567\ri0\sb240\sa120\keepn\nowidctlpar\tx567\faauto\outlinelevel0\rin0\lin567\itap0\pararsid13379653 \f1\fs24\lang2057\langfe2057\cgrid\langnp2057\langfenp2057 {\fs20\insrsid13379653 \par }}

近期下载者

相关文件


收藏者