Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. CraigDubya
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by CraigDubya

    • CraigDubya

      Openhab 2.5.5, raspberry pi 4 with usb boot ssd
      OpenHAB • • CraigDubya  

      22
      0
      Votes
      22
      Posts
      53
      Views

      TRS-80

      That's great news! Now back to the fun part! I prefer to have a repeatable, definable failure mode, and then fix that, rather than an unknown success, but that's just me.
    • CraigDubya

      Serial Gateway not connecting - ttyUSB0 in use
      Development • • CraigDubya  

      30
      0
      Votes
      30
      Posts
      86
      Views

      CraigDubya

      And so here is my serial gateway with 3d printed case:
    • CraigDubya

      Serial Gateway not working after Raspberry Pi upgrade
      Troubleshooting • • CraigDubya  

      6
      0
      Votes
      6
      Posts
      1255
      Views

      CraigDubya

      I have a new problem regarding the mysensors serial gateway. I have started with a fresh install of Openhab, and have found the documents detailing how to install an up to date java 8 version confusing and out of date. With that said, I'm not sure my java is working properly which may be causing this problem. I have installed the mysensors binding via the paperUI marketplace, and after adding the serial gateway and configuring it, it says UNINITIALIZED - HANDLER_INITIALIZING_ERROR. The logs in karafe gives: 00:30:44.518 [DEBUG] [org.openhab.binding.mysensors ] - BundleEvent STARTING - org.openhab.binding.mysensors 00:30:44.529 [DEBUG] [org.openhab.binding.mysensors ] - BundleEvent STARTED - org.openhab.binding.mysensors 00:30:44.686 [DEBUG] [org.openhab.binding.mysensors ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={component.name=org.openhab.binding.mysensors.factory.MySensorsHandlerFactory, component.id=212, service.id=343, service.bundleid=225, service.scope=bundle} - org.openhab.binding.mysensors 00:30:45.167 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:7e41fb40' changed from UNINITIALIZED to INITIALIZING 00:30:45.250 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge 00:30:45.294 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Cache file: given_ids.cached exist. 00:30:45.299 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Cache (given_ids) content: null 00:30:45.304 [ERROR] [rnal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.mysensors.handler.MySensorsBridgeHandler@18c1f58': null java.lang.NullPointerException: null at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.loadCacheFile(MySensorsBridgeHandler.java:172) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.initialize(MySensorsBridgeHandler.java:79) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] 00:30:45.345 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'mysensors:bridge-ser:7e41fb40' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR) 00:30:45.344 [ERROR] [home.core.thing.internal.ThingManager] - Exception occurred while initializing handler of thing 'mysensors:bridge-ser:7e41fb40': null java.lang.NullPointerException: null at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.loadCacheFile(MySensorsBridgeHandler.java:172) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at org.openhab.binding.mysensors.handler.MySensorsBridgeHandler.initialize(MySensorsBridgeHandler.java:79) [225:org.openhab.binding.mysensors:2.3.0.201803141156] at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?] at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:153) [109:org.eclipse.smarthome.core:0.10.0.b1] at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:53) [109:org.eclipse.smarthome.core:0.10.0.b1] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] Can anyone help me to debug this problem? I can confirm that when using the command: screen /dev/ttyUSB0 115200 I can see the debug information coming from the gateway: 0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,VER=2.2.0 0;255;3;0;9;4 TSM:INIT 0;255;3;0;9;6 TSF:WUR:MS=0 0;255;3;0;9;14 TSM:INIT:TSP OK 0;255;3;0;9;17 TSM:INIT:GW MODE 0;255;3;0;9;20 TSM:READY:ID=0,PAR=0,DIS=0 0;255;3;0;9;23 MCO:REG:NOT NEEDED 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.2.0 0;255;3;0;9;28 MCO:BGN:STP 0;255;3;0;9;34 MCO:BGN:INIT OK,TSP=1 And when I operate a sensor node: 0;255;3;0;9;141450 TSF:MSG:READ,102-102-0,s=1,c=1,t=38,pt=7,l=5,sg=0:3.4 102;1;1;0;38;3.4 0;255;3;0;9;141457 TSF:MSG:READ,102-102-0,s=255,c=3,t=0,pt=1,l=1,sg=0:102 102;255;3;0;0;102 0;255;3;0;9;141470 TSF:MSG:READ,102-102-0,s=2,c=1,t=16,pt=1,l=1,sg=0:1 102;2;1;0;16;1 However, if I use the command: cat /dev/ttyUSB0 I get nothing.