LoraWAN论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 7168|回复: 3
打印 上一主题 下一主题

调试网关出错,求助

[复制链接]

5

主题

11

帖子

93

积分

注册会员

Rank: 2

积分
93
跳转到指定楼层
楼主
发表于 2018-11-6 14:24:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
INFO: packets received with a valid CRC will be forwarded
INFO: packets received with a CRC error will NOT be forwarded
INFO: packets received with no CRC will NOT be forwarded
Note: SPI port opened and configured ok
Note: SPI read success
lgw_connect:532: INFO: no FPGA detected or version not supported (v0)
Note: SPI read success
lgw_connect:555: ERROR: NOT EXPECTED CHIP VERSION (v0)
ERROR: FAIL TO CONNECT BOARD
ERROR: [main] failed to start the concentrator


以上是最新的调试信息,是不是因为spi没调好的原因么?我spi回环测试是OK的

回复

使用道具 举报

5

主题

11

帖子

93

积分

注册会员

Rank: 2

积分
93
沙发
 楼主| 发表于 2018-11-6 15:16:15 | 只看该作者
root@freescale ~$ ./test_loragw_spi
Beginning of test for loragw_spi.c
Note: SPI port opened and configured ok
WARNING: SPI address > 127
Note: SPI write success
Note: SPI read success
lgw_spi_wb:309: BURST WRITE: to trans 16 # chunk 16 # transferred 16
Note: SPI burst write success
lgw_spi_rb:371: BURST READ: to trans 16 # chunk 16 # transferred 16
Note: SPI burst read success
lgw_spi_wb:309: BURST WRITE: to trans 2500 # chunk 1024 # transferred 1024
lgw_spi_wb:309: BURST WRITE: to trans 1476 # chunk 1024 # transferred 2048
lgw_spi_wb:309: BURST WRITE: to trans 452 # chunk 452 # transferred 2500
Note: SPI burst write success
lgw_spi_rb:371: BURST READ: to trans 2500 # chunk 1024 # transferred 1024
lgw_spi_rb:371: BURST READ: to trans 1476 # chunk 1024 # transferred 2048
lgw_spi_rb:371: BURST READ: to trans 452 # chunk 452 # transferred 2500
Note: SPI burst read success
Note: SPI read success
data received (simple read): 0
Note: SPI port closed
End of test for loragw_spi.c
这是spi的测试,root@freescale ~$ ./test_loragw_reg
Beginning of test for loragw_reg.c
Note: SPI port opened and configured ok
Note: SPI read success
lgw_connect:532: INFO: no FPGA detected or version not supported (v0)
Note: SPI read success
lgw_connect:555: ERROR: NOT EXPECTED CHIP VERSION (v0)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
IMPLICIT_PAYLOAD_LENGHT = 0 (should be 197)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
FRAME_SYNCH_PEAK2_POS = 0 (should be 11)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
PREAMBLE_SYMB1_NB = 0 (should be 49253)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
ADJUST_MODEM_START_OFFSET_SF12_RDX4 = 0 (should be 3173)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
IF_FREQ_1 = 0 (should be -1947)
ERROR: CONCENTRATOR UNCONNECTED
ERROR: CONCENTRATOR UNCONNECTED
Note: SPI port closed
Note: success disconnecting the concentrator
End of test for loragw_reg.c
这是reg的测试,读出来的数据全为0???
回复

使用道具 举报

108

主题

471

帖子

5699

积分

论坛元老

Rank: 8Rank: 8

积分
5699
板凳
发表于 2018-11-8 16:58:32 | 只看该作者
ERROR: FAIL TO CONNECT BOARD
ERROR: [main] failed to start the concentrator

这 2 处错误提示:RESET of SX1301 模块没有成功。
解决:(1)检查 ARM<->SX1301 硬件连线;(2)检查 ARM_GPIO 驱动(使用“示波器” 或 “万用表”,查看 电平 变化)。
回复

使用道具 举报

5

主题

11

帖子

93

积分

注册会员

Rank: 2

积分
93
地板
 楼主| 发表于 2018-11-12 10:40:32 | 只看该作者
BeyondDream 发表于 2018-11-8 16:58
ERROR: FAIL TO CONNECT BOARD
ERROR: [main] failed to start the concentrator

电平是变化的,我测过,只是我SPI使用杜邦线链接的,是不是会不稳定的原因呢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|LoraWAN论坛  

GMT+8, 2024-12-22 14:08 , Processed in 0.111333 second(s), 7 queries , File On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表