Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to run RT-Thread on a raspberry pie and connect to the network through esp8266

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to run RT-Thread on the raspberry pie and connect to the network through esp8266, which has a certain reference value. Interested friends can refer to it. I hope you can learn a lot after reading this article.

Raspberries are sent to run RT-Thread and connect to the network through esp8266

1. Description

The use of the Internet on raspberry pie is also a very important feature, with the Internet, you can expand on the raspberry pie more rich features. This paper is mainly through the raspberry pie to connect the 8266 module, using the AT network framework of rt-thread to achieve a function that can be connected to wifi.

two。 Realization principle

8266 communicates with raspberry pie through serial port, so raspberry pie first needs to implement serial port function.

There are six uart available on raspberry pie 4, uart0 (AUX), and the remaining five PL011 serial ports.

Here I use UART4 connection serial port module, and the default serial port is used as shell for information display.

The following is a picture of the pins of raspberry pie and 8266:

Raspberry pie pin 8266 indicates that GPIO9URXD raspberry pie RX--8266TXGPIO8UTXD raspberry pie TX--8266RXGNDGNDGND3V3VCCVCC3V3CH_PD8266 will work properly

After the continuous completion, the software configuration is carried out.

3. Software configuration

Currently, 4-32 bits of raspberry pie are used for testing.

Https://github.com/RT-Thread/rt-thread/tree/master/bsp/raspberry-pi/raspi4-32

Because of the perfect support for 8266 WIFI on RT-Thread, you can configure it as follows:

Type menuconfig in the env tool, and then set

RT-Thread Components → Network → AT commands

As shown in the following figure

Then set up network tools

RT-Thread Components → Network → Network interface device

Then set up

RT-Thread online packages → IoT-internet of things → AT DEVICE: RT-Thread AT component porting or samples for different device → Espressif ESP8266

Just set the network and password.

When you're done, type pkgs-- update, and then you can compile the firmware and put it on the raspberry pie.

4. Function test

After the configuration is complete, you can test the network.

As you can see, the 8266 WIFI has been connected, but the AT+CIPDNS_CUP command does not, because my 8266 firmware version is too old and needs to be updated, but it does not affect the use.

You can ping Baidu.

At this time, you can access the Internet normally.

Thank you for reading this article carefully. I hope the article "how to run RT-Thread on a raspberry pie and connect to the network through esp8266" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report