# SX1278 Compatible Radio Device Tree
## Required properties:
- compatible: should be "semtech,sx1276", "semtech,sx1277",
"semtech,sx1277" or "semtech,sx1279" depends on your
transceiver board
- spi-max-frequency: maximal bus speed, should be set something under or
equal 10000000 Hz
- reg: the chipselect index
- clock-frequency: the external crystal oscillator frequency in Hz of the
transceiver
- center-carrier-frq: the RF center carrier frequency in Hz
## Optional properties:
- rf-bandwidth: the RF bandwidth in Hz
- minimal-RF-channel: the minimal RF channel number and the value must be with
prefix "/bits/ 8" because of being a byte datatype
- maximum-RF-channel: the maximum RF channel number and the value must be with
prefix "/bits/ 8" because of being a byte datatype
- spreading-factor: the spreading factor of Chirp Spread Spectrum modulation
## Example:
sx1278@0 {
compatible = "semtech,sx1278";
spi-max-frequency = <15200>;
reg = <0>;
clock-frequency = <32000000>;
center-carrier-frq = <434000000>;
minimal-RF-channel = /bits/ 8 <11>;
maximum-RF-channel = /bits/ 8 <11>;
};
## Build Device Tree Overlay
1. Build: `make`
2. Install the DT overlay: `make install` or copy the built DT overlay to
`/boot/overlays/rpi-lora-spi.dtbo` on the target board manually. (The
system's DT overlay folder path may be variant. It is according to the
distribution's loader.)
3. Make sure the SPI interface and DT overlay is enabled. For example, check
the [/boot/config.txt](https://www.raspberrypi.org/documentation/configuration/config-txt/) in Raspberry Pi.
PS. [Device Trees, overlays, and parameters](https://www.raspberrypi.org/documentation/configuration/device-tree.md)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
这是一个 LoRa 设备驱动程序,作为具有 IEEE 802.15.4 MAC 接口的 Linux 内核模块。 兼容SX1276/77/78/79芯片 文件夹介绍 LoRa:LoRa 源代码和构建文件。 dts-overlay:设备树覆盖板和操作系统。 test-application:用于测试或演示的用户空间应用程序。
资源推荐
资源详情
资源评论
收起资源包目录
LoRa-linux-module.zip (10个子文件)
LoRa-linux-module
LoRa-master
test-application
Makefile 121B
server.c 3KB
client.c 2KB
README.md 2KB
dts-overlay
Makefile 329B
rpi-lora-spi-overlay.dts 768B
README.md 2KB
README.md 801B
LoRa
Makefile 554B
sx1278.c 39KB
共 10 条
- 1
TD程序员
- 粉丝: 2416
- 资源: 437
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页