JDY-25M Super Bluetooth Module Manual
JDY-25M Super Bluetooth Module Manual
Version
Versi Date Description
on
V1.72 20200725 Release version
2
JDY-25M Super BLE Bluetooth Module
Ⅰ. Product introduction
JDY-25M 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-25M 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)
3
JDY-25M Super BLE Bluetooth Module
Ⅳ. Technical specifications:
Type Specification parameter
Working voltage 1.9 – 3.6V
Working temperature -40 - 85°C
Maximum transmitting power +4dbm
Communication distance 80m
Bluetooth version BLE5.0
Antenna PCB board antenna
Antenna gain -3dbi
Receiving sensitivity -96dbm
SMT welding temperature <260℃
Communication interface UART
Module size 27mm * 12.88 *1.6
Communication speed between slave and 8k(byte/s)
APP
MESH communication speed 50ms send 16byte
Average Wake up (transparent About 1mA
current transmission) current in non
MESH mode
Light sleep of slave with Within 200uA (related to broadcasting
broadcast in non MESH mode interval)
Wake up communication current About 4mA
in MESH mode
Sleep current in MESH mode 3uA
4
JDY-25M Super BLE Bluetooth Module
12 Router node 0 AT+MCLSS0
13 Transmitting power 4 AT+POWR4
14 OUTPUT and INPUT 0 AT+SUBTYPE0
unrelated
15 Learn mode off 0 AT+LEARN0
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)
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.
Two JDY-25M 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
5
JDY-25M Super BLE Bluetooth Module
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.
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.
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.
6
JDY-25M Super BLE Bluetooth Module
Note: The general transport transmission application only needs to connect 4 pins of VCC, GND,
RXD and TXD.
7
JDY-25M Super BLE Bluetooth Module
8
JDY-25M Super BLE Bluetooth Module
25 OUTPUT4 Output 4 Default low level, support serial instruction control and
input KEY pin control in network state
1 AT Test instruction -
2 AT+RESET Reset -
connection mode
9 AT+DISC Disconnect -
connection
9
JDY-25M Super BLE Bluetooth Module
slave nearby
configuration
MAC address
address
iBeacon
iBeacon
iBeacon
iBeacon
multiple connections
10
JDY-25M Super BLE Bluetooth Module
communicates
parameters
valid)
slave nearby
1、Test instruction
AT +OK NULL
2、Reset
11
JDY-25M Super BLE Bluetooth Module
string
Max:18 byte
JDY-25M
Param(0-2)
Default:0
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.
12
JDY-25M Super BLE Bluetooth Module
Param:(2 to 8)
3:4800
4:9600
5:19200
6:38400
8:115200
Default:8
9、Disconnect
Param(0-3)
1:Connected
2:Networked
3:Connected and
networked
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.
13
JDY-25M Super BLE Bluetooth Module
11、Set/query - Power on sleep or wake-up
14
JDY-25M Super BLE Bluetooth Module
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-25M will act)
Default:5
IBEACON probe mode output data format is as follows:
54 58 44 ea d8 f1 b5 a2 52 fd a5 06 93 a4 e2 4f b1 af cf c6 eb 07 64 78 25 00 0a 00 07 0d 0a
TX MAC RSSI iBeacon UUID Major Minor
End
15
JDY-25M Super BLE Bluetooth Module
18、Set - Stop scanning
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.
23、Set - Master search the strongest signal slave nearby and bind and connect automatically
16
JDY-25M 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.
17
JDY-25M 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.
Response Parameter
OK Param1:(MAC address hex byte string)
+FRIEND=<Param1> Default:000000000000
18
JDY-25M Super BLE Bluetooth Module
AT+MINOR<Param> OK Param:(0000-FFFF)
AT+MINOR +MINOR=<Param> Default:0007
If Minor value is 10180,AT instruction is: AT+MINOR27C4 27C4 is 10180 hex data
output
output
Default:1
In the multi-connected status, when JDY-25M 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
19
JDY-25M Super BLE Bluetooth Module
Param:1 or 0
20
JDY-25M Super BLE Bluetooth Module
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.
<P1>,<P2>,<P3> device
(0001-FF00)
Default:0,0,0000
When LEARN mode is on, AT+LEAVAL instruction 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
21
JDY-25M Super BLE Bluetooth Module
Param:00 or ff
m> nearby)
Default:0
Example: In ROLE1 mode, press PWRC pin to automatically bind the strongest signal slave nearby and send
AT+DEVCLSSF1
22
JDY-25M Super BLE Bluetooth Module
23
JDY-25M Super BLE Bluetooth Module
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.
24
JDY-25M 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 Data Function description
ction
F202 NETID APP sets the network NETID, with the length of 2 bytes
F303 MADDR APP sets short address, MADDR length is 2 bytes
F404 MCLSS APP sets network type, MCLSS length is 1 byte, 0 represents
router, 1 represents terminal device
F505 ROLE APP sets the working mode, and the length of ROLE is 1 byte,
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
F606 x1x2x3x3x5 APP sets key parameters
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)
F707 SUBTYPE SUBTYPE=1 in MESH mode indicates that OUT and target are
synchronized
SUBTYPE=0 in MESH mode indicates that OUT and target are
not synchronized
F808 LEARN LEARN=1 in MESH mode indicates open learning function
0 indicates close learning function
x1 indicates the OUTPUT pin number of the current device
F909 x1x2x3x4 x2 indicates code sender INPUT pin number
x3x4 indicates the short address of the code sender (0001-FF00)
FA01 DEVCLSS DEVCLSS=F1 indicates open the function of one key bind and
connect to the strongest signal slave
DEVCLSS =0 indicates close
25
JDY-25M Super BLE Bluetooth Module
FA02 x1x2mac x2:Action IO number(Value 0x01-0x05)
Mac:Label MAC address(Value 0x000000000000-0xffffffffffff)
FA03 x1x2 x1:Label number(Value 0x00-0x09)
x2:Overtime time(Value 0x00-0x09)
FA04 x1x2 x1:Label number(Value 0x00-0x09)
x2:Sensitivity(Value 0x00-0x99)
A1E1 F101 APP sends this instruction to restart the module, fixed
instruction (A1E1F101)
A2E2 NAME NAME is broadcast name, the maximum length of NAME is 18
bytes
A3E3 PIN PIN connection password, PIN length is 6 bytes
A4E4 TYPE TYPE matching method, length is 1byte
0:No password for connection
1:Password connection and not binding
2:Password connection and binding
A5E5 BAUD BAUD is baud rate, length is 1byte
2:2400
3:4800
4:9600
5:19200
6:38400
7:57600
8:115200
A6E6 01 APP disconnect instruction, fixed instruction(A6E601)
A7E7 STARTEN STARTEN Whether it is power on sleep, the length is 1 byte
1 : Power on wake-up, sleep can be controlled by sleep
instruction
0:Power on sleep, connect wake-up, disconnect sleep
A8E8 ADVIN ADVIN is broadcast interval, the length is 1 byte
1:100mS
2:200mS
3:300mS
4:500mS
5:700mS
6:100mS
7:1500mS
8:3000mS
9:60000mS
26
JDY-25M Super BLE Bluetooth Module
A9E9 POWER POWER is transmitting power, the length is 1 byte
0:-20db
1:0db
2:2db
3:3db
4:4db
AAEA DEFAULT Restore factory configuration
27
JDY-25M Super BLE Bluetooth Module
x1:Label number(Value 0x00-0x09)
C312 x1 Read KLTIME parameter
x1:Label number(Value 0x00-0x09)
C313 x1 Read KLRSSI parameter
x1:Label number(Value 0x00-0x09)
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).
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.
28
JDY-25M Super BLE Bluetooth Module
10.3 Wiring diagram of output pin level of APP control module in JDY-25M non network
mode
29
JDY-25M Super BLE Bluetooth Module
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.
10.5 Serial port communication wiring diagram between MCU and MCU in JDY-25M
30
JDY-25M Super BLE Bluetooth Module
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
31
JDY-25M Super BLE Bluetooth Module
10.6 JDY-25M 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
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
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
32
JDY-25M Super BLE Bluetooth Module
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
10.8 Application wiring diagram of one key binding and connect to the strongest signal slave
33
JDY-25M Super BLE Bluetooth Module
nearby
Bluetooth remote control application instruction mode 1 (LED light level flip)
Bluetooth transmitter configuration instruction Bluetooth receiver configuration instruction
AT+ROLE1 AT+ROLE0
AT+DEVCLSSF1 AT+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.
34
JDY-25M Super BLE Bluetooth Module
Key label detection is generally used in gate switch, check in, anti-loss and other fields.
When JDY-25M 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-25M 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-25M 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.
35