商店
参考
NI公司
切换导航
内部工具
页面的工具
显示页面
旧的版本
反向链接
网站工具
最近的变化
网站地图
媒体经理
用户工具
登录
狗万man05 .com
FPGA / SoC开发板
附庸风雅的A7
附庸风雅的S7
艺术Z7
Basys 3
Cmod A7
Cmod S7
科拉Z7
Eclypse Z7
Genesys 2
Genesys祖茂堂的
在下A7
在下视频
USB104 A7
Zedboard Zynq-7000开发板
Zybo Z7
看到所有
程序员
看到所有
扩展模块
Zmods
Zmod范围1410
Zmod AWG 1411
看到所有
Pmods
看到所有
Pcams
FMC Pcam适配器
Pcam 5度
单片机板
Basys MX3
Max32
uC32
WF32
Wi-Fire
看到所有
狗万电脑平台
采购产品USB范围,分析和信号发生器
模拟发现2
模拟发现Pro (ADP5250)
模拟发现Pro (ADP3450/ADP3250)
模拟发现工作室
数字发现
看到所有
适配器和画布
音频适配器
BNC适配器
案板突破
案板适配器
阻抗分析仪适配器
晶体管测试仪适配器
空白的画布
案板帆布
软件
Digilent软件
熟练的2
波形
波形SDK
看到所有
|
博客
论坛
项目
Digilent Github
你在这里::
Digilent参考
学习
可编程逻辑
可编程序逻辑教程
如何自动连接两个PmodBT2
本页面为只读状态。您可以查看源代码,但不能更改它。如果您认为这是错误的,请询问您的管理员。
=====如何自动连接2个PmodBT2's Together ===== ====介绍==== PmodBT2可以配置为自动连接,提供即时的双向串口线缆更换。下面是一个简单的指南,向您展示如何做到这一点。---- ====所需材料==== * x2 PmodBT2 *主机计算机上的蓝牙和通用终端程序(如terterm或超级终端)或串行终端应用程序在您的非IOS移动设备。* A的意思是为BT2的---- ====术语==== *
-当你看到这个,你将需要在你的终端中添加一个**通信**r**返回。---- ==== 说明= = = =一般设置只需要用户能够连接,进入设置模式BT2因此可以执行本教程使用蓝牙兼容的个人电脑与一个终端程序或蓝牙兼容智能手机(非IOS)和一个终端应用。本教程中使用的所有命令可以找到的[[http://ww1.microchip.com/downloads/en/DeviceDoc/bluetooth_cr_UG-v1.0r.pdf | RN42的参考手册]]。= = = 1。首先要确保两个PmodBT2已经被重置为出厂默认值。要做到这一点,在BT2上的JP1跳线,应用电源和移除/更换跳线两次。在第二个跳线替换时,你应该看到红色和绿色的led灯瞬间闪烁,这是你如何知道你成功重置了你的BT2。 It is important to note that the jumper on JP1 needs to be on before the BT2 is powered on in order to take effect. >1.2) Once the BT2's are reset, remove the jumper on JP1 and power cycle. === 2. BT2 Configuration === >2.1) At this point you will need to decide which BT2 you would like to be the slave and master. === 3. Slave Configuration === >3.1) Connect to your designated slave BT2 with your preferred device and send the command "$$$" through the terminal. If you receive "CMD" back from the BT2 and the BT2's green led begins flashing more rapidly you know that you have successfully entered "Command Mode". >3.2) Next enter "D
" to display the BT2's basic settings and verify that "Mode =Slav". If the mode is set to anything other than the slave then set the mode to slave by entering the command "SM,0
". >3.3) Next we need to disable the authentication. To do this send the command "SA,0
" and verify that "Authen=0" in the basic settings. >3.4) In order for these changes to take effect the device must be rebooted. Use the "R,1
" command to reboot. === 4. Master Configuration === >4.1) Next up is to configure your master device. Using the same process to enter command mode as you did to the slave enter command mode of the master BT2. >4.2) Send the commands "SA,0
" and "Sm,3
" separately. These commands will disable authentication and set the BT2 into "Auto-Connect" mode. >4.3) Next you'll need to tell the BT2 module which device to connect to. With the slave BT2 powered on send the "I,10
" command to discover all PmodBT2 devices within range and their addressees will be returned. The address is a 12-digit hexadecimal number. It can also be found on the Pmod BT2's label as the MAC ID. Once the slave's device address is known send the command "SR,
" in order to save it to memory. For example if the slave's address was 00066676ABCD you would enter "SR,00066676ABCD
". >4.4) Check to make sure that the device is in auto connect code, has no authentication, and has stored the correct slave address. Send "D
" and verify "Mode =DTR", "Authen=0" and that "REM=ADDR" where ADDR is the slave's address. >4.5) Reboot the device using the "R,1
" command. === 5. Test! === > 5.1) Connect the BT2's to a power source close enough that they are within range of each other and power them up at the same time (plugging them both into one of Digilent's boards is an easy way to do this). Within a few seconds you should see the green lights turn off on both of the BT2s. This means that you have successfully configured your PmodBT2s to auto connect with each other! {{tag>tutorial, pmodbt2}}