loraserver开源项目错误持续总结

1:lora app server 连接多个loraserver实例

level=error msg="finished unary call with code Unknown" error="rpc error: code = Unknown desc = rpc error: code = AlreadyExists desc = object already exists" grpc.code=Unknown grpc.method=Create grpc.service=api.NetworkServerService grpc.start_time="2019-08-13T03:01:14Z" grpc.time_ms=10.353 peer.address="127.0.0.1:42502" span.kind=server system=grpc

解决办法:需要为每个loraserver分配单独的数据库

2:如何获取设备电路和链路余量

在服务配置文件中将设备状态请求频率改为非0,然后勾选需要上传的选项

3:lorawan/band: invalid channel

我的遇到的情况是使用了EU_433,而EU_433虽然可以有16个信道,但默认只有0,1,2 这3个信道,但我的网关配置文件配置了0,1,2,3,4,5,6,7这8个信道,所以当使用2之后的信道就会报这个错,解决办法,在loraserver.toml中配置额外信道,使得默认信道加额外信道数量与网关配置文件中的信道数量相等,配置方式如下

[network_server.network_settings]

  # Extra channel configuration.
  #
  # Use this for LoRaWAN regions where it is possible to extend the by default
  # available channels with additional channels (e.g. the EU band).
  # The first 5 channels will be configured as part of the OTAA join-response
  # (using the CFList field).
  # The other channels (or channel / data-rate changes) will be (re)configured
  # using the NewChannelReq mac-command.
  #
  [[network_server.network_settings.extra_channels]]
  frequency=433775000
  min_dr=0
  max_dr=5

你可能感兴趣的:(lora)