Download Print this page

Feasycom FSC-BT986 Series Programming & User Manual

Bluetooth module

Advertisement

Quick Links

FSC-BT986 Programming User
Guide
Release 1.0.0
1

Advertisement

loading
Need help?

Need help?

Do you have a question about the FSC-BT986 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Feasycom FSC-BT986 Series

  • Page 1 FSC-BT986 Programming User Guide Release 1.0.0...
  • Page 2: Table Of Contents

    Table of contents 1 Introduction Description ........Module default configuration .
  • Page 3 5.1.8 AT+PIN - Read/Write Pin Code ....12 5.1.9 AT+PLIST - Read/Clear Paired Record ....13 5.1.10 AT+BAUD - Read/Write UART Baudrate .
  • Page 4 5.3.9 AT+LECCONN - Establish LE Central Connection ..28 5.3.10 AT+LESEND - Send Data Via LE Central ....29 Bluetooth Serial Commands (HID) .
  • Page 5: Introduction

    Chapter 1 Introduction 1.1 Description This instruction manual is provided for engineers to develop FSC-BT986 series Bluetooth mod- ules, which are also suitable for BT982 and BT981 series modules 1.2 Module default configuration Name FSC-BT986 LE-Name FSC-BT986-LE Pin Code 0000...
  • Page 6: Hardware Interface

    Chapter 2 Hardware Interface 2.1 Application Schematic FSC-BT986 for example:...
  • Page 7: Pin Definition Descriptions

    • If the MCU needs to obtain the connection status of the Bluetooth module, it needs to be connected to the STATUS pin. • After drawing the schematic diagram, please send it to Feasycom for review to avoid Bluetooth distance not achieving the best effect.
  • Page 8: Function Description

    Chapter 3 Function Description 3.1 GPIO Indications Connection status PIN 24 State Description Low level Throughput mode High level AT command mode Connection status PIN 23 State Description Low level High level disconnected LED PIN 32 State Description 1Hz square disconnected wave High level...
  • Page 9: Working Mode

    FSC-BT986 Programming User Guide, Release 1.0.0 State Description Low level disconnected High level connected 3.2 Working mode Throughput mode Bluetooth is not connected, and the data received by the serial port is parsed according to AT instructions; After Bluetooth connection, all data received from the serial port is sent to the remote Bluetooth as is.
  • Page 10: At Command Description

    Chapter 4 AT Command Description 4.1 Specification Description Applicable to the entire document • {} : Including content in {…} is optional • << : COMMAND sent by the host to the module • >> : Module responds to the host’s**RESPONSE** 4.2 Command Command are control commands that the host actively sends to the module, and the module needs to reply <CR><LF>OK<CR><LF>...
  • Page 11: Indication

    FSC-BT986 Programming User Guide, Release 1.0.0 • If the instruction contains parameters, the parameters should be separated by**=** • If the instruction contains multiple parameters, the parameters should be separated by**,** • If the instruction returns a response, the response starts with <CR><LF>,ends with**<CR><LF>** •...
  • Page 12 FSC-BT986 Programming User Guide, Release 1.0.0 • If the notification contains multiple parameters, the parameters should be separated by ‘,’ Example: Return to current connection status in command mode >> +SPPSTAT=3 4.5. Indication...
  • Page 13: Command Table

    Chapter 5 Command Table 5.1 General Commands 5.1.1 AT+HELP - Query firmware functions and command Command AT+HELP Response <MODULE DEFAULT PARAMETER> <COMMAND SUMMARY: DESCRIPTION: PROFILE CATEGORY> Description Using the help command to obtain basic summary information Note: If you need to upgrade to the latest version, please refer t OTA instructions 5.1.2 AT - UART Communication Test Command...
  • Page 14: At+Reboot - Soft Reboot

    FSC-BT986 Programming User Guide, Release 1.0.0 Example: << AT >> OK 5.1.3 AT+REBOOT - Soft Reboot Command AT+REBOOT Response Description Module release all Bluetooth connections with remote device then re- boot. Example: << AT+REBOOT >> OK 5.1.4 AT+RESTORE - Restore Factory Settings Command AT+RESTORE Response...
  • Page 15: At+Bten - Disable/Enable Module

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.5 AT+BTEN - Disable/Enable Module Command AT+BTEN{=Param1} Param Disable/Enable Module(0/1,default:0) 0: Bluetooth disable 1: Bluetooth enable Response +BTEN=Param Description Disable/Enable Module 5.1.6 AT+NAME - Read/Write BR/EDR Local Name Command AT+NAME{=Param1{,Param2}} Param1 BR/EDR Local Name(1~31 Bytes ASCII) Param2 Enable MAC address suffix (0~2,default:0) 0: Disable suffix...
  • Page 16: At+Lename - Read/Write Ble Local Name

    FSC-BT986 Programming User Guide, Release 1.0.0 Change module’s BR/EDR local name and disable suffix << AT+NAME=ABC,0 >> OK Change module’s BR/EDR local name to “ABC”and enable suffix << AT+NAME=ABC,1 >> OK 5.1.7 AT+LENAME - Read/Write BLE Local Name Command AT+LENAME{=Param1{,Param2}} Param1 BLE local name(1~31 Bytes ASCII) Param2...
  • Page 17: At+Plist - Read/Clear Paired Record

    FSC-BT986 Programming User Guide, Release 1.0.0 Example: Read module’s pin code << AT+PIN >> +PIN=0000 >> OK Change module’s pin code to ‘1234’ << AT+PIN=1234 >> OK 5.1.9 AT+PLIST - Read/Clear Paired Record Command AT+PLIST{=Param} Param (0 / 1~8) (0) Clear all paired record (1~8) Clear specific paired record with index Response1 +PLIST=Param1, Param2...
  • Page 18: At+Baud - Read/Write Uart Baudrate

    FSC-BT986 Programming User Guide, Release 1.0.0 >> OK 5.1.10 AT+BAUD - Read/Write UART Baudrate Command AT+BAUD{=Param} Param Baudrate(4800/9600/19200/38400/57600/115200/ 230400/460800/921600,256000,512000,1000000, default:115200) Response +BAUD=Param Param Baudrate Description Module’s baudrate will be changed immediately after received this command Example: Read UART Baudrate << AT+BAUD >>...
  • Page 19: At+Lpm - Turn On/Off Low Power Mode

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.11 AT+LPM - Turn On/Off Low Power Mode Command AT+LPM{=Param} Param Low Power Mode (0/1, default: 0) 0: Turn Off 1: Turn On Response +LPM=Param Param Low Power Mode Description Read and configure Low Power Mode Example: Read Low Power Mode <<...
  • Page 20: At+Addr - Read Br/Edr Mac Address

    FSC-BT986 Programming User Guide, Release 1.0.0 >> +VER=1.0.0,FSC-BT986 >> OK 5.1.13 AT+ADDR - Read BR/EDR MAC Address Command AT+ADDR Response +ADDR=Param Param Module’s BR/EDR MAC address(12 Bytes ASCII) Example: << AT+ADDR >> +ADDR=DC0D30010203 >> OK 5.1.14 AT+LEADDR - Read BLE MAC Address Command AT+LEADDR Response...
  • Page 21: At+Tpmode - Turn On/Off Throughput Mode

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.16 AT+TPMODE - Turn On/Off Throughput Mode Command AT+TPMODE{=Param} Param Mode(0~1,default: 0)0: AT command mode 1: Throughput mode Response +TPMODE=Param Description When SPP/HID/GATT profile connected and throughput mode is on, the AT command will be de-active, every byte received via physical UART will be sent to air, vice visa.
  • Page 22: At+Mode - Read/Write Bluetooth Mode

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.19 AT+MODE - Read/Write Bluetooth Mode Command AT+MODE{=Param} Param Pairing mode (0~4, default:0) (0) NONE PROFILE (1) SPP PROFILE (2) HID PROFILE (3) BLE PROFILE (4) ALL PROFILE Response +SSP=Param 5.1.20 AT+AUTOCONN - Turn On/Off Power On Auto Recon- nect<need reboot>...
  • Page 23: At+Piocfg - Pio Function Configuration

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.21 AT+PIOCFG - PIO Function Configuration Command AT+PIOCFG{=Param,Param1} Param 0: Disable Command/Transmission mode switch function 1: Enable Command/Transmission mode switch function Param1 0: Disable Bluetooth disconnect function 1: Enable Bluetooth disconnect function Response +PIOCFG=Param Description 5.1.22 AT+DSCA - Release All Connections Command...
  • Page 24: At+Scan - Scan Nearby Devices

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.23 AT+SCAN - Scan Nearby Devices Command AT+SCAN=Param1{,Param2{,Param3}} Param1 Scan type(0~2) 0: Stop scan 1: Scan nearby BR/EDR devices 2: Scan nearby BLE devices(some firmware do not support) 3: Scan nearby BR/EDR/BLE devices(some firmware do not support) Param2 (1~48)Scan period.
  • Page 25: At+Txpower - Read/Write Tx Power

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.25 AT+TXPOWER - Read/Write TX power Command AT+TXPOWER{=Param} Param TX power(0~2)| 0: 0db | 1: 3db | 2: 5db Response +TXPOWER=Param Param TX power Description Read/Write TX power Example: Read TX power << AT+TXPOWER >>...
  • Page 26: At+Uartcfg - Read/Write Serial Port Configuration

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.26 AT+UARTCFG - Read/Write Serial Port Configuration Command AT+UARTCFG{=Param} Param mode (0~5) bit0: 0 - 1-bit stop bit 1 - 2-bit stop bit bit2~bit1: 00 - None 01 - Odd 10 - Even Response +UARTCFG=Param Param Mode (0~5)
  • Page 27: At+Linkcfg - Automatic Search Link Configuration

    FSC-BT986 Programming User Guide, Release 1.0.0 5.1.27 AT+LINKCFG - Automatic Search Link Configuration Command AT+LINKCFG{=Param} Param mode (0~2) 0:Turn off automatic search link 1:Turn on SPP automatic search link 2:Turn on BLE automatic search link Description If this command is configured, the module will automatically search for links based on the configuration 5.1.28 AT+RSSICFG - Read/Write RSSI Configuration Command...
  • Page 28: Bluetooth Serial Commands (Br/Edr Spp)

    FSC-BT986 Programming User Guide, Release 1.0.0 5.2 Bluetooth Serial Commands (BR/EDR SPP) 5.2.1 AT+SPPSTAT - Read SPP State Command AT+SPPSTAT Response +SPPATAT=Param Description Format description refer to:ref:REF107 5.2.2 AT+SPPCFG - Read/Write SPP Configuration Command AT+SPPCFG{=Param} Param mode(0,1) 0:Turn off spp dynamic registration 0:Turn on spp dynamic registration Response +SPPCFG=Param...
  • Page 29: At+Sppdisc - Release Spp Connection

    FSC-BT986 Programming User Guide, Release 1.0.0 5.2.4 AT+SPPDISC - Release SPP Connection Command AT+SPPDISC Description Release current SPP connection with remote device 5.2.5 AT+SPPSEND - Send Data Via SPP Command AT+SPPSEND=Param1,Param2 Param1 Payload length (1~236) Param2 Payload (1~236 Bytes UTF8) Description If throughput mode is on, this command is de-active Example: Send data“1234567890”to remote device via SPP...
  • Page 30: At+Advaddr - Turn On/Off Broadcast Address

    FSC-BT986 Programming User Guide, Release 1.0.0 5.3.2 AT+ADVADDR - Turn on/off broadcast address Command AT+ADVADDR{=ram} mode ( 0~1, default: 1) 0: turn off broadcast address 1: turn on broadcast Param address Response +ADVADDR=Param Description Turn on/off broadcast address 5.3.3 AT+IBEACON - Turn on/off ibeacon broadcast Command AT+IBEACON{=Param} mode (0~1,...
  • Page 31: At+Adble - Turn On/Off Androidble

    FSC-BT986 Programming User Guide, Release 1.0.0 << AT+ADVDATA=\x03\x01\x02 >> OK 5.3.5 AT+ADBLE - Turn on/off AndroidBLE Command AT+IBEACON{=Param} Param mode(0~1, default:1)0: turn off AndroidBLE 1: turn on AndroidBLE Response +IBEACON=Param Description After turning on, the SPP and BLE addresses will be two different ad- dresses | when turning off, the SPP and BLE addresses will be the same address 5.3.6 AT+UUIDCFG - Read/Write UUID...
  • Page 32: At+Lestat - Read Le Central State

    FSC-BT986 Programming User Guide, Release 1.0.0 << AT+GATTSEND=10,1234567890 >> OK 5.3.8 AT+LESTAT - Read LE Central State Command AT+LESTAT Response +LEATAT=Param Description Format description refer to: +LESTAT - LE Central State (as master module) 5.3.9 AT+LECCONN - Establish LE Central Connection Command AT+LECCONN{=Param1{,Param2{,Param3{,Param4}}}} Param1...
  • Page 33: At+Lesend - Send Data Via Le Central

    FSC-BT986 Programming User Guide, Release 1.0.0 Connect to the specified device, 0 is the address type << AT+LECCONN=DC0D3000039E0 >> OK Initiate a connection to the specified address and communicate using FFF0, FFF2, and FFF1 << AT+LECCONN=DC0D3000039E0,FFF0,FFF2,FFF1 >> OK 5.3.10 AT+LESEND - Send Data Via LE Central Command AT+LESEND=Param1,Param2 Param1...
  • Page 34: At+Hidconn - Establish Hid Connection

    FSC-BT986 Programming User Guide, Release 1.0.0 5.4.2 AT+HIDCONN - Establish HID Connection Command AT+HIDCONN{=Param} Param MAC address of target device(12 Bytes ASCII) 5.4.3 AT+HIDDISC - Release HID Connection Command AT+HIDDISC Description Release current HID connection with remote device 5.4.4 AT+HIDOSK - IOS Device Eject Keyboard Toggle Command AT+HIDOSK Description...
  • Page 35: At+Hiddly - Read/Write Hid Send Delay

    FSC-BT986 Programming User Guide, Release 1.0.0 5.4.6 AT+HIDDLY - Read/Write HID Send Delay Command AT+HIDDLY{=Param} Param HID report period in millisecond, default 10 ms 5.4.7 AT+HIDSEND - Send Data Via HID Command AT+HIDSEND=Param1,Param2 Param1 Report length Param2 Report payload Note For special key code: 0x0D ->...
  • Page 36 FSC-BT986 Programming User Guide, Release 1.0.0 04 : key code The module will automatically send pop-up keys 5.4. Bluetooth Serial Commands (HID)
  • Page 37: Bluetooth Serial Indications

    Chapter 6 Bluetooth Serial Indications 6.1 +SPPSTAT - SPP State Format +SPPSTAT=Param Param (0) Unsupported (1) Standby (2) Connecting (3) Connected 6.2 +SCAN - Scan Result Format1 +SCAN={ : start scanning Format2 +SCAN =Param1,Param2,Param3, Param4,Param5,Param6 Param1 Index Param2 Device address type(1 Bytes ASCII) MAC address (12 Bytes ASCII)...
  • Page 38: Gattstat - Le Peripheral State (As Slave Module

    FSC-BT986 Programming User Guide, Release 1.0.0 Example: Scan nearby devices << AT+SCAN=1 >> +SCAN={ >> +SCAN=0,1,70CFC9A98840,-43,24,LE-Bose QuietControl 30 >> +SCAN=1,1,DC0D30001ED4,-65,10,FSC-BT946 >> +SCAN=} 6.3 +GATTSTAT - LE Peripheral State (as slave module) Indication +GATTSTAT=Param Param (0) Unsupported (1) Standby (2) Connecting (3) Connected Description In instruction mode, when connection status of the module...
  • Page 39: Lestat - Le Central State (As Master Module)

    FSC-BT986 Programming User Guide, Release 1.0.0 6.4 +LESTAT - LE Central State (as master module) Indication +LESTAT=Param Param (0) Unsupported (1) Standby (2) Connecting (3) Connected Description In instruction mode, when connection status of the module changes,module will actively report it through +LESTAT Example: Connected >>...
  • Page 40: Data - Received Bluetooth Data Report

    FSC-BT986 Programming User Guide, Release 1.0.0 6.6 +DATA - Received Bluetooth data report Indication +DATA=Param1,Param2,Param3 Param1 Index Param2 Data length Param2 Data Description Throughput mode:Report data without +DATA prefix +DATA=12345 AT command mode:Report data without+DATA prefix +DATA=1,5,12345 Example: Received data=1234567890 >>...
  • Page 41: Application Scenario

    Chapter 7 Application Scenario 7.1 Read/Write Module Default Parameters When the module is not connected to Bluetooth, it will parse the serial port data according to AT command. The host can query and modify the default parameters of the module, as shown in the following figure: 1.
  • Page 42: The Process Of Sending Data

    FSC-BT986 Programming User Guide, Release 1.0.0 7.2 The process of sending data The module will continuously send broadcast data to the outside when powered on, and the re- mote Bluetooth (mobile phone) can obtain the broadcast packet through search and initiate a connection request to the module.
  • Page 43 FSC-BT986 Programming User Guide, Release 1.0.0 7.2. The process of sending data...
  • Page 44: The Module Used As A Master Module To Connect To Remote Devices

    FSC-BT986 Programming User Guide, Release 1.0.0 7.3 The module used as a master module to connect to re- mote devices The module can serve as the master module to connect to the slave module and the master mod- ule can send instructions to control the module for scanning, connecting, and disconnecting. The following figure shows the process of connecting to other devices: 7.3.
  • Page 45 FSC-BT986 Programming User Guide, Release 1.0.0 7.3. The module used as a master module to connect to remote devices...
  • Page 46: Faq

    Chapter 8 8.1 How can IOS phones obtain Bluetooth MAC ad- dresses? For security reasons, the IOS system converts the Bluetooth MAC address into UUID at the bottom layer and sends it to the upper layer application. So the app cannot obtain the MAC ad- dress of the device.
  • Page 47 FSC-BT986 Programming User Guide, Release 1.0.0 (continued from previous page) NSArray *keys; key; keys [dict allKeys]; for(int 0; i < [keys count]; i++) [keys objectAtIndex:i]; if([key isEqualToString:@ "kCBAdvDataManufacturerData"]) → NSData *tempValue [dict objectForKey:key]; const Byte *tempByte [tempValue bytes]; if([tempValue length] // tempByte MAC address return true }else...
  • Page 48: Appendix

    Chapter 9 Appendix 9.1 Download PDF version Download PDF...

This manual is also suitable for:

Fsc-bt986-le
Save PDF