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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #4

    Could also be, if you post your code of the node we could take a look

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

      It is just new mysensebender micro out of the box, I suppose this code https://www.openhardware.io/view/1/Sensebender-Micro but I may be wrong. It has the same behavior - when GND and A0 connected during boot, the led blinks.

      1 Reply Last reply
      0
      • gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #6

        after #define MY_RADIO_NRF24 add
        #define MY_NODE_ID 1

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

          Thank you for pointing my focus. I will try to experiment with that tonight.

          X 1 Reply Last reply
          0
          • X xmonika

            Thank you for pointing my focus. I will try to experiment with that tonight.

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

            Unfortunately I couldn't move futher because of not being able to upload sketch into the node. I've bought CP1202 USB-TTL/3V3 with DTR pin, downgraded Arduino IDE to 1.6.13, set up Mysensebender micro board, COM6, ATmega328 8 MHz and tried all the programmers available but everytime got

            Arduino: 1.6.13 (Windows 10), Vývojová deska: "Sensebender Micro, Atmega328 8Mhz"
            
            Projekt zabírá 20 862 bytů (67%)  úložného místa pro program. Maximum je 30 720 bytů.
            Globální proměnné zabírají 747 bytů (36%)  dynamické paměti, 1 301 bytů zůstává pro lokální proměnné. Maximum je 2 048 bytů.
            avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xc2
            avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x37
            avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb4
            avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x57
            avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xc5
            avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x64
            avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xdb
            avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xd9
            avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe5
            avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x41
            Nastala chyba při nahrávaní projektu.
            
            Táto zpráva by měla mít víc informacií v
            "Zobrazení podrobného výstupu při kompilaci"
            podle zapnuté volby v Soubor -> Nastavení.
            

            I've tried to switch Tx/Rx but not helped. I can track serial output, so there is some transfer

            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: 21.09
            H: 53
            

            Any ideas how to setup IDE to push the code into node?

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

              Hello, you should link TX of the adapter to RX on the board, and RX to TX.
              Make sure DTR pin is corretly connected to DTR pin of the board and check all the wires you could have a defective one.
              Selected programmer in Arduino should be AVR ISP mk2

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #10

                If you have the red ftdi like in the picture, you can plug it straight in

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

                  I have this one alt text.

                  The programmer I am using is called AVRISP.mkII, hope that is correct.

                  I have the RX-TX and TX-RX connected. I tried to switch them as well and suppose they are now correct because serial monitor works. DTR on the adapter is connected to the board. The board in self test mode works ok, so it is not damaged.

                  The output is the error as above. This is very frustrating I already have some experience with arduino but here after 20+ hours of experimenting I am not able to get out of point zero.

                  Anyway thank you for your patience and help.

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

                    @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 1 Reply Last reply
                    0
                    • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          32

                                          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