Navigation

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

    Best posts made by shasha

    • How to receive data on openhab using UDP ? (solved)

      Hello !

      Here is the problem I am facing :

      I have an arduino node communicating using UDP. It sends on port 600 receives on port 500.
      I would like to be able to send and receive data to this node from the openhab.

      Sending data has been straight forward. It works nicely. On the other hand I did not manage to get
      any data from this node. I tried various changes in the config file and in the way to do the incoming
      binding but I still got warnings. Here are some information on my setup :

      items setup :

      String fromUDPnode "fromUDPnode" {udp="<[192.168.0.9:500:'REGEX((.*))']"}
      String toUDPnode "toUDPnode" {udp=">[192.168.0.9:500:'REGEX((.*))']"}
      
      

      config :

      udp:itemsharedconnections=true
      udp:bindingsharedconnections=true
      udp:directionssharedconnections=false
      udp:addressmask=true
      udp:postamble=
      udp:blocking=false
      udp:refreshinterval=250
      udp:port=600
      

      and here are the warnings I get :

       [WARN ] [AbstractDatagramChannelBinding] - Received data 10;59;1;0;23;0
               from an undefined remote end /192.168.0.9:500. We will not process it
       [WARN ] [AbstractDatagramChannelBinding] - No channel is active or defined for the data we received from /192.168.0.9:500. It will be discarded.
      

      seems openhab receives the data but discard them ...

      any clue on how to solve this issue ?

      Thanks

      posted in Troubleshooting
      shasha
      shasha