Chirpstack 패킷 멀티플렉서를 사용하면 서버를 업 링크로만 표시하는 옵션을 사용하여 Semtech UDP 패킷 포워드 프로토콜을 여러 서버에 사용하여 게이트웨이를 연결할 수 있습니다.
Chirpstack은 Debian / Ubuntu Apt 패키지 시스템과 호환되는 저장소를 제공합니다. 먼저 dirmngr 과 apt-transport-https 설치되어 있는지 확인하십시오.
sudo apt install apt-transport-https dirmngr
이 새로운 저장소의 키를 설정하십시오.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1CE2AFD36DBCCA00
새 파일을 작성하여 리포지토리 목록에 저장소를 추가하십시오.
sudo echo "deb https://artifacts.chirpstack.io/packages/4.x/deb stable main" | sudo tee /etc/apt/sources.list.d/chirpstack.list
APT 패키지 캐시를 업데이트하고 chirpstack-packet-multiplexer 설치하십시오.
sudo apt update
sudo apt install chirpstack-packet-multiplexer
설치를 완료하려면 /etc/chirpstack-packet-multiplexer/chirpstack-packet-multiplexer.toml 에있는 구성 파일을 업데이트하고 서비스를 시작하십시오.
sudo systemctl restart chirpstack-packet-multiplexer
Chirpstack 패킷 멀티플렉서 구축이 필요합니다.
NIX는 지역 개발 및 이진을 만드는 데 사용되는 개발 환경을 설정하는 데 사용됩니다.
Nix가 설치되지 않았고 설치하지 않으려면 shell.nix 에 나열된 패키지를 수동으로 설치하여 개발 환경을 복제 할 수도 있습니다.
Docker는 Cross-R에서 크로스 컴파일 및 일부 make 명령에 사용됩니다.
개발 쉘을 시작하려면 다음 명령을 실행하십시오.
nix-shell테스트를 실행하려면 다음 명령을 실행하십시오.
make testChirpstack 패킷 멀티플렉서 바이너리 및 패키지를 구축하려면 다음 명령을 실행하십시오.
# Only build binaries
make build
# Build binaries + distributable packages.
make dist chirpstack-packet-multiplexer --help 실행하십시오.
chirpstack-packet-multiplexer configfile 실행 다음 구성 템플릿을 반환합니다.
# Logging settings.
[ logging ]
# Log level.
#
# Valid options are:
# * TRACE
# * DEBUG
# * INFO
# * WARN
# * ERROR
level = " info "
# Multiplexer configuration.
[ multiplexer ]
# Interface:port of UDP bind.
#
# This this is the interface:port on which the Multiplexer will receive
# data from the gateways.
bind = " 0.0.0.0:1700 "
# Servers to forward gateway data to.
#
# Example configuration:
# [[multiplexer.server]]
# # Hostname:port of the server.
# server="example.com:1700"
# # Only allow uplink.
# #
# # If set to true, any downlink will be discarded.
# uplink_only=false
# # Gateway ID prefix filters.
# #
# # If not set, data of all gateways will be forwarded. If set, only data
# # from gateways with a matching Gateway ID will be forwarded.
# #
# # Examplex:
# # * "0102030405060708/32": Exact match (all 32 bits of the filter must match)
# # * "0102030400000000/16": All gateway IDs starting with "01020304" (filter on 16 most significant bits)
# gateway_id_prefixes=[]
# Monitoring configuration.
[ monitoring ]
# Interface:port.
#
# If set, this will enable the monitoring endpoints. If not set, the endpoint
# will be disabled. Endpoints:
#
# * /metrics: Exposes Prometheus metrics.
bind = " " services:
chirpstack-packet-multiplexer:
image: chirpstack/chirpstack-packet-multiplexer:4.0.0-test.2
command: -c /etc/chirpstack-packet-multiplexer/chirpstack-packet-multiplexer.toml
ports:
- 1700:1700/udp
volumes:
- ./config:/etc/chirpstack-packet-multiplexer
위의 예는 config chirpstack-packet-multiplexer.toml 파일이 포함 된 로컬 구성 디렉토리가 있다고 가정합니다.
gateway_id_prefixes 비어있는 경우 모든 게이트웨이를 전달하십시오.이 릴리스는 Lora Packet Multiplexer를 Chirpstack Packet Multiplexer로 변경했습니다. 자세한 내용은 이름 바꾸기 공지 사항을 참조하십시오.
Chirpstack 패킷 멀티플렉서는 MIT 라이센스에 따라 배포됩니다. 라이센스도 참조하십시오.