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. OpenHAB
  4. Beginner - what is wrong

Beginner - what is wrong

Scheduled Pinned Locked Moved OpenHAB
45 Posts 6 Posters 11.3k Views 6 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

    @xmonika

    The node requests an ID from the controller.. It is also shown in the MQTT on your raspberry pi, but the controller doesn't seem to reply to this ID request.

    Have you configured OpenHAB to use MQTT for the mysensor gateway? Does the log in OpenHAB tell you anything?

    Did you try to hardcode the node ID, as suggested by @gohan? If yes, could you post the node and gateway logs after this?

    gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #13

    @tbowmo he tried to add the node id, but he is stuck with the uploading of the sketch :D

    @xmonika then you start to see "uploading" in arduino IDE, try pressing the reset button on the arduino and see if it starts transferring the program.

    X 1 Reply Last reply
    0
    • gohanG gohan

      @tbowmo he tried to add the node id, but he is stuck with the uploading of the sketch :D

      @xmonika then you start to see "uploading" in arduino IDE, try pressing the reset button on the arduino and see if it starts transferring the program.

      X Offline
      X Offline
      xmonika
      wrote on last edited by
      #14

      @gohan But I don't have arduino, I have direct connection between USB/TTL and sensebender micro like this (double checked)

      CP1202 USB-TTL <-> MySensebender micro
      GND <-> GND
      3v3 <-> VCC (tried as well with AA battery without VCC connected)
      RX <-> TX
      TX <-> RX
      DTR <-> DTR

      Is there some way to manipulate reset directly on Sensebender micro? Like try to generate edge with the wire?

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

        @xmonika

        What target do you use in Arduino, when you're trying to program the sensebender micro?

        X 1 Reply Last reply
        0
        • tbowmoT tbowmo

          @xmonika

          What target do you use in Arduino, when you're trying to program the sensebender micro?

          X Offline
          X Offline
          xmonika
          wrote on last edited by
          #16

          @tbowmo In IDE (Arduino: 1.6.13 - Windows 10), I have: "Sensebender Micro, Atmega328 8Mhz" (it is also shown in the code above) is that correct configuration?

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

            @xmonika

            And you can successfully see the debug log in your terminal program, from your sensebender micro?

            X 1 Reply Last reply
            0
            • tbowmoT tbowmo

              @xmonika

              And you can successfully see the debug log in your terminal program, from your sensebender micro?

              X Offline
              X Offline
              xmonika
              wrote on last edited by
              #18

              @tbowmo Yes, i.e. now I can see in the terminal all this:

              Sensebender Micro FW 1.1req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              sensor started, id 255
               - Online!
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              isMetric: 1
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              T: 19.93
              H: 79
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              req node id
              send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
              
              tbowmoT 1 Reply Last reply
              0
              • X xmonika

                @tbowmo Yes, i.e. now I can see in the terminal all this:

                Sensebender Micro FW 1.1req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                sensor started, id 255
                 - Online!
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                isMetric: 1
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                T: 19.93
                H: 79
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                req node id
                send: 255-255-0-0 s=255,c=3,t=3,pt=0,l=0,st=ok:
                
                tbowmoT Offline
                tbowmoT Offline
                tbowmo
                Admin
                wrote on last edited by
                #19

                @xmonika and still you can not upload a new sketch to this Pcb?

                X 1 Reply Last reply
                0
                • tbowmoT tbowmo

                  @xmonika and still you can not upload a new sketch to this Pcb?

                  X Offline
                  X Offline
                  xmonika
                  wrote on last edited by
                  #20

                  @tbowmo Yes, exactly. By pressing Project Upload => not in sync and Upload error. By pressing Project Upload via programmer => just Upload error message. Here is my setup
                  0_1503605995537_IMG_20170824_221526.jpg

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

                    I'm out of ideas right now.

                    Did you try a more recent version of the arduino ide?

                    X 1 Reply Last reply
                    0
                    • tbowmoT tbowmo

                      I'm out of ideas right now.

                      Did you try a more recent version of the arduino ide?

                      X Offline
                      X Offline
                      xmonika
                      wrote on last edited by
                      #22

                      @tbowmo I will try to install all the drivers & IDE on diferent comp tomorrow. I already did the downgrade from 1.8 because of the note "Arduino IDE 1.5.x & 1.6.x compatible." in SB tech specs.
                      Anyway thanks for your help. I will have to invest more hours yet to reinvent the wheel but it is fine to have somebody to consult with.

                      tbowmoT 1 Reply Last reply
                      0
                      • X xmonika

                        @tbowmo I will try to install all the drivers & IDE on diferent comp tomorrow. I already did the downgrade from 1.8 because of the note "Arduino IDE 1.5.x & 1.6.x compatible." in SB tech specs.
                        Anyway thanks for your help. I will have to invest more hours yet to reinvent the wheel but it is fine to have somebody to consult with.

                        tbowmoT Offline
                        tbowmoT Offline
                        tbowmo
                        Admin
                        wrote on last edited by
                        #23

                        @xmonika

                        Hmm.. it should be compatible with anything above arduino 1.6.. But it's a while since I compiled anything for that target (all my sensebenders have been in "production" since june 2015)

                        1 Reply Last reply
                        0
                        • X Offline
                          X Offline
                          xmonika
                          wrote on last edited by
                          #24

                          So I have tried it on the different computer and the results are the same.

                          This is what I did:

                          • download ide 1.8 here https://www.arduino.cc/en/main/software & install
                          • download CP CP2102 win 10 drivers here https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
                          • install mysensors libraries in IDE via manage library internal tool
                          • add https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json to IDE
                          • select Sensebender micro board, COM6 (the only available), Programmer AVRISP.mkII
                          • add necessary libraries to compile the sensebender micro sketch as described here https://www.mysensors.org/about/arduino#optional---install-external-mysensors-examples - via creating zip files and add zip library file to sketch. Necessary libraries were SI7021 + sha204 + RunningAverage
                          • compile and upload the basic sketch from here https://www.openhardware.io/view/1/Sensebender-Micro

                          Result is: stk500_getsync() attempt 7 of 10: not in sync: resp=0xdb

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

                            @xmonika

                            Wait a moment, you choose AVRISP.mkII ? That shouldn't be necessary, as it is only needed if you ever want to upload a new bootloader (and then you need a different programming adapter as well)

                            You are using the build in arduino programming tool to download? (Second icon from left, in the top menu)

                            X 1 Reply Last reply
                            0
                            • tbowmoT tbowmo

                              @xmonika

                              Wait a moment, you choose AVRISP.mkII ? That shouldn't be necessary, as it is only needed if you ever want to upload a new bootloader (and then you need a different programming adapter as well)

                              You are using the build in arduino programming tool to download? (Second icon from left, in the top menu)

                              X Offline
                              X Offline
                              xmonika
                              wrote on last edited by
                              #26

                              @tbowmo Yes, second icon from the left (or Ctrl+U).
                              By pressing Project Upload via programmer (in menu Project or Ctrl+Shift+U) the result is little bit different - no stk500_getsync() attempt 7 of 10: not in sync: resp=0xdb error just uncommented Upload error.

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

                                @xmonika

                                When you have chosen SenseBender Micro as target, which sub variant did you choose? (8Mhz, or 1Mhz?) Can't remember if there are any differences in baudrate.. And I'm not at my arduino dev. machine right now. You should choose the 8Mhz as target.

                                Also could you check soldering of the board? (specially around the reset line, capacitor, resistors, atmega328)

                                That is the last things that I could think about right now..

                                1 Reply Last reply
                                0
                                • X Offline
                                  X Offline
                                  xmonika
                                  wrote on last edited by xmonika
                                  #28

                                  I have selected 8 MHz. This is what it looks like by me
                                  0_1503748835505_upload-ea2c7217-d6c6-430d-b59c-64c33302dbbc

                                  This is what I did today - got another sensebender micro (SBM) board, soldered jumpers, connected again. Then I measured the conductivity between DTR pin on CP2102 chip and capacitor on DTR wire on SBM. It shall be conected via my wires and it was correctly connected.

                                  Then I run the compillation again and the result is the same - not in sync. So I feel I have replaced everything but still getting the same error.

                                  1 Reply Last reply
                                  0
                                  • Nca78N Offline
                                    Nca78N Offline
                                    Nca78
                                    Hardware Contributor
                                    wrote on last edited by
                                    #29

                                    @xmonika do you have an arduino board ? You could try to use it to test your serial adapter.

                                    1 Reply Last reply
                                    0
                                    • X Offline
                                      X Offline
                                      xmonika
                                      wrote on last edited by
                                      #30

                                      So I tried Arduino nano (may be clone). The result is simillar - not in sync. But then I tried the nano via standard mini USB cable and also not in sync. Possibly WIN 10 related? I tried it with admin privileges.

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

                                        @xmonika or it's related to your usb 2 serial interface?

                                        1 Reply Last reply
                                        0
                                        • X Offline
                                          X Offline
                                          xmonika
                                          wrote on last edited by xmonika
                                          #32

                                          Could be but the same I get on my second computer (win 10 as well). Will experiment with that.

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


                                          33

                                          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