LORA local network communication, upload to Alibaba Cloud, STM32F103 series

Recently, I learned LORA module network communication, let's review the implementation process:

First of all, the overall implementation idea is that one LORA module is used as the master node, and the other two modules are used as sub-nodes for network communication, using directional transmission mode, and host rotation training for network communication. (Reason: The address and channel of the directional transmission module are variable, and the host rotation training network is stable, and it is not easy to conflict)

                                                             Host rotation training communication diagram

The specific program writing idea is that first, the master sends 1 to the slave No. 1 according to the module address. After slave 1 receives the command from the master, it uploads the data to the master, and the master trains the data of other slaves in the same way, so as to circulate.

Main program display:

1. The host sends commands to the slave

2. The slave receives the command and sends data to the host

3. The master receives data from the slave

So far, we have basically completed the local networking communication of the LORA module.

Show results:

Next, go to the next step to upload data to the cloud:

I chose Alibaba Cloud here, the overall idea block diagram:

 

I will not show the specific program implementation, there are many on the Internet.

Show results:

All the codes will be uploaded to my own resources later, and you can download them if you need them. The program has been verified and passed. It uses the punctual atom STM32F103 series, which can be realized only by changing the pins. No follow-up is provided. Do not download if there is no stm32 single-chip microcomputer and related foundation. .

Data directory:

 

At present, Android studio is being used to write the APP docking with Aliyun, and complete the whole set of basic full-stack communication of the Internet of Things. After all, being able to write mobile APP is very important for the communication of the Internet of Things. It is also a manifestation of personal ability. After writing, the source code will also be uploaded to my own resources, please pay attention if you need it!

Guess you like

Origin blog.csdn.net/th971212/article/details/124663310