1

我在运行 Raspbian 的 Raspberry Pi 3 上运行 OpenHab2 版本 2.4.0,我正在尝试设置 ZigBee 以能够连接到智能传感器,但我无法让我的 ZigBee 协调器上线,协调器有一个 Zwave 和Zigbee 功能,我有 Zwave Thing 在线说,但我无法在线获得 Zigbee Thing。USB 协调器是 Nortek Security and Control USB。我正在使用 PaperUI 来配置事物。

我检查了lsusb

pi@raspberrypi:~ $ lsusb Bus 001 Device 006: ID 04ca:004b Lite-On Technology Corp. Bus 001 Device 005: ID 10c4:8a2a Cygnal Integrated Products, Inc. Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub pi@raspberrypi:~ $

当我运行时,dmesg -T | grep tty我得到以下响应

pi@raspberrypi:~ $ dmesg -T | grep tty [Fri Mar 29 21:54:46 2019] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable =0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 lift=deadline fsck.repair=yes rootwait splash plymouth.ignore-serial-consoles [Fri Mar 29 21:54:46 2019] 控制台 [tty1 ] 启用 [Fri Mar 29 21:54:47 2019] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) 是 PL011 rev2 [Fri Mar 29 21:54:50 2019] usb 1-1.3: cp210x 转换器现在连接到 ttyUSB0 [Fri Mar 29 21:54:50 2019] USB 1-1.3:cp210x 转换器现在连接到 ttyUSB1

openhab.log 中包含大约 20 次以下消息

BaseThingHandler] - 事物 zigbee:coordinator_ember:6b3e0d22 的处理程序 EmberHandler 尝试更新通道 tx_dat,尽管处理程序已被释放。

它也有以下错误

2019-03-29 21:28:50.732 [错误] [nal.common.AbstractInvocationHandler] - 在“org.openhab.binding.zigbee.ember.handler.EmberHandler@”上调用方法“ThingHandler.dispose()”时发生错误1ea8355': null java.lang.NullPointerException: null at com.zsmartsystems.zigbee.app.discovery.ZigBeeDiscoveryExtension.extensionShutdown(ZigBeeDiscoveryExtension.java:96) ~[?:?] at com.zsmartsystems.zigbee.ZigBeeNetworkManager.shutdown(ZigBeeNetworkManager .java:529) ~[?:?] at org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler.dispose(ZigBeeCoordinatorHandler.java:303) ~[?:?] at org.openhab.binding.zigbee.ember.handler .EmberHandler.dispose(EmberHandler.java:128) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at sun.reflect.NativeMethodAccessorImpl。invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java: 497)〜[?:?]在org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153)[102:org.eclipse.smarthome.core:0.10.0.oh240]在org .eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 java.util.concurrent.FutureTask.run(FutureTask .java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617 ) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?] 2019-03-29 21:28:50。757 [错误] [core.thing.internal.ThingManagerImpl] - 处理事物'zigbee:coordinator_ember:0d3bf8d6'的处理程序时发生异常:null java.lang.NullPointerException:com.zsmartsystems.zigbee.app.discovery.ZigBeeDiscoveryExtension。 extensionShutdown(ZigBeeDiscoveryExtension.java:96) ~[?:?] at com.zsmartsystems.zigbee.ZigBeeNetworkManager.shutdown(ZigBeeNetworkManager.java:529) ~[?:?] at org.openhab.binding.zigbee.handler.ZigBeeCoordinatorHandler。 dispose(ZigBeeCoordinatorHandler.java:303) ~[?:?] at org.openhab.binding.zigbee.ember.handler.EmberHandler.dispose(EmberHandler.java:128) ~[?:?] at sun.reflect.NativeMethodAccessorImpl。 invoke0(Native Method) ~[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at sun.reflect。DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:?] at org.eclipse.smarthome.core.internal。 common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java: 53) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] 在 java.util.concurrent.ThreadPoolExecutor。 runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?] at java.lang.Thread.run(Thread.java:第745章Method.invoke(Method.java:497) ~[?:?] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core: 0.10.0.oh240] 在 org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 java.util .concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:617) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?]Method.invoke(Method.java:497) ~[?:?] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [102:org.eclipse.smarthome.core: 0.10.0.oh240] 在 org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 java.util .concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker .run(ThreadPoolExecutor.java:617) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?]oh240] 在 org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 java.util.concurrent.FutureTask .run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:617) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?]oh240] 在 org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [102:org.eclipse.smarthome.core:0.10.0.oh240] 在 java.util.concurrent.FutureTask .run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:617) [?:?] at java.lang.Thread.run(Thread.java:745) [?:?]?] 在 java.lang.Thread.run(Thread.java:745) [?:?]?] 在 java.lang.Thread.run(Thread.java:745) [?:?]

我对 Ember 的 PaperUI 设置是

  • 端口:/dev/ttyUSB1
  • 流量控制:软件(xon/xoff)
  • 波特率:57600

我已经根据不同的建议探索了 openhab2 社区论坛几天,但没有一个有效,也没有给出如何解决这个问题的明确答案。

4

0 回答 0