Skip to content

Commit

Permalink
Merge pull request RT-Thread#1035 from Forest-Rain/master
Browse files Browse the repository at this point in the history
add lora-gw-driver ,lora-pkt-sniffer,lora-pkt-fwd software package
  • Loading branch information
Guozhanxin authored Sep 27, 2021
2 parents 0cac208 + ee7067b commit 20200bf
Show file tree
Hide file tree
Showing 10 changed files with 537 additions and 7 deletions.
2 changes: 2 additions & 0 deletions iot/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,7 @@ source "$PKGS_DIR/packages/iot/agile_modbus/Kconfig"
source "$PKGS_DIR/packages/iot/agile_ftp/Kconfig"
source "$PKGS_DIR/packages/iot/EmbeddedProto/Kconfig"
source "$PKGS_DIR/packages/iot/rt-link_hw/Kconfig"
source "$PKGS_DIR/packages/iot/lora_pkt_fwd/Kconfig"
source "$PKGS_DIR/packages/iot/lora_pkt_sniffer/Kconfig"
source "$PKGS_DIR/packages/iot/hm/Kconfig"
endmenu
98 changes: 98 additions & 0 deletions iot/lora_pkt_fwd/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@

# Kconfig file for package lora_pkt_fwd
menuconfig PKG_USING_LORA_PKT_FWD
bool "lora_pkt_fwd:lora(wan) packet forward based on Semtech GWMP protocol(UDP)"
default n

if PKG_USING_LORA_PKT_FWD

config PKG_LORA_PKT_FWD_PATH
string
default "/packages/iot/lora_pkt_fwd"

config LORA_PKT_FWD_USING_PROTOCOL_SEMTECH_GWMP
bool
default y

config LORA_PKT_FWD_USING_MULTI_CHANNEL_MODE
bool
default y
select RT_USING_SAL
select RT_USING_PTHREADS

config PKG_USING_LORA_GW_DRIVER_LIB
bool "Use lora-gw-driver-lib"
default y

config LORA_PKT_FWD_USING_PARAMS_CONF_BY_JSON
bool "Use Gateway JSON Configuration File"
default n

choice
prompt "Select LoRaWAN Network Server"
default LORA_PKT_FWD_USING_PROTOCOL_LIERDA_UNICORE
help
Select LoRaWAN Network Server(GWMP)

config LORA_PKT_FWD_USING_PROTOCOL_LIERDA_UNICORE
bool "Lierda Unicore"

config LORA_PKT_FWD_USING_NETWORK_SERVER_TTN
bool "TTN"

config LORA_PKT_FWD_USING_NETWORK_SERVER_TENCENT
bool "Tencent iot-explorer"
endchoice

menu "Enable LoRa Packet Forward Debug"
config LORA_PKT_FWD_DEBUG
bool "Enable lora-pkt-fwd Debug"
default n

if LORA_PKT_FWD_DEBUG
config LPF_DBG_GWMP_CONFIG
bool "Enable LPF GWMP Debug"
default y
config LPF_DBG_GWMP
int
default 1 if LPF_DBG_GWMP_CONFIG

config LPF_DBG_SHELL_CONFIG
bool "Enable LPF Shell Debug"
default y
config LPF_DBG_SHELL
int
default 1 if LPF_DBG_SHELL_CONFIG

config LPF_DBG_PARAMS_CONF_CONFIG
bool "Enable LPF Params Config Debug"
default n
config LPF_DBG_PARAMS_CONF
int
default 1 if LPF_DBG_PARAMS_CONF_CONFIG

config LPF_DBG_USING_JIT_QUEUE
bool "Enable Jit Queue Debug"
default n
endif
endmenu

choice
prompt "Version"
default PKG_USING_LORA_PKT_FWD_LATEST_VERSION
help
Select the package version

config PKG_USING_LORA_PKT_FWD_V100
bool "v1.0.0"

config PKG_USING_LORA_PKT_FWD_LATEST_VERSION
bool "latest"
endchoice

config PKG_LORA_PKT_FWD_VER
string
default "v1.0.0" if PKG_USING_LORA_PKT_FWD_V100
default "latest" if PKG_USING_LORA_PKT_FWD_LATEST_VERSION
endif

34 changes: 34 additions & 0 deletions iot/lora_pkt_fwd/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "lora_pkt_fwd",
"description": "lora_pkt_fwd is lora(wan) packet forward based on Semtech GWMP",
"description_zh": "lora_pkt_fwd实现基于Semtech GWMP协议的LoRaWAN协议包转发",
"enable": "PKG_USING_LORA_PKT_FWD",
"keywords": [
"lora_pkt_fwd"
],
"category": "iot",
"author": {
"name": "forest-rain",
"email": "[email protected]",
"github": "forest-rain"
},
"license": "Apache-2.0",
"repository": "https://github.com/Forest-Rain/lora-pkt-fwd",
"icon": "unknown",
"homepage": "https://github.com/Forest-Rain/lora-pkt-fwd#readme",
"doc": "https://github.com/Forest-Rain/lora-pkt-fwd/tree/master/docs",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/Forest-Rain/lora-pkt-fwd/archive/v1.0.0.zip",
"filename": "lora-pkt-fwd-1.0.0.zip",
"VER_SHA": "705ddaec18f36093a615bc545448eab393af9cf2"
},
{
"version": "latest",
"URL": "https://github.com/forest-rain/lora-pkt-fwd.git",
"filename": "Null for git package",
"VER_SHA": "fill in latest version branch name, such as master"
}
]
}
79 changes: 79 additions & 0 deletions iot/lora_pkt_sniffer/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

# Kconfig file for package lora_pkt_sniffer
menuconfig PKG_USING_LORA_PKT_SNIFFER
bool "lora_pkt_sniffer is a sniffer tool of lora(wan) packets."
default n

if PKG_USING_LORA_PKT_SNIFFER

config PKG_LORA_PKT_SNIFFER_PATH
string
default "/packages/iot/lora_pkt_sniffer"

config LORA_PKT_SNIFFER_USING_WIRESHARK_MODE
bool "Enable Wireshark Mode"
default n

config PKG_USING_LORA_GW_DRIVER_LIB
bool "Use lora-gw-driver-lib"
default y

menu "Select lora-pkt-sniffer Debug"
config LORA_PKT_SNIFFER_DEBUG
bool "Enable lora-pkt-sniffer Debug"
default n

if LORA_PKT_SNIFFER_DEBUG
config LPS_DEBUG_SNF_CONFIG
bool "Enable LPS Sniffer Debug"
default n
config LPS_DBG_SNF
int
default 1 if LPS_DEBUG_SNF_CONFIG
default 0 if !LPS_DEBUG_SNF_CONFIG

config LPS_DEBUG_SHELL_CONFIG
bool "Enable LPS Shell Debug"
default n
config LPS_DBG_SHELL
int
default 1 if LPS_DEBUG_SHELL_CONFIG
default 0 if !LPS_DEBUG_SHELL_CONFIG

config LPS_DEBUG_NVM_CONFIG
bool "Enable LPS NVM Debug"
default n
config LPS_DBG_NVM
int
default 1 if LPS_DEBUG_NVM_CONFIG
default 0 if !LPS_DEBUG_NVM_CONFIG

config LPS_DEBUG_UDP_CONFIG
bool "Enable LPS UDP Debug"
default n
config LPS_DBG_UDP
int
default 1 if LPS_DEBUG_UDP_CONFIG
default 0 if !LPS_DEBUG_UDP_CONFIG
endif
endmenu

config PKG_LORA_PKT_SNIFFER_VER
string
default "v1.0.0" if PKG_USING_LORA_PKT_SNIFFER_V100
default "latest" if PKG_USING_LORA_PKT_SNIFFER_LATEST_VERSION

choice
prompt "Version"
default PKG_USING_LORA_PKT_SNIFFER_LATEST_VERSION
help
Select the package version

config PKG_USING_LORA_PKT_SNIFFER_V100
bool "v1.0.0"

config PKG_USING_LORA_PKT_SNIFFER_LATEST_VERSION
bool "latest"
endchoice
endif

34 changes: 34 additions & 0 deletions iot/lora_pkt_sniffer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "lora_pkt_sniffer",
"description": "lora_pkt_sniffer is a sniffer tool of lora(wan) packet",
"description_zh": "lora_pkt_sniffer是一个lora(wan)数据包的抓包工具",
"enable": "PKG_USING_LORA_PKT_SNIFFER",
"keywords": [
"lora_pkt_sniffer"
],
"category": "iot",
"author": {
"name": "forest-rain",
"email": "[email protected]",
"github": "forest-rain"
},
"license": "Apache-2.0",
"repository": "https://github.com/Forest-Rain/lora-pkt-sniffer",
"icon": "unknown",
"homepage": "https://github.com/Forest-Rain/lora-pkt-sniffer#readme",
"doc": "https://github.com/Forest-Rain/lora-pkt-sniffer/tree/master/docs",
"site": [
{
"version": "v1.0.0",
"URL": "https://github.com/Forest-Rain/lora-pkt-sniffer/archive/v1.0.0.zip",
"filename": "lora-packet-sniffer-1.0.0.zip",
"VER_SHA": "c2f36a5a4a04478601ac14ed9fc006244dba3936"
},
{
"version": "latest",
"URL": "https://github.com/forest-rain/lora-pkt-sniffer.git",
"filename": "lora-packet-sniffer for git package",
"VER_SHA": "fill in latest version branch name, such as master"
}
]
}
1 change: 1 addition & 0 deletions peripherals/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,5 @@ source "$PKGS_DIR/packages/peripherals/mcp23008/Kconfig"
source "$PKGS_DIR/packages/peripherals/bluetrum_sdk/Kconfig"
source "$PKGS_DIR/packages/peripherals/Misaka_AT24CXX/Kconfig"
source "$PKGS_DIR/packages/peripherals/Misaka_RGB_Bling/Kconfig"
source "$PKGS_DIR/packages/peripherals/lora_gw_driver_lib/Kconfig"
endmenu
Loading

0 comments on commit 20200bf

Please sign in to comment.