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

Sara Damiano

Forum Replies Created

Viewing 10 posts - 201 through 210 (of 465 total)
  • Author
    Posts
  • in reply to: Editing Variable UUIDs #13945
    Sara Damiano
    Moderator

      In line 239/240 you’re missing the opening brace of the setup function.  It should be void setup() { with that opening curly brace.  You can put the curly brace right after the parenthesis on line 239 or by itself on line 240.

      Missing braces and semi-colons are such a pain.  The error messages they usually cause don’t help much.

      Also, your code is missing the “loop()” function – it will set everything up and then do nothing.  You probably want to add this loop (just paste it at the end of your current code):

       

      in reply to: PlatormIO: ..Python 2.7 interpreter error #13944
      Sara Damiano
      Moderator

        You didn’t post the screenshot of the pio lib install so I’m not sure what’s happening there.

        Try installing the libraries one after the other using these commands:

        pio lib install EnviroDIY_ModularSensors

        pio lib install https://github.com/PaulStroffregen/AltSoftSerial.git

        pio lib install https://github.com/SRGDamia1/NeoSWSerial.git

        pio lib install https://github.com/EnviroDIY/SoftwareSerial_ExternalInts.git

        pio lib install https://github.com/switchdoclabs/SDL_Arduino_SSD1306.git

        I’m not sure if you need all of them, but it shouldn’t hurt to have them installed.

        in reply to: PlatormIO: ..Python 2.7 interpreter error #13934
        Sara Damiano
        Moderator

          As a beginner, I would suggest you pick either Atom OR VS Code – whichever one feels most intuitive to you – and use that one exclusively rather than attempting to flip back and forth between them.  Both editors will give you exactly the same tools for PlatformIO, but the menus and drop-downs and styling are different.  Rather than try to to remember how each is different, just pick one.

          in reply to: PlatormIO: ..Python 2.7 interpreter error #13931
          Sara Damiano
          Moderator

            Copying only an h file into your directory is *not* the proper way to install a library.  You should list the library in the “lib_deps” section of your platformio.ini and run the command pio lib install which should install the libraries listed in that section and their dependencies or you can install a single library with the command pio lib install xxx replacing xxx with either the name of the library or the location of a git repository.

            The most recent version of PlatformIO also has a point-and-click style (gui) library manager available through the platformio home menu.  See this for more information on that:  https://docs.platformio.org/en/latest/librarymanager/

            I added screen shots of how you get to the home in Atom and VSCode.

             

            in reply to: PlatormIO: ..Python 2.7 interpreter error #13928
            Sara Damiano
            Moderator

              pio lib uninstall xxx would mean “uninstall the library named xxx”.  You’d replace the “xxx” with the name of whatever library you’re trying to uninstall.  All of the documentation and examples use “xxx” meaning “replace this part with your own text”.

              I put up screen shots with the locations of buttons to open a new terminal.

               

              in reply to: Connecting to Verizon #13923
              Sara Damiano
              Moderator

                Huh. I don’t have any *good* suggestions, but he’s a hodgepodge of things to check :

                You have to use bypass or USB direct to be able to use those commands, transparent/command mode won’t work. Can you get normal responses to other commands? (ie AT – OK; ATI – modem info)  Do you have your SIM card installed? The file being cleared is on the SIM card, so it has to be installed. Do you have CFUN set to something other than 0=minimum functionality? At minimum functionality it may not be able to communicate properly with the SIM. Did you try USB direct? With the TH board you can use the side micro USB port for that – keep the USB-c plugged in for power, flip the dip switches by the micro USB both toward the plug, and then use xctu to set device options bit 2 (check the help it might be bit 4 for software usb direct enable) and enable USB direct communication on pin 7 (dio1?).

                in reply to: Editing Variable UUIDs #13910
                Sara Damiano
                Moderator

                  There’s probably a missing semi-colon or brace in your program code somewhere right above line 215.

                  Check first where you pasted in the UUID’s.  Each UUID should be enclosed with quotation marks, there should be a semicolon after both the registration token and the sampling feature and a comma after each UUID/variable in the UUID list.

                  You can also check for matching braces by clicking each starting brace/parenthesis.  VSCode should highlight its corresponding closing brace so you can see if they’re closed appropriately.

                  in reply to: SDI-12 Library #13903
                  Sara Damiano
                  Moderator

                    Delete lines 112-117 of the code I posted.

                    in reply to: Editing Variable UUIDs #13902
                    Sara Damiano
                    Moderator

                      Huh.  It’s an “access is denied” error.  I’m guessing two processes tried to write to the same temporary folder – the automatic “check for new libraries in the library folder” process and the manual install probably collided.  Did you get the same error multiple times after exiting and reopening?

                      in reply to: Connecting to Verizon #13898
                      Sara Damiano
                      Moderator

                        😛  In double checking what the number would be for Verizon when it appears on the FPLMN, the very first google hit I got was an issue with someone else trying to force a Hologram SIM to use Verizon:  https://github.com/botletics/SIM7000-LTE-Shield/issues/163  Per that thread from just a few days ago, others suspect that Verizon has just very recently clamped down again booting out most Hologram users.

                        Are you totally sure you can’t just use the weak AT&T signal?  What about T-Mobile?  (As a T-Mobile subscriber, I’m dubious that there’s anywhere that T-Mobile exits and not AT&T.)  You might be able to hop to T-Mobile by using bypass and setting the UMNOPROF to 5.  I haven’t ever tried it and you might be denied by the network, but here’s a chunk of code you can add to your setup that might work:

                         

                      Viewing 10 posts - 201 through 210 (of 465 total)