Update:
1、V1.3 has been updated. The slave BUH in AT+ROLE0 mode can not
be searched when sending AT+INQ in AT+ROLE1 mode.
2、Updated. In mesh mode, APP is connected to the current slave and
cannot send unicast data bug to the current slave.
3、Added the function of sending AT+DISC and AT+STAT instructions
without PWRC pull down in the connection state. Only these two
instructions are valid in the connection state.
4、Updated. When the APP connects to the current module, it sends
MESH broadcast data. The BUG of current device has a different data
format from other devices.
According to the requirements of the switch panel manufacturer, the
following functions are specially added (the previous functions are
completely unchanged)
1、It added the function that users can learn the press and output IO
freely when the switch panel is applied. If without APP configuration, the
users can learn freely through key. The advantages of switch learning are
that one key can be learned by multiple output IO relays, or one output IO
relay can be learned by multiple keys. The key and output IO support
one-to-many, many-to-many, many-to-one learning.
2、In the network state, the newly added instruction AT+SUBTYPE is
used to distinguish whether the output IO of the current module OUTPUT
is controlled by itself and the target, or only by the target device
3、Newly added instruction AT+LEARN for switch learning function.
The newly added instruction AT+LEAVAL is used to query the learning
parameters of the current output IO, or set the learning parameters of the
output IO directly through this instruction.
V1.62020-02-29
The following BUG is modified:
The BUG is that unicast data cannot be sent to the xxFF address device in
the network state.
The following functions are added (the previous functions are completely
unchanged)
1、AT+ROLE7 master-slave working mode was added. The master
supports connection of four slaves at the same time, or mixed working of
the master and the slave at the same time (the master connects the slave
while the slave is connected by the mobile phone, work at the same time).
2、AT+DEVCLSS, AT+KLABEL, AT+KLTIME, AT+KLRSSI and other
new function instructions have been added.
Page 3
JDY-24M Super BLE Bluetooth Module
3、AT+ROLE8 key label detection mode is added.
4、Added key label detection function (when a key label is close to
JDY-24M, JDY-24M outputs IO output action level).
5、Add the function that in the switch panel learn mode , long press
PWRC pin to clear the learning code.
6、The function of the switch panel is optimized, which is more user
friendly.
After JDY-24M is upgraded to V1.6, there will be no major upgrade, and V1.6 will be the final
version.
The terminal PWM node, LED light node, relay node, touch switch node, sensor and other node
products will be launched later with JDY-24M as the center. These nodes are low-cost nodes.
Ⅰ. Product introduction
JDY-24M super Bluetooth function supports master-slave transparent transmission, iBeacon,
BLE probe, iBeacon detection, and MESH network. The maximum number of MESH network
supports 65280 device network. Multi-hop wireless anti-collision technology is adopted. The
network communication speed supports 50ms to send 16 byte data. The single module supports
routing node and terminal node. The routing node supports data relay (low power consumption is
not supported). The terminal node supports low power consumption (automatic sleep after key
wake-up and data sending), JDY-24M network generally only needs to be configured with
network NETID and short address, and the module will automatically network. When the network
module communicates with APP, it is equivalent to transparent transmission, which greatly
convenient for users to develop APP compatible with old products APP.
Ⅱ. Product characteristics
1:Support data transparent transmission with mobile phone (IOS, Android) APP (working current
about 1mA)
2:Support module and module master slave high speed transparent transmission
3:Support iBeacon function (ultra-low power consumption)
4:Support iBeacon probe function
5:Support BLE Bluetooth probe function
6: Multi-connected slave mode is supported. Multi-connected slave can connect with multiple
mobile phones and transparent transmission at the same time.
7:Support Bluetooth MESH network (Network serial port data communication, output IO control,
input key control)
8:MESH network data sending supports response and no response communication
9:Network remote control
10: Multi-connected master-slave mixed connection (the master is connected to the slave at the
same time, and the slave is connected to the mobile phone at the same time, and work at the same
time)
Page 4
JDY-24M Super BLE Bluetooth Module
. Product application scope
Ⅲ
1:Bluetooth network LED (one-to-many, many-to-one, mobile phone or remote controller control,
many-to-many control)
2:Bluetooth network serial port communication application (one-to-many, many-to-one, mobile
phone or remote controller control, many-to-many control)
3:Network panel switch, 86 switch (ultra-low power consumption)
4:Network smart home application (switch, relay,curtain) control
5:Network sensor application
6:WIFI network gateway application
7:Zigbee network application
8:Mobile network control application
9:Key label
. Technical specifications:
Ⅳ
TypeSpecification parameter
Working voltage1.9 – 3.6V
Working temperature-40 - 85°C
Maximum transmitting power+4dbm
Communication distance80m
Bluetooth versionBLE5.0
AntennaPCB board antenna
Antenna gain-3dbi
Receiving sensitivity-96dbm
SMT welding temperature
Communication interfaceUART
Module size27mm * 12.88 *1.6
Communication speed between slave and
APP
MESH communication speed50ms send 16byte
Average
current
Wake up (transparent
transmission) current in non
MESH mode
Light sleep of slave with
broadcast in non MESH mode
Wake up communication current
in MESH mode
Sleep current in MESH mode3uA
Within 200uA (related to broadcasting
<260℃
8k(byte/s)
About 1mA
interval)
About 4mA
Deep Sleep Mode3uA
Page 5
JDY-24M Super BLE Bluetooth Module
. Factory default configuration:
Ⅴ
No.FunctionParameterATinstructions
1Baud rate9600AT+BAUD4
2Module short addressLast2bytesof
MAC address
3Network ID1189AT+NETID1189
4K1 target short addressFFFFAT+KEY1,FFFF,1,1
5K2 target short addressFFFFAT+KEY2,FFFF,2,1
6K3 target short addressFFFFAT+KEY3,FFFF,3,1
7K4 target short addressFFFFAT+KEY4,FFFF,4,1
8K5 target short addressFFFFAT+KEY5,FFFF,5,1
9APP connection password
Special instruction: V1.5 default that factory setting of K1 to K5 is not 0, so the customer is misled that all key
values are the same.
Example: If it needs K1 to control the OUTPUT1 level of all devices in the network, use the default parameters.
If it needs K1 to control only the OUTPUT1 level of 0008 target address, it is required to set K1 target
short address to 0008, complete instruction (AT+KEY1,0008,1,1)
OFFAT+TYPE0
0AT+SUBTYPE0
Of course, K1 may not only control IO of the target device OUTPUT1
Example: K1 control target 0008 device OUTPUT2 level, complete instruction (AT+KEY1,0008,2,1)
If you need to synchronize the OUTPUT of the current device with the target device level of the KEY button, you
need to open this command: AT+SUBTYPE1
When the SUBTYPE is set to 1, the OUTPUT pin of the current device will be synchronized with the remote
device level controlled by the KEY button,
For example, when KEY1 is pressed, its own OUTPUT1 will also output the level, and the remote device
OUTPUT pin will also output the level. KEY2, KEY3, KEY4 and KEY5 will also be synchronized with its own
OUTPUT2, OUTPUT3, OUTPUT4 and OUTPUT5.
The default value of SUBTYPE is 0. The function is that the OUTPUT pin level is not associated with the output
level of the target device of the current KEY. Both OUTPUT and KEY are independent functions. KEY can control
the target device and OUTPUT can also be controlled by the remote device. Both are completely independent.
Page 6
JDY-24M Super BLE Bluetooth Module
TwoJDY-24M devices, one as a Learner and the other as a Code sender
The following is the function description of KEY and OUTPUT pin learning. In the learn mode, the parameters
configured by AT+KEY instruction are invalid. Only by learning or AT+LEAVAL can the parameters configured
by KEY button be valid.
1. Learn mode requires sending AT+LEARN1 instruction to open
2. It needs to associate OUTPUT with KEY, and send AT+SUBTYPE1 to open
After the above configuration, the KEY button and the OUTPUT pin of the remote device can be freely configured
through learning.
Method 1: AT instruction configuration
Example 1: Remote 0008 device KEY1 controls the OUTPUT1 and OUTPUT2 levels of the current device at
the same time
Current device sends instruction: AT+LEAVAL1,1,0008
AT+LEAVAL2,1,0008
Example 2: Remote 0008 device KEY2 controls the current device's OUTPUT5 level
Current device sends instruction: AT+LEAVAL5,2,0008
Method 2: Key Learning
1.Enter Learner mode: Double-click the PWRC pin, and the STAT light will flash slowly, and the LED light of the
ALED pin will be off to indicate that it has entered the Learner. In the learning state, if the OUTPUT pin does not
learn the key value, it will flash once a second. When the code sent by the Code sender is received, it will be
always on, indicating that the key value has been learned. When the KEY1-KEY5 pin of Learner is not pressed in
the learning state, it means that the learned key value of Learner OUTPUT1 to OUTPUT5 corresponds to the
KEY1 to KEY5 of Code sender, that is to say, Learner OUTPUT1 can only be controlled by the KEY1 of Code
sender, and of course, it also supports free learning.
Free learning method:
Example 1: The binding method of OUTPUT1 of Learner to KEY5 of Code sender:
Double-click the PWRC pin of Learner to enter the learn mode, and then press the KEY1 pin of
Learner to enter the learning state of Learner OUTPUT1, so that Learner OUTPUT1 can freely learn the key
values of Code sender KEY1 to KEY5. Press Code sender KEY5, and Learner OUTPUT1 will learn the KEY5
value of Code sender, so that Code sender KEy5 will be able to control the OUTPUT1 pin level of Learner.
2. Enter Code sender mode: Click PWRC pin, and the LED light of STAT pin off, and the LED light of ALED pin
flashes slowly, indicating that it has entered Code sender. Then press KEY1-KEY5, and Learner will learn the
key value sent by Code sender.
Quit Learner mode: Double-click the PWRC pin, and the ALED light will flash quickly (once a second).
Only after quitting the learn mode can the learned parameters work normally.
3. Quit Code sender mode: Click the PWRC pin, and the ALED pin flashes quickly( once a second). The
KEY1-KEY5 will take effect only after quitting the Code sender mode.
In particular, the mode can be distinguished by LED flashing:
Learner: The LED light of the STAT pin flashes slowly, and the LED light of the LEED pin is off, indicating that
Page 7
JDY-24M Super BLE Bluetooth Module
it enters the Learner mode. In the Learner mode, the OUTPUT pin flashes, indicating that the pin is in the
learning state, and if it light constantly means the code has been learned.
Code sender: The LED light of STAT pin is off, and the ALED pin flashes slowly, indicating that it has entered
the Code sender mode. In the Code sender mode, press the INPUT button, and the corresponding OUTPUT
will be high level.
Normal work:LED of ALED pin flashes quickly(once a second), if there is a central machine, the
STATpin is on constantly, indicating normal work.
Key learning is generally used in the case of no APP or serial port configuration. If there is APP or
serial port configuration, it is easier to use.
. Module pin definition
Ⅵ
Note: The general transport transmission application only needs to connect 4 pins of VCC, GND,
RXD and TXD.
Page 8
JDY-24M Super BLE Bluetooth Module
. Pin function description
Ⅶ
PinDefinitionFunctionDescription
1TXDSerial portSerial output, the level is TTL level
2RXDSerial portSerial input, the level is TTL level
3NULLNull4NULLNull5KEY5Input 5In mesh mode, press the key to control the IO level of the
specified device
6KEY4Input 4In mesh mode, press the key to control the IO level of the
specified device
7KEY3Input 3In mesh mode, press the key to control the IO level of the
specified device
8KEY2Input 2In mesh mode, press the key to control the IO level of the
specified device
9NULLNull-
10KEY1Input 1In mesh mode, press the key to control the IO level of the
specified device
11RESETResetLow level reset, high level working (high level if
suspended)
12VCCPower SupplySupply(1.8-3.6V)
13GNDGNDPower ground
14PWRCSleep wake pinSupport PWRC pin wake-up in deep sleep state, and AT
instruction sending is supported when the connection
status is pulled down
15ALEDBroadcast LED
indication
16STATConnection
status
17OUTPUT5Output 5Default low level, support serial instruction control and
18NULLNull19NULLNull20NULLNull21NULLNull22OUTPUT1Output 1Default low level, support serial instruction control and
23OUTPUT2Output 2Default low level, support serial instruction control and
24OUTPUT3Output 3Default low level, support serial instruction control and
In non mesh mode (flash if not connected, light on after
connection)
In non mesh mode, low level if not connected, high level
after connection
In mesh mode (output high level if connect to network
successfully, if not, output low level)
input KEY pin control in network state
input KEY pin control in network state
input KEY pin control in network state
input KEY pin control in network state
Page 9
JDY-24M Super BLE Bluetooth Module
25OUTPUT4Output 4Default low level, support serial instruction control and
input KEY pin control in network state
Ⅷ. Serial port AT instruction set
AT instruction sent by JDY-24M module serial port must add \r\n
No.InstructionFunctionDefault
1ATTest instruction-
2AT+RESETReset-
3AT+VERSIONFirmware version-
4AT+LADDRRead MAC address-
5AT+NAMEBroadcast name read and writeJDY-24M
6AT+PINConnection password setting1234
7AT+TYPEWhether to open password
connection mode
8AT+BAUDBaud rate115200
9AT+DISCDisconnect-
10AT+STATRead connection status0
11AT+STARTENPower on sleep setting1
12AT+ADVINBroadcast interval1
13AT+POWRTransmitting power3
14AT+ROLEWorking mode setting0
15AT+SLEEPSleep instruction-
16AT+DEFAULTRestore factory configuration-
17AT+INQMaster search slave broadcast-
0
18AT+STOPStop broadcasting-
19AT+CONNConnect scan list ID number-
20AT+CONAInstruction MAC address
connection
21AT+BANDBind slave MAC address-
-
Page 10
JDY-24M Super BLE Bluetooth Module
22AT+CLRBANDClear binding-
23AT+SRBANDConnect the strongest signal
slave nearby
24AT+MESHMESH sends data-
25AT+KEYKey parameter configuration-
26AT+NETIDNetwork ID number
configuration
27AT+MADDRNetwork short addressLast two digits of
28AT+MCLSSType of network device0(Router)
29AT+FRIENDAdd private friend MAC
address
30AT+CLRFRIENDClear friend
31AT+FRTYPEFriend type0
-
1189
MAC address
000000000000
32AT+IBUUIDUUID configuration of
iBeacon
33AT+MAJORMAJOR configuration of
iBeacon
34AT+MINORMINOR configuration of
iBeacon
35AT+IBSINGSING configuration of
iBeacon
36AT+ENLOGSerial port output status switch1(On)
37AT+DATAData instructions sent by slave
multiple connections
38AT+CUIOSerial port setting current
module output IO level
000A
0007
39AT+TGIOMaster controls the output IO
level of slave when the master
Page 11
JDY-24M Super BLE Bluetooth Module
communicates
40AT+FUNCMaster sets slave wireless
parameters
41AT+SUBTYPESubtype (routing mode is
valid)
42AT+LEARNLearn switch0
43AT+LEAVALOutput IO learn parameters0,0,0000
44AT+DEVCLSSFor one key connection of the
master to the strongest signal
slave nearby
45AT+KLABELAdd label address
(10 Tags supported)
46AT+KLTIMESet label overtime time3s
47AT+KLRSSISet label sensitivity
(For receiving range setting)
0,0,000000000000
0
0
99
1、Test instruction
InstructionResponseParameter
AT
2、Reset
InstructionResponseParameter
AT+RESET+OKNULL
3、Query - software version number
InstructionResponseParameter
AT+VERSION
4、Query - Bluetooth MAC address
InstructionResponseParameter
+OK
+VERSION=JDY-24M-V1.3
NULL
NULL
Page 12
JDY-24M Super BLE Bluetooth Module
AT+LADDR+LADDR=<Param>Param: MAC address hex character
string
5、Set/query - BLE broadcast name
InstructionResponseParameter
AT+NAME<Param>+OKParam:BLE broadcast name
Max:18 byte
AT+NAME+NAME=<Param>
6、Set/query - BLE Bluetooth pairing password
InstructionResponseParameter
AT+PIN<Param>
AT+PIN
7、Set/query - BLE Bluetooth password connection mode
InstructionResponseParameter
AT+TYPE<Param>+OK
+OK
+PIN=<Param>
Default broadcast name:
JDY-24M
Param:4 bit password
Default PIN:1234
Param(0-2)
0:No password for connection
1:Password connection and not
AT+TYPE+TYPE=<Param>
Instruction: Not bind the password connection. The function is to input the password every time
the mobile phone is connected to the module.
Bind password connection. The function is that you only need to enter the password
once when connecting to the mobile phone, and the password is no longer needed for later
connection
Special instruction: When master slave transparent transmission, if the slave is configured
with a password connection, the master also needs to be configured with the same password
to connect, otherwise the master will not be able to connect to the slave.
binding
2:Password connection and binding
Default:0
Page 13
JDY-24M Super BLE Bluetooth Module
8、Set/query - Baud rate
InstructionResponseParameter
Param:(2 to 8)
AT+BAUD<Param>+OK
AT+BAUD+BAUD=<Param>
9、Disconnect
InstructionResponseParameter
AT+DISC+OKNULL
Instruction: In the connection state, send the AT+DISC instruction to disconnect the Bluetooth
connection by pulling down the PWRC pin.
2:2400
3:4800
4:9600
5:19200
6:38400
7:57600
8:115200
Default:8
10、Query - connection status
InstructionResponseParameter
Param(0-3)
AT+STAT+STAT=<Param>
Note: MESH status is valid only when there is a central machine in the network. In particular, when there is a
large number of networks, users are not recommended to open the central machine to cause network load.
3:iBeacon mode
4:iBeacon probe mode
5:MESH network mode
6:Multi-connected slave mode (supports 4
master connections)
7:Multi-connected master-slave (the master
supports to connect 4 slaves at the same time,
and the slave supports to connect 4 masters)
8:Key label detection mode (when the bound
label approaches, IO of JDY-24M will act)
Default:5
IBEACON probe mode output data format is as follows:
54 58 44 ea d8 f1 b5 a2 52fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 2500 0a00 07 0d 0a
TXMACRSSIiBeacon UUIDMajorMinor
End
15、Set/query - Sleep instruction
InstructionResponseParameter
AT+SLEEP<Param>
AT+SLEEP
+SLEEP:OK
1:Light sleep (with
Param:(1-2)
broadcast)
2:Deep sleep (without
broadcast)
Instruction: Only AT+SLEEP2 instruction is supported in MESH mode, and AT+SLEEP or AT+SLEEP1
instruction is supported in other modes.
0:Search stops after 2 seconds
1:Search stops after 4 seconds
2:Search stops after 6 seconds
AT+INQOK
3:Search stops after 8 seconds
4:Search stops after 16 seconds
Default:0 second
Example: +DEV:1=1893D711AB87,-82,JDY-08MAC, RSSI and device name are returned when the
master scans the slave
Page 16
JDY-24M Super BLE Bluetooth Module
18、Set - Stop scanning
InstructionResponseParameter
AT+STOPOKNULL
If the user needs MCU to control the scan stop, it is generally recommended to set the search
device to 4 and the instruction is AT+INQ4 when scanning the device, so that the MCU can send
the instruction to stop the scan within this time, of course, it will automatically stop when the time
is up.
19、Search list connection
InstructionResponseParameter
AT+CONN <Param>OKParam:(0-7)
AT+CONN+CONN=<Param>
Example:AT+CONN1
20、Specify MAC address connection
InstructionResponseParameter
AT+CONA+CONN=<Param>Param: (MAC hex character string)
Example:AT+CONA112233445566
21、Set/query - Master binds MAC address
InstructionResponseParameter
AT+BAND<Param>OKParam: (MAC hex character string)
AT+BAND+BAND=<Param>
Example: AT+BAND112233445566
22、Set - Master unbind
InstructionResponseParameter
AT+CLRBANDOKNULL
23、Set - Master search the strongest signal slave nearby and bind and connect automatically
InstructionResponseParameter
AT+SRBANDOKNULL
24、Set - MESH sends data
InstructionResponseParameter
AT+MESH<Param>OKParam: (hex data)
Example: 41 54 2b 4d 45 53 48 00 ff ff 11 22 33 0d 0a
Instruction: The red part (41 54 2b 4d 45 53 48) is hexadecimal data of AT+MESH. The example function is to
send broadcast data to all devices in the target network. The broadcast data content is: 11 22 33
Page 17
JDY-24M Super BLE Bluetooth Module
As there are too many functions of MESH network, it will not be described in detail in this document. Please refer
to the document of Instructions for use of mesh. PDF.
25、Set/query - Key input pin function
InstructionResponseParameter
Param1:Indicates input IO number
AT+KEY<Param1>,<Param2>,<Param3>
<Param4>
AT+KEY<Param1>
,
+KEY=<Param1>
<Param2>
<Param3>,<Param4>
OK
,
(1-5)
Param2:Target address(0000 to ffff)
Param3:Target output IO number
(1-5)
,
Param4:Whether the target device
prints output (0-1) from the serial port
at the same time after receiving the
instruction, 0 means no serial port
output, 1 means simultaneous serial
port output
26、Set/query - MESH network ID number
InstructionResponseParameter
AT+NETID<Param1>OKParam1:(0000 to FFFF)
AT+NETID+NETID=<Param1>
Instruction: The ID number of the network within the same network must be the same, otherwise the network
cannot be established.
27、Set/query - MESH short address
InstructionResponseParameter
AT+MADDR<Param1>OKParam1:(0001 to FFFF)
AT+MADDR+MADDR=<Param1>
Instruction: The function of the short address in the network is the unique ID number of each device. The same
short address cannot appear in the same network. The short address is configured by AT instruction, and it can also
be automatically assigned. To automatically assign the address, you need to turn on the central machine, and
automatically assign the ID to the device that enters the network for the first time through the central machine. It is
generally recommended that the user configure the short address by ATinstruction himself.
Instruction: Router supports data relay, not low power consumption
Page 18
JDY-24M Super BLE Bluetooth Module
The terminal settings should be applied to low-power consumption network device. The default is
power on sleep. Data will be sent after key wake-up and sleep will be immediately after sending.
29、Add / query - MESH friend MAC address
ResponseParameter
OKParam1:(MAC address hex byte string)
+FRIEND=<Param1>
30、Clear -MESH friend MAC address
InstructionResponseParameter
AT+CLRFRIENDOK
31、Set/query - MESH friend type
InstructionResponseParameter
AT+FRTYPE<Param1>OKParam1:(0 or 1)
AT+FRTYPE+FRTYPE=<Param1>
Instruction: For private friend type, data can only be sent to the MAC address of the friend set by AT+RIEND. If
the MAC address is different from that of at + friend, data cannot be sent. Open friend type, you can specify all
friends around to send data one-to-one.
For the use of friend relation, please refer to the use instruction of MESH for details.
If Major value is10008,AT instruction is: AT+MAJOR27182718 is 10008 hex data
Default:000A
34、Set/query - iBeacon Minor
InstructionResponseParameter
Page 19
JDY-24M Super BLE Bluetooth Module
AT+MINOR<Param>OKParam:(0000-FFFF)
AT+MINOR+MINOR=<Param>
If Minor value is 10180,ATinstruction is: AT+MINOR27C427C4 is 10180 hex data
35、Set/query - iBeacon IBSING
InstructionResponseParameter
AT+IBSING<Param>OKParam:(00-FF)
AT+IBSING+IBSING =<Param>
This parameter is applied to the check value of iBeacon signal at 1 meter.
36、Serial port status output enable set/query
InstructionResponseParameter
AT+ENLOG<Param>+OKParam:1 or 0
Default:0007
Default:40
AT+ENLOG+ENLOG=<Param>
1:Open serial port status
output
0:Close serial port status
output
Default:1
37、Data instruction sent by multi-connected slave
InstructionResponseParameter
+OKParam1:Indicates the master ID number,
AT+DATA<Param1><Param2
+DATA=<Param>
>
In the multi-connected status, when JDY-24M is connected by more than one master, data can be sent to the
specified master through this instruction.
Example: Such as sending AABBCCDDEEFF data to master 1
AT+DATA1AABBCCDDEEFF
values (1 to 4)
Param2:Indicates the data sent
38、Set/query - Output IO level of current module
InstructionResponseParameter
AT+CUIO<PA>,<PB>,+OKPA:Output IO number (1 to 5)
Page 20
JDY-24M Super BLE Bluetooth Module
PB:Indicates output level
P1:Indicates OUTPUT1 level
AT+CUIO+CUIO=<P1>,<P2
>,<P3>,<P4>,<P5>
,
P2:Indicates OUTPUT2 level
P3:Indicates OUTPUT3 level
P4:Indicates OUTPUT4 level
P5:Indicates OUTPUT5 level
Note: This instruction only controls the IO level of the current module through the serial port.
Param: Please refer to page 18 for
wireless setting instruction table::
APPconfigurescurrentdevice
instruction table
Note: Only when the master is connected to the slave can the instruction be sent effectively.
41、Set/query - Subtype parameters
InstructionResponseParameter
Param:1 or 0
AT+SUBTYPE<Param
>
+OK
1:KEY and OUTPUT associated
0:KEY and OUTPUT not associated
Page 21
JDY-24M Super BLE Bluetooth Module
AT+SUBTYPE+SUBTYPE=<Para
Default:0
m>
Note: After the SUBTYPE is set to 1, the level of the remote device controlled by the INPUT key will change as
the level of its OUTPUT pin.
For example, INPUT1 controls the remote device INPUT1 level to high level, and its own INPUT1 pin will
also become high level.
42、Set/query - Learn switch enable
InstructionResponseParameter
AT+LEARN<Param>+OKParam:1 or 0
AT+LEARN+LEARN=<Para
m>
1:Button and output pin learn mode on
0:Button and output pin learn mode off
Default:0
Note: When LEARN is set to 1, it means the parameters of INPUT pin set by AT+KEYare completely invalid. The
parameters of key sending and receiving will be acquired by AT+LEAVAL or key learning.
For key learning configuration, please refer to the document Switch panel instructions. PDF.
43、Set/query - Learn parameter
InstructionResponseParameter
AT+LEAVAL
<P1>,<P2>,<P3>
AT+LEAVAL+LEAVAL=
+OKP1:OUTPUT pin number of current
device
P2:Code sender INPUT pin number
<P1>,<P2>,<P3>
P3:Code sender short address
(0001-FF00)
Default:0,0,0000
When LEARN mode is on, AT+LEAVALinstruction configures parameters.
Example 1: Remote 0008 device KEY1 simultaneously controls the current device's OUTPUT1 and OUTPUT2
levels
Current device sends instruction: AT+LEAVAL1,1,0008 send AT+LEAVAL2,1,154A
Example 2: Remote 0008 device KEY2 controls the current device's OUTPUT5 level
Current device sends instruction: AT+LEAVAL5,2,0008
44、Set/query - Turn on one key binding to connect the strongest signal slave
InstructionResponseParameter
Page 22
JDY-24M Super BLE Bluetooth Module
Param:00 or ff
AT+DEVCLSS<Param
>
+OK
F1:indicates that one key binding
function is turned on (In ROLE1mode,
support pressing PWRC pin to bind and
AT+DEVCLSS+DEVCLSS=<Para
m>
connect to the strongest signal slave
nearby)
Default:0
Example: In ROLE1 mode, press PWRC pin to automatically bind the strongest signal slave nearby and send
In ROLE8 key label detection mode, add bracelet or label,
For example, the MAC address of the bracelet is 112233445566. When the bracelet is close to JDY-24M, let OUT2
act. The instructions are as follows.
AT+KLABEL1,2,112233445566
We add another key label. The MAC address of the key label is 888888999999. When the key label is close to
JDY-24M, make OUT5 act, the instruction is: AT+KLABEL2,5,888888999999
46、Set/query - Overtime action time of opening a key label
InstructionResponseParameter
AT+KLTIME<Param>,<Para
m>
AT+KLTIME<Param>+KLTIME=<Param>,<
+OKParam1:label number(Value 0-9)
Param2:overtime time(Value 0-9)
Param2 default:3
Param>
In ROLE8 key label detection mode, bracelet and key labels have been added,
Example: Set the overtime time of the bracelet to 9 seconds. (After the bracelet is close to JDY-24M, OUT2
always outputs high level. When the bracelet leave the JDY-24M range, OUT2 reverts to low level in 9 seconds. If
the bracelet enters the JDY-24M range again within the 9 seconds, OUT2 outputs high level again.)
Instruction: AT+KLTIME1,9
Page 23
JDY-24M Super BLE Bluetooth Module
47、Set/query - Sensitivity of opening a key label
InstructionResponseParameter
AT+KLRSSI<Param>,<Param
>
AT+KLRSSI<Param>+KLRSSI=<Param>,<
+OKParam1:label number(Value 0-9)
Param2:sensitivity(Value 00-99)
Param2 default:99
Param>
In ROLE8 key label detection mode, bracelet and key labels have been added,
Example: Set the receiving range of the bracelet to a relatively close distance. Only when the bracelet is in this
range can the OUT pin of JDY-24M act.
Instruction: AT+KLRSSI30
The above parameter setting is 30. Of course, the value of KLRSSI can be set anyone from 00 to 99. Users can set
it according to their own requirements.
Page 24
JDY-24M Super BLE Bluetooth Module
. APP terminal instruction
Ⅸ
UUID list
Service UUID: FFE0(Service UUID)
Service UUID: FFE1(Used for transparent transmission)
Service UUID: FFE2(Used for transparent transmission)
Service UUID: FFE3(MESH data receiving and sending, MESH instruction receiving
and sending, APP control IO, parameter configuration)
APP command instructions (Not mesh mode)
1)APP transparent transmission(Use characteristic UUID: FFE1)
0XFFE1 is APP transparent transmission characteristic UUID(Applied to IOS,Android
or Wechat applet communication)
2)APP sends data or instruction to MESH (Use characteristic FFE3)
Data format HEAD(2byte) + CMD(1byte) + MADDR(2byte) + data(1-16byte)
Example 1: APP broadcasts data to all devices:31323334353637383930
Instruction 1: F10100FFFF31323334353637383930
Example 2: APP sends 1122334455 data to 0008 device serial port
Instruction 2: F1010000081122334455
Example 3: APP sets OUT1 pin of all modules to high level
Instruction 3: F10110FFFFAAB1E70101
Example 4: APP sets OUT1 pin of 0008 module to low level
Instruction 4: F101100008AAB1E70100
Example 5: APP reads all OUT pin levels of 0008 module
Instruction 5: F101310008F0B100
Example 6: APP reads all INPUT pin levels of module 0008
Instruction 6: F101310008F1B101
Example 7: APP reads all INPUT pin levels of 0008 module
Instruction 7: F101310008F1B101
Note: The above are just some examples of APP sending data to MESH, including setting NETID, setting
MADDR, communicating with friend node, setting friend type, setting route or terminal node, etc.lease refer to
MESH user manual. PDF. The MESH communication format of APP is the same as that of AT instruction of
serial port, except the data head.
Page 25
JDY-24M Super BLE Bluetooth Module
3)APP configures current device instruction table( Use characteristic UUID :
0XFFE3)
This instruction is only used for the current APP connected device parameter
configuration.
Instru
ction
F202NETIDAPP sets the network NETID, with the length of 2 bytes
F303MADDRAPP sets short address, MADDR length is 2 bytes
F404MCLSSAPP sets network type, MCLSS length is 1 byte, 0 represents
F505ROLEAPP sets the working mode, and the length of ROLE is 1 byte,
F606x1x2x3x3x5APP sets key parameters
DataFunction description
router, 1 represents terminal device
0:Indicates slave transparent transmission
1:Indicates master transparent transmission
2:BLE broadcast probe mode
3:iBeacon mode
4:iBeacon probe mode
5:MESH network mode
6 : Multi-connected and multi machine mode ( Support
simultaneous connection transparent transmission of 4 masters)
7 : Multi-connected master slave mode ( Support master to
connect 4 slaves)
8:Key label detection mode
x1: Indicates key number, range (1 to 5)
x2x3:Indicates the target address of key, range (0000-ffff)
x4:Indicates the target output pin number, range (1 to 5)
x5:Indicates whether the target receive data and the serial port
output at the same time, range (0-1)
F707SUBTYPESUBTYPE=1 in MESH mode indicates that OUT and target are
synchronized
SUBTYPE=0 in MESH mode indicates that OUT and target are
not synchronized
F808LEARNLEARN=1 in MESH mode indicates open learning function
0 indicates close learning function
x1 indicates the OUTPUT pin number of the current device
F909x1x2x3x4
FA01DEVCLSSDEVCLSS=F1 indicates open the function of one key bind and
x2 indicates code sender INPUT pin number
x3x4 indicates the short address of the code sender (0001-FF00)
connect to the strongest signal slave
DEVCLSS =0 indicates close
x1:
Label number(Value 0x00-0x09)
Page 26
JDY-24M Super BLE Bluetooth Module
FA02x1x2macx2:Action IO number(Value 0x01-0x05)
Mac:Label MAC address(Value 0x000000000000-0xffffffffffff)
FA03x1x2x1:
FA04x1x2x1:
B101UUIDUUID of iBeacon, length 16 bytes
B202MAJORMAJOR of iBeacon, length 2 bytes
B303MINORMINOR of iBeacon, length 2 bytes
B404SINGSignal verification value of iBeacon at 1m, length 1byte
A1E1F101APP sends this instruction to restart the module, fixed
A2E2NAMENAME is broadcast name, the maximum length of NAME is 18
A3E3PINPIN connection password, PIN length is 4 bytes
A4E4TYPETYPE matching method, length is 1byte
A5E5BAUDBAUD is baud rate, length is 1byte
A6E601APP disconnect instruction, fixed instruction(A6E601)
A7E7STARTENSTARTEN Whether it is power on sleep, the length is 1 byte
A8E8ADVINADVIN is broadcast interval, the length is 1 byte
Label number(Value 0x00-0x09)
x2:Overtime time
Label number(Value 0x00-0x09)
x2:
Sensitivity(Value 0x00-0x99)
instruction (A1E1F101)
bytes
0:No password for connection
1:Password connection and not binding
2:Password connection and binding
A9E9POWERPOWER is transmitting power, the length is 1 byte
0:-20db
1:0db
2:2db
3:3db
4:4db
AAEADEFAULTRestore factory configuration
C101NULLRead module software version number
C102NULLRead broadcast name value, length (1 to 18) bytes
C103NULLRead password value, length 4 bytes
C104NULLRead password type value, length 1 byte
C105NULLRead baud rate value, length 1 byte
C106NULLRead power on sleep value, length 1 byte
C107ADVSTAT
C108NULLAPP reads transmitting power
C109NULLAPP reads ROLE working mode
C201NULLRead the UUID of iBeacon, length 16 bytes
C202NULLRead the MAJOR of iBeacon, length 2 bytes
C203NULLRead the MINOR of iBeacon, length 2 bytes
C204NULLRead the SING of iBeacon, length 1 byte
10.1 Wiring diagram of data transparent transmission between JDY-24M and mobile phone
(IOS, Android) APP and applet
Note: Only 4 wires (VCC, GND, RXD, TXD) need to be connected for general transparent
transmission. MCU can judge the working state (connection, disconnection) of Bluetooth through
serial port state. If Bluetooth output status (connection, disconnection) is not required, it can be
determined by Bluetooth status pin or by pulling down PWRC pin (send AT+STAT).
10.2 JDY-24M non MESH master-slave transparent transmission wiring diagram
Page 29
JDY-24M Super BLE Bluetooth Module
The master-slave communication speed rate supports continuous data transmission at all baud
rates (under 115200 baud rate, the data can be transmitted without delay and can be continuously
transmitted and received)
Master instruction: AT+ROLE1
AT+RESET
Search slave instruction: AT+INQ
After the slave is searched, use AT+CONA to connect the MAC address of the
searched slave.
10.3 Wiring diagram of output pin level of APP control module in JDY-24M non network
mode
In the AT+ROLE0, AT+ROLE3, AT+ROLE6, AT+ROLE7 modes, it support APP to directly
control OUTPUT pin level
APP selects the FFE2 characteristic and sends instructions as follows
In the non network module, APP can not only directly control the OUTPUT pin level, but also
support transparent transmission.
10.4 JDY-24M network IO control wiring diagram
This circuit is mainly used for routing nodes. The key supports to control the IO or serial port
output key information of all nodes (routing, terminal) in the network.
Network IO control instructions are as follows:
AT+ROLE5
AT+RESET
After configuration, IO control can be carried out. By default, the short address of INPUT1 to
INPUT5 is FFFF. Press the INPUT pin SW key by default to output IO to control the
corresponding OUTPUT of all devices in the network. If you do not need to control the OUTPUT
pin of all devices, you can configure it with the following instructions.
Example 1: The INPUT5 key with the local machine address of 0005 needs to control the
OUTPUT5 pin level of 0008 device
0005 local machine instruction as follows:AT+KEY5,0008,5,0
Example 2: The INPUT1 key with the local machine address of 0005 needs to control the
OUTPUT3 pin level of 0008 device
0005 local machine instruction as follows:AT+KEY1,0008,3,0
Note that this mode is non learning mode key switch and output IO control. AT+LEARN0 and
AT+SUBTYPE0 are both set to 0, and the module factory default is 0.
Page 31
JDY-24M Super BLE Bluetooth Module
10.5 Serial port communication wiring diagram between MCU and MCU in JDY-24M
network
In this wiring, the user MCU can realize wireless serial port communication between multiple
MCU, and can also control the output IO level of all nodes, and read the input IO level status
(input1 to input5).
Example 1: Serial port of local 0005 device sends 112233445566 hex data to the serial port of
target 0008 device
Instruction: 41 54 2b 4d 45 53 48 00 00 08 31 32 33 0d 0a
Example 2: Serial port of local 0005 device serial port sends 112233445566 hex data to all device
serial ports in the network
Instruction: 41 54 2b 4d 45 53 48 00 ff ff 31 32 33 0d 0a
Example 3: Serial port of local 0005 device reads 5 OUTPUT pin levels of target 0008 device
Instruction: 41 54 2b 4d 45 53 48 31 00 08 f0 b1 00 0d 0a
Return: F0 00 07 00 08 00 00 00 00 00
Example 4: Serial port of local 0005 device reads 5 INPUT pin levels of target 0008 device
Instruction: 41 54 2b 4d 45 53 48 00 00 08 f1 b1 01 0d 0a
Return: F0 01 07 00 08 01 01 01 01 01
Example 5: Serial port of local 0005 device controls the OUTPUT1 pin of the target 0008 device
as high level
Instruction: 41 54 2b 4d 45 53 48 10 00 08 aa b1 e7 01 01 0d 0a
Example 6: Serial port of local 0005 device controls the OUTPUT pin of the target 0008 device as
high level
Instruction: 41 54 2b 4d 45 53 48 10 00 08 ab b1 e7 ff 1f 0d 0a
Page 32
JDY-24M Super BLE Bluetooth Module
10.6 JDY-24M network remote control node wiring diagram
This node is generally used for panel switch and remote controller. The terminal node is generally
powered on sleep. Press the key to send data, and release the key to continue deep sleep
immediately.
Configure remote control node instruction
1.Configure to MESH mode:AT+ROLE5
2.Configured as a low-power consumption node: AT+MCLSS1
3.Restart to take effect:AT+RESET
10.7 Application wiring diagram of network switch panel
Before the installation of the switch panel, it is necessary to configure the module network, and
open the parameters such as AT+SUBTYPE1 and AT+LEARN1 to factory setting, and learn
during installation. The above circuit diagram is the application circuit diagram of the switch
panel. The above two devices support hundreds or thousands of circuit devices in the practical
application.
Example: We control the level of LED2 and LED5 of B switch panel by SW1 of A switch panel.
At this time, LED2 and LED5 of B switch panel need to learn the key of SW1.
Step 1: Make A switch panel enter the code sender mode, click the PWRC pin on A switch panel,
and the LED light on a switch panel flashes slowly, indicating that the code sender mode has
Page 33
JDY-24M Super BLE Bluetooth Module
entered.
Step 2: Make B switch panel enter the learner mode, double-click the PWRC pin of the B switch
panel, the ALED of the B switch panel is off, and the STAT pin flashes slowly, indicating that the
learner mode has been entered. First, learn LED2 (press SW2 of B switch panel), at this time,
LED2 light flashes (once a second), then press SW1 of A switch panel code sender, LED2 of B
switch panel learns the value sent by SW1 of A switch panel, and LED2 of B switch panel will be
on, which indicates that LED2 has learned successfully. Second, press SW5 of B switch panel, at
this time, LED5 of B switch panel flashes, which indicates that LED5 learning begins. Then press
SW1 of switch panel A, LED5 of switch panel will be on, which indicates that learning has been
successful.
Step 3: A switch panel quit code sender mode, click PWRC pin, and LED of ALED pin flashes
(once in 1 second), indicating that the code sender mode has quit and normal working mode has
been entered.
Step 4: B switch panel quit learner mode, double-click PWRC pin, and LED of ALED pin flashes
(once in 1 second), indicating that the learner mode has quit and normal working mode has been
entered.
Step 5: At this time, SW1 of A switch panel can control the level of LED2 and LED5 of B switch
panel.
Clear learning code, press PWRC pin for more than 6 seconds, and all learning codes will be
cleared automatically.
The above is the configuration of the switch panel by learning mode. If using APP or serial port to
configure, it will be very simple to use.
If the user configures the above functions through the serial port, only several instructions are
needed.
A switch panel address is 0008, B switch panel address is 0009
1、AT+LEARN1
2、AT+SUBTYPE1
3、AT+LEAVAL2,1,0008
4、AT+LEAVAL5,1,0008
Page 34
JDY-24M Super BLE Bluetooth Module
10.8 Application wiring diagram of one key binding and connect to the strongest signal slave
nearby
Bluetooth remote control transmitterBluetooth remote control receiver
Bluetooth remote control application instruction mode 1 (LED light level flip)
Bluetooth transmitter configuration instruction Bluetooth receiver configuration instruction
AT+ROLE1AT+ROLE0
AT+DEVCLSSF1AT+RESET
AT+RESET
After the configuration of instructions through the above transmitter and receiver, the
transmitter presses the SW5 button briefly, and the transmitter automatically searches for and
bind the strongest signal receiver nearby.After the automatic connection, the LED of STAT pin is
on, indicating that the binding is successful. After the binding is successful, the transmitter presses
the SW1, SW2, SW3, SW4, PWRC pins briefly to control the receiver of LED1, LED2, LED3,
LED4, LED5. The control mode is level flip mode.
Bluetooth remote control application instruction mode 2 (pulse level)
Bluetooth transmitter configuration instruction Bluetooth receiver configuration instruction
AT+ROLE1AT+ROLE0
AT+DEVCLSSF2AT+RESET
AT+RESET
After the configuration of instructions through the above transmitter and receiver, the
transmitter presses the SW5 button briefly, and the transmitter automatically searches for and
bind the strongest signal receiver nearby.After the automatic connection, the LED of STAT pin is
on, indicating that the binding is successful. After the binding is successful, the transmitter presses
the SW1, SW2, SW3, SW4, PWRC pins briefly to control the receiver of LED1, LED2, LED3,
LED4, LED5. The control mode is pulse level.
In the mode of AT+DEVCLSSF1 or AT+DEVCLSSF2, the transmitter supports long press of
SW5 button for 6 seconds to enter into deep sleep. After sleep, the current will be several uA, and
after sleep, it can be waken up by short press of PWRC pin.
Key label detection is generally used in gate switch, check in, anti-loss and other fields.
When JDY-24M detects the key label or bracelet approaching, OUT outputs pin action.
Example: the MAC of the bracelet is 112233445566. When the bracelet is close, the OUT2 pin
action instruction is as follows.
AT+ROLE8
AT+KLABEL1,2,112233445566
AT+RESET
JDY-24M supports binding 10 labels and 5 action OUT pins. The received label address will
be output from the serial port. If you need to expand the number of labels, you can set the
label address to the same, so that JDY-24M will have no upper limit on the number of labels,
and users can also get the label address through MCU added by the serial port and to
process MCU.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.