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.
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:
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.
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 | --- | --- |
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.
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".
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.
Configuration completed! Now let's plug the LC12S into the computer and try the effect!
Test program.
When sending, the small light on the LC12S module lights up, indicating that the LC12S is working.
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.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet