Application examples for BT580 serial Bluetooth adapter - ENGLISH - 市场与应用 - Powered by Discuz!

首页 | 产品与服务 | 市场与应用 | 购买指南 | 防伪查询 | 水木行论坛 | 关于水木行 | ENGLISH

市场与应用

 找回密码
 禁止灌水
搜索
热搜: 活动 交友 discuz
查看: 12014|回复: 2
打印 上一主题 下一主题

Application examples for BT580 serial Bluetooth adapter

[复制链接]
跳转到指定楼层
楼主
发表于 2021-2-23 21:13:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Communicate with Android mobile phone and send remote AT command

1. please download a APP named "ATBlue" from this URL: http://www.irxon.com/download/ATBlue-EN.rar
After extracting the compressed file and installation on a Android mobile phone, tap "ATBlue" icon to run the APP.In Android 6.0 and higher version, a coarse location permission is needed in Bluetooth searching.
When you run "ATBlue" for the first time, please give the APP location permission, select "While Using" or "Allow".




2. In "ATBlue" APP, tap "SCAN" to search nearby Bluetooth devices, tap "BT580" in the found devices list to connect.




3. A Bluetooth link between Android mobile phone and BT580 adapter will be established (the blue LED turns steadily on).
Type remote testing AT command "AT+BT" at the bottom of screen, then tap "SEND", if the adapter returns a message "OK" in upper screen, it means the testing AT command was run successfully, you can proceed with more AT commands.




4. BT580 Serial Bluetooth adapter is usually connected to a serial device by serial port, and then communicates with a mobile phone via Bluetooth.
The default serial settings of the BT580 are 9600,N,8,1, if this settings is different from serial settings of the device, you can change BT580 serial settings by send AT command, make BT580 adapter and the device have same serial settings.
Let's take serial baud rate as an example, we need to change BT580's serial baud rate to 115200bps.
Send to the adapter the Inquiring Baud Rate command "AT+BAUDRATE=?".
The return message say the serial baud rate is "3".
Look up BT580's User Guides, the code "3" means the current serial baud rate of BT580 adapter is 9600bps.




5. According to User Guides, the code of 115200bps is "7".
Send Changing Baud Rate command "AT+BAUDRATE=7", the return message say the serial baud rate is set to 115200.



6. You must send command "AT+RESTART" to restart the adapter for new baud rate to take effect.  
Restarting the adapter will cause the Bluetooth connection "disconnected".



After restarting, the BT580's serial port will work at baud rate of 115200bps.

For more AT commands, please refer to BT580 User Guides: http://www.irxon.com/english/580/BT580_EN.pdf





回复

使用道具 举报

沙发
 楼主| 发表于 2021-2-26 11:10:05 | 只看该作者

Communicate with iPhone and send remote AT command

1.  Please install a general purpose BLE communication APP named "LightBlue" in the App Store.




2. Tap the icon to run LightBlue, the APP start searching Bluetooth device at once. Tap BT580 in the found divices list, a Bluetooth link between iPhone and BT580 adapter will be established(blue LED stay on).


3. LightBlue is a general purpose BLE APP, user can communicate with BT580 by writing Pass Through(UUID:FFF6) characteristic and listening for its notifications. Please tap "Pass Through".



4. Chang "Hex" to "UTF-8"





5. Turn on "listen for notifications"



6. Tap "write new value"



7. Type remote testing AT command "AT+BT", then tap "done".



8.  If the adapter returns a message "OK", it means the testing AT command was run successfully, you can proceed with more AT commands.



9. BT580 Serial Bluetooth adapter is usually connected to a serial device by serial port, and then communicates with a mobile phone via Bluetooth.
The default serial settings of the BT580 are 9600,N,8,1, if this settings is different from serial settings of the device, you can change BT580 serial settings by send AT command, make BT580 adapter and the device have same serial settings.
Let's take serial baud rate as an example, suppose we need to change BT580's serial baud rate to 115200bps.
Send to the adapter the Inquiring Baud Rate command "AT+BAUDRATE=?".
The return message say the serial baud rate is "3".
Look up BT580's User Guides, the code "3" means the current serial baud rate of BT580 adapter is 9600bps.



10. According to User Guides, the code of 115200bps is "7".
Send Changing Baud Rate command "AT+BAUDRATE=7".



11. The return message say the serial baud rate is set to 115200.



12. We must send command "AT+RESTART" to restart the adapter for new baud rate to take effect.   
Restarting the adapter will cause the Bluetooth connection to be interrupted.




After restarting, the BT580's serial port will work at baud rate of 115200bps.

回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2021-2-26 20:28:52 | 只看该作者

Connect to Windows PC and send local AT command

1,  Connect BT580 adapter to Windows XP/7/8/10 desktop or laptop computer via DB9 male to female converter. Please pay attention to Male/Female Slide Switch on the top of BT578 adapter, make sure the switch is at F position.  (If there isn't RS232 serial port on your PC, you can buy a USB to RS232 cable to add a serial port to your PC)     



2, Turn on BT580 adapter, make sure the blue LED is blinking(Bluetooth is not connected), open BT578 tester program(it is a general purpose program, click here to download), choose the correct com port number which BT580 was connected, make sure the computer's COM port settings is same as BT580 serial port settings (factory default is 9600,N,8,1), please refer to the snap picture below.   
   



3, Click "Open Com" to open serial port, type testing command "AT" in "Data input" box, click "SEND", the upper window will get return message "OK" from BT580 adapter, it means testing AT command was run successfully, you can proceed with more AT commands.     




4. BT580 Serial Bluetooth adapter is usually connected to a serial device by serial port, and then communicates with a mobile phone via Bluetooth.
The default serial settings of the BT580 are 9600,N,8,1, if this settings is different from serial settings of the device, you can change BT580 serial settings by send AT command, make BT580 adapter and the device have same serial settings.
Let's take serial baud rate as an example, suppose you need to change BT580's serial baud rate to 115200bps.
First send to the adapter the Inquiring Baud Rate command "AT+BAUDRATE=?", the return message say the serial baud rate is "3".
Look up BT580's User Guides, the code "3" means the current serial baud rate of BT580 adapter is 9600bps.




5. According to User Guides, the code of 115200bps baud rate is "7".
Send Changing Baud Rate command "AT+BAUDRATE=7", the return message say the serial baud rate is set to 115200.




6. The Local AT commands to change serial port settings will take effect immediately.  After the serial port baud rate of the BT580 adapter was changed, the computer's COM port baudrate should be changed to the same in time, otherwise the local AT command setting cannot proceed.   




Please look up BT580 "User Guide" for more AT commands: http://www.irxon.com/english/580/BT580_EN.pdf

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 禁止灌水

本版积分规则

QQ|水木行 ( 京ICP备19050381号

GMT+8, 2024-5-4 11:15 , Processed in 0.437256 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.