Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

Mayfly sketch compiles, seems to upload, but doesn’t

Home Forums Mayfly Data Logger Mayfly sketch compiles, seems to upload, but doesn’t

Viewing 20 reply threads
  • Author
    Posts
    • #18002
      Sedhead
      Participant
        I am using VSCode and Platformio to upload sketches to my Mayfly boards. The sketches compiled and uploaded fine two weeks ago.  Today, when I went to deploy the sensors, the code compiled fine and i
      • #18007
        neilh20
        Participant
          @tahicksonstthomas-edu – just wondering if you tried rebooting, or tried it again.

          VSC and also Platfromio regularly do updates – and sometimes just exiting and starting VSC again seems t

          • #18008
            Sedhead
            Participant
              Thanks for the reply, Neil. I tried using “upload_port” in platformio.ini and there was no change. Also restarted VSC a couple of times. Tried connecting with the Mayfly off and then on. T
          • #18009
            neilh20
            Participant
              I wonder what is the size of the code ?

              From the bottom of the PIO  when I build I have

              RAM:   [=====     ]  52.2% (used 8551 bytes from 16384 bytes)

              Flash: [========= ]  87.4% (used 11362

            • #18010
              Sedhead
              Participant
                Well, that’s interesting. After running a compile check, I get:

                RAM: [ ] 0.1% (used 9 bytes from 16384 bytes)
                Flash: [ ] 0.4% (used 510 bytes from 130048 bytes)

                And when I do the same for R

              • #18012
                neilh20
                Participant
                  @tahicksonstthomas-edu  – like as you say thats interesting, all of investigations start with that.

                  Probably post the cod

                • #18013
                  Sedhead
                  Participant
                    Before I go digging through the code, I’m wondering why code would compile and run fine one week, then be “structured to not compile” the next. Do you have any idea why this might ha
                  • #18014
                    neilh20
                    Participant
                      <quote>”Before I go digging through the code, I’m wondering why code would compile and run fine one week, then be “structured to not compile” the next. Do you have any idea why this
                    • #18015
                      Sedhead
                      Participant
                        I really want to thank you for giving me help and feedback on this. Although I can’t, for the life of me, understand what’s going on, at least someone is throwing out ideas. My code is und
                      • #18016
                        neilh20
                        Participant
                          Sometime “stuff happens” and thats why virtual machines where invented.

                          If you post your git link  – and the project is set up right, I should be able to clone, and then open it in

                        • #18018
                          Sedhead
                          Participant
                            Here’s a link to a new public repo: https://github.com/tahickson/UST_Earth_Envt_Society

                            The platformio.ini file should have all you need to know in it. Should be ready to go. Thanks for giving

                          • #18019
                            neilh20
                            Participant
                              great  makes it easy to try it –

                              I cloned locally, opened the folder in VSC.

                              It pulled in the libs, and then I pressed the pio build button.

                              Advanced Memory Usage is available via “Pla

                            • #18020
                              Sedhead
                              Participant
                                That definitely sounds more like what should be happening! Thanks so much for taking the time to do this, Neil. I will try to fix things on Monday when I’m back in my office and next to my senso
                              • #18021
                                neilh20
                                Participant
                                  Goodluck with tracking it down :), some cyber screw come loose.

                                   

                                  Yes interesting to understand the basis of the technology. ChatGPT sounds coherent!! or as a “stochastic parrot”, have enou

                                • #18022
                                  neilh20
                                  Participant
                                    So good to play around with it, I asked bard.google.com a question that doesn’t have a lot written about it ..

                                    “What is the quiescent power consumption of the Bristlemouth hardware”

                                  • #18023
                                    Sedhead
                                    Participant
                                      <h1>Partially solved!</h1>
                                      I may have found part of the problem, thanks to you. I had to create a new repo in order to share my code with you. When I open that new repo in VSC from Github
                                    • #18024
                                      neilh20
                                      Participant
                                        Hey glad to have helped!!.  Whew.!

                                        Its a challenge sometime to figure out what the foundations are and build off them. I’ve had to do that before, start with a known should be working, and the

                                      • #18025
                                        Sedhead
                                        Participant
                                          Alright, I have no idea if this will help or not, but I think it’s important that I get this down for completeness.

                                          1. If I open the public repo that I shared above in VSC from
                                        • #18028
                                          neilh20
                                          Participant
                                            Well you are now into working deployment practice’s, beyond programming,

                                            So how about simplifying  (I think you’re process is getting complicated . IHMO all the guideline haven’t i

                                          • #18029
                                            Sedhead
                                            Participant
                                              I think I agree with you about the complexity of deploying multiple sensor packages, each with different UUIDs. However, I don’t think that is what’s screwing me up here. As of now, I simp
                                            • #18031
                                              neilh20
                                              Participant
                                                It seems to me its a working practice’s issue, repeatability and traceability- not a programming issue.  From a distance, seems like you should be able to see the code in the directory that you
                                              • #18034
                                                Sedhead
                                                Participant
                                                  I think that the directory structure could be the culprit. The way that I have been able to reliably get this work is the following:

                                                  1. Create a new Platformio project.
                                                  2. Create an id
                                              Viewing 20 reply threads
                                              • You must be logged in to reply to this topic.