Feasycom FSC-BT691 User manual

1
BT5.1 Programming User Guide
Version 4.0

2
Copyright 2013-2021 FeasycomTechnology Co., Ltd. All RightsReserved.
Revision History
Version
Data Notes Author
1.0 2016/05/12 FirstRelease Eric
2.0 2016/10/13 Add Commands Eric
3.0 2017/03/10 Add GPIOIndications Navy
4.0 2021/02/20 Add hardware/function/performancedescription;
update instruction set Jeffrey
ContactUs:
Shenzhen Feasycom TechnologyCo.,Ltd
Web: www.feasycom.com
Email:support@feasycom.com
Tel: +86-755-27924639,+86-755-23062695
Address:Rm 508,BuildingA,FenghuangZhigu,Tiezai Road, Xixiang,Baoan District,
Shenzhen, Guangdong,China

3
Contents
1. Introduction.............................................................................................................. 误!未定义书签。
1.2 Module Default Settings.................................................................................................................4
2. HardwarePart.......................................................................................................... 误!未定义书签。
2.2 PIN diagram.................................................................................................. 误!未定义书签。
2.3 PIN definition description....................................................................... 误!未定义书签。
2.4 Hardwaredesign rules............................................................................. 误!未定义书签。
3. Function Part............................................................................................................ 误!未定义书签。
3.2 GPIOinstructions.............................................................................................................................7
3.2.1 LED Pin....................................................................................................................................7
3.2.2 StatusPin.......................................................................................... 误!未定义书签。
3.3 Introduction toLow Power Mode........................................................ 误!未定义书签。
3.3.1 Low Power Mode Setting........................................................... 误!未定义书签。
3.3.2 Low power operation strategy................................................ 误!未定义书签。
4. BluetoothProtocolPart........................................................................................ 误!未定义书签。
4.2 Supported BluetoothProfile.................................................................. 误!未定义书签。
4.3 ThroughputGATTServer..............................................................................................................9
5. ATCommandPart................................................................................................... 误!未定义书签。
5.2 Specification.................................................................................................. 误!未定义书签。
5.2.1 Commandformat........................................................................... 误!未定义书签。
5.2.2 Notification format....................................................................... 误!未定义书签。
5.3 General Commands.................................................................................... 误!未定义书签。
5.3.1 UARTcommunication test............................................................................................11
5.3.2 Read FirmwareVersion.............................................................. 误!未定义书签。
5.3.3 Read MacAddress......................................................................... 误!未定义书签。
5.3.4 Read/WriteLocal Name............................................................. 误!未定义书签。
5.3.5 Read/WriteUart Baudrate........................................................ 误!未定义书签。
5.3.6 Read/WriteTXPower................................................................. 误!未定义书签。
5.3.7 Turn On/OffLow Power Mode................................................ 误!未定义书签。
5.3.8 Read/WriteADInterval.............................................................. 误!未定义书签。
5.3.9 Soft Reboot....................................................................................... 误!未定义书签。
5.3.10 RestoreFactorySettings.......................................................... 误!未定义书签。
5.4 General Notice.............................................................................................. 误!未定义书签。
5.4.1 Scan result........................................................................................ 误!未定义书签。
5.4.2 GATT received data..........................................................................................................15
6. Specification PerformancePart......................................................................... 误!未定义书签。
6.2 Module power consumption.................................................................. 误!未定义书签。
6.3 Timeparameter........................................................................................... 误!未定义书签。
6.4 Data transfer rate........................................................................................ 误!未定义书签。

4
1. Introduction
This specificationpresentsdesignguidelinesfor softwareengineersthat useFSC-BT691
module for Bluetoothrequirements.
1.2 ModuleDefault Settings
Local Name Feasycom
Service-UUID FFF0
Write-UUID FFF2
Notify-UUID FFF1
Physical Uart Baudrate 115200bps/8/N/1

5
2. HardwarePart
2.2 PIN diagram
2.3 PIN definition description
PIN Name
Pin Type PIN Description
NC Not recommended to connect
UART_TX
1 I/O UARTTX
UART_RX
2 I/O UARTRX
TRAN 5 I When the Bluetooth connection isestablished andthepin
function isenabled, the high levelisthe command mode,
and the low levelisthe transparent transmission mode
VDD 7 Power
GND 8,19 Power
SWDIO 9 I/O
SWDCLK
10 I/O
DISC 15 I When the Bluetooth connection isestablished andthepin
function isenabled, the falling edge triggers
the disconnection of the Bluetooth connection.
LED 17 O Modulework status
STATUS
18 O Bluetooth connectionstatusindicator
RF 20 RF Use when using an externalantenna

6
2.4 Hardwaredesignrules
lThemodule will workwhenonlyconnectwithVDD,GND,UARTRxandUARTof the
module.
lUsercanget theBluetoothconnectionstatusby connectingtotheSTATUS pin
(PIN18) ofthemodule.
lUsercanget theworkingstatusby connectingtotheLED pin (PIN17) of themodule.
lUsercanconnecttheTRANpin(PIN5) sothatthemodule canrespondtoAT
commandsin thetransparenttransmission mode.
lUsercanconnecttotheDISCpin(PIN15) toactivelydisconnectwhenBluetoothis
connected, or usecommandstodisconnect.
lUsercan connecttheRESETpin (PIN6) toreset themodule by hardware.

7
3. FunctionPart
3.2 GPIO instructions
3.2.1 LEDPin
PIN17 (Output)
Low Level Initializing
Blink in 1HzReady toconnecting
HighLevel Connected
3.2.2 StatusPin
PIN18 (Output)
Low Level Disconnected
HighLevel Connected
3.3 Introduction toLow Power Mode
3.3.1 LowPowerModeSetting
Turn on or turn off thelow power consumption function throughthecommand
"AT+LPM{=Param}".
3.3.2 Lowpoweroperationstrategy
Therearetwowaystowakeupafter enteringlow power consumptionmode:
1. Sendthefirstpacket of data byUARTtowakeupthemode.TheUARTwill workafter
beingawakened. Modulewill closetheUARTandenter intolowpowermode ifno
UARTor APP data received within 10s
2. Wakeupbysendingdata viaapp. Inlowpower mode, receivingapp data willwakeup
UARTandoutputdata. Module will closetheUARTandenter intolowpower mode if
noUARTor APP data received within 10s

8

9
4. BluetoothProtocol Part
4.2 Supported Bluetooth Profile
lGATT Server (Generic AttributeProfile)
lGATT Client(GenericAttributeProfile)
4.3 Throughput GATT Server
Type UUID Authority Description
Service 0xFFF0
Throughput service
WriteCharacteristic0xFFF2
WriteRequest,Write
Command Characteristicvalue sent tothe
serialport
NotifyCharacteristic
0xFFF1
Notify Characteristicvalue reported by
the serialport

10
5. ATCommand Part
5.2 Specification
Appliestotheentiredocument:
l{} Thecontentincluded in{...}is optional
l<< Thecontentafter << representstheCOMMANDsentby thehosttothemodule
l>> Thecontentafter >> meanstheRESPONSEof themodule tothehost
5.2.1 Commandformat
AT+ Command {=Param1{, Param2{, Param3...}}} <CR><LF>
lAll commandsstart with"AT"andendwith<CR><LF>
l<CR> standsfor carriagereturn character,correspondingtoascii hexis0x0D
l<LF>standsfor newlinecharacter,correspondingtoasciihexis0x0A
lIfthecommandcontainsparameters,theparametersshouldbelocated after "="
lIftheinstructioncontainsmultipleparameters,theparametersshould beseparated
by ","
lIfthecommandreturnswitharesponse,theresponsestartswith<CR><LF>and
endswith<CR><LF>
lThemoduleshould alwaysreturntheresultof theinstructionexecution(return
"OK" on success,and"ERROR"on failure)
e.g. 1. Read Local Name
<< AT+NAME
>> +NAME=Feasycom
>> OK
2. Writeunsupported Uart Baudrate
<< AT+BAUD=0
>> ERROR
5.2.2 Notificationformat
<CR><LF>+ Indication {=Param1{, Param2{, Param3...}}} <CR><LF>
lAll notificationsstart with<CR><LF>andendwith<CR><LF>
lIfthenotification containsparameters,theparametersshould beplaced after"="

11
lIfthenotification containsmultipleparameters,theparametersshould be
separated by ","
e.g. 1. WhentheGATTServer profile receives"1234567890" sentbythemobile
phone
>> +GATTDATA=10,1234567890
5.3 GeneralCommands
5.3.1 UARTcommunicationtest
Format: AT
Response: OK
Description:
TesttheUARTcommunicationbetweenHOSTandModule afterpower onor
changebaudrate.
Example:UARTcommunication test
<<
AT
>> OK
5.3.2 ReadFirmwareVersion
Format: AT+VER
Response: +VER=Param
Param: Firmwareversion(15 BytesASCII)
Example: Read module’sfirmwareversion
<<
AT+
VER
>> +VER=1.0.1,FSC-BT691
>> OK

12
5.3.3 ReadMACAddress
Format: AT+ADDR
Response: +ADDR=Param
Param: Module’sMACaddress(12 BytesASCII)
5.3.4 Read/WriteLocal Name
Format: AT+NAME {=Param1{,Param2}}
Param1: LElocal name(1~29 BytesASCII,default:Feasycom)
Param2: MACaddresssuffix (0/1, default: 0)
(0) Disable suffix
(1)Enable suffix“-XXXX”(lower 4bytesof MACaddress)
Response: +NAME=Param
Description:Writelocalnameifthereareparameter,otherwisejust
readcurrentlocal
name
Example: Read currentlocal name
<< AT+NAME
>> +NAME=Feasycom
>> OK
Example: Changemodule’slocalnameto “ABC”
<< AT+NAME=ABC
>> OK
Example: Changemodule’slocalnameto “ABC”andenable suffix
<< AT+NAME=ABC,1
>> OK
5.3.5 Read/WriteUARTBaudrate
Format: AT+BAUD{=Param}
Param: Baudrate(1200/2400/4800/9600/19200/38400/57600/115200/
230400,default:115200)

13
Response: +BAUD=Param
Description: Module’sbaudratewill bechanged immediately after received thiscommand
5.3.6 Read/WriteTXPower
Format: AT+TXPOWER{=Param}
Param: TXpower (0~11, default:8)
Response: +TXPOWER=Param
Description:Ifthereisaparameter behindthecommand, theTXpower
is written,ifnot,
read theTXpower.
AT+TXPOWER=0 Correspondto: -19.5dbm
AT+TXPOWER=1 Correspondto: -13.5dbm
AT+TXPOWER=2 Correspondto: -10.5dbm
AT+TXPOWER=3 Correspondto: -7.0dbm
AT+TXPOWER=4 Correspondto: -5.0dbm
AT+TXPOWER=5 Correspondto: -3.5dbm
AT+TXPOWER=6 Correspondto: -2.0dbm
AT+TXPOWER=7 Correspondto: -1.0dbm
AT+TXPOWER=8 Correspondto: 0dbm
AT+TXPOWER=9 Correspondto: 1.0dbm
AT+TXPOWER=A Correspondto: 1.5dbm
AT+TXPOWER=B Correspondto: 2.5dbm
Example: Read currentlyTX power
<<
AT+TXPOWER
>> +TXPOWER=8
>> OK
Example: Settingcurrently TX power
<<
AT+TXPOWER=11
>> OK
5.3.7 Turn On/Off LowPowerMode
Format: AT+LPM{=Param}
Param: Low Power Mode (0/1, default: 0)

14
(0)Turn off low power mode
(1)Turn on low power mode
Response: +LPM=Param
5.3.8 Read/WriteADInterval
Format: AT+ADVIN{=Param}
Param: BroadcastInterval(100~10000 ms,default:687ms)
Response: +ADVIN=Param
5.3.9 SoftReboot
Format: AT+REBOOT
Description: Module releaseall Bluetoothconnectionswithremotedevicethen reboot
5.3.10RestoreFactorySettings
Format: AT+RESTORE
Description: Module restoreall factorysettingsthen reboot
5.4 GeneralNotice
5.4.1 Scanresult
Format: +SCAN=Param1, Param2, Param3,Param4{,Param5,Param6}
Param1: Serial number (1~8)
Param2: Deviceaddress type (0~2)
(0)LEpublic address
(1)LErandomaddress
Param3: MACaddress(12BytesASCII)

15
Param4: RSSI(-255 ~0)
Param5: When Param6exists,thelengthof Param6
Param6: DeviceBluetoothname
Description: When thedeviceis outof range, Param5/Param6may not exist
Example: Scan for nearby Bluetoothdevices
<<
AT+
SCAN=1
>> OK
+SCAN=1,0, DC0D30000003, -32,8, Feasycom
+SCAN=2,1, DC0D30000044, -64,8, Feasycom_0044
+SCAN=3,0, DC0D30000097, -47,8, FSC_BT906
5.4.2 GATT receiveddata
Format: +GATTDATA=Param1, Param2
Param1: lengthof datapack
Param2: data pack
Example: When theGATT Server profile receives"1234567890" sentby theremotedevice
<< +GATTDATA=10,1234567890

16
6. SpecificationPerformancePart
6.2 Modulepowerconsumption
Operating mode Operating parameters Average current
Broadcastmode
(0 dBm Uartoff)
100msAD Interval 76.62uA
200msAD Interval 42.35 uA
400msAD Interval 20.98 uA
1000msADInterval 9.96 uA
LEConnection
Status
20msConnection interval
Uart off 149 uA
20msConnection interval
Uart on 287 uA
300msConnection interval
Uart off 10 uA
300msConnection interval
Uart on 242 uA
6.3 Timeparameter
Type Min. Type. Max. Description
Power-on time 230ms
Enable UARTresponse time
Wakeup time 200ms
The UARTsendsthe wake-up data,
and thenstartsto calculate
6.4 Datatransferrate
Baudrate
Pack size Pack
interval Bluetooth
connection
interval
Reporting
method Maximum
transferrate
115200 182 16ms 15ms Notify 11375 Byte/s
Table of contents
Other Feasycom Headset manuals