JDY-41-Manual - Administrator
JDY-41-Manual - Administrator
2. Application scenarios
2.1:2.4G remote control
2.2:2.4G wireless serial port transparent transmission
2.3:Bluetooth to 2.4G or WiFi to 2.4G serial port communication
2.4:IO switch value control
2.5:2.4G toy control
2.6:Intelligent home control application
Note: IO control, switch value, remote control and other applications do not need external
MCU
3. Technical parameters
Type JDY-41
Color Green
Working frequency band 2.4G
Transmitting power Max 12db
Working temperature -40℃ - 80℃
Receiving sensitivity -96db
Transmission distance 160m
Working voltage 2.2V-3.6V
TX current 40mA
RX current 24mA
Sleep current 10uA
Communication interface Standard TTL serial port
4. JDY-40 Pin Definition
5. Dimension drawing
6. Instruction set
6.1 Reset instruction
ABE30D0A
Return:+OK\r\n
When configuring MCU or USB to serial port tool, the CS and SET pins must be pulled down, and
the default baud rate is 9600
Note: The configuration instruction should be issued in hexadecimal format
CS pin grounding and SET pin suspended means transparent transmission wiring application. MCU pin can
also pull SET pin up and CS pin low. Through the above pin configuration, the two modules can be transparently
transmitted. After the transparent transmission is completed, if you need deep sleep, directly pull up the CS pin,
and the module immediately enters deep sleep with a current of several UA.
Transparent transmission FAQ
1、Is there a byte limit for sending and receiving data through serial port?
A: There is no byte limit. Just write the data directly to the serial port.
2、In transparent transmission, we need to know whether the receiving end has received data and how to
configure it?
A: You just need to turn on the ack of the transmitter, so that each packet of data sent by the transmitter
can get a response.
3、When the distance is far, will the receiver receive the error code?
A: Receiving and sending data are checked, and random code data will not be received. When the air data
is disordered, the receiving end will not receive it.
Note: CS is grounded and SET pin is suspended during transparent transmission connection.
When configuring parameters, CS is grounded and SET pin is also grounded.
Device A (ID 11112222) needs to send AABBCCDDEE data instructions to target B device (ID 88889999)
as follows:
B1CA88889999AABBCCDDEE0D0A
Device A (ID 11112222) needs to broadcast AABBCCDDEE data instructions to all devices as follows:
B1CAFFFFFFFFAABBCCDDEE0D0A
Note: serial port designated address communication transmitter needs to know the device ID number of the
receiving end, specify the ID number for communication, use broadcast communication (target address is
FFFFFFFF), all devices under the same channel and wireless ID number can receive the broadcast data.
Device A (ID 11112222) needs to control GPIO1 and GPIO2 of target B device (ID 88889999) as high level,
and other GPIO as low level instruction: B1CA88889999E7FF3F
Device A (ID 11112222) needs to control GPIO7 and GPIO8 of target B device (ID 88889999) as high level,
and other GPIO as low level instruction: B1CA88889999E7FFF3
Note: the communication wiring diagram of specified address of serial port is the same as that of
configuration parameter wiring diagram, CS and set pins need to be connected to low level.
In particular, the serial port instruction for querying device ID is: F2AD0D0A
7.4 MCU serial port receiving remote control key value circuit diagram
A remote control: SW1-SW8 Press to send data. Sleep immediately after the key is released, with several uA
current. The remote control CLSS type needs to be configured to C0 or C1.
B device Serial port MCU receives the key value of remote control: CLSS type needs to be configured to A0
transparent transmission type (SET suspend or pull up, CS grounded)
Format description of key value received by receiver in transmitter C0 mode
When A remote control key SW8 is released, B receives data through tansparent transmission
Receive data: DD A3 37 55 06 8A 03 03 03 03 03 03 03 01
DD A3 indicates data head
37 55 06 8A indicates the remote control device ID number of the sender
03 03 03 03 03 03 03 indicates SW1, SW2, SW3, SW4, SW5, SW6, SW7 keys have no action
01 indicates the SW8 key is released
When A remote control key SW1 is released, B receives data through transparent transmission
Receive data: DD A3 37 55 06 8A 01 03 03 03 03 03 03 03
DD A3 indicates data head
37 55 06 8A indicates the remote control device ID number of the sender
01 indicates SW1 key is released
03 03 03 03 03 03 03 indicates SW2, SW3, SW4, SW5, SW6, SW7 keys have no action
Note: The CLSS at the transmitter end of the remote control should be C1, and the CLSS at the receiver end
should be A0. When configuring, the CS and SET pins should be pulled down. After configuring the CLSS at the
receiver and transmitter, the CS and SET pins at the transmitter end do not need to be grounded, and they can be
suspended directly. The CS pin at the receiving end needs to be grounded, SET pin suspended.
7.5 Wiring diagram of IO switch value control of non learning remote control
A represents the transmitter of the remote control. The function is very simple. Press the button to send the key
value.
B represents the receiver of the remote control. We will focus on the device B.
Example of B receiver CLSS configured to C2 function
When SW1-SW8 of remote control A is pressed, the corresponding GPIO1- GPIO8 of B receiver
outputs low level,
When SW1-SW8 of remote control A is released, the corresponding GPIO1- GPIO8 of B receiver
outputs high level,
Note: The LED lamp level at the receiving end is synchronized with the IO level of the remote control
key.
7.6 Wiring diagram of non learning remote control with LED to indicate IO switch value control
A represents the transmitter of the remote control. The function is very simple. Press the button to send the key
value.
B represents the receiver of the remote control. We will focus on the device B.
Example of B receiver CLSS configured to C2 function
When SW1-SW7 of remote control A is pressed, the corresponding GPIO1- GPIO7 of B receiver
outputs low level,
When SW1-SW7 of remote control A is released, the corresponding GPIO1- GPIO7 of B receiver
outputs high level,
Note: The LED lamp level at the receiving end is synchronized with the IO level of the remote control key.
Note: The CLSS at the transmitter end of the remote control should be C0, and the CLSS at the receiver end
should be C2, C3 or C4. After configuring the CLSS at the receiver and transmitter, the CS and SET pins do not
need to be grounded, and they can be suspended directly.
7.7 IO switch value control wiring diagram of learning remote control
A represents the transmitter (CLSS is C1). The function is very simple. Press the key to send the
key value.
B represents for learning receiver(CLSS should be configured to C5 or C6 or C7). We will focus on
the device B.
When the SW9 learning switch at the receiving end is pressed, it means that the learning mode is
entered. At this time, remote control B can learn the ID of transmitter A after pressing the key of
remote controller A. At this time, after releasing the SW9 switch (switch off), transmitter A can
control the GPIO pin level of receiver B.
After the above steps, the button of transmitter A can control the GPIO pin level of B receiver.
1: Reset instruction
2: Read version number
3: Configuration parameter
4: Read parameters
5: Serial port designated address communication
6: Configuration settings ID
7: Read device ID
Note: Configuration instructions are issued in hexadecimal format.
The function of device ID is used to know the ID number of the target device before communicating with the
specified address of serial port. The above is the reading method of device ID number
Example
Device A (ID 11112222) needs to send AABBCCDDEE data instructions to target B device (ID 11223345)
as follows:
B1CA11223345AABBCCDDEE0D0A
Device A (ID 11112222) needs to broadcast 11223345 data instructions to all devices as follows:
B1CAFFFFFFFF112233450D0A