background image

Chengdu Ebyte Electronic Technology Co.,Ltd.

E104-BT40 User Manual

Copyright ©2012–2019

Chengdu Ebyte Electronic Technology Co.,Ltd.

4-16

6.3 AT Command error code description

Error code return form—ERROR (error code index number)

NUM

Description

Cause

Solution

-0

Command does not

exist

AT Command character error

Check character string

-1

Parameter length

error

1

Parameter total length is too long

2

parameter length is not enough

According to the AT Command manual,
check the parameter length according to
the "Description"

-2

Invalid parameter

Parameter does not meet the value range

View parameter value range by referring

to instruction

-3

Command exists but
does not support the
operation

Only command was entered, error example:
AT + BAUD
Correct example: AT + BAUD?

Compare command and determine
operation

-4

Unconnected

Module is not connected

-

-5

Turn off any baud
rate setting is not
allowed

Turn off the baud rate arbitrarily before
setting the baud rate to a value other than the
normal baud rate
Baud rate is a value other than the normal
baud rate before turning off any setting of
baud rate

Set the baud rate to normal before
turning off any setting of the baud rate

-6

Exceed buffer
length

Input AT command and parameter total

length is too long

Check AT Command and that the total
length of parameter does not exceed 250
bytes

-7

Command invalid

now

-

-

-8

Module is
connected

This command does not support operation in
the connected state

-

-9

No air configuration
authentication

Command can be sent after using AT+AUTH
Command to authentication

-10

Air configuration
authentication failed

Wrong password

1. Use the correct password
2.Reconfigurate via serial port

-11

Unknown error

-

Summary of Contents for E104-BT40

Page 1: ...E104 BT40 User Manuel Dual mode Bluetooth Module V4 2 Protocol...

Page 2: ...NT PRINTING 13 5 4 CLASSIC BLUETOOTH PAIRING 13 5 5 UUID DESCRIPTION 14 5 6 PACKAGE MECHANISM 14 6 AT COMMAND 15 6 1 DEFAULT PARAMETERS 15 6 2 COMMAND DESCRIPTION 15 6 3 AT COMMAND ERROR CODE DESCRIPT...

Page 3: ...SSKEY Enter pairing key 25 6 4 27 AT CONFIRM Classic Bluetooth password verification 25 6 4 28 AT AUTH Air configuration password verification 25 6 4 29 AT UPDAUTH Reset authentication password 26 6 4...

Page 4: ...itional low end serial devices or MCU controlled devices can perform wireless data transmission It is a low cost simple and reliable data transmission module 1 2 Features Bluetooth Specification V4 2...

Page 5: ...n Typ Max Operating voltage V 2 5 3 3 3 6 3 3 V ensures output power Communication level V 3 3 For 5V TTL it may be at risk of burning down Operating temperature 40 85 Frequency MHz 2400 2480 Power co...

Page 6: ...nition Direction Function Description 1 GND Power supply Power supply reference 2 TXD Output Serial data transmission Module outputs serial data to external 3 RXD Input Serial data reception Module re...

Page 7: ...are wave Bluetooth is connected Low level 25 MODE Input Mode selection High level configuration mode Low level transparent transmission mode 26 DISC Input Disconnection Internal pull up valid on falli...

Page 8: ...ommand mode can be entered by pulling the MODE pin low and return to transparent transmission mode by pulling the MODE pin high Set related configuration of the serial tool default configuration 11520...

Page 9: ...logy Co Ltd 4 8 4 2 Configuration over air Configuration over air can be used only when BLE role is connected Open the APP nRF connect start scanning the device find the device CDEBYTE_BLE and connect...

Page 10: ...onnect and open channel write Send authentication command AT AUTH 123456 the module returns 0x2B 4F 4B 0D 0A to indicate that the authentication is successful Diagram 4 4 RF connect Aerial configurati...

Page 11: ...s case please limit the set value to a reasonable length 4 3 Data transmission Module powered on classic Bluetooth and BLE are both discoverable Please refer to section 5 2 for data transmission preca...

Page 12: ...LINK pin is low 4 Mobile phone app or open serial port to start data transparent transmission 4 3 2 BLE Data transparent transmission 1 Power on the module and enable serial port printing AT LOGMSG 1...

Page 13: ...Co Ltd E104 BT40 User Manual Copyright 2012 2019 Chengdu Ebyte Electronic Technology Co Ltd 4 12 Diagram 4 7 nRF connect Open notifications and receive data 4 nRF connect sends asdfghjkl Diagram 4 8...

Page 14: ...module is always in configuration mode The MODE pin is invalid at this time After connected successfully determine whether the module is currently in configuration mode or data transmission mode base...

Page 15: ...ASCII code and sends it to the module The module prints CONFIRM 6 digit ASCII code through the serial port After confirming they are the same enter AT COMFIRM YES to establish the connection or AT COM...

Page 16: ...ff Any baud rate setting of serial port Off SPP name CDEBYTE_SPP BLE name CDEBYTE_BLE Pairing code 1234 Pairing mode 1 no input output Two way output IO Low level Two way PWM Off Enable MAC binding Of...

Page 17: ...rect example AT BAUD Compare command and determine operation 4 Unconnected Module is not connected 5 Turn off any baud rate setting is not allowed Turn off the baud rate arbitrarily before setting the...

Page 18: ...Restart to take effect After setting successfully restart immediately 2 In the process of restoring the factory settings any kind of reset is prohibited and the power off is prohibited before the oper...

Page 19: ...9600 2 14400 3 19200 4 28800 5 38400 6 57600 7 76800 8 115200 Default Turn on any baud rate setting default is off para ASCII Any integer value between 4800 and 115200 including 4800 and 115200 Descri...

Page 20: ...t V1 0 6 4 8 AT SPPNAME SPP Name Command Response Query AT SPPNAME OK para Setting AT SPPNAME para ERR NUM Error Parameter para ASCII code SPP name Factory default CDEBYTE_SPP Description 1 It takes e...

Page 21: ...30 EE 51 35 DA 6 4 11 AT PAIRMODE Classic Bluetooth pairing mode Command Response Query AT PAIRMODE OK para Setting AT PAIRMODE para OK Success ERR NUM Error Parameter para ASCII Description 0 Pin cod...

Page 22: ...ower off 2 After the next power on the IO remains at this level Example Command AT P02 1 Response OK 6 4 14 AT P03 P03 Output Command Response Setting AT P03 para OK Success ERR NUM Error Parameter pa...

Page 23: ...OK Success ERR NUM Error Parameter para 0 100 ASCII 0 turn off PWM Default Description Takes effect immediately save when power off The parameter output PWM will maintain at the next power on Example...

Page 24: ...20 AT LOGMSG Running status output Command Response Query AT LOGMSG OK para Setting AT LOGMSG para OK Success ERR NUM Error Parameter para ASCII Description 0 Off Default 1 On Description Takes effec...

Page 25: ...ng enable Command Response Query AT BOND OK para Setting AT BOND para OK Success ERR NUM Error Parameter para ASCII Description 0 Binding off Default 1 Binding on Description Takes effect immediately...

Page 26: ...Example Command AT PASSKEY 123456 Response OK 6 4 27 AT CONFIRM Classic Bluetooth password verification Command Response Setting AT CONFIRM para OK Success ERR NUM Error Parameter Para ASCII code YES...

Page 27: ...haracteristic UUID para3 MASTER CHANNEL Characteristic UUID para3 Air configuration channel Characteristic UUID 6 4 31 AT UUIDSVR Bluetooth service UUID Command Response Setting AT UUIDSVR para OK Suc...

Page 28: ...long term stable operation of the whole module The module should be as far away as possible from the power supply transformers high frequency wiring and other parts with large electromagnetic interfer...

Page 29: ...ectly air data rate is set as too high the higher the air data rate the shorter the distance When the power supply at room temperature is lower than the recommended low voltage the lower the voltage i...

Page 30: ...temperature max Tsmax Maximum preheating temperature 150 200 Preheat Time Tsmin to Tsmax ts Preheating time 60 120 sec 60 120 sec Average ramp up rate Tsmax to Tp Average rising rate 3 second max 3 s...

Page 31: ...ch packaging Revision history Version Date Description Issued by 1 0 2019 11 28 Initial version Li Kai 1 1 2019 11 29 Format adjustment Ren About us Sales hotline 4000 330 990 Tel 028 61399028 Support...

Reviews: