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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值