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. Troubleshooting
  3. Latest beta build of Domoticz (9379) crashes when adding new sensors

Latest beta build of Domoticz (9379) crashes when adding new sensors

Scheduled Pinned Locked Moved Troubleshooting
14 Posts 3 Posters 2.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.
  • GertSandersG Offline
    GertSandersG Offline
    GertSanders
    Hardware Contributor
    wrote on last edited by
    #3

    I went back to the stable release of Domoticz, still use the beta ethernet gateway and now presentation of sensors is back to normal.
    But it all started with the fact that I wanted to include a sensor based on the atmega1284p. That still seems to be a probem. The code on the sensor side is the Arduino MySensors library (2.2.0).
    So as an update: presentation of sensors does crash on 9379, still waiting for a newer version of Domoticz before I move to the beta again.

    alexsh1A 1 Reply Last reply
    1
    • GertSandersG GertSanders

      I went back to the stable release of Domoticz, still use the beta ethernet gateway and now presentation of sensors is back to normal.
      But it all started with the fact that I wanted to include a sensor based on the atmega1284p. That still seems to be a probem. The code on the sensor side is the Arduino MySensors library (2.2.0).
      So as an update: presentation of sensors does crash on 9379, still waiting for a newer version of Domoticz before I move to the beta again.

      alexsh1A Offline
      alexsh1A Offline
      alexsh1
      wrote on last edited by
      #4

      @gertsanders I replied here.

      https://forum.mysensors.org/topic/9059/solved-mys-2-2-0-my_debug-fails-on-certain-bootloaders/7

      Let's get rid of your !TSM:FPAR:FAIL issue first. ID will not be issued if parent is not found.

      1 Reply Last reply
      0
      • alexsh1A Offline
        alexsh1A Offline
        alexsh1
        wrote on last edited by
        #5

        @GertSanders
        Hi Gert. Any luck?

        GertSandersG 2 Replies Last reply
        0
        • alexsh1A alexsh1

          @GertSanders
          Hi Gert. Any luck?

          GertSandersG Offline
          GertSandersG Offline
          GertSanders
          Hardware Contributor
          wrote on last edited by GertSanders
          #6

          @alexsh1 nope. The atmega328p's all work properly and get recognised. The atmega1284p never gets a reply.
          I'm wondering if it has to do with the selection of pinout. I selected "Standard" pinout, which is a pin definition used in AVR Freaks site. There is also Bobuino and Sanguino. Still need to test those.

          1 Reply Last reply
          0
          • alexsh1A alexsh1

            @GertSanders
            Hi Gert. Any luck?

            GertSandersG Offline
            GertSandersG Offline
            GertSanders
            Hardware Contributor
            wrote on last edited by GertSanders
            #7

            @alexsh1
            SOLVED: the problem with my atmega1284p was the mapping of the CE pin.
            I needed to add the following to my sketch:
            #define MY_RF24_CE_PIN 1
            The reason is that I used a "standard" pinout, so CE is not on Arduino pin 9.
            In my pin-definition "CE" is Arduino pin 1 or chip pin PB1.
            There are several mappings possible for this chip:
            https://github.com/MCUdude/MightyCore
            So I need to look at the pin mapping again, and may refresh the boot loader with one of the MightyCore boot loaders ( I flashed this chip back in early 2015).0_1525511039763_IMG_0375.JPG

            I use the following mapping:

            // ATMEL ATMEGA1284P
            //
            //                   +---\/---+
            //           (D 0) PB0  1|        |40  PA0 (AI 0 / D24)
            //           (D 1) PB1  2|        |39  PA1 (AI 1 / D25)
            //      INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D26)
            //       PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D27)
            //    PWM/SS (D 4) PB4  5|        |36  PA4 (AI 4 / D28)
            //      MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D29)
            //  PWM/MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D30)
            //   PWM/SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D31)
            //                 RST  9|        |32  AREF
            //                 VCC 10|        |31  GND 
            //                 GND 11|        |30  AVCC
            //               XTAL2 12|        |29  PC7 (D 23)
            //               XTAL1 13|        |28  PC6 (D 22)
            //      RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
            //      TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
            // RX1/INT0 (D 10) PD2 16|        |25  PC3 (D 19) TMS
            // TX1/INT1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
            //      PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
            //      PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
            //      PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
            //                   +--------+
            //
            

            And there is some renaming here:

            static const uint8_t SS   = 4;
            static const uint8_t MOSI = 5;
            static const uint8_t MISO = 6;
            static const uint8_t SCK  = 7;
            
            static const uint8_t SDA = 17;
            static const uint8_t SCL = 16;
            static const uint8_t LED = 7;
            
            static const uint8_t A0 = 24;
            static const uint8_t A1 = 25;
            static const uint8_t A2 = 26;
            static const uint8_t A3 = 27;
            static const uint8_t A4 = 28;
            static const uint8_t A5 = 29;
            static const uint8_t A6 = 30;
            static const uint8_t A7 = 31;
            

            So most pins mapped correctly, except for CE ...

            fixed now with the #define

            alexsh1A 1 Reply Last reply
            0
            • GertSandersG GertSanders

              @alexsh1
              SOLVED: the problem with my atmega1284p was the mapping of the CE pin.
              I needed to add the following to my sketch:
              #define MY_RF24_CE_PIN 1
              The reason is that I used a "standard" pinout, so CE is not on Arduino pin 9.
              In my pin-definition "CE" is Arduino pin 1 or chip pin PB1.
              There are several mappings possible for this chip:
              https://github.com/MCUdude/MightyCore
              So I need to look at the pin mapping again, and may refresh the boot loader with one of the MightyCore boot loaders ( I flashed this chip back in early 2015).0_1525511039763_IMG_0375.JPG

              I use the following mapping:

              // ATMEL ATMEGA1284P
              //
              //                   +---\/---+
              //           (D 0) PB0  1|        |40  PA0 (AI 0 / D24)
              //           (D 1) PB1  2|        |39  PA1 (AI 1 / D25)
              //      INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D26)
              //       PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D27)
              //    PWM/SS (D 4) PB4  5|        |36  PA4 (AI 4 / D28)
              //      MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D29)
              //  PWM/MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D30)
              //   PWM/SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D31)
              //                 RST  9|        |32  AREF
              //                 VCC 10|        |31  GND 
              //                 GND 11|        |30  AVCC
              //               XTAL2 12|        |29  PC7 (D 23)
              //               XTAL1 13|        |28  PC6 (D 22)
              //      RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
              //      TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
              // RX1/INT0 (D 10) PD2 16|        |25  PC3 (D 19) TMS
              // TX1/INT1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
              //      PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
              //      PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
              //      PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
              //                   +--------+
              //
              

              And there is some renaming here:

              static const uint8_t SS   = 4;
              static const uint8_t MOSI = 5;
              static const uint8_t MISO = 6;
              static const uint8_t SCK  = 7;
              
              static const uint8_t SDA = 17;
              static const uint8_t SCL = 16;
              static const uint8_t LED = 7;
              
              static const uint8_t A0 = 24;
              static const uint8_t A1 = 25;
              static const uint8_t A2 = 26;
              static const uint8_t A3 = 27;
              static const uint8_t A4 = 28;
              static const uint8_t A5 = 29;
              static const uint8_t A6 = 30;
              static const uint8_t A7 = 31;
              

              So most pins mapped correctly, except for CE ...

              fixed now with the #define

              alexsh1A Offline
              alexsh1A Offline
              alexsh1
              wrote on last edited by
              #8

              @gertsanders that’s interesting. How exactly do you connect nrf24l01+?
              I have Mightyduino

              http://www.innovafabs.eu/index.php?route=product/category&path=18_64

              Glad you sorted it out

              GertSandersG 1 Reply Last reply
              0
              • alexsh1A alexsh1

                @gertsanders that’s interesting. How exactly do you connect nrf24l01+?
                I have Mightyduino

                http://www.innovafabs.eu/index.php?route=product/category&path=18_64

                Glad you sorted it out

                GertSandersG Offline
                GertSandersG Offline
                GertSanders
                Hardware Contributor
                wrote on last edited by
                #9

                @alexsh1

                MISO, MOSI and SCK are connected to the pins that carry this function
                CE -> PB1
                CSN -> PB4

                I use PB0 to show a flashing in the bootloader.

                alexsh1A 1 Reply Last reply
                0
                • GertSandersG GertSanders

                  @alexsh1

                  MISO, MOSI and SCK are connected to the pins that carry this function
                  CE -> PB1
                  CSN -> PB4

                  I use PB0 to show a flashing in the bootloader.

                  alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by
                  #10

                  @gertsanders Thank you! You are using prototype wires or did you come up with a PCB adapter? I would like to MySensorise it, but would rather use an adapter.

                  I also wish there was a solder joint for the power LED

                  GertSandersG 1 Reply Last reply
                  0
                  • alexsh1A alexsh1

                    @gertsanders Thank you! You are using prototype wires or did you come up with a PCB adapter? I would like to MySensorise it, but would rather use an adapter.

                    I also wish there was a solder joint for the power LED

                    GertSandersG Offline
                    GertSandersG Offline
                    GertSanders
                    Hardware Contributor
                    wrote on last edited by
                    #11

                    @alexsh1 hi Alex, it is how I routed my PCB.

                    alexsh1A 1 Reply Last reply
                    0
                    • GertSandersG GertSanders

                      @alexsh1 hi Alex, it is how I routed my PCB.

                      alexsh1A Offline
                      alexsh1A Offline
                      alexsh1
                      wrote on last edited by
                      #12

                      @gertsanders but do you have an adapter PCB like this one

                      https://oshpark.com/shared_projects/CtW4Xaow

                      or connect your PCB with wires?

                      GertSandersG 1 Reply Last reply
                      0
                      • alexsh1A alexsh1

                        @gertsanders but do you have an adapter PCB like this one

                        https://oshpark.com/shared_projects/CtW4Xaow

                        or connect your PCB with wires?

                        GertSandersG Offline
                        GertSandersG Offline
                        GertSanders
                        Hardware Contributor
                        wrote on last edited by
                        #13

                        @alexsh1
                        I have a DIL connector on my PCB, and the nrf24l01+ plugs into it. On my testboard I'm still using the non-smd version.

                        alexsh1A 1 Reply Last reply
                        1
                        • GertSandersG GertSanders

                          @alexsh1
                          I have a DIL connector on my PCB, and the nrf24l01+ plugs into it. On my testboard I'm still using the non-smd version.

                          alexsh1A Offline
                          alexsh1A Offline
                          alexsh1
                          wrote on last edited by alexsh1
                          #14

                          @gertsanders said in Latest beta build of Domoticz (9379) crashes when adding new sensors:

                          DIL connector

                          :+1:
                          I do not have a PCB. I have the atmega1284p board (Mightyduino) -> https://oshpark.com/shared_projects/zuZ4OIae

                          and would like to have a moteino like board with either nrf24l01+ or rfm69 on it

                          I can use wires to connect a transceiver but would like to have a neat solution

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


                          16

                          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