lora-transmit/README.md

49 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2023-05-11 20:53:43 +03:00
# LoRaTransmit
2023-05-12 02:04:15 +03:00
2023-05-12 15:44:29 +03:00
Simple commandline raw LoRa packet transmitter for [RNode](https://unsigned.io/articles/2023_01_16_The_New_RNode_Ecosystem_Is_Here.html) hardware.
It's meant to be complementary to the packet sniffer [LoRaMon](https://github.com/markqvist/LoRaMon) and uses the latest [Python Module](https://github.com/markqvist/RNode_Firmware/tree/master/Python%20Module) that comes with the [RNode Firmware](https://github.com/markqvist/RNode_Firmware).
2023-05-12 02:04:15 +03:00
2023-05-28 22:02:51 +03:00
## Install
```
$ pip install loratransmit
```
2023-05-12 02:04:15 +03:00
## Usage
provide payload as command line argument or via pipe
2023-05-12 15:45:47 +03:00
```
2023-05-12 02:04:15 +03:00
usage: loratransmit [-h] [--freq Hz] [--bw Hz] [--txp dBm] [--sf factor]
[--cr rate]
[port] [payload]
LoRa packet transmitter for RNode hardware.
positional arguments:
port Serial port where RNode is attached
payload The payload to be transmitted
options:
-h, --help show this help message and exit
--freq Hz Frequency in Hz
--bw Hz Bandwidth in Hz
--txp dBm TX power in dBm
--sf factor Spreading factor
--cr rate Coding rate
2023-05-12 15:44:29 +03:00
```
## Example
Payload passed as argument
2023-05-12 15:45:47 +03:00
```
2023-05-28 22:02:51 +03:00
$ loratransmit --freq 917500000 /dev/ttyACM0 "Hello World"
2023-05-12 15:44:29 +03:00
```
Payload passed through pipe
2023-05-12 15:45:47 +03:00
```
2023-05-28 22:02:51 +03:00
$ echo "Hello World" | loratransmit --freq 917500000 /dev/ttyACM0
2023-05-12 02:04:15 +03:00
```