Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Add a JSON-RPC query for LoRa region params. #1158

Merged
merged 1 commit into from Nov 3, 2021

Conversation

ke6jjj
Copy link
Contributor

@ke6jjj ke6jjj commented Nov 3, 2021

Add a JSON-RPC endpoint for querying LoRa region parameters to support manufacturer integration with PoC v11's dynamic (on-chain) region parameterization.

Copy link
Member

@madninja madninja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that looks very nice.. well done erlang @ke6jjj

@ke6jjj
Copy link
Contributor Author

ke6jjj commented Nov 3, 2021

When successful, this query returns a result which contains a JSON array of Channel Objects.

Channel Object

Attribute JSON type Description
channel_frequency_hz number Channel center frequency, in hertz.
bandwidth_hz number Channel bandwidth, in hertz.
max_eirp_cbm number Maximum permissible Effective Isotropic Radiated Power (EIRP), in centibels milliwatt (cBm). Divide by 10 to convert to decibels milliwatt (dBm).
spreading array List of spreading factors used on the channel and their maximum packet sizes. (See SpreadingFactor object).

SpreadingFactor object

Attribute JSON type Description
factor string Enumeration (one of) SF12, SF11, SF10, SF9, SF8, SF7; representing a LoRa spreading factor.
max_packet_size number Maximum permissible transmit packet size at this spreading factor, in bytes.

src/jsonrpc/miner_jsonrpc_ledger.erl Outdated Show resolved Hide resolved
Add a JSON-RPC endpoint for querying LoRa region parameters, in support
of PoC v11's dynamic (on-chain) region parameterization.
@madninja madninja merged commit c1acc24 into master Nov 3, 2021
@madninja madninja deleted the jsc/lora-regions-jsonrpc branch November 3, 2021 18:11
@ke6jjj ke6jjj restored the jsc/lora-regions-jsonrpc branch October 7, 2022 22:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants