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. Ethernet Gateway: How to turn Off Debug?

Ethernet Gateway: How to turn Off Debug?

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 3 Posters 4.5k Views 1 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #2

    http://www.mysensors.org/build/debug#enabling-debug-logging

    1 Reply Last reply
    0
    • siodS Offline
      siodS Offline
      siod
      wrote on last edited by
      #3

      Yes I've read that but it didn't work. I have to disable debug in mysensor.h to save memory and there I have a problem to disable it. I uncommented debug but then I couldn't compile.

      still learning...

      1 Reply Last reply
      0
      • hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by hek
        #4

        Master branch? Works fine here...

        What is the compile error?

        1 Reply Last reply
        0
        • siodS Offline
          siodS Offline
          siod
          wrote on last edited by
          #5

          First of all: which "debug" do I have to uncomment in mysensor.h? I think that's where I made a mistake.

          still learning...

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #6

            Just put // before "#define DEBUG" like the instruction says (in reverse)

            1 Reply Last reply
            0
            • siodS Offline
              siodS Offline
              siod
              wrote on last edited by
              #7

              yes, it sounds so easy, but I can´t find that #define DEBUG in Mysensor.h
              all I found is this:

              #ifdef DEBUG
              #define debug(x,...) debugPrint(x, ##__VA_ARGS__)
              #else
              #define debug(x,...)
              #endif
              

              I uncommented all of that, then I couldn´t compile anymore. So that´s actually my problem. I´m feeling very dumb right now because I don´t get it :(

              still learning...

              1 Reply Last reply
              0
              • M Offline
                M Offline
                MartinP
                wrote on last edited by
                #8

                You are changing in the wrong file.
                The file you should change in is MyConfig.h.

                #ifndef MyConfig_h
                #define MyConfig_h
                
                /***
                 * Configure Sensor Network
                 */
                #define RF24_CHANNEL	   76             //RF channel for the sensor net, 0-127
                #define RF24_DATARATE 	   RF24_250KBPS   //RF24_250KBPS for 250kbs, RF24_1MBPS for 1Mbps, or RF24_2MBPS for 2Mbps
                #define RF24_PA_LEVEL 	   RF24_PA_MAX    //Sensor PA Level == RF24_PA_MIN=-18dBm, RF24_PA_LOW=-12dBm, RF24_PA_HIGH=-6dBM, and RF24_PA_MAX=0dBm
                #define RF24_PA_LEVEL_GW   RF24_PA_LOW  //Gateway PA Level, defaults to Sensor net PA Level.  Tune here if using an amplified nRF2401+ in your gateway.
                #define BASE_RADIO_ID 	   ((uint64_t)0xA8A8E1FC00LL) // This is also act as base value for sensor nodeId addresses. Change this (or channel) if you have more than one sensor network.
                
                // MySensors online examples defaults
                #define DEFAULT_CE_PIN 9
                #define DEFAULT_CS_PIN 10
                
                
                /***
                 * Enable/Disable debug logging
                 */
                #define DEBUG  
                
                #endif
                
                1 Reply Last reply
                0
                • siodS Offline
                  siodS Offline
                  siod
                  wrote on last edited by
                  #9

                  mmh, I tried that before, which worked, but still was too less memory available. So I got back to http://www.mysensors.org/build/ethernet_gateway where it is described like this: "Note that the ENC28J60 mdoule uses much more memory than W5100. You probably have to disable DEBUG in MySensors.h to make it compile."
                  I´m confused now ;(

                  still learning...

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #10

                    MyConfig.h is the correct file to edit. Anything else you've seen is probably just a typo.

                    1 Reply Last reply
                    0
                    • siodS Offline
                      siodS Offline
                      siod
                      wrote on last edited by
                      #11

                      Ok, so I edited MyConfig.h but now I get this message from Arduino IDE:

                      Sketch uses 31,890 bytes (103%) of program storage space. Maximum is 30,720 bytes.
                      Global variables use 1,564 bytes (76%) of dynamic memory, leaving 484 bytes for local variables. Maximum is 2,048 bytes.

                      So it still doesn´t fit. Any idea how to save some storage space?

                      still learning...

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


                      23

                      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