红水杯

"Successful test" LC12S wireless transceiver module

 
Overview

original intention

When we burn programs, we may move the development board around. Is there any way for us to enable the development board to wirelessly burn programs? (However, it eventually overturned.

Module introduction

Use standard TTL level UART serial port

Half-duplex communication, strong anti-interference ability

2.4GHz ISM band, no application required for use

Maximum output power 12dBm, receiving sensitivity -95dBm, transmitting working current 40mA@12dBm, receiving working current 24mA, sleep current 3.5uA

The working frequency can be set, and multiple modules are frequency division multiplexed without interfering with each other.

Communication protocol conversion and RF transceiver switching are completed automatically, without user intervention, simple and easy to use

3D preview of the board:

image.png

Recommended process for circuit boards

Since the USB interface requires a thickness of 2.0mm, it is recommended to use  the LC12S wireless transceiver module + gasket to export the Gerber file, and select a board thickness of 1.0mm when placing an order.

Debugging method

After power-on, when the CS pin is connected to low level, it works. The SET pin is the parameter flag bit. Pulling it low or shorting it to ground can switch the module to the parameter configuration mode. The pin is set when the pin is low level. The TXD and RXD pins Works at high level.

Once entering the setting state, the SET pin configuration must be low level, the CS pin must be connected to low level, and the serial port settings must be data bits 8, baud rate 9600, parity bit N, stop bit 1, and air rate 1Mbps .

Data Format:

The host sends: 0xaa+0x5a+module ID+network ID (the ID of the transmitter and the receiver must be the same)+0x00+RF transmit power+0x00+serial port rate+0x00+RF channel selection+0x00+0x00+0x12 (byte length)+0x00+ and check byte

For example:

Host sends: AA5A22331122000000040064000000120006

Referring to the following data table, the above configuration parameters set the wireless module to:

RF transmit power: 12dbm

Serial port rate: 9600bps

RF channel: 100

Module ID: 0x2233

Sum check byte: 06

Return data: AA5B22331122000000040064000000120007

For specific values, please set the corresponding parameters according to your own needs.

Parameter setting table:

parameter set up
1 0xaa (command byte)
2 0x5a (command byte)
3,4 Module ID 2Byte
5,6 Network ID 2Byte
7 Reserved, must be 0x00
8 RF power 1Byte (0~14)
9 Reserved must be 0x00
10 Baud rate 1Byte (0~6)
11 Reserved must be 0x00
12 RF channel 1Byte(0~127)
13,14 Reserved must be 0x0000
15 Reserved must be 0x00
16 Byte length 1Byte (0x12)
17 Reserved must be 0x00
18 Sum check byte 1Byte Sum check byte = accumulated bytes of all parameters

Parameter configuration form:

parameter RF power parameter baud rate
0 12dbm 0 600bps
1 10dbm 1 1200bps
2 9dbm 2 2400bps
3 8dbm 3 4800bps
4 3dbm 4 9600bps
5 6dbm 5 19200bps
6 0dbm 6 38400bps
7 -2dbm --- ---
8 -5dbm --- ---
9 -10dbm --- ---
10 -15dbm --- ---
11 -20dbm --- ---
12 -25dbm --- ---
13 -30dbm --- ---
14 -35dbm --- ---

Complete tutorial on module configuration

With my efforts, the LC12S module is finally completed! Below is a tutorial to share with you.

First, connect the LC12S module to the computer and ground the SET pin (the fourth pin), as shown in the figure. LC12S4GND.png Then proceed with configuration. During the configuration process, make sure that the SET pin is reliably grounded! After entering the configuration mode, the module will use hexadecimal + 9600 bps to transmit data. It cannot be configured using other configurations. The software I use here is "Serial Port Debugging Assistant". LC12STTL.png If the module does not return after the configuration information is sent, it may be that the configuration information is wrong, the check bit is wrong, or the connection is unstable. You need to re-create the configuration information or check the module connection!

According to the above method, we can desolder the first module for Arduino use, and solder the other module for computer sending and receiving, as shown in the picture. LC12SM.png Configuration completed! Now let's plug the LC12S into the computer and try the effect! TESTPR.png Test program. LC12STES.png When sending, the small light on the LC12S module lights up, indicating that the LC12S is working. 19200.png Open the serial port monitor to view the effect (19200bps)Large rollover scene

Later I discovered that it can only run stably at 9600bps at most, and cannot run at 115200bps at all. It cannot be used to download programs remotely...

Therefore, it can only be used for communication between the development board and the computer, and between the development board and the development board. Let me share this information with everyone.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-24 15:06:05

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号