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

Newbie Mayfly Setup for RS485 sensor to internet

Home Forums Mayfly Data Logger Newbie Mayfly Setup for RS485 sensor to internet

Viewing 28 reply threads
  • Author
    Posts
    • #12441
      neilh20
      Participant
        Hi, I’m a newbie to Mayfly and looking for any hints on setting up an environment.

        I’m planning the software on how to do a low power RS485 with logging/SD and sending to the internet (w

      • #12448
        fisherba
        Participant
          Hi Neil,

          I spent the day outside yesterday, adding more sensors to two existing stations, which included some RS485 sensors. I’ll share how I did it and that will hopefully help you along!
          The

        • #12463
          neilh20
          Participant
            Thanks @fisherba..
            Great to see your code..

            I’m trying though to see how I get up and going with PlatformIO

            https://github.com/EnviroDIY/ModularSensors/tree/master/examples/logging_to_Enviro

          • #12464
            fisherba
            Participant
              Hi Neil,

              You renamed the .ino file to a .cpp?

              Sorry I didn’t have time to explain what all of the things meant. 4 hours of glazed reading sounds painfully familiar.

              My platformio.ini file is

            • #12489
              Sara Damiano
              Moderator
                I’m sorry for not chiming in earlier.

                PlatformIO is definitely a much, much better system for programming than the Arduino IDE. It’s much more powerful and the library manager is very goo

              • #12490
                Sara Damiano
                Moderator
                  Oh. Oops, apparently I didn’t refresh and see Beth’s latest response. She has much better detail than me. If you use the default “src” directory, you don’t need the src
                • #12521
                  neilh20
                  Participant
                    Gosh thanks for the info. Definitely very useful.

                    Sara some amazing classes you’ve put together. Thankyou Thankyou.

                    They really hummed for me. Still amazed the way they hang together ̵

                  • #12522
                    Sara Damiano
                    Moderator
                      Please, do send in a pull request! I really deeply appreciate other people taking the time to look through my code and giving any suggestions they might have.

                      You should be able to use the build fla

                    • #12528
                      neilh20
                      Participant
                        Hi @srgdamiano – wonderful to work through the code. Very readable and nicely laid out. Very nice to step through the classes. I’m mostly used C, TinyOS/nesC, Python and now JS. But great
                      • #12529
                        Sara Damiano
                        Moderator
                          @neilh – Thank you!

                          You can connect and send data at a different rate than you log it by essentially creating two different logger objects and setting them to different intervals. The “d

                        • #12532
                          neilh20
                          Participant
                            Interesting – I would treat the logging the SD as just a step on the way to having it registered on the remote site database/cloud – whatever the transmission method.
                            I’ve done it in
                          • #12579
                            neilh20
                            Participant
                              Hi
                              I’m running into a low power issue with the sensors/RS485 turned off.
                              There is a backfeed going on, which leaves SW_3.3V at about 2V and LED3 comes on.

                              I think @aufdenkampe gave me a hin

                            • #12580
                              Sara Damiano
                              Moderator
                                The modbus power up and down *can’t* include the begin or the pin settings because the modbus functionality is built around any Arduino stream type object. You can use a modbus sensor connected
                              • #12581
                                Sara Damiano
                                Moderator
                                  Oh, and a warning on the Digi LTE-M XBee: I can’t get mine to work on the Hologram network that we’ve been using with 2G. Other people say they have, but I can’t seem to get mine t
                                • #12582
                                  neilh20
                                  Participant
                                    Hi @srgdamiano

                                    SensorBase Class – I’m a C guy trying for some class – but I’ll take the power switching where ever those in the higher classes deem it 🙂 Let me know

                                  • #12587
                                    neilh20
                                    Participant
                                      Just wondering is anybody is using the Digi Xbee S6 module.
                                      I’m trying it as my first test module
                                      I have an open guest wifi that I’ve used.
                                      It initialled configured it -.
                                      const char *wifi
                                    • #12589
                                      Sara Damiano
                                      Moderator
                                        Your setup put the Bee to go into deep sleep, but you didn’t assign a pin to be the wake-up pin. So the Bee isn’t waking up anymore. You need to either set the modem to be always on (Mod
                                      • #12592
                                        neilh20
                                        Participant
                                          Hi @srgdamiano, Thanks for the headsup on new enviroDIY/TinyGSM release. I can see init changes on https://github.com/EnviroDIY/TinyGSM/branches

                                          I did start with Mayfly setup:
                                          const char *wifiId =

                                        • #12593
                                          neilh20
                                          Participant
                                            Got Xbee Sleep access fixed.
                                            I’m now communicating to the Xbee Wifi and getting NIST time.
                                            Looks like an error on post.

                                            Fixed the Xbee Sleep access;
                                            envirodiy\ModularSensors\src\ModemOnOff.c

                                          • #12596
                                            Sara Damiano
                                            Moderator
                                              It looks like you mis-typed the last GUID’s; you put a space on the end of it. The parser doesn’t expect a space inside of the GUID, so it fails. The error is at character 333, which is
                                            • #12597
                                              neilh20
                                              Participant
                                                Ok thanks – great eye – I caught a couple of spaces when I pasted it in, but the last GUID was later
                                                Now I am posting and getting 201 back.

                                                So a question -if I’m going to submit up

                                              • #12598
                                                Sara Damiano
                                                Moderator
                                                  Up to you whether you want to work with the develop or master branch. They are currently **not** compatible with each-other though, so if you’re flipping back and forth, you’ll need to ad
                                                • #12599
                                                  fisherba
                                                  Participant
                                                    My 2-cents on which branch to use is that the *model* structure is that end users work from the master branch. @neilh20 might be overqualified as an end user, so if future readers show up on this thre
                                                  • #12600
                                                    neilh20
                                                    Participant
                                                      Thanks for the status 🙂 very much appreciate its a a work in progress – sometimes it just figuring it out. Its great to have it visible on github and to get pointers.
                                                      For software stability, te
                                                    • #12601
                                                      neilh20
                                                      Participant
                                                        Just wondering if I should be able to build from the develop or whether there are dependencies that make it too complex.
                                                        If I need to just wait until it gets to master – then thats OK as well, b
                                                      • #12602
                                                        fisherba
                                                        Participant
                                                          Neil, for the develop branch I would point to a specific commit. The current commit in develop tonight is located here:
                                                          https://github.com/EnviroDIY/ModularSensors/commit/8f1d8b58c2b9813484feed77a607
                                                        • #12603
                                                          neilh20
                                                          Participant
                                                            Thankyou @fisherba thankyou!!!. I got the Xbee SB6 wifi communicating to data.envirodiy.org

                                                            I’ve cloned locally github.com/EnviroDIY/ModularSensors
                                                            then set to develop
                                                            and copied
                                                            enviroDIY\

                                                          • #12649
                                                            neilh20
                                                            Participant

                                                            • #12653
                                                              neilh20
                                                              Participant
                                                                Thanks for all the help in diving into the ModularSensors code.
                                                                I’ve captured my notes on how to work as a developer with the layers of ModularSensors/TinGSM/KellerLib/Arduino code – https://githu
                                                            Viewing 28 reply threads
                                                            • You must be logged in to reply to this topic.