首页 > 其他分享 >两个Lora 模块通信

两个Lora 模块通信

时间:2023-04-28 13:33:45浏览次数:44  
标签:strawberry 通信 band program frequency 模块 serial Lora port


Software preparation

https://www.waveshare.net/w/upload/6/68/SX126X_LoRa_HAT_Code.zip

Hardware connection

To remove M1 and M2, adjust the cap in B.

两个Lora 模块通信_物联网


Communication steps

After running the program, Raspberry Pi A will not move after running the program; Raspberry Pi B blindly presses S, please wait patiently for 10S-20S to receive temperature and other data

两个Lora 模块通信_sed_02

If Raspberry Pi A presses I, you need to enter parameters such as address and frequency, for example, the default of the l routine:

0,868,hello

两个Lora 模块通信_sed_03

The other side will receive hello

Frequently Asked Questions

  1. The default frequency band of the sample program is 868. Is it OK to use the 433 frequency band? It can also be used, but the data of the 868 frequency band will be printed. It is recommended to change the corresponding code in the main.py file to the 433 frequency band, as shown in the following figure: Before the change

两个Lora 模块通信_Code_04

After the change

两个Lora 模块通信_sed_05


  1. Why did you not report an error after running the program, but did not print any information? Generally, it is a serial port setting problem. The default serial port used in the routine is ttyS0. If the strawberry pie uses other serial ports such as ttyAMA0, it can be confirmed with the following instructions: ls -l /dev/serial *

两个Lora 模块通信_Code_06


  1. Or the serial port is not opened (shell debugging serial port needs to be closed): sudo raspi-config Select Interface Options

两个Lora 模块通信_ide_07


NO before YES; Restart:

两个Lora 模块通信_Code_08


  1. What if you have used it on a windows computer and you can't get a strawberry pie?

The tuning cap used by the computer is different from the strawberry pie. Please change it to the tuning cap connection of the strawberry pie. See the starting picture for details;

In addition, if the computer may change the address of the module, it is recommended to use the computer configuration software to restore the module to factory settings, as shown in the following figure:

两个Lora 模块通信_ide_09


标签:strawberry,通信,band,program,frequency,模块,serial,Lora,port
From: https://blog.51cto.com/u_15438015/6233912

相关文章

  • Python-运行库报错“ImportError: DLL load failed: 找不到指定的模块。”
    1.看到这个报错的一瞬间,以为是Pycharm有问题,加上公司的电脑,对于2020以后的版本的不适用,以为是Pycharm需要有改动。但是大费周章(不断安装卸载Pycharm)以后,依旧没有任何的改变。百度以后,说是第三方库的某个模块没有,让卸载三方库,重新安装。尝试过以后没有用。2.思考了两天,突然想到,这......
  • Python3+WebSockets实现WebSocket通信
    一、说明1.1背景说明前段时间同事说云平台通信使用了个websocket的东西,今天抽空来看一下具体是怎么个通信过程。从形式上看,websocket是一个应用层协议,socket是数据链路层、网络层、传输层的抽像;从应用场合上看,websocket可以使用javascript实现,而socket不能用javascript实现(真......
  • 三菱Q02CPU 之 通信协议配置
     Work2编程软件中配置:线序参考手册 ......
  • Android Studio 运行报app未指定模块错误
    github上clone别人的项目,运行的时候报 app未指定模块综合网上的分析,应该是IDEA的一个bug。解决方法:1.setting.gradle文件里面最后一行,include‘:app’剪切掉;2.同步构建一下gradle;3.将剪切掉的一行重新粘贴回原文件;4.重新同步构建一下gradle;问题解决。......
  • Maven 搭建多模块企业级项目
    首先,前面几次学习已经学会了安装maven,如何创建maven项目等,最近的学习,终于有点进展了,搭建一下企业级多模块项目。好了,废话不多说,具体如下:首先新建一个maven项目,pom.xml的文件如下:搭建多模块项目,必须要有一个packaging为pom的根目录。创建好这个maven项目后,我们对着项目右键-->new输......
  • Python的OS模块分析文件路径层次信息——获取文件路径、全名(文件名+尾缀)
    Code:importosFilePath="/a/bb/ccc/dddd.png"FolderPath,FullFileName=os.path.split(FilePath)Name,Suffix=os.path.splitext(FullFileName)print("文件路径:{}\n文件全名:{}\n文件名:{}\n文件后缀:{}".format(FolderPath,FullFileName,Name,......
  • anyRTC的对讲融合通信指挥调度平台
    快对讲融合通信指挥调度平台是一套集音视频技术、数据业务、网络通信技术、GIS为一体的音视频实时交互平台,平台包含集群对讲、视频会议、视频监控、应急预案、广播等功能。采用领先的技术,建立集通信、指挥和调度于一体,高度智能化的综合指挥调度系统。视频介绍......
  • 微服务不是本地部署的最佳选择,不妨试试模块化单体
    微服务不能“包治百病”时下微服务是一个不错的架构,它具备模块化、可伸缩和高容错这些优点。许多公司都采用微服务架构并取得了巨大的成功,自然而然地,如果你正开始一个新项目,微服务似乎是最佳选择。然而,大多数采用微服务取得成功的公司并不是一开始就选择了这种架构。以Airbnb和Twit......
  • CellOracle | in silico gene perturbation | 新旧世代的交替
     目的:对我们的单细胞多组学数据作此分析,看那个de-diff的TF的敲除能够逆转分化方向。科研永远是追新者的天堂,不解释。 tutorial:Tutorial - ReadtheDocshttps://github.com/morris-lab/CellOracleDissectingcellidentityvianetworkinferenceandinsilicogenepe......
  • 第四节:组件通信剖析(父传子、子传父、非父子)、组件插槽的用法剖析
    一.        二.        三.         !作       者:Yaopengfei(姚鹏飞)博客地址:http://www.cnblogs.com/yaopengfei/声     明1:如有错误,欢迎讨论,请勿谩骂^_^。声     明2:原创博客请在转载......