Download Print this page

Feasycom FSC-BT618 Series Programming & User Manual

Bluetooth modules

Advertisement

Quick Links

FSC-BT618 Programming User
Guide
Release 6.2.0
1

Advertisement

loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Feasycom FSC-BT618 Series

  • Page 1 FSC-BT618 Programming User Guide Release 6.2.0...
  • Page 2: Table Of Contents

    Table of contents 1 Introduction Description ........Module Default Settings .
  • Page 3 AT+TXPOWER - Get/Set TX Power ..... . 15 AT+LPM - Get/Set low power config ..... . . 16 AT+ADVIN - Get/Set advertising interval .
  • Page 4: Introduction

    Chapter 1 Introduction [中文] 1.1 Description This design guide is suitable for engineers to develop FSC-BT618 series Bluetooth modules 1.2 Module Default Settings Name FSC-BT618 Service UUID FFF0 Write UUID FFF2 Notify UUID FFF1 UART Baudrate 115200/8/N/1...
  • Page 5: Hardware Description

    Chapter 2 Hardware Description 2.1 Pin Diagram...
  • Page 6: Pin Description

    FSC-BT618 Programming User Guide, Release 6.2.0 2.2 Pin Description Pin Name Type Pin Descriptions UART_TX UART TX UART_RX UART RX UART_RTS I/O UART RTS UART_CTS I/O UART CTS RESTORE Restore Factory Settings RESET External reset input: active Low Power Power supply for I/O ports, DC 3.3V SWCLK SWD CLK line(Default) SWDIO...
  • Page 7 FSC-BT618 Programming User Guide, Release 6.2.0 connected to the STATUS pin • After drawing the schematic diagram, please send it to Feasycom for review, so as to pre- vent the Bluetooth distance from not reaching the best effect • The module supports GOIP wake-up, If need low power consumption, please connect PIN31 and PIN34 •...
  • Page 8: Function Description

    Chapter 3 Function Description 3.1 GPIO state LED PIN is PIN 32 State Description 1Hz square disconnect state wave high level connected state Connection status PIN is PIN 33 State Description low level disconnect state high level connected state...
  • Page 9: Mode

    FSC-BT618 Programming User Guide, Release 6.2.0 3.2 Mode Throughput mode when disconnected, the data received by the serial port is analyzed according to the AT command; when connected, all the data received by the serial port is sent to the remote Bluetooth as it is.
  • Page 10: Performance Parameters

    FSC-BT618 Programming User Guide, Release 6.2.0 3.4 Performance parameters type Min. Type. Max. Description power on 230ms loading finished wake up 200ms wake up from sleep 3.5 Data transfer rate Baudrate packet size interval conn inter- rate method 230400 11ms 15ms Notify 23000 Byte/s...
  • Page 11 FSC-BT618 Programming User Guide, Release 6.2.0 Mode command hardware link- sleep Description serial mode AT+LPM=1 There is no need The serial port automatically The first frame of sleeps wake connect if no data communication up data will lost WAKE-MCU occurs Simple logic, save and WAKE-BT within 5 seconds...
  • Page 12: At Command Description

    Chapter 4 AT command description 4.1 Command description Throughout this specification: • Content between { } is optional • Content behind << represents a COMMAND from Host • Content behind >> represents a RESPONSE/EVENT to Host 4.2 Command The command is the control command sent by the host to the module actively. After receiving the | command, the module needs to reply <CR><LF>OK<CR><LF>...
  • Page 13: Event

    FSC-BT618 Programming User Guide, Release 6.2.0 • If Command has Parameter, Parameter follows behind ‘=’ • If Command has multiple Parameters, Parameter must be separated by ‘,’ • If Command has Response, Response starts with <CR><LF>, ends with <CR><LF> • Module will always report command’s execution result by using “OK” for success or •...
  • Page 14 FSC-BT618 Programming User Guide, Release 6.2.0 Example: Receive data from APP in command mode >> +DATA=0,10,1234567890 4.5. Event Format...
  • Page 15: Commands Table

    Chapter 5 Commands Table 5.1 AT - Serial communication test Command Response Description When powering on or changing the baud rate, test the UART communication between the host and the module Example: << AT >> OK 5.2 AT+VER - Get Firmware Version Command AT+VER Response...
  • Page 16: At+Addr - Get Mac Address

    FSC-BT618 Programming User Guide, Release 6.2.0 Example: << AT+VER >> +VER=1.0.0,FSC-BT618 >> OK 5.3 AT+ADDR - Get MAC Address Command AT+ADDR Response +ADDR=Param Param Module’s MAC address (12 Bytes ASCII) Description Get MAC Address Example: << AT+ADDR >> +ADDR=DC0D30010203 >> OK 5.3.
  • Page 17: At+Name - Get/Set Local Name

    FSC-BT618 Programming User Guide, Release 6.2.0 5.4 AT+NAME - Get/Set Local Name Command AT+NAME{=Param1{,Param2}} Param1 local name(1~29 Bytes ASCII) Param2 MAC address suffix(0/1,default:0) 0: Disable suffix 1: Enable suffix “XXXX”(lower 4 bytes of MAC address) after local name Response +NAME=Param Param local name Description...
  • Page 18: At+Baud - Get/Set Uart Baudrate

    FSC-BT618 Programming User Guide, Release 6.2.0 5.5 AT+BAUD - Get/Set Uart Baudrate Command AT+BAUD{=Param} Param baudrate (1200/2400/4800/9600/19200/38400/57600/115200/ 230400/460800/921600, default:115200) Response +BAUD=Param Param baudrate Description Module will change baudrate to target value immediately Example: Query baudrate << AT+BAUD >> +BAUD=115200 >> OK Change baudrate <<...
  • Page 19: At+Lpm - Get/Set Low Power Config

    FSC-BT618 Programming User Guide, Release 6.2.0 Get tx power << AT+TXPOWER >> +TXPOWER=5 >> OK Set tx power to 0dbm << AT+TXPOWER=0 >> OK 5.7 AT+LPM - Get/Set low power config Command AT+LPM{=Param} Param low power mode (0/1/2, default: 0) 0: disable 1: enable low power and wake up by UART 2: enable low power and wake up by IO...
  • Page 20: At+Advin - Get/Set Advertising Interval

    FSC-BT618 Programming User Guide, Release 6.2.0 5.8 AT+ADVIN - Get/Set advertising interval Command AT+ADVIN{=Param} Param advertising interval(20~10000 ms, default: 152ms) Response +ADVIN=Param Param advertising interval Description Get/Set advertising interval Example: Get advertising interval << AT+ADVIN >> +ADVIN=152 >> OK Set advertising interval to 100ms <<...
  • Page 21: At+Idcfg - Get/Set 8 Bytes Id

    FSC-BT618 Programming User Guide, Release 6.2.0 >> +LECHCNT=1 >> OK Set a maximum of 8 connections << AT+LECHCNT=8 >> OK 5.10 AT+IDCFG - Get/Set 8 bytes ID Command AT+IDCFG{=Param} Param 8 bytes ID Response +IDCFG=Param Param 8 bytes ID Description Get/Set 8 bytes ID.
  • Page 22: At+Ledisc - Disconnect Specified Connection

    FSC-BT618 Programming User Guide, Release 6.2.0 5.11 AT+LEDISC - Disconnect specified connection Command AT+LEDISC{=Param} Param index Response Description Disconnect the bluetooth connection of the specified index Example: Disconnect device with index 1 << AT+LEDISC=1 >> OK Disconnect all connections << AT+LEDISC >>...
  • Page 23: At+Lecconn - Initiate A Connection To The Specified Address

    FSC-BT618 Programming User Guide, Release 6.2.0 5.12 AT+LECCONN - Initiate a connection to the specified address Command AT+LECCONN{=Param1{,Param2{,Param3{,Param4}}}} Param1 12-byte device address + 1-byte address type Param2 Communication Service UUID Param3 Communication UUID with write/write without rsp permission Param4 Communication UUID with notification permission Response Description Initiate a connection to the specified device, the parameter consists of...
  • Page 24: At+Filter - Get/Set Scan Filter

    FSC-BT618 Programming User Guide, Release 6.2.0 5.13 AT+FILTER - Get/Set scan filter Command AT+FILTER{=Param1{,Param2}} Param1 scan filter(0~3) 0: delete all conditions 1: address filtering 2: advertising data filtering 3: RSSI filtering Param2 The filter type is 1, and the parameter2 is the address The filter type is 2, and the parameter2 is advertising data he filter type is 3, and the parameter2 is RSSI Response...
  • Page 25 FSC-BT618 Programming User Guide, Release 6.2.0 Example: address filtering << AT+FILTER=1,DC0D30010203 >> OK Filter advertising data \x is hexadecimal << AT+FILTER=2,\xFF,\x04,\x02,\xDC\x0D >> OK delete all filter conditions << AT+FILTER=0 >> OK 5.13. AT+FILTER - Get/Set scan filter...
  • Page 26: At+Scan - Scan For Nearby Devices

    FSC-BT618 Programming User Guide, Release 6.2.0 5.14 AT+SCAN - SCAN for nearby devices Command AT+SCAN{=Param} Param scanning method (0~2) 0: stop scanning 1: Scan nearby devices, filter duplicate addresses, up to 8 devices can be found 2: Scan BLE advertising packets and output original advertising packets, which can be filtered by AT+FILTER command Response...
  • Page 27: At+Tpmode - Get/Set Throughput Mode

    FSC-BT618 Programming User Guide, Release 6.2.0 Example: SCAN device << AT+SCAN=1 >> +SCAN={ >> +SCAN=0,1,70CFC9A98840,-43,24,LE-Bose QuietControl 30 >> +SCAN=1,1,DC0D30001ED4,-65,10,FSC-BT946 >> +SCAN=} Sniff the BLE advertising and return the raw data (the garbled part is the raw data, using hex format) <<...
  • Page 28: At+Adven - Get/Set Advertising Enable Config

    FSC-BT618 Programming User Guide, Release 6.2.0 Example: Throughput Mode << AT+TPMODE=1 >> OK Command Mode << AT+TPMODE=0 >> OK 5.16 AT+ADVEN - Get/Set advertising enable config Command AT+ADVEN{=Param} Param enable (0~1, default 1) 0: disable advertising 1: enable advertising Response +ADVEN=Param Param enable...
  • Page 29: At+Advdata - Get/Set Advertising Manufacturer Specific Data

    FSC-BT618 Programming User Guide, Release 6.2.0 5.17 AT+ADVDATA - Get/Set advertising manufacturer specific data Command AT+ADVDATA{=Param} Param manufacturer specific data, tag 0xff Response +ADVDATA=Param Param manufacturer specific data, tag 0xff Description Get/Set advertising manufacturer specific data Example: Get advertising manufacturer specific data, x is hexadecimal data <<...
  • Page 30: At+Chinfo - Get Connection List Infomation

    FSC-BT618 Programming User Guide, Release 6.2.0 << AT+LESEND=1,4,2022 >> OK 5.19 AT+CHINFO - Get connection list infomation Command AT+CHINFO Response +CHINFO=Param1,Param2,Param3,Param4 Param1 Connection index Param2 Connection state (1:not connected, 2: connecting, 3: connected) Param3 Connection role (0: peripheral, 1: central) Param4 peer mac address Description...
  • Page 31: At+Restore - Restore Factory Settings

    FSC-BT618 Programming User Guide, Release 6.2.0 Example: << AT+REBOOT >> OK 5.21 AT+RESTORE - Restore Factory Settings Command AT+RESTORE Response Description Module restore all factory settings then reboot Example: << AT+RESTORE >> OK 5.22 AT+UARTCFG - Get/Set Uart config Command AT+UARTCFG{=Param} Param uart config (0~5)
  • Page 32 FSC-BT618 Programming User Guide, Release 6.2.0 Example: 8 None 1 << AT+UARTCFG=0 >> OK 8 Odd 1 << AT+UARTCFG=2 >> OK 8 Even 1 << AT+UARTCFG=4 >> OK 8 None 2 << AT+UARTCFG=1 >> OK 8 Odd 2 << AT+UARTCFG=3 >>...
  • Page 33: At+Pin - Get/Set Pin Code

    FSC-BT618 Programming User Guide, Release 6.2.0 5.23 AT+PIN - Get/Set Pin Code Command AT+PIN{=Param} Param Pin Code (000000 ~ 999999, default 000000) Response +PIN=Param Param Pin Code Description Get/Set Pin Code Example: Get Pin Code << AT+PIN >> +PIN=000000 >> OK Set Pin Code 123456 <<...
  • Page 34 FSC-BT618 Programming User Guide, Release 6.2.0 << AT+PLIST >> +PLIST=1,00,4C0220734E68 >> +PLIST=2,00,2848E74AB69D >> +PLIST=3,FF,FFFFFFFFFFFF >> +PLIST=4,FF,FFFFFFFFFFFF >> +PLIST=5,FF,FFFFFFFFFFFF >> +PLIST=6,FF,FFFFFFFFFFFF >> +PLIST=7,FF,FFFFFFFFFFFF >> +PLIST=8,FF,FFFFFFFFFFFF >> +PLIST=9,FF,FFFFFFFFFFFF >> +PLIST=10,FF,FFFFFFFFFFFF >> OK Clear all paired record << AT+PLIST=0 >> OK Clear specific paired record with index <<...
  • Page 35: At+Smcfg - Set Pairing Mode

    FSC-BT618 Programming User Guide, Release 6.2.0 5.25 AT+SMCFG - Set pairing mode Command AT+SMCFG{=Param} Param mode(0~1,default 0) 0: Direct pairing mode 1: Pin matching mode Response +SMCFG=Param Param mode Description Direct pairing mode: No need to enter a pin code to pair Pin matching mode: Need to enter a pin code to pair Example:...
  • Page 36: Event Table

    Chapter 6 Event Table 6.1 +SCAN - AT+SCAN=1 Scan Result Indication +SCAN=Param1,Param2,Param3,Param4,Param5,Param6 Param1 Index Param2 MAC address type (1 byte) Param3 MAC address (12 Bytes ASCII) Param4 RSSI Param5 remote device name len Param6 remote device name Description After the module receives AT+SCAN=1, it will continue to scan, and report through +SCAN after finding the device Example: SCAN device...
  • Page 37: Scan - At+Scan=2 Scan Result

    FSC-BT618 Programming User Guide, Release 6.2.0 6.2 +SCAN - AT+SCAN=2 Scan Result Indication +SCAN=Param1,Param2,Param3,Param4,Param5,Param6 Param1 MAC address type (1 byte) Param2 MAC address (12 Bytes ASCII) Param3 RSSI Param4 advertising packet type Param5 advertising packet size Param6 advertising packet Description After the module receives AT+SCAN=2, it will continue to scan and report through +SCAN after finding the device Example:...
  • Page 38: Gattstat - Gatt State

    FSC-BT618 Programming User Guide, Release 6.2.0 6.3 +GATTSTAT - GATT State Indication +GATTSTAT=Param1,Param2 Param1 Connection Index Param2 GATT State (1~3) 1: Standby 2: Connecting 3: Connected Description In the command mode, if the connection status of the module changes, it will be actively reported through +GATTSTAT Example: Connected >>...
  • Page 39 FSC-BT618 Programming User Guide, Release 6.2.0 Example: received data 1234567890 >> +DATA=1,10,1234567890 6.4. +DATA - GATT Received Incoming Data...
  • Page 40: Application Scenarios

    Chapter 7 Application scenarios 7.1 Get/Set the default parameters of the module When the module is disconnect state, it will parse the uart data according to the AT command. host can get and set the default parameters of the module, as shown in the figure below: 1.Set the device name to ABC 2.Get device name 3.Get MAC address...
  • Page 41: Process Of Sending Data

    FSC-BT618 Programming User Guide, Release 6.2.0 7.2 Process of sending data When the module is powered on, it will continue to send advertising data, and the remote device (mobile phone) can scan the advertising packet. And initiate a connection request to the module.
  • Page 42 FSC-BT618 Programming User Guide, Release 6.2.0 7.2. Process of sending data...
  • Page 43: The Module Acts As The Central To Connect To The Remote Device

    FSC-BT618 Programming User Guide, Release 6.2.0 7.3 The module acts as the central to connect to the remote device The module can be used as a master device to connect to the slave device, and the host can send commands to control the module to scan and connect and disconnect. The figure below shows process of connecting other devices: 7.3.
  • Page 44 FSC-BT618 Programming User Guide, Release 6.2.0 7.3. The module acts as the central to connect to the remote device...
  • Page 45: Faq

    Chapter 8 8.1 How does an IOS mobile phone scan the Bluetooth MAC address? For security reasons, the IOS system converts the Bluetooth MAC address into a UUID at the bottom layer and sends it to the upper layer application. Therefore, the APP cannot get the MAC address of the device.
  • Page 46 FSC-BT618 Programming User Guide, Release 6.2.0 (continued from previous page) (Boolean)describeDictonary: (NSDictionary dict 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] // The parameter after tempByte is the␣...
  • Page 47: Appendix

    Chapter 9 Appendix 9.1 Download PDF Document Download PDF Document...