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. Debug to a sd-card module?

Debug to a sd-card module?

Scheduled Pinned Locked Moved Development
28 Posts 8 Posters 6.2k Views 10 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.
  • sundberg84S Offline
    sundberg84S Offline
    sundberg84
    Hardware Contributor
    wrote on last edited by sundberg84
    #1

    Hi!

    I have an idea i want to run by you guys before starting up.

    I have sometimes random dropouts from my Nrf network - and i guess thats part of DIY. The node isnt fully tested and maybe behaves differently when the voltage drops, some hardware fails or the radio is re-oriented which causes bad reception...

    My problem is, I want to know what happens and make my nodes more stable but removing the node from its position doesnt make the debug realistic.

    My thought was to develop a second node, which have a sd-card module and writes the MySensors serial output to a sd-card. Is this possible? Am i re-inventing something here or making it to difficult?

    I liked the idea @AWI had about remote debugging with V_TEXT but my major issues is the radio communication and I dont know it this is because bad hardware or the radio behaves worse when voltage drops.

    Any ideas is appreciated.

    Projectpage: https://forum.mysensors.org/topic/8040/the-logger-machine-short-and-long-term-serial-logging

    Controller: Proxmox VM - Home Assistant
    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

      It should be possible, with a couple of hacks to the core. I don't know if the atmega328 have enough program space for it though.

      (the Sensebender GW have a SDCard interface directly on the board ;) )

      sundberg84S 1 Reply Last reply
      0
      • tbowmoT tbowmo

        It should be possible, with a couple of hacks to the core. I don't know if the atmega328 have enough program space for it though.

        (the Sensebender GW have a SDCard interface directly on the board ;) )

        sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by sundberg84
        #3

        @tbowmo Thanks!
        To be clear, im talking about a second module/node which is removable and attachable to all other nodes with ftdi header. It would not have to include MySensors library/code if thats a problem with space.

        More of a clean arduino serial logger... attachable to all nodes which behaves bad (and have debug defined offcourse).

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        1 Reply Last reply
        0
        • mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          Great idea.

          Creating a non-Mysensors "log node" that listens on serial and logs everything to sd card should be fairly easy. With serial debug on on the troublesome node, all that needs to be done is to connect the log node to the serial port of the troublesome node.

          1 Reply Last reply
          0
          • sundberg84S sundberg84

            Hi!

            I have an idea i want to run by you guys before starting up.

            I have sometimes random dropouts from my Nrf network - and i guess thats part of DIY. The node isnt fully tested and maybe behaves differently when the voltage drops, some hardware fails or the radio is re-oriented which causes bad reception...

            My problem is, I want to know what happens and make my nodes more stable but removing the node from its position doesnt make the debug realistic.

            My thought was to develop a second node, which have a sd-card module and writes the MySensors serial output to a sd-card. Is this possible? Am i re-inventing something here or making it to difficult?

            I liked the idea @AWI had about remote debugging with V_TEXT but my major issues is the radio communication and I dont know it this is because bad hardware or the radio behaves worse when voltage drops.

            Any ideas is appreciated.

            Projectpage: https://forum.mysensors.org/topic/8040/the-logger-machine-short-and-long-term-serial-logging

            AWIA Offline
            AWIA Offline
            AWI
            Hero Member
            wrote on last edited by
            #5

            @sundberg84 Is it the intention to make just a serial logger? i.e. attach the second node directly to the serial out of the "problem node". That would be very easy. In a few of my first postings and also I connected a bluetooth radio to the ftdi of the pro-mini. That way you can use a pc or phone bluetooth serial program to read and log the serial output.
            0_1488276691830_upload-36e08107-32db-411b-b7ec-add9c4e495bc

            sundberg84S 1 Reply Last reply
            0
            • AWIA AWI

              @sundberg84 Is it the intention to make just a serial logger? i.e. attach the second node directly to the serial out of the "problem node". That would be very easy. In a few of my first postings and also I connected a bluetooth radio to the ftdi of the pro-mini. That way you can use a pc or phone bluetooth serial program to read and log the serial output.
              0_1488276691830_upload-36e08107-32db-411b-b7ec-add9c4e495bc

              sundberg84S Offline
              sundberg84S Offline
              sundberg84
              Hardware Contributor
              wrote on last edited by sundberg84
              #6

              @mfalkvidd - Thanks! My first thought was it should be easy... but i also thought that if it was easy someone else already made it.

              @AWI - "just a serial logger" Yes, you are correct! A serial bluetooth output! Interesting... it meets my needs for most part! :) Hmmm... maybe one should make a new hardware... The MySensors Debug Logger or something...

              Short term logging - bluetooth
              Long term logging - sd-card
              2xAA battery powered?

              This needs to be investigated! All input appreciated so keep it coming...
              Thanks guys!

              Controller: Proxmox VM - Home Assistant
              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

              AWIA 1 Reply Last reply
              0
              • sundberg84S sundberg84

                @mfalkvidd - Thanks! My first thought was it should be easy... but i also thought that if it was easy someone else already made it.

                @AWI - "just a serial logger" Yes, you are correct! A serial bluetooth output! Interesting... it meets my needs for most part! :) Hmmm... maybe one should make a new hardware... The MySensors Debug Logger or something...

                Short term logging - bluetooth
                Long term logging - sd-card
                2xAA battery powered?

                This needs to be investigated! All input appreciated so keep it coming...
                Thanks guys!

                AWIA Offline
                AWIA Offline
                AWI
                Hero Member
                wrote on last edited by
                #7

                @sundberg84 I given one of my nodes the birth name "MySensors data logger" ;-). This one listens to a few of my nodes and writes the log data to an SD card.
                If you search for 'Arduino serial logger" with google you get a plentitude of examples which do generic serial logging, either with or without time stamps.

                sundberg84S 1 Reply Last reply
                0
                • karlheinz2000K Offline
                  karlheinz2000K Offline
                  karlheinz2000
                  wrote on last edited by
                  #8

                  Another interesting option for debugging: http://jeelabs.org/wp-content/uploads/2015/06/24/ftdi-over-wifi-esp-bridge/index.html
                  But I did not test this yet.

                  1 Reply Last reply
                  0
                  • AWIA AWI

                    @sundberg84 I given one of my nodes the birth name "MySensors data logger" ;-). This one listens to a few of my nodes and writes the log data to an SD card.
                    If you search for 'Arduino serial logger" with google you get a plentitude of examples which do generic serial logging, either with or without time stamps.

                    sundberg84S Offline
                    sundberg84S Offline
                    sundberg84
                    Hardware Contributor
                    wrote on last edited by sundberg84
                    #9

                    @AWI - Ah, sorry :) I dont want to re-invent or steel something here (as you see in my first post). Im going to look more into whats out there. If you have a good working logger you can share im very happy! Its good with bluetooth but i also need a node which runs on battery if possible) to leave and log for say a week.

                    @karlheinz2000 - thanks - will look into that. It looks really promising!

                    Either way, im going to build or order something. I need a complete logger to make my system more stable.

                    Controller: Proxmox VM - Home Assistant
                    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                      hmm.. what about an ESP8266, with an sdcard interface, then you can attach to the serial port via WIFI directly, or read the log file stored on the sdcard, with a couple of web pages etc.

                      sundberg84S 1 Reply Last reply
                      0
                      • tbowmoT tbowmo

                        hmm.. what about an ESP8266, with an sdcard interface, then you can attach to the serial port via WIFI directly, or read the log file stored on the sdcard, with a couple of web pages etc.

                        sundberg84S Offline
                        sundberg84S Offline
                        sundberg84
                        Hardware Contributor
                        wrote on last edited by
                        #11

                        @tbowmo - also a great idea. I think the project mentioned by @karlheinz2000 was just that and it looks really promising. Ill dig more into this and let you know when I have some sort of solution for my needs.

                        Controller: Proxmox VM - Home Assistant
                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                        YveauxY 1 Reply Last reply
                        0
                        • sundberg84S sundberg84

                          @tbowmo - also a great idea. I think the project mentioned by @karlheinz2000 was just that and it looks really promising. Ill dig more into this and let you know when I have some sort of solution for my needs.

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #12

                          Very nice ideas guys, which could really help the community diagnosing intermittent network issues!
                          I challenge you all to enter the Contest with a great design! :clap:

                          http://yveaux.blogspot.nl

                          sundberg84S 1 Reply Last reply
                          2
                          • YveauxY Yveaux

                            Very nice ideas guys, which could really help the community diagnosing intermittent network issues!
                            I challenge you all to enter the Contest with a great design! :clap:

                            sundberg84S Offline
                            sundberg84S Offline
                            sundberg84
                            Hardware Contributor
                            wrote on last edited by
                            #13

                            @Yveaux - good idea! If someone with more spare time than me wants to give it a go, please do because I will never be able to finish for the contest ends :construction_worker:

                            Controller: Proxmox VM - Home Assistant
                            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                            1 Reply Last reply
                            0
                            • sundberg84S Offline
                              sundberg84S Offline
                              sundberg84
                              Hardware Contributor
                              wrote on last edited by sundberg84
                              #14

                              I had a free day today and begun some sketching... any input?
                              Still going with the specs:

                              • Battery (2xAA)
                              • Long term logging to SD card
                              • Short time logging through bluetooth
                              • Should last atleast 2 weeks on 2xAA

                              Controller: Proxmox VM - Home Assistant
                              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                              1 Reply Last reply
                              0
                              • sundberg84S Offline
                                sundberg84S Offline
                                sundberg84
                                Hardware Contributor
                                wrote on last edited by sundberg84
                                #15

                                Old topic, and I will probably create a project on openhardware but im making some progress with this... hardware section is under testing... software for SD-card needs to be developed so still some time ahead before finished. 2 revision of the PCB and it probably needs another round (6 weeks delivery, yay!)

                                My next step as hardware developer will be some sort of sales from openhardware with assembled modules and not only PCB but my goal will be to sell them 1 and 1 for a resonable price for all that needs a debug machine.

                                And the name? Easy Debugger Module - The Serial Debug Killer! :joy:

                                0_1502273490834_1.JPG
                                0_1502273919282_2.JPG

                                Controller: Proxmox VM - Home Assistant
                                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                1 Reply Last reply
                                5
                                • sundberg84S Offline
                                  sundberg84S Offline
                                  sundberg84
                                  Hardware Contributor
                                  wrote on last edited by
                                  #16

                                  Module is now working and can debug a MySensors node to both Bluetooth and SD card. Next and final step will be to check the booster circuit and make sure it can debug for 2 weeks on 2xAA bat (which was the goal).

                                  0_1503994049904_1.JPG

                                  I hope the next step will be a openhardware page with all the info nessecary to build one.

                                  Controller: Proxmox VM - Home Assistant
                                  MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                  MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                  RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                  1 Reply Last reply
                                  1
                                  • kisse66K Offline
                                    kisse66K Offline
                                    kisse66
                                    wrote on last edited by
                                    #17

                                    There's also OpenLog. Haven't tested yet, but just got one (China clone for about $4, Sparkfun $14.95). It's about the size of microSD card and logs all serial input. Spec says "2mA idle, 6mA at maximum recording rate" which means something like 2 weeks with 2xAA. One issue might be voltage, it says 3.3 - 12V input, don't know if it works unmodified with less, i.e. without step-up.

                                    I might also like to use the BT you included in your version.

                                    YveauxY 1 Reply Last reply
                                    0
                                    • kisse66K kisse66

                                      There's also OpenLog. Haven't tested yet, but just got one (China clone for about $4, Sparkfun $14.95). It's about the size of microSD card and logs all serial input. Spec says "2mA idle, 6mA at maximum recording rate" which means something like 2 weeks with 2xAA. One issue might be voltage, it says 3.3 - 12V input, don't know if it works unmodified with less, i.e. without step-up.

                                      I might also like to use the BT you included in your version.

                                      YveauxY Offline
                                      YveauxY Offline
                                      Yveaux
                                      Mod
                                      wrote on last edited by
                                      #18

                                      @kisse66 said in Debug to a sd-card module?:

                                      OpenLog

                                      Nice find! Thanks!

                                      http://yveaux.blogspot.nl

                                      1 Reply Last reply
                                      0
                                      • sundberg84S Offline
                                        sundberg84S Offline
                                        sundberg84
                                        Hardware Contributor
                                        wrote on last edited by sundberg84
                                        #19

                                        I'm actually using openlog for the software. Will post more info later. It's tested and open source so instead of reinventing the wheel Im trying to develop that code further for my module...

                                        And then you will have Bluetooth and booster+ voltage regulator as well 👍

                                        Specs with the sd card.module (without LEDs) are the same for my module so 2 weeks minimum are still the goal.

                                        Controller: Proxmox VM - Home Assistant
                                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                        1 Reply Last reply
                                        0
                                        • sundberg84S Offline
                                          sundberg84S Offline
                                          sundberg84
                                          Hardware Contributor
                                          wrote on last edited by
                                          #20

                                          Coming along nice... some small bugs to kill but project alive and almost finished!
                                          0_1506883200108_Image.jpg

                                          Controller: Proxmox VM - Home Assistant
                                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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


                                          7

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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