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 - 101 through 110 (of 465 total)
  • Author
    Posts
  • in reply to: XBee and Hologram LTE: issues connecting to internet #14970
    Sara Damiano
    Moderator

      I wish there was some magical way to know why the connection isn’t working or to bribe the thing into working.  Obviously from this forum, and from dozens of issues in the TinyGSM library, a lot of people have trouble figuring out the right settings to get their board to connect.

      in reply to: XBee and Hologram LTE: issues connecting to internet #14969
      Sara Damiano
      Moderator

        And a new program to try to set it up in bypass to see if we can see what’s failing that way.  I’ve also posted this on GitHub here: https://github.com/EnviroDIY/ModularSensors/blob/master/tools/LTExBee_FirstConnectionBypass/LTExBee_FirstConnectionBypass.ino

        You should set your end of line back to newline instead of carriage return when running this or you might get a lot of extra blank lines in the printout.

        Sara Damiano
        Moderator

          Ugh; I thought it would work.  🙁

          Two things to try.  First, try running the same thing but change your serial monitor settings to show you more of the output.  If you’re running the Arduino IDE, when you open the serial port monitor, use the drop-down at the bottom to select “Carriage return.”  (See screenshot.)  In PlatformIO, add this to the [mayfly] (or [env]) section of your platformio.ini:

          Then rerun the same program and you should see much more extensive output.  It’s not going to fix anything, but it would be interesting to see the output.

           

          Sara Damiano
          Moderator

            The settings for the profile and the band mask should be saved on the module, so you should only need to set it up one time. But, if you’re using ModularSensors, you’ll see that a bunch of the set-up from the first-run sketch is copied in the set-up for the modem in the example sketches. So when using those examples, you’ll either need to delete those extra set-up lines (and use what’s saved on the module) or change the profile to 1 and add the band mask every time. I’d lean toward re-setting it every time rather than hope the module remembered correctly.

            Also, yes, I’ve spent enough time fiddling with the LTE and other modules that I knew exactly what all of those commands were right off the top of my head. The Digi command for setting bands was the only one I needed to check. These things are really troublesome.

            Sara Damiano
            Moderator

              To use those commands exactly, you need to switch to bypass mode.

              But, the proper equivalent of almost all of those commands area already being used anyway, so you don’t need to change much at all.

              They are setting the profile to 1 just like I suggested (that’s the UMNOPROF).  Other than making that change, I think the only thing you need to add is setting the bands (at+ubandmask=0,134217732 in their example).  In the first-run sketch, right below setting the network technology (line 123), add the digi equivalent for setting the band mask:

              gsmModem.sendAT(GF(“BM134217732”));
              gsmModem.waitResponse();

              Sara Damiano
              Moderator

                No, I don’t think those command suggestions from your IoT provider will help much.

                The CPIN command checks if your SIM is locked by a pin number.  If your SIM provider didn’t mention it and give you the pin number, you shouldn’t need it.

                The proper equivalent to theCREG command is already being used in the gsmModem.isNetworkConnected() command on line 155 of the first run sketch.

                The COPS=? command is the same as the AS command on line 147.

                You don’t see exactly those commands in the code because you’re not talking to the u-blox chip directly; you’re talking to a Digi programmed processor that’s talking to the u-blox chip.  You can issue commands directly to the u-blox chip by switching your XBee3 from Digi recommended “transparent” mode to “bypass” mode.  It might be necessary to do that to adjust the band scanning to exactly match your provider, but hopefully just setting the profile will work.

                Sara Damiano
                Moderator
                  1. If the SIM provider says you don’t have to do anything to activate the SIM, I’d trust them.
                  2. Yes, the “AS” command in the first run sketch does that. (line ~147)
                  3. If you’re using an XBee3 LTE-M it *only* supports LTE-M and LTE NB-IoT.  Since your provider doesn’t use NB-IoT, LTE-M will be the only possibility.  That first-run program you’re using sets the bee to use LTE-M preferentially in line 121, which is what you want.
                  4. This might be your issue.  Yes, the module can use all of those bands, but you would commonly set it up to use a specific carrier profile that will optimize searching to only the bands that carrier uses.  In the example sketch (line 115), the carrier profile is set to 2/AT&T.  Most of AT&T’s traffic is on bands 2, 4, and 12 (https://www.phonearena.com/news/Cheat-sheet-which-4G-LTE-bands-do-AT-T-Verizon-T-Mobile-and-Sprint-use-in-the-USA_id77933). So if you’re setting your module to AT&T, it will not attempt to use band 3 or band 28.  I think you would want to select “1” as your carrier profile here, which will set the module for “SIM ICCID/IMSI select.”  *Hopefully* your SIM and the module will be friendly enough with each other that the module will then switch its mode to that for your SIM.  This doesn’t always work, though.  I know with a Hologram SIMs in the USA the module will attempt to switch to 100/Standard Europe based on the SIM ICCID, which won’t work.  But with a T-Mobile SIM the “SIM ICCID/IMSI select” setting immediately correctly matched to the 5/T-Mobile profile and the connection worked right away.  If just switching the carrier profile to 1 doesn’t work, there are commands to manually try and force the bands.  Start with the profile, though.
                  5. Well, I generally think getting the development board is a good idea if you want to ever do much with the XBee (like test multiple boards or update firmware) but it shouldn’t be strictly needed.
                  in reply to: need to find WiFi Bee ESP8266 MAC address #14936
                  Sara Damiano
                  Moderator

                    Doh!  I’m sorry about the missing void statements.  That’s what happens when I write code on a discussion forum.  Good job fixing it!

                    The invalid library statements are probably because you put something that wasn’t a library into the library folder, even if it was just an empty folder.   The Arduino IDE thinks everything in that C:\Users\wchudyk\Documents\Arduino\libraries folder must be a library and gets confused otherwise.

                    Ok, so on to the errors on the ESP8266.  The board is responding to you, at least to tell you there’s been an error, so that’s a good thing.  My first guess would be that your ESP8266 has an older version of the AT firmware, and is expecting a different command.  Here’s a new version with some of the older commands, and a check for the modules firmware version.  Depending on which version you have, these may still not get you the MAC address, but hopefully they’ll at least get us the version to track down the command that will.

                     

                     

                    in reply to: need to find WiFi Bee ESP8266 MAC address #14914
                    Sara Damiano
                    Moderator

                      I’m sorry, I should have read that more carefully.  That program is meant to be written to an ESP, not to a Mayfly.

                      Anyway, you should be able to do something like this:

                       

                      in reply to: need to find WiFi Bee ESP8266 MAC address #14901
                      Sara Damiano
                      Moderator

                        Also, if the university requires any sort of two-set log in to the network (like, on a phone where you need to click ok on an “accept the terms” page) you won’t be able to do it.

                      Viewing 10 posts - 101 through 110 (of 465 total)