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. Development
  3. MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

Scheduled Pinned Locked Moved Development
otamyscontrollermysbootloader
198 Posts 53 Posters 85.3k Views 58 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.
  • rollercontainerR rollercontainer

    @Takero https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/MyConfig.h#L387

    TakeroT Offline
    TakeroT Offline
    Takero
    Hardware Contributor
    wrote on last edited by
    #35

    @rollercontainer said:

    @Takero https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/MyConfig.h#L387

    Yes, i know what, but this is not there I am looking for.

    The Autor wrote:
    Attached bootloader file, compiled with these settings:

    nRF24 (Channel 76, base address 0xA8A8E1FC00, data rate 250kbs)
    115200 baud (16Mhz) or 57600 (8Mhz)

    I want a Bootloader file with Channel 105.

    rollercontainerR 1 Reply Last reply
    0
    • TakeroT Takero

      @rollercontainer said:

      @Takero https://github.com/mysensors/Arduino/blob/development/libraries/MySensors/MyConfig.h#L387

      Yes, i know what, but this is not there I am looking for.

      The Autor wrote:
      Attached bootloader file, compiled with these settings:

      nRF24 (Channel 76, base address 0xA8A8E1FC00, data rate 250kbs)
      115200 baud (16Mhz) or 57600 (8Mhz)

      I want a Bootloader file with Channel 105.

      rollercontainerR Offline
      rollercontainerR Offline
      rollercontainer
      wrote on last edited by
      #36

      sorry, you are right. Since the source isnt yet available, you cant compile your custom bootloader. So, thats a no.

      1 Reply Last reply
      0
      • n1ck1355N Offline
        n1ck1355N Offline
        n1ck1355
        wrote on last edited by
        #37

        @tekka here is the log output:

        05.04.16 21:51:34	STARTUP	Initialize message logging
        05.04.16 21:51:34	STARTUP	1.0.0 (build 3312)
        05.04.16 21:51:34	STARTUP	FPC 3.0.0 / Lazarus 1.6
        05.04.16 21:51:34	STARTUP	still under development :) tekka 2016
        05.04.16 21:51:34	STARTUP	Load INI file...
        05.04.16 21:51:34	STARTUP	INI version NA
        05.04.16 21:52:08	INFO	Connected to 192.168.0.101:5003
        05.04.16 21:52:23	RX	2;255;3;0;15;0100
        05.04.16 21:52:23	NODE	New node discovered, node id=2
        05.04.16 21:52:23	CHILD	New child discovered, node id=2, child id=internal
        05.04.16 21:52:30	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:52:30	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:52:30	INFO	BL version=258
        05.04.16 21:52:30	INFO	No FW assigned
        05.04.16 21:52:36	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:52:36	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:52:36	INFO	BL version=258
        05.04.16 21:52:36	INFO	No FW assigned
        05.04.16 21:52:43	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:52:43	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:52:43	INFO	BL version=258
        05.04.16 21:52:43	INFO	No FW assigned
        05.04.16 21:53:00	RX	2;255;3;0;15;0100
        05.04.16 21:53:07	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:53:07	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:53:07	INFO	BL version=258
        05.04.16 21:53:07	INFO	No FW assigned
        05.04.16 21:53:14	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:53:14	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:53:14	INFO	BL version=258
        05.04.16 21:53:14	INFO	No FW assigned
        05.04.16 21:53:21	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:53:21	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:53:21	INFO	BL version=258
        05.04.16 21:53:21	INFO	No FW assigned
        05.04.16 21:53:38	RX	2;255;3;0;15;0100
        05.04.16 21:53:45	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:53:45	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:53:45	INFO	BL version=258
        05.04.16 21:53:45	INFO	No FW assigned
        05.04.16 21:53:52	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:53:52	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:53:52	INFO	BL version=258
        05.04.16 21:53:52	INFO	No FW assigned
        05.04.16 21:53:58	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:53:58	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:53:58	INFO	BL version=258
        05.04.16 21:53:58	INFO	No FW assigned
        05.04.16 21:54:16	RX	2;255;3;0;15;0100
        05.04.16 21:54:23	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:54:23	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:54:23	INFO	BL version=258
        05.04.16 21:54:23	INFO	No FW assigned
        05.04.16 21:54:29	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:54:29	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:54:29	INFO	BL version=258
        05.04.16 21:54:29	INFO	No FW assigned
        05.04.16 21:54:36	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:54:36	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:54:36	INFO	BL version=258
        05.04.16 21:54:36	INFO	No FW assigned
        05.04.16 21:54:54	RX	2;255;3;0;15;0100
        05.04.16 21:55:01	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:55:01	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:55:01	INFO	BL version=258
        05.04.16 21:55:01	INFO	No FW assigned
        05.04.16 21:55:07	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:55:07	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:55:07	INFO	BL version=258
        05.04.16 21:55:07	INFO	No FW assigned
        05.04.16 21:55:14	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:55:14	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:55:14	INFO	BL version=258
        05.04.16 21:55:14	INFO	No FW assigned
        05.04.16 21:55:32	RX	2;255;3;0;15;0100
        05.04.16 21:55:38	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:55:38	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:55:38	INFO	BL version=258
        05.04.16 21:55:38	INFO	No FW assigned
        05.04.16 21:55:45	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:55:45	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:55:45	INFO	BL version=258
        05.04.16 21:55:45	INFO	No FW assigned
        05.04.16 21:55:52	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:55:52	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:55:52	INFO	BL version=258
        05.04.16 21:55:52	INFO	No FW assigned
        05.04.16 21:56:10	RX	2;255;3;0;15;0100
        05.04.16 21:56:16	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:56:16	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:56:16	INFO	BL version=258
        05.04.16 21:56:16	INFO	No FW assigned
        05.04.16 21:56:23	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:56:23	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:56:23	INFO	BL version=258
        05.04.16 21:56:23	INFO	No FW assigned
        05.04.16 21:56:30	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:56:30	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:56:30	INFO	BL version=258
        05.04.16 21:56:30	INFO	No FW assigned
        05.04.16 21:56:47	RX	2;255;3;0;15;0100
        05.04.16 21:56:54	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:56:54	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:56:54	INFO	BL version=258
        05.04.16 21:56:54	INFO	No FW assigned
        05.04.16 21:57:01	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:57:01	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:57:01	INFO	BL version=258
        05.04.16 21:57:01	INFO	No FW assigned
        05.04.16 21:57:07	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:57:07	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:57:07	INFO	BL version=258
        05.04.16 21:57:07	INFO	No FW assigned
        05.04.16 21:57:25	RX	2;255;3;0;15;0100
        05.04.16 21:57:32	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:57:32	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:57:32	INFO	BL version=258
        05.04.16 21:57:32	INFO	No FW assigned
        05.04.16 21:57:39	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:57:39	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:57:39	INFO	BL version=258
        05.04.16 21:57:39	INFO	No FW assigned
        05.04.16 21:57:45	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:57:45	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:57:45	INFO	BL version=258
        05.04.16 21:57:45	INFO	No FW assigned
        05.04.16 21:58:03	RX	2;255;3;0;15;0100
        05.04.16 21:58:10	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:58:10	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:58:10	INFO	BL version=258
        05.04.16 21:58:10	INFO	No FW assigned
        05.04.16 21:58:16	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:58:16	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:58:16	INFO	BL version=258
        05.04.16 21:58:16	INFO	No FW assigned
        05.04.16 21:58:23	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:58:23	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:58:23	INFO	BL version=258
        05.04.16 21:58:23	INFO	No FW assigned
        05.04.16 21:58:41	RX	2;255;3;0;15;0100
        05.04.16 21:58:45	USER	Debug=FALSE
        05.04.16 21:58:45	INFO	*** Logging STOP ***
        05.04.16 21:58:47	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:58:47	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:58:47	INFO	BL version=258
        05.04.16 21:58:47	INFO	No FW assigned
        05.04.16 21:58:54	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:58:54	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:58:54	INFO	BL version=258
        05.04.16 21:58:54	INFO	No FW assigned
        05.04.16 21:59:01	RX	2;255;4;0;0;FFFFFFFF0800077E0102
        05.04.16 21:59:01	DEBUG	Undefined firmware/type for node=2
        05.04.16 21:59:01	INFO	BL version=258
        05.04.16 21:59:01	INFO	No FW assigned
        

        hope it helps finding out whats wrong ;)

        1 Reply Last reply
        0
        • tekkaT tekka

          @Fabien Are you running MYSController on WINE? I updated a few things, please update to the most recent version of MYSController (build 3312, here or via update button) and post the log. Thanks.

          F Offline
          F Offline
          Fabien
          wrote on last edited by Fabien
          #38

          @tekka I try with build 3312 and working fine with wine
          Now I'm looking for I_PRESENTATION. With 2.0 beta it doesn't seem to work. May I use smartSleep ?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Fabien
            wrote on last edited by
            #39

            So after few test, wrks fine with I_PRESENTATION request and using smartSleep (with interrupts too).

            1 Reply Last reply
            1
            • n1ck1355N Offline
              n1ck1355N Offline
              n1ck1355
              wrote on last edited by
              #40

              @tekka : do you have any clue whats wrong with my setup?

              tekkaT 1 Reply Last reply
              0
              • DrJeffD Offline
                DrJeffD Offline
                DrJeff
                wrote on last edited by
                #41

                Does the gateway need the OTA firmware (flashed) written to it as well as the Nodes?

                tekkaT 1 Reply Last reply
                0
                • n1ck1355N n1ck1355

                  @tekka : do you have any clue whats wrong with my setup?

                  tekkaT Offline
                  tekkaT Offline
                  tekka
                  Admin
                  wrote on last edited by tekka
                  #42

                  @n1ck1355 yes, probably there is a timing issue with serial uploads. Need to review the STK500 code. Can you confirm that OTA FW updates work fine?

                  1 Reply Last reply
                  0
                  • DrJeffD DrJeff

                    Does the gateway need the OTA firmware (flashed) written to it as well as the Nodes?

                    tekkaT Offline
                    tekkaT Offline
                    tekka
                    Admin
                    wrote on last edited by
                    #43

                    @DrJeff No, only the nodes

                    DrJeffD 1 Reply Last reply
                    0
                    • tekkaT tekka

                      @DrJeff No, only the nodes

                      DrJeffD Offline
                      DrJeffD Offline
                      DrJeff
                      wrote on last edited by
                      #44

                      @tekka Cool thanks, can I use Arduino as ISP to program bootloader?

                      tekkaT 1 Reply Last reply
                      0
                      • DrJeffD DrJeff

                        @tekka Cool thanks, can I use Arduino as ISP to program bootloader?

                        tekkaT Offline
                        tekkaT Offline
                        tekka
                        Admin
                        wrote on last edited by
                        #45

                        @DrJeff Yep :)

                        DrJeffD 1 Reply Last reply
                        0
                        • tekkaT tekka

                          @DrJeff Yep :)

                          DrJeffD Offline
                          DrJeffD Offline
                          DrJeff
                          wrote on last edited by
                          #46

                          @tekka , Time to try Thanks! :)

                          1 Reply Last reply
                          0
                          • n1ck1355N Offline
                            n1ck1355N Offline
                            n1ck1355
                            wrote on last edited by
                            #47

                            @tekka yes ota fw updates works. Tried it with the Time fw

                            1 Reply Last reply
                            0
                            • n1ck1355N Offline
                              n1ck1355N Offline
                              n1ck1355
                              wrote on last edited by n1ck1355
                              #48

                              @tekka i musst revert my previous post...
                              I've OTA uploaded the sketch from my first post:

                              void setup() {
                                Serial.begin(57600);
                                Serial.println("Setup Start");
                              }
                              
                              void loop() {
                              }
                              

                              and i connected the board over Serial with my computer. After uploading the sketch i did not noticed any output on the serial monitor in the Arduino IDE. Also checked the transfer rate.

                              However the time reporter firmware works fine.

                              1 Reply Last reply
                              0
                              • siklosiS Offline
                                siklosiS Offline
                                siklosi
                                wrote on last edited by
                                #49

                                Is there a way to send ota firmware to node using some cli (python or...) script? I'm using MySensors with domoticz on RPi and when flashing new firmware I usually disconnect gw from rpi plug it into notebook and send fw using MYSController. If I could just disable gw in domoticz and send fw using some script it would be great until (if) domoticz gets support for ota fw.

                                1 Reply Last reply
                                1
                                • rollercontainerR Offline
                                  rollercontainerR Offline
                                  rollercontainer
                                  wrote on last edited by rollercontainer
                                  #50

                                  I've just tried two 3,3V Pro Minis. Flashed the 8MHz MYSBootloader without problems (Nano as ISP). After that I connected the FTDI Adapter and programmed Blink and ReadAnalogVoltage examples without error. Both didn't worked on both Pro Minis. With original Bootloaders, they work.

                                  Where is my fault?

                                  tekkaT 1 Reply Last reply
                                  0
                                  • rollercontainerR rollercontainer

                                    I've just tried two 3,3V Pro Minis. Flashed the 8MHz MYSBootloader without problems (Nano as ISP). After that I connected the FTDI Adapter and programmed Blink and ReadAnalogVoltage examples without error. Both didn't worked on both Pro Minis. With original Bootloaders, they work.

                                    Where is my fault?

                                    tekkaT Offline
                                    tekkaT Offline
                                    tekka
                                    Admin
                                    wrote on last edited by tekka
                                    #51

                                    @rollercontainer You have to provide additional information such as logs, etc. for troubleshooting

                                    1 Reply Last reply
                                    0
                                    • Thar0lT Offline
                                      Thar0lT Offline
                                      Thar0l
                                      wrote on last edited by
                                      #52

                                      @tekka Serial not working after uploading MYSbootloader v1.3pre. ArduinoProMini 5v16Mhz. Is it normal?

                                      tekkaT 1 Reply Last reply
                                      0
                                      • Thar0lT Thar0l

                                        @tekka Serial not working after uploading MYSbootloader v1.3pre. ArduinoProMini 5v16Mhz. Is it normal?

                                        tekkaT Offline
                                        tekkaT Offline
                                        tekka
                                        Admin
                                        wrote on last edited by
                                        #53

                                        @Алексей-Гусаров please provide additional information such as config and logs.

                                        Thar0lT 1 Reply Last reply
                                        0
                                        • tekkaT tekka

                                          @Алексей-Гусаров please provide additional information such as config and logs.

                                          Thar0lT Offline
                                          Thar0lT Offline
                                          Thar0l
                                          wrote on last edited by Thar0l
                                          #54

                                          @tekka
                                          boards.txt:

                                          ######## settings for ext XTAL 16Mhz, EESAVE, BOD1V8, no lock
                                          proMYSBL16.name=ATmega328 external 16Mhz with MYSBootloader
                                          proMYSBL16.upload.tool=avrdude
                                          proMYSBL16.upload.protocol=arduino
                                          proMYSBL16.upload.maximum_size=30720
                                          proMYSBL16.upload.maximum_data_size=2048
                                          proMYSBL16.upload.speed=115200
                                          proMYSBL16.bootloader.tool=avrdude
                                          proMYSBL16.bootloader.low_fuses=0xFF
                                          proMYSBL16.bootloader.high_fuses=0xD2
                                          proMYSBL16.bootloader.extended_fuses=0x06
                                          proMYSBL16.bootloader.unlock_bits=0x3F
                                          proMYSBL16.bootloader.lock_bits=0x3F
                                          proMYSBL16.bootloader.file=MySensors/MYSBootloaderV13pre.hex
                                          proMYSBL16.build.mcu=atmega328p
                                          proMYSBL16.build.f_cpu=16000000L
                                          proMYSBL16.build.board=AVR_UNO
                                          proMYSBL16.build.core=arduino
                                          proMYSBL16.build.variant=standard
                                          
                                          ######## settings for 8Mhz internal clock, EESAVE, BOD1V8, no lock
                                          proMYSBL8.name=ATmega328 internal 8Mhz with MYSBootloader
                                          proMYSBL8.upload.tool=avrdude
                                          proMYSBL8.upload.protocol=arduino
                                          proMYSBL8.upload.maximum_size=30720
                                          proMYSBL8.upload.maximum_data_size=2048
                                          proMYSBL8.upload.speed=57600
                                          proMYSBL8.bootloader.tool=avrdude
                                          proMYSBL8.bootloader.low_fuses=0xE2
                                          proMYSBL8.bootloader.high_fuses=0xD2
                                          proMYSBL8.bootloader.extended_fuses=0x06
                                          proMYSBL8.bootloader.unlock_bits=0x3F
                                          proMYSBL8.bootloader.lock_bits=0x3F
                                          proMYSBL8.bootloader.file=MySensors/MYSBootloaderV13pre.hex
                                          proMYSBL8.build.mcu=atmega328p
                                          proMYSBL8.build.f_cpu=8000000L
                                          proMYSBL8.build.board=AVR_UNO
                                          proMYSBL8.build.core=arduino
                                          proMYSBL8.build.variant=standard
                                          

                                          MyConfig.h:

                                          #ifdef MY_DISABLED_SERIAL
                                          #undef MY_DEBUG
                                          #endif
                                          
                                          #ifndef MY_BAUD_RATE
                                          #define MY_BAUD_RATE 115200
                                          #endif
                                          
                                          //#define MY_DISABLE_REMOTE_RESET
                                          
                                          //#define MY_RADIO_NRF24
                                          //#define MY_RADIO_RFM69
                                          //#define MY_RS485
                                          
                                          #ifndef MY_NODE_ID
                                          #define MY_NODE_ID AUTO
                                          #endif
                                          
                                          #ifndef MY_PARENT_NODE_ID
                                          #define MY_PARENT_NODE_ID AUTO
                                          #endif
                                          
                                          // #define MY_REPEATER_FEATURE
                                          
                                          #ifndef MY_SMART_SLEEP_WAIT_DURATION
                                          #define MY_SMART_SLEEP_WAIT_DURATION 500
                                          #endif
                                          
                                          //#define MY_OTA_FIRMWARE_FEATURE
                                          
                                          #ifndef MY_OTA_FLASH_SS
                                          #define MY_OTA_FLASH_SS 8
                                          #endif
                                          
                                          #ifndef MY_OTA_FLASH_JDECID
                                          #define MY_OTA_FLASH_JDECID 0x1F65
                                          #endif
                                          
                                          #ifndef MY_GATEWAY_MAX_RECEIVE_LENGTH
                                          #define MY_GATEWAY_MAX_RECEIVE_LENGTH 100
                                          #endif
                                          
                                          #ifndef MY_GATEWAY_MAX_SEND_LENGTH
                                          #define MY_GATEWAY_MAX_SEND_LENGTH 120
                                          #endif
                                          
                                          #ifndef MY_GATEWAY_MAX_CLIENTS
                                          #define MY_GATEWAY_MAX_CLIENTS 1
                                          #endif
                                          
                                          //#define MY_LEDS_BLINKING_FEATURE
                                          
                                          //#define MY_WITH_LEDS_BLINKING_INVERSE
                                          
                                          //#define MY_DEFAULT_ERR_LED x
                                          //#define MY_DEFAULT_TX_LED x
                                          //#define MY_DEFAULT_RX_LED x
                                          
                                          //#define MY_INCLUSION_MODE_FEATURE
                                          
                                          //#define MY_INCLUSION_BUTTON_FEATURE
                                          
                                          #ifndef MY_INCLUSION_MODE_FEATURE
                                          #undef MY_INCLUSION_BUTTON_FEATURE
                                          #endif
                                          
                                          #ifndef MY_INCLUSION_MODE_BUTTON_PIN
                                          	#if defined(ARDUINO_ARCH_ESP8266)
                                          		#define MY_INCLUSION_MODE_BUTTON_PIN 5
                                          	#else
                                          		#define MY_INCLUSION_MODE_BUTTON_PIN 3
                                          	#endif
                                          #endif
                                          
                                          #ifndef MY_INCLUSION_MODE_DURATION
                                          #define MY_INCLUSION_MODE_DURATION 60
                                          #endif
                                          
                                          #if defined(MY_INCLUSION_BUTTON_EXTERNAL_PULLUP)
                                          #define MY_INCLUSION_BUTTON_PRESSED HIGH
                                          #else
                                          #define MY_INCLUSION_BUTTON_PRESSED LOW
                                          #endif
                                          
                                          //#define MY_SIGNING_ATSHA204
                                          
                                          //#define MY_SIGNING_SOFT
                                          
                                          //#define MY_SIGNING_REQUEST_SIGNATURES
                                          
                                          #ifndef MY_VERIFICATION_TIMEOUT_MS
                                          #define MY_VERIFICATION_TIMEOUT_MS 5000
                                          #endif
                                          
                                          //#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
                                          
                                          #ifndef MY_SIGNING_ATSHA204_PIN
                                          #define MY_SIGNING_ATSHA204_PIN 17
                                          #endif
                                          
                                          #ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
                                          #define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
                                          #endif
                                          
                                          #ifndef MY_RS485_BAUD_RATE
                                          #define MY_RS485_BAUD_RATE 9600
                                          #endif
                                          
                                          #ifndef MY_RS485_MAX_MESSAGE_LENGTH
                                          #define MY_RS485_MAX_MESSAGE_LENGTH 40
                                          #endif
                                          
                                          //#define MY_RF24_ENABLE_ENCRYPTION
                                          
                                          #ifndef MY_RF24_CE_PIN
                                          	#if defined(ARDUINO_ARCH_ESP8266)
                                          		#define MY_RF24_CE_PIN 4
                                          	#elif defined(ARDUINO_ARCH_SAMD)
                                          		#define MY_RF24_CE_PIN 27
                                          	#else
                                          		#define MY_RF24_CE_PIN 9
                                          	#endif
                                          #endif
                                          
                                          #ifndef MY_RF24_CS_PIN
                                          	#if defined(ARDUINO_ARCH_ESP8266)
                                          		#define MY_RF24_CS_PIN 15
                                          	#elif defined(ARDUINO_ARCH_SAMD)
                                          		#define MY_RF24_CS_PIN 3
                                          	#else
                                          		#define MY_RF24_CS_PIN 10
                                          	#endif
                                          #endif
                                          
                                          #ifndef MY_RF24_PA_LEVEL
                                          #define MY_RF24_PA_LEVEL RF24_PA_MAX
                                          #endif
                                          
                                          #ifndef MY_RF24_CHANNEL
                                          #define MY_RF24_CHANNEL	76
                                          #endif
                                          
                                          #ifndef MY_RF24_DATARATE
                                          #define MY_RF24_DATARATE RF24_250KBPS
                                          #endif
                                          
                                          #ifndef MY_RF24_BASE_RADIO_ID
                                          #define MY_RF24_BASE_RADIO_ID ((uint64_t)0xA8A8E1FC00LL)
                                          #endif
                                          
                                          //#define MY_SOFTSPI
                                          
                                          #ifndef MY_SOFT_SPI_SCK_PIN
                                          #define MY_SOFT_SPI_SCK_PIN 14
                                          #endif
                                          
                                          #ifndef MY_SOFT_SPI_MISO_PIN
                                          #define MY_SOFT_SPI_MISO_PIN 16
                                          #endif
                                          
                                          #ifndef MY_SOFT_SPI_MOSI_PIN
                                          #define MY_SOFT_SPI_MOSI_PIN 15
                                          #endif
                                          
                                          #ifndef MY_RFM69_FREQUENCY
                                          #define MY_RFM69_FREQUENCY   RF69_868MHZ
                                          #endif
                                          
                                          //#define MY_IS_RFM69HW
                                          
                                          #ifdef MY_IS_RFM69HW
                                          	#define MY_RFM69HW true
                                          #else
                                          	#define MY_RFM69HW false
                                          #endif
                                          
                                          #ifndef MY_RFM69_NETWORKID
                                          #define MY_RFM69_NETWORKID     100
                                          #endif
                                          
                                          #ifndef MY_RF69_IRQ_PIN
                                          #define MY_RF69_IRQ_PIN RF69_IRQ_PIN
                                          #endif
                                          
                                          #ifndef MY_RF69_SPI_CS
                                          #define MY_RF69_SPI_CS RF69_SPI_CS
                                          #endif
                                          
                                          #ifndef MY_RF69_IRQ_NUM
                                          	#if defined(ARDUINO_ARCH_ESP8266)
                                          		#define MY_RF69_IRQ_NUM MY_RF69_IRQ_PIN
                                          	#else
                                          		#define MY_RF69_IRQ_NUM RF69_IRQ_NUM
                                          	#endif
                                          #endif
                                          
                                          //#define MY_RFM69_ENABLE_ENCRYPTION
                                          
                                          //#define MY_GATEWAY_W5100
                                          //#define MY_GATEWAY_ENC28J60
                                          //#define MY_GATEWAY_ESP8266
                                          
                                          #ifndef MY_PORT
                                          #define MY_PORT 5003
                                          #endif
                                          
                                          //#define MY_USE_UDP
                                          
                                          #ifndef MY_IP_RENEWAL_INTERVAL
                                          #define MY_IP_RENEWAL_INTERVAL 60000
                                          #endif
                                          
                                          #ifndef MY_MAC_ADDRESS
                                          #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
                                          #endif
                                          
                                          //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 254
                                          
                                          //#define MY_NODE_LOCK_FEATURE
                                          
                                          #ifndef MY_NODE_UNLOCK_PIN
                                          #define MY_NODE_UNLOCK_PIN 14
                                          #endif
                                          
                                          #ifndef MY_NODE_LOCK_COUNTER_MAX
                                          #define MY_NODE_LOCK_COUNTER_MAX 5
                                          #endif
                                          
                                          

                                          In node scetch:

                                          #define MY_DEBUG
                                          

                                          I have no logs from node because serial isn't working at all. Which logs should I attach?

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


                                          19

                                          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