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 communicate with the serial driver of raspberry pie

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article introduces how to configure the serial port driver of raspberry pie. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.

Edit sudo nano / boot/config.txt at the end of the document and add a statement:

Dtoverlay=pi3-miniuart-bt

2. Next, we edit the document / boot/cmdline.txt with the following command:

Sudo nano / boot/cmdline.txt

Completely replace the contents of the document with the following (to delete redundant statements in the original document):

Dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

Here we should note that the replacement is for setting up a universal serial port, which actually turns off serial console, because only in this way can the serial port become universal, that is, raspberry pie can be connected to external devices.

3 reboot

4 install pi4j and wiringpi

Offline installation: performing mirroring

Sudo dpkg-I pi4j-1.2-SNAPSHOT.deb

Install wiringpi:

Decompress: tar-zxvf wiringPi-96344ff.tar.gz

Cd wiringPi-96344ff

. / build

This is the end of the communication on how to configure the serial port driver of raspberry pie. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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