Thanks for your quik reply.
No, I did not see any subscribing log in bridge. I could see only subscribing to rx and stats log in loraserver, while nothing subscribe to tx. In the log of lora-app-server, there was one as âmsg=âhandler/mqtt: subscribling to tx topicâ topic=âapplication/+/node/+/txââ The whole log is listed at last.
I installed the bridge and loraserver with command âapt-get install xxxâ, and changed little on the configuration files, which are both listed below.
logs from gateway bridge(/var/log/lora-gateway-bridge/lora-gateway-bridge.log):
time=â2017-12-18T14:07:54+08:00â level=info msg=âstarting LoRa Gateway Bridgeâ docs=âhttps://docs.loraserver.io/lora-gateway-bridge/â version=2.1.5
time=â2017-12-18T14:07:54+08:00â level=info msg=âbackend: connecting to mqtt brokerâ server=âtcp://127.0.0.1:1883â
time=â2017-12-18T14:07:54+08:00â level=info msg=âgateway: starting gateway udp listenerâ addr=0.0.0.0:1700
time=â2017-12-18T14:07:54+08:00â level=info msg=âbackend: connected to mqtt brokerâ
time=â2017-12-18T14:10:38+08:00â level=info msg=âgateway: received udp packet from gatewayâ addr=10.0.10.31:1929 protocol_version=1 type=PushData
time=â2017-12-18T14:10:38+08:00â level=info msg=âgateway: rxpk packet receivedâ addr=10.0.10.31:1929 data=âAAEBAQEBAQEBAQEBAQEBAQEVAFlgX9s=â mac=0102030405060708
time=â2017-12-18T14:10:38+08:00â level=info msg=âbackend: publishing packetâ topic=âgateway/0102030405060708/rxâ
time=â2017-12-18T14:10:38+08:00â level=info msg=âgateway: sending udp packet to gatewayâ addr=10.0.10.31:1929 protocol_version=1 type=PushACK
logs from loraserver(/var/log/loraserver/loraserver.log):
time=â2017-12-18T14:08:16+08:00â level=info msg=âstarting LoRa Serverâ band=âUS_902_928â docs=âhttps://docs.loraserver.io/â net_id=010203 version=0.22.1
time=â2017-12-18T14:08:16+08:00â level=info msg=âsetup redis connection poolâ url=âredis://localhost:6379â
time=â2017-12-18T14:08:16+08:00â level=info msg=âconnecting to postgresqlâ
time=â2017-12-18T14:08:16+08:00â level=info msg=âbackend/gateway: connecting to mqtt brokerâ server=âtcp://localhost:1883â
time=â2017-12-18T14:08:16+08:00â level=info msg=âsetup application-server client poolâ ca_cert= tls_cert= tls_key=
time=â2017-12-18T14:08:16+08:00â level=info msg=âconfiguring join-serverâ ca_cert= server=âhttp://localhost:8003â tls_cert= tls_key=
time=â2017-12-18T14:08:16+08:00â level=info msg=âno network-controller configuredâ
time=â2017-12-18T14:08:16+08:00â level=info msg=âapplying database migrationsâ
time=â2017-12-18T14:08:17+08:00â level=info msg=âbackend/gateway: connected to mqtt serverâ
time=â2017-12-18T14:08:17+08:00â level=info msg=âbackend/gateway: subscribing to rx topicâ topic=âgateway/+/rxâ
time=â2017-12-18T14:08:17+08:00â level=info msg=âbackend/gateway: subscribing to stats topicâ topic=âgateway/+/statsâ
time=â2017-12-18T14:08:17+08:00â level=info msg=âmigrations appliedâ count=0
time=â2017-12-18T14:08:17+08:00â level=info msg=âstarting api serverâ bind=â0.0.0.0:8000â ca-cert= tls-cert= tls-key=
time=â2017-12-18T14:08:17+08:00â level=info msg=âstarting gateway api serverâ bind=â0.0.0.0:8002â ca-cert= tls-cert= tls-key=
time=â2017-12-18T14:10:38+08:00â level=info msg=âbackend/gateway: rx packet receivedâ
time=â2017-12-18T14:10:38+08:00â level=info msg=âpacket(s) collectedâ dev_eui=0101010101010101 gw_count=1 gw_macs=0102030405060708 mtype=JoinRequest
time=â2017-12-18T14:10:39+08:00â level=info msg=âdevice-session savedâ dev_addr=07cd3e0b dev_eui=0101010101010101
time=â2017-12-18T14:10:39+08:00â level=info msg=âdevice-activation createdâ dev_eui=0101010101010101 id=9
time=â2017-12-18T14:10:39+08:00â level=info msg=âbackend/gateway: publishing tx packetâ topic=âgateway/0102030405060708/txâ
logs from lora-app-server(/var/log/lora-app-server/lora-app-server.log):
time=â2017-12-18T14:08:57+08:00â level=info msg=âstarting LoRa App Serverâ docs=âhttps://docs.loraserver.io/â version=0.14.2
time=â2017-12-18T14:08:57+08:00â level=info msg=âconnecting to postgresqlâ
time=â2017-12-18T14:08:57+08:00â level=info msg=âsetup redis connection poolâ
time=â2017-12-18T14:08:57+08:00â level=info msg=âhandler/mqtt: connecting to mqtt brokerâ server=âtcp://localhost:1883â
time=â2017-12-18T14:08:57+08:00â level=info msg=âapplying database migrationsâ
time=â2017-12-18T14:08:57+08:00â level=info msg=âhandler/mqtt: connected to mqtt brokerâ
time=â2017-12-18T14:08:57+08:00â level=info msg=âmigrations appliedâ count=0
time=â2017-12-18T14:08:57+08:00â level=info msg=âstarting application-server apiâ bind=â0.0.0.0:8001â ca-cert= tls-cert= tls-key=
time=â2017-12-18T14:08:57+08:00â level=info msg=âstarting join-server apiâ bind=â0.0.0.0:8003â ca_cert= tls_cert= tls_key=
time=â2017-12-18T14:08:57+08:00â level=info msg=âstarting client api serverâ bind=â0.0.0.0:8080â tls-cert="/etc/lora-app-server/certs/http.pem" tls-key="/etc/lora-app-server/certs/http-key.pem"
time=â2017-12-18T14:08:57+08:00â level=info msg=âhandler/mqtt: subscribling to tx topicâ topic=âapplication/+/node/+/txâ
time=â2017-12-18T14:08:57+08:00â level=info msg=âregistering rest api handler and documentation endpointâ path="/api"
time=â2017-12-18T14:10:39+08:00â level=info msg=âjs: request receivedâ message_type=JoinReq receiver_id=0101010101010101 sender_id=010203 transaction_id=2442546319
time=â2017-12-18T14:10:39+08:00â level=info msg=âdevice-keys updatedâ dev_eui=0101010101010101
time=â2017-12-18T14:10:39+08:00â level=info msg=âdevice-activation createdâ dev_eui=0101010101010101 id=11
time=â2017-12-18T14:10:39+08:00â level=info msg=âhandler/mqtt: publishing join notificationâ topic=âapplication/1/node/0101010101010101/joinâ
time=â2017-12-18T14:10:39+08:00â level=info msg=âjs: sending responseâ message_type=JoinAns receiver_id=010203 result_code=Success sender_id=0101010101010101 transaction_id=2442546319
configuration file for lora-gateway-bridge:
###ip:port to bind the UDP listener to (default: â0.0.0.0:1700â)
UDP_BIND=0.0.0.0:1700
###mqtt server (e.g. scheme://host:port where scheme is tcp, ssl or ws) (default: âtcp://127.0.0.1:1883â)
MQTT_SERVER=tcp://127.0.0.1:1883
###mqtt server username (optional)
MQTT_USERNAME=
###mqtt server password (optional)
MQTT_PASSWORD=
###debug=5, info=4, warning=3, error=2, fatal=1, panic=0 (default: 4)
LOG_LEVEL=5
###skip the CRC status-check of received packets
SKIP_CRC_CHECK=true
configuration file for loraserver:
###network identifier (NetID, 3 bytes) encoded as HEX (e.g. 010203)
NET_ID=010203
###ism band configuration to use (options: AU_915_928, CN_470_510, EU_863_870, US_902_928)
BAND=US_902_928
###ca certificate used by the api server (optional)
CA_CERT=
###tls certificate used by the api server (optional)
TLS_CERT=
###tls key used by the api server (optional)
TLS_KEY=
###ip:port to bind the api server (default: â0.0.0.0:8000â)
BIND=0.0.0.0:8000
###redis url (e.g. redis://user:password@hostname:port/0) (default: âredis://localhost:6379â)
REDIS_URL=redis://localhost:6379
###postgresql dsn (e.g.: postgres://user:password@hostname/database?sslmode=disable)
#POSTGRES_DSN=postgres://localhost/loraserver?sslmode=disable
POSTGRES_DSN=postgres://loraserver_ns:dbpassword@localhost/loraserver_ns?sslmode=disable
###automatically apply database migrations
DB_AUTOMIGRATE=true
###mqtt broker server used by the gateway backend (e.g. scheme://host:port where scheme is tcp, ssl or ws) (default: âtcp://localhost:1883â)
GW_MQTT_SERVER=tcp://localhost:1883
###mqtt username used by the gateway backend (optional)
GW_MQTT_USERNAME=
###mqtt password used by the gateway backend (optional)
GW_MQTT_PASSWORD=
###ca certificate used by the application-server client (optional)
AS_CA_CERT=
###tls certificate used by the application-server client (optional)
AS_TLS_CERT=
###tls key used by the application-server client (optional)
AS_TLS_KEY=
###hostname:port of the network-controller api server (optional)
NC_SERVER=
###ca certificate used by the network-controller client (optional)
NC_CA_CERT=
###tls certificate used by the network-controller client (optional)
NC_TLS_CERT=
###tls key used by the network-controller client (optional)
NC_TLS_KEY=
###time to wait for uplink de-duplication (default: 200ms)
DEDUPLICATION_DELAY=200ms
###delay between uplink delivery to the app server and getting the downlink data from the app server (if any) (default: 100ms)
GET_DOWNLINK_DATA_DELAY=100ms
###timezone to use when aggregating data (e.g. âEurope/Amsterdamâ) (optional, by default the local timezone is used)
###TIMEZONE=Europe/Amsterdam
###create non-existing gateways on receiving of stats
GW_CREATE_ON_STATS=true
###aggregation intervals to use for aggregating the gateway stats (valid options: second, minute, hour, day, week, month, quarter, year)
GW_STATS_AGGREGATION_INTERVALS=minute,hour,day
###extra frequencies to use for ISM bands that implement the CFList
###EXTRA_FREQUENCIES=867100000,867300000,867500000,867700000
###enable only a given sub-set of channels (e.g. â0-7,64â)
###ENABLE_UPLINK_CHANNELS=0-7,64
###the ttl after which a node-session expires after no activity (default 31 days)
NODE_SESSION_TTL=744h0m0s
###log uplink and downlink frames to the database
LOG_NODE_FRAMES=true
###ca certificate used by the gateway api server (optional)
GW_SERVER_CA_CERT=
###tls certificate used by the gateway api server (optional)
GW_SERVER_TLS_CERT=
###tls key used by the gateway api server (optional)
GW_SERVER_TLS_KEY=
###JWT secret used by the gateway api server for gateway authentication / authorization
###You could generate this by executing âopenssl rand -base64 32â for example
GW_SERVER_JWT_SECRET=verysecret
###ip:port to bind the gateway api server (default: â0.0.0.0:8002â)
GW_SERVER_BIND=0.0.0.0:8002
###hostname:port of the default join-GW_MQTT_SERVER
JS_SERVER=http://localhost:8003
###ca certificate used by the default join-server client
JS_CA_CERT=
###tls certificate used by the default join-server client (optional)
JS_TLS_CERT=
###tls key used by the default join-server client (optional)
JS_TLS_KEY=
###installation margin (dB) used by the ADR engine
INSTALLATION_MARGIN=10
###class a rx1 delay
RX1_DELAY=1
###rx1 data-rate offset (valid options documented in the LoRaWAN Regional Parameters specification)
RX1_DR_OFFSET=0
###rx2 data-rate (when set to -1, the default rx2 data-rate will be used)
RX2_DR=-1