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. another sensors connection via usb ?

another sensors connection via usb ?

Scheduled Pinned Locked Moved Domoticz
8 Posts 3 Posters 1.6k 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.
  • K Offline
    K Offline
    Koniu
    wrote on last edited by
    #1

    can a nano be a node for this gate?0_1533111443734_20180731_213638.jpg

    mfalkviddM 1 Reply Last reply
    0
    • K Koniu

      can a nano be a node for this gate?0_1533111443734_20180731_213638.jpg

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

      Welcome to the MySensors community @koniu

      Use an usb cable. You'll want a Type A (on the rpi side) to Mini B (on the Nano side). See https://www.mycablemart.com/store/cart.php?m=product_list&c=26 for a picture of the different usb connectors.

      K 1 Reply Last reply
      0
      • K Offline
        K Offline
        Koniu
        wrote on last edited by
        #3

        You've made my day :)))
        I was referring to the code for nano

        rejoe2R 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          Welcome to the MySensors community @koniu

          Use an usb cable. You'll want a Type A (on the rpi side) to Mini B (on the Nano side). See https://www.mycablemart.com/store/cart.php?m=product_list&c=26 for a picture of the different usb connectors.

          K Offline
          K Offline
          Koniu
          wrote on last edited by
          #4

          Welcome @mfalkvidd

          1 Reply Last reply
          0
          • K Koniu

            You've made my day :)))
            I was referring to the code for nano

            rejoe2R Offline
            rejoe2R Offline
            rejoe2
            wrote on last edited by
            #5

            @koniu In general this is possible. Both mcu's have to be configured as a gateway, so you may base your code on the serial gw sketch.
            BUT: Handling multiple GW's is not supported by all controllers and using 2 mcus with a CH340 USB-serial converter (in case your nano is also equipped with that type) may be tricky to handle in Linux as they seem to be identical for udev etc.
            Wrt. controller: E.g. FHEM soports multiple GW's but will mesh all incoming data in one Node and can only use one of them as an adress for active commands like switching relays or set initial values for counters. So at least use different Child ID's for your "S"-es on both mcus

            Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

            K 1 Reply Last reply
            1
            • rejoe2R rejoe2

              @koniu In general this is possible. Both mcu's have to be configured as a gateway, so you may base your code on the serial gw sketch.
              BUT: Handling multiple GW's is not supported by all controllers and using 2 mcus with a CH340 USB-serial converter (in case your nano is also equipped with that type) may be tricky to handle in Linux as they seem to be identical for udev etc.
              Wrt. controller: E.g. FHEM soports multiple GW's but will mesh all incoming data in one Node and can only use one of them as an adress for active commands like switching relays or set initial values for counters. So at least use different Child ID's for your "S"-es on both mcus

              K Offline
              K Offline
              Koniu
              wrote on last edited by
              #6

              @rejoe2 Thanks, it works only with different USB-serial converters - for the same mix children
              @mfalkvidd cable - xD

              rejoe2R 1 Reply Last reply
              0
              • K Koniu

                @rejoe2 Thanks, it works only with different USB-serial converters - for the same mix children
                @mfalkvidd cable - xD

                rejoe2R Offline
                rejoe2R Offline
                rejoe2
                wrote on last edited by
                #7

                @koniu said in another sensors connection via usb ?:

                @rejoe2 Thanks, it works only with different USB-serial converters - for the same mix children

                Sorry, but I don't get your point.
                It also works using two CHG340-Nanos, but eg. in FHEM you best would distinguish them using the output of ls -l /dev/serial/by-path

                And also when using two different converters it would in any case make much sense to use different ChildID's to avoid mixing up the data from both Nodes.

                Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                K 1 Reply Last reply
                0
                • rejoe2R rejoe2

                  @koniu said in another sensors connection via usb ?:

                  @rejoe2 Thanks, it works only with different USB-serial converters - for the same mix children

                  Sorry, but I don't get your point.
                  It also works using two CHG340-Nanos, but eg. in FHEM you best would distinguish them using the output of ls -l /dev/serial/by-path

                  And also when using two different converters it would in any case make much sense to use different ChildID's to avoid mixing up the data from both Nodes.

                  K Offline
                  K Offline
                  Koniu
                  wrote on last edited by
                  #8

                  @rejoe2 Two different usb-serial converters work well without additional settings.
                  And You're right - in any case it makes sense to use different ChildIDs :)

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


                  21

                  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