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. Announcements
  3. 💬 Building a Raspberry Pi Gateway

💬 Building a Raspberry Pi Gateway

Scheduled Pinned Locked Moved Announcements
1.1k Posts 173 Posters 423.0k Views 131 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.
  • OliO Offline
    OliO Offline
    Oli
    wrote on last edited by
    #222

    @eyesoft same errors

    jirmJ 1 Reply Last reply
    0
    • eyesoftE Offline
      eyesoftE Offline
      eyesoft
      wrote on last edited by
      #223

      @Oli see commands above how to Install and Build, with git checkout master you are on master if you :
      cat README.md
      MySensors Library v2.1.0

      default on git clone you are on development :
      cat README.md
      MySensors Library v2.2.0-beta

      1 Reply Last reply
      0
      • OliO Oli

        @eyesoft same errors

        jirmJ Offline
        jirmJ Offline
        jirm
        wrote on last edited by jirm
        #224

        @Oli First you need delete all Mysensors directory on your machine.
        Then use step by step the guide on Mysensors Gateway installation process:
        https://www.mysensors.org/build/raspberry
        Dont forget put command sudo on sentences if needed.

        Regards

        1 Reply Last reply
        0
        • OliO Offline
          OliO Offline
          Oli
          wrote on last edited by
          #225

          I wanna update not to re install of MySensors. I thought about something like ./updaterelease or ./updatebeta... I spend hours of make it work before, so I leave it as it is. No time or nerves for fighting next couple of days.

          mfalkviddM jirmJ 2 Replies Last reply
          0
          • OliO Oli

            I wanna update not to re install of MySensors. I thought about something like ./updaterelease or ./updatebeta... I spend hours of make it work before, so I leave it as it is. No time or nerves for fighting next couple of days.

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

            @Oli what did you have to do to make it work? It should just be a matter of following the instructions that @jirm linked to.

            EDIT: Since you already have the MySensors repo cloned from git, you can update by running

            pi@raspberrypi ~/MySensors $ git pull
            

            Than run configure, make, etc as per the original instructions.

            1 Reply Last reply
            0
            • OliO Offline
              OliO Offline
              Oli
              wrote on last edited by
              #227

              @mfalkvidd I could not find ttyMySensorsGateway on Domoticz. Only ttyUSB0, ttyUSB20 and ttyAMA0. Even after I did ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway

              mfalkviddM 1 Reply Last reply
              0
              • OliO Oli

                @mfalkvidd I could not find ttyMySensorsGateway on Domoticz. Only ttyUSB0, ttyUSB20 and ttyAMA0. Even after I did ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway

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

                @Oli so what did you do to make it work?

                1 Reply Last reply
                0
                • OliO Oli

                  I wanna update not to re install of MySensors. I thought about something like ./updaterelease or ./updatebeta... I spend hours of make it work before, so I leave it as it is. No time or nerves for fighting next couple of days.

                  jirmJ Offline
                  jirmJ Offline
                  jirm
                  wrote on last edited by jirm
                  #229

                  @Oli I´m thinking is hard to "only" update (changing from develop to master branch) directly from github if the repository is not been previously prepared to do this kind of updates... but maybe I´m wrong.

                  Will be good you give feedback if you get it.

                  Cheers

                  jirmJ 1 Reply Last reply
                  0
                  • OliO Offline
                    OliO Offline
                    Oli
                    wrote on last edited by
                    #230

                    @mfalkvidd hah... thats a good question, don't know. After dozen or more reinstallations, spending hours on Google I finally make it work. Got some notes but frankly I am worrying it will happen again. Hahaha

                    mfalkviddM 1 Reply Last reply
                    0
                    • OliO Oli

                      @mfalkvidd hah... thats a good question, don't know. After dozen or more reinstallations, spending hours on Google I finally make it work. Got some notes but frankly I am worrying it will happen again. Hahaha

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

                      @Oli ah, ok. Then I'd recommend backing up everything before doing git pull, configure, make, etc so you can restore if it stops working.

                      1 Reply Last reply
                      0
                      • jirmJ jirm

                        @Oli I´m thinking is hard to "only" update (changing from develop to master branch) directly from github if the repository is not been previously prepared to do this kind of updates... but maybe I´m wrong.

                        Will be good you give feedback if you get it.

                        Cheers

                        jirmJ Offline
                        jirmJ Offline
                        jirm
                        wrote on last edited by jirm
                        #232

                        @Oli :-) :-)
                        Good !
                        I like when people can make something work that nobody even knows what it is :-)

                        For me it usually happens just the opposite I am not able to make work even the things I know perfectly well ... maybe it will be a matter of "bad karma" :-)

                        1 Reply Last reply
                        2
                        • OliO Offline
                          OliO Offline
                          Oli
                          wrote on last edited by
                          #233

                          OK, I did it, I f....g did it, and guess what...
                          s...t happened again.
                          Everything went as it should, no errors at all, but no ttyUSBMySensorsGateway...
                          0_1483469802904_Nowy dokument tekstowy.jpg

                          log error message:
                          2017-01-03 19:56:38.784 MySensors: Using serial port: /dev/ttyUSBMySensorsGateway
                          2017-01-03 19:56:38.785 Error: MySensors: Error opening serial port!
                          2017-01-03 19:56:39.785 MySensors: retrying in 30 seconds...

                          and again...
                          and again...
                          ...

                          any help would be appreciated.

                          luizrrochaL 1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            jacikaas
                            wrote on last edited by jacikaas
                            #234

                            Hello,

                            Could someone answer: if i have RPi NRF24 GW, how I could connect MYSController from other computer (for example from Windows computer)?

                            1. Is it possible to make that type connection with RPi NRF24 GW?
                            2. May I use some integrated web server for this type of connection in RPi to make it work? Is there are easier solutions?

                            EDIT: no matter, already answered it by myself :)
                            Its easy becose it's like Ethernet GW.

                            luizrrochaL 1 Reply Last reply
                            0
                            • OliO Oli

                              OK, I did it, I f....g did it, and guess what...
                              s...t happened again.
                              Everything went as it should, no errors at all, but no ttyUSBMySensorsGateway...
                              0_1483469802904_Nowy dokument tekstowy.jpg

                              log error message:
                              2017-01-03 19:56:38.784 MySensors: Using serial port: /dev/ttyUSBMySensorsGateway
                              2017-01-03 19:56:38.785 Error: MySensors: Error opening serial port!
                              2017-01-03 19:56:39.785 MySensors: retrying in 30 seconds...

                              and again...
                              and again...
                              ...

                              any help would be appreciated.

                              luizrrochaL Offline
                              luizrrochaL Offline
                              luizrrocha
                              wrote on last edited by
                              #235

                              @Oli: when you do a "ls /dev" is ttyUSBMySensorsGateway shown ?

                              luizrrochaL 1 Reply Last reply
                              0
                              • luizrrochaL luizrrocha

                                @Oli: when you do a "ls /dev" is ttyUSBMySensorsGateway shown ?

                                luizrrochaL Offline
                                luizrrochaL Offline
                                luizrrocha
                                wrote on last edited by
                                #236

                                @Oli: by the way, the name of the port you used is ttyMySensorsGateway, not ttyUSBMySensorsGateway:

                                @mfalkvidd I could not find ttyMySensorsGateway on Domoticz. Only ttyUSB0, ttyUSB20 and ttyAMA0. Even after I did ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway

                                Is the gateway running, ie, "ps -ef "grep my" shows a process there ?

                                Cheers,

                                Luiz

                                luizrrochaL 1 Reply Last reply
                                0
                                • luizrrochaL luizrrocha

                                  @Oli: by the way, the name of the port you used is ttyMySensorsGateway, not ttyUSBMySensorsGateway:

                                  @mfalkvidd I could not find ttyMySensorsGateway on Domoticz. Only ttyUSB0, ttyUSB20 and ttyAMA0. Even after I did ./configure --my-gateway=serial --my-serial-is-pty --my-serial-pty=/dev/ttyMySensorsGateway

                                  Is the gateway running, ie, "ps -ef "grep my" shows a process there ?

                                  Cheers,

                                  Luiz

                                  luizrrochaL Offline
                                  luizrrochaL Offline
                                  luizrrocha
                                  wrote on last edited by
                                  #237

                                  @Oli: sorry, correct syntax is ps -ef | grep my

                                  OliO 1 Reply Last reply
                                  0
                                  • luizrrochaL luizrrocha

                                    @Oli: sorry, correct syntax is ps -ef | grep my

                                    OliO Offline
                                    OliO Offline
                                    Oli
                                    wrote on last edited by
                                    #238

                                    @luizrrocha
                                    pi@raspberrypi ~ $ ls /dev

                                    autofs mmcblk0p1 stderr tty36 ttyAMA0
                                    block mmcblk0p2 stdin tty37 ttyMySensorsGateway
                                    btrfs-control net stdout tty38 ttyprintk
                                    bus network_latency tty tty39 ttyUSB0
                                    cachefiles network_throughput tty0 tty4 ttyUSB20
                                    char null tty1 tty40 uhid
                                    console ppp tty10 tty41 uinput
                                    cpu_dma_latency ptmx tty11 tty42 urandom
                                    cuse pts tty12 tty43 vc-cma
                                    disk ram0 tty13 tty44 vchiq
                                    fb0 ram1 tty14 tty45 vcio
                                    fd ram10 tty15 tty46 vc-mem
                                    full ram11 tty16 tty47 vcs
                                    fuse ram12 tty17 tty48 vcs1
                                    gpiomem ram13 tty18 tty49 vcs2
                                    hwrng ram14 tty19 tty5 vcs3
                                    i2c-1 ram15 tty2 tty50 vcs4
                                    input ram2 tty20 tty51 vcs5
                                    kmsg ram3 tty21 tty52 vcs6
                                    log ram4 tty22 tty53 vcsa
                                    loop0 ram5 tty23 tty54 vcsa1
                                    loop1 ram6 tty24 tty55 vcsa2
                                    loop2 ram7 tty25 tty56 vcsa3
                                    loop3 ram8 tty26 tty57 vcsa4
                                    loop4 ram9 tty27 tty58 vcsa5
                                    loop5 random tty28 tty59 vcsa6
                                    loop6 raw tty29 tty6 vhci
                                    loop7 root tty3 tty60 watchdog
                                    loop-control serial tty30 tty61 watchdog0
                                    MAKEDEV shm tty31 tty62 xconsole
                                    mapper snd tty32 tty63 zero
                                    mem sndstat tty33 tty7
                                    memory_bandwidth spidev0.0 tty34 tty8
                                    mmcblk0 spidev0.1 tty35 tty9

                                    pi@raspberrypi ~ $ ps -ef | grep my

                                    root 2079 1 1 18:40 ? 00:02:49 /usr/local/bin/mysgw -b
                                    pi 4214 4181 0 21:25 pts/2 00:00:00 grep --color=auto my

                                    luizrrochaL 1 Reply Last reply
                                    1
                                    • OliO Oli

                                      @luizrrocha
                                      pi@raspberrypi ~ $ ls /dev

                                      autofs mmcblk0p1 stderr tty36 ttyAMA0
                                      block mmcblk0p2 stdin tty37 ttyMySensorsGateway
                                      btrfs-control net stdout tty38 ttyprintk
                                      bus network_latency tty tty39 ttyUSB0
                                      cachefiles network_throughput tty0 tty4 ttyUSB20
                                      char null tty1 tty40 uhid
                                      console ppp tty10 tty41 uinput
                                      cpu_dma_latency ptmx tty11 tty42 urandom
                                      cuse pts tty12 tty43 vc-cma
                                      disk ram0 tty13 tty44 vchiq
                                      fb0 ram1 tty14 tty45 vcio
                                      fd ram10 tty15 tty46 vc-mem
                                      full ram11 tty16 tty47 vcs
                                      fuse ram12 tty17 tty48 vcs1
                                      gpiomem ram13 tty18 tty49 vcs2
                                      hwrng ram14 tty19 tty5 vcs3
                                      i2c-1 ram15 tty2 tty50 vcs4
                                      input ram2 tty20 tty51 vcs5
                                      kmsg ram3 tty21 tty52 vcs6
                                      log ram4 tty22 tty53 vcsa
                                      loop0 ram5 tty23 tty54 vcsa1
                                      loop1 ram6 tty24 tty55 vcsa2
                                      loop2 ram7 tty25 tty56 vcsa3
                                      loop3 ram8 tty26 tty57 vcsa4
                                      loop4 ram9 tty27 tty58 vcsa5
                                      loop5 random tty28 tty59 vcsa6
                                      loop6 raw tty29 tty6 vhci
                                      loop7 root tty3 tty60 watchdog
                                      loop-control serial tty30 tty61 watchdog0
                                      MAKEDEV shm tty31 tty62 xconsole
                                      mapper snd tty32 tty63 zero
                                      mem sndstat tty33 tty7
                                      memory_bandwidth spidev0.0 tty34 tty8
                                      mmcblk0 spidev0.1 tty35 tty9

                                      pi@raspberrypi ~ $ ps -ef | grep my

                                      root 2079 1 1 18:40 ? 00:02:49 /usr/local/bin/mysgw -b
                                      pi 4214 4181 0 21:25 pts/2 00:00:00 grep --color=auto my

                                      luizrrochaL Offline
                                      luizrrochaL Offline
                                      luizrrocha
                                      wrote on last edited by
                                      #239

                                      @Oli : the port name is actually ttyMySensorsGateway, you have to correct the definition of the gateway on Domoticz to use it....

                                      Luiz

                                      OliO 1 Reply Last reply
                                      0
                                      • J jacikaas

                                        Hello,

                                        Could someone answer: if i have RPi NRF24 GW, how I could connect MYSController from other computer (for example from Windows computer)?

                                        1. Is it possible to make that type connection with RPi NRF24 GW?
                                        2. May I use some integrated web server for this type of connection in RPi to make it work? Is there are easier solutions?

                                        EDIT: no matter, already answered it by myself :)
                                        Its easy becose it's like Ethernet GW.

                                        luizrrochaL Offline
                                        luizrrochaL Offline
                                        luizrrocha
                                        wrote on last edited by
                                        #240

                                        @jacikaas : on MYSController go to Settings -> Gateway -> TCP/IP and add the IP address of the Gateway and use port 5003. It works even if the gateway is feeding data to Domoticz, so you can monitor your sensors in "raw" mode.

                                        Cheers,

                                        Luiz

                                        1 Reply Last reply
                                        0
                                        • luizrrochaL luizrrocha

                                          @Oli : the port name is actually ttyMySensorsGateway, you have to correct the definition of the gateway on Domoticz to use it....

                                          Luiz

                                          OliO Offline
                                          OliO Offline
                                          Oli
                                          wrote on last edited by Oli
                                          #241

                                          @luizrrocha as You can see, on the picture above, I've wrote that ttyUSBMySensors.... is from my previous backup copy. On the same pictures You can also see that I can choose only from three serial ports: USB0, USB20 and AMA0. Thera are no ttyMySensorsGateway despite that it is present after ls /dev.
                                          And that's the problem, I dont know how to make it present in the serial ports popup menu.

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


                                          24

                                          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