Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Domoticz
  4. help with serial gateway on raspberry pi

help with serial gateway on raspberry pi

Scheduled Pinned Locked Moved Domoticz
4 Posts 3 Posters 716 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fernando alvarez buyllaF Offline
    fernando alvarez buyllaF Offline
    fernando alvarez buylla
    wrote on last edited by fernando alvarez buylla
    #1

    hi guys i just make a new controller with a raspberry pi and domoticz , now im trying to add the serial gateway to my domoticz , but in order to domoticz to open the port i need to open ssh connection and use

    sudo ./bin/mysgw
    
    

    for domoticz to read the port /dev/ttyUSB020 , if i dont use ./bin/mysgw the log just said
    2019-04-21 04:31:58.747 Status: MySensors: Using serial port: /dev/ttyUSB020
    2019-04-21 04:31:58.747 Error: MySensors: Error opening serial port!
    , what im missing here

    just do the standar installaton

    ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway
    make 
    sudo make install 
    sudo systemctl enable mysgw.service
    sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB020
    

    i dont know what im missing here, thanks for the help

    K mfalkviddM 2 Replies Last reply
    0
    • fernando alvarez buyllaF fernando alvarez buylla

      hi guys i just make a new controller with a raspberry pi and domoticz , now im trying to add the serial gateway to my domoticz , but in order to domoticz to open the port i need to open ssh connection and use

      sudo ./bin/mysgw
      
      

      for domoticz to read the port /dev/ttyUSB020 , if i dont use ./bin/mysgw the log just said
      2019-04-21 04:31:58.747 Status: MySensors: Using serial port: /dev/ttyUSB020
      2019-04-21 04:31:58.747 Error: MySensors: Error opening serial port!
      , what im missing here

      just do the standar installaton

      ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway
      make 
      sudo make install 
      sudo systemctl enable mysgw.service
      sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB020
      

      i dont know what im missing here, thanks for the help

      K Offline
      K Offline
      kimot
      wrote on last edited by
      #2

      @fernando-alvarez-buylla
      I think you only need define your gateway in Domoticz.
      That Is all.
      0_1555825942664_Screenshot_2019-04-21-07-48-41-311_com.android.chrome.png

      1 Reply Last reply
      0
      • fernando alvarez buyllaF fernando alvarez buylla

        hi guys i just make a new controller with a raspberry pi and domoticz , now im trying to add the serial gateway to my domoticz , but in order to domoticz to open the port i need to open ssh connection and use

        sudo ./bin/mysgw
        
        

        for domoticz to read the port /dev/ttyUSB020 , if i dont use ./bin/mysgw the log just said
        2019-04-21 04:31:58.747 Status: MySensors: Using serial port: /dev/ttyUSB020
        2019-04-21 04:31:58.747 Error: MySensors: Error opening serial port!
        , what im missing here

        just do the standar installaton

        ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway
        make 
        sudo make install 
        sudo systemctl enable mysgw.service
        sudo ln -s /dev/ttyMySensorsGateway /dev/ttyUSB020
        

        i dont know what im missing here, thanks for the help

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #3

        @fernando-alvarez-buylla the link (created with the ln command) will be removed at reboot. Change my-serial-pty=/dev/ttyMySensorsGateway to my-serial-pty=/dev/ttyUSB020 and re-run all the commands.

        If you don't reboot the pi after enabling the mysgw service, you will need to start the gateway as per the instructions printed when make is finished.

        1 Reply Last reply
        0
        • fernando alvarez buyllaF Offline
          fernando alvarez buyllaF Offline
          fernando alvarez buylla
          wrote on last edited by fernando alvarez buylla
          #4

          thanks guys , the solution for me was to add

          ln -s /dev/ttyMySensorsGateway /dev/ttyUSB020
          

          to rc.local

          but i will try your idea @mfalkvidd thanks for the help

          1 Reply Last reply
          1
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          5

          Online

          11.7k

          Users

          11.2k

          Topics

          113.0k

          Posts


          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular