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. lost serial gateway after un plug power Rpi

lost serial gateway after un plug power Rpi

Scheduled Pinned Locked Moved Domoticz
45 Posts 8 Posters 13.9k Views 7 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.
  • tbowmoT tbowmo

    @Reza

    Is this a china model arduino? It could be a cheap counterfeit FTDI chip..

    R Offline
    R Offline
    Reza
    wrote on last edited by
    #24

    @tbowmo
    no this is arduino nano with a FT232 chip

    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by
      #25

      is it a genuine arduino nano? I thought they where all using atmega32u4 for usb interface nowadays

      R 2 Replies Last reply
      1
      • tbowmoT tbowmo

        is it a genuine arduino nano? I thought they where all using atmega32u4 for usb interface nowadays

        R Offline
        R Offline
        Reza
        wrote on last edited by
        #26

        @tbowmo said:

        is it a genuine arduino nano? I thought they where all using atmega32u4 for usb interface nowadays

        i dont know this is a genuine or no but i know this is a nano with chip FT232 . not CH340
        now ! after unplug / plug , gateway dont back !

        1 Reply Last reply
        0
        • tbowmoT tbowmo

          is it a genuine arduino nano? I thought they where all using atmega32u4 for usb interface nowadays

          R Offline
          R Offline
          Reza
          wrote on last edited by
          #27

          @tbowmo 0_1474905097662_123.jpg

          i have this error

          1 Reply Last reply
          0
          • sinczeS Offline
            sinczeS Offline
            sincze
            MySensors Evangelist
            wrote on last edited by
            #28

            Hi.

            I had the same issue with (original) FTDI chipset ARDUINO.
            I use FTDI chipset because that enables me to FIX the USB to stick at for example USB20 and not to a different port. Comes in handy after a reboot. Domoticz will continue to work.

            However ... I had the same issue you described.
            I replaced ARDUINO with new one for testing with CH340.
            Gateway was recognized again.
            The failing FTDI Arduino that was nog recognized works perfectly well with my Windows 10 PC however not with Raspi.

            Keep in mind the CH340 has no serial number. I was unable to fix at a certain USB position.

            From your logs I can confirm I had the same issue.
            try: dmesg | grep "ÜSB"

            It will not show you a USB1 or USBx device.

            I bought a new FTDI arduino and said bye bye to the problem. All is working again.

            R 1 Reply Last reply
            1
            • sinczeS sincze

              Hi.

              I had the same issue with (original) FTDI chipset ARDUINO.
              I use FTDI chipset because that enables me to FIX the USB to stick at for example USB20 and not to a different port. Comes in handy after a reboot. Domoticz will continue to work.

              However ... I had the same issue you described.
              I replaced ARDUINO with new one for testing with CH340.
              Gateway was recognized again.
              The failing FTDI Arduino that was nog recognized works perfectly well with my Windows 10 PC however not with Raspi.

              Keep in mind the CH340 has no serial number. I was unable to fix at a certain USB position.

              From your logs I can confirm I had the same issue.
              try: dmesg | grep "ÜSB"

              It will not show you a USB1 or USBx device.

              I bought a new FTDI arduino and said bye bye to the problem. All is working again.

              R Offline
              R Offline
              Reza
              wrote on last edited by
              #29

              @sincze
              sorry for weak in english , so you have use which one ? FT232 or CH340 ???
              now you have not same problem ???

              1 Reply Last reply
              0
              • sinczeS Offline
                sinczeS Offline
                sincze
                MySensors Evangelist
                wrote on last edited by
                #30

                No problem.

                I had problems with original FTDI arduino.
                For testing i changed to 340 arduino that worked.

                Than ordered new FTDI arduino.. And it worked again.
                Do you have a spare ARDUINO that you can flash with your gateway software??

                If your gateway is not assigned a /dev/ttyUSBx address It will not work.

                R 2 Replies Last reply
                1
                • sinczeS sincze

                  No problem.

                  I had problems with original FTDI arduino.
                  For testing i changed to 340 arduino that worked.

                  Than ordered new FTDI arduino.. And it worked again.
                  Do you have a spare ARDUINO that you can flash with your gateway software??

                  If your gateway is not assigned a /dev/ttyUSBx address It will not work.

                  R Offline
                  R Offline
                  Reza
                  wrote on last edited by
                  #31

                  @sincze
                  sorry again , i am beginner :)
                  first i do this Instructions (https://www.domoticz.com/wiki/PersistentUSBDevices) and dont work , after this , @tbowmo told me :
                  lsusb

                  -> provide the output

                  unplug / plug the usb device

                  once more in your terminal
                  lsusb
                  -> provide output
                  also i do :
                  dmesg

                  -> provide the output

                  unplug / plug the usb device

                  so now after unplug/plug , my gateway dont detect and dont work

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    Reza
                    wrote on last edited by
                    #32

                    0_1474907053201_kdkdkdkdk.jpg

                    i change usb port for my gateway and this working now , but after reset my problem again,,,,

                    1 Reply Last reply
                    0
                    • sinczeS sincze

                      No problem.

                      I had problems with original FTDI arduino.
                      For testing i changed to 340 arduino that worked.

                      Than ordered new FTDI arduino.. And it worked again.
                      Do you have a spare ARDUINO that you can flash with your gateway software??

                      If your gateway is not assigned a /dev/ttyUSBx address It will not work.

                      R Offline
                      R Offline
                      Reza
                      wrote on last edited by
                      #33

                      @sincze
                      i use a spare ARDUINO but there is my problem yet...
                      0_1474908555516_0.jpg

                      1 Reply Last reply
                      0
                      • tbowmoT tbowmo

                        after you have powered on your raspberry, you log in

                        then at the command prompt you type:

                        lsusb

                        -> provide the output

                        unplug / plug the usb device

                        once more in your terminal
                        lsusb
                        -> provide output

                        the same for dmesg. In a terminal type "dmesg" hit return, and provide the output, both before you unplug a device that is not working, and after you have done it, and it is working.

                        R Offline
                        R Offline
                        Reza
                        wrote on last edited by Reza
                        #34

                        @tbowmo
                        now i run this
                        lsusb

                        -> provide the output

                        unplug / plug the usb device

                        once more in your terminal
                        lsusb
                        -> provide output

                        the same for dmesg. In a terminal type "dmesg" hit return, and provide the output, both before you unplug a device that is not working, and after you have done it, and it is working.

                        but after unplug power . there is my problem yet

                        0_1474909146153_00.jpg

                        1 Reply Last reply
                        0
                        • sinczeS Offline
                          sinczeS Offline
                          sincze
                          MySensors Evangelist
                          wrote on last edited by
                          #35

                          @Reza just to be sure: unplug power you mean:

                          Unplug the power cord from raspberry right?
                          Not unplug and replug FTDI device?

                          R 1 Reply Last reply
                          1
                          • sinczeS sincze

                            @Reza just to be sure: unplug power you mean:

                            Unplug the power cord from raspberry right?
                            Not unplug and replug FTDI device?

                            R Offline
                            R Offline
                            Reza
                            wrote on last edited by
                            #36

                            @sincze said:

                            just to be sure: unplug power you mean:

                            Unplug the power cord from raspberry right?
                            Not unplug and replug FTDI device?

                            my serial gateway is always plug and connect. i mean unplug power of raspberry.
                            Suppose i use solar panel and battery for home and in cloudy day . power's home is off... so raspberry will be turn off...(or other reason for power off...)

                            1 Reply Last reply
                            0
                            • tbowmoT Offline
                              tbowmoT Offline
                              tbowmo
                              Admin
                              wrote on last edited by
                              #37

                              @Reza

                              from the initial logs, after powerup, there is no FT232 listed in your lsusb listing, then you unplug and plug it again, and THEN the FT232 is present..

                              This IS not a bug in mysensors, as it's an HW chip (FT232) that your linux doesn't see before it's unplugged / plugged, it smells of a hardware issue with your nano. Now @sincze mentioned to you that he have had the same issues, and he cured it by exchanging the arduino, maybe it's worth a shot?

                              @awi also linked to a document, that describes how to make USB devices persistent in the naming (this can happen once in a while, that a USB device enumerates as a different device number.. That is, /dev/ttyUSB1 instead of /dev/ttyUSB0).

                              @Reza said:
                              0_1474903726513_12.jpg

                              R 2 Replies Last reply
                              1
                              • tbowmoT tbowmo

                                @Reza

                                from the initial logs, after powerup, there is no FT232 listed in your lsusb listing, then you unplug and plug it again, and THEN the FT232 is present..

                                This IS not a bug in mysensors, as it's an HW chip (FT232) that your linux doesn't see before it's unplugged / plugged, it smells of a hardware issue with your nano. Now @sincze mentioned to you that he have had the same issues, and he cured it by exchanging the arduino, maybe it's worth a shot?

                                @awi also linked to a document, that describes how to make USB devices persistent in the naming (this can happen once in a while, that a USB device enumerates as a different device number.. That is, /dev/ttyUSB1 instead of /dev/ttyUSB0).

                                @Reza said:
                                0_1474903726513_12.jpg

                                R Offline
                                R Offline
                                Reza
                                wrote on last edited by Reza
                                #38

                                @tbowmo
                                thank you my friend . so this is related to my arduino totally . very very thank you
                                so i think , when complete gateway with a Rpi , this problem will be solved !!!

                                1 Reply Last reply
                                0
                                • tbowmoT tbowmo

                                  @Reza

                                  from the initial logs, after powerup, there is no FT232 listed in your lsusb listing, then you unplug and plug it again, and THEN the FT232 is present..

                                  This IS not a bug in mysensors, as it's an HW chip (FT232) that your linux doesn't see before it's unplugged / plugged, it smells of a hardware issue with your nano. Now @sincze mentioned to you that he have had the same issues, and he cured it by exchanging the arduino, maybe it's worth a shot?

                                  @awi also linked to a document, that describes how to make USB devices persistent in the naming (this can happen once in a while, that a USB device enumerates as a different device number.. That is, /dev/ttyUSB1 instead of /dev/ttyUSB0).

                                  @Reza said:
                                  0_1474903726513_12.jpg

                                  R Offline
                                  R Offline
                                  Reza
                                  wrote on last edited by
                                  #39

                                  @tbowmo
                                  i test some arduino but all have this problem .
                                  i have a question . is there a code in linux(Rpi) that after turn off/ on or reset Rpi (after some minutes) , usb port Be reset once !?
                                  is there a ready code for this ?

                                  1 Reply Last reply
                                  0
                                  • tbowmoT Offline
                                    tbowmoT Offline
                                    tbowmo
                                    Admin
                                    wrote on last edited by
                                    #40

                                    @Reza

                                    Not that I know of..

                                    R 1 Reply Last reply
                                    0
                                    • tbowmoT tbowmo

                                      @Reza

                                      Not that I know of..

                                      R Offline
                                      R Offline
                                      Reza
                                      wrote on last edited by
                                      #41

                                      @tbowmo
                                      I'm looking for a solution for this issue :)
                                      thank you

                                      1 Reply Last reply
                                      0
                                      • peerkersezuukerP Offline
                                        peerkersezuukerP Offline
                                        peerkersezuuker
                                        wrote on last edited by
                                        #42

                                        I have the same problem, i posted a question at the Domoticz Forum :
                                        Not reconnecting serial portt

                                        Greetz Peer

                                        Domoticz / My Sensors / Z-Wave
                                        https://www.kermisbuks.nl

                                        1 Reply Last reply
                                        0
                                        • bjacobseB Offline
                                          bjacobseB Offline
                                          bjacobse
                                          wrote on last edited by
                                          #43

                                          Somehow I think it's more related to the linux kernel than it's a mysensors or Domticz related issue
                                          I would start to check which linux kernel you are using with uname -a and then start to search from this
                                          Maybe it could also be USB power related? Try to use a better USB power supply to your RPI
                                          https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=53832

                                          1 Reply Last reply
                                          1
                                          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.1k

                                          Posts


                                          Copyright 2025 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