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

Zeke Holloman

Forum Replies Created

Viewing 10 posts - 11 through 20 (of 25 total)
  • Author
    Posts
  • in reply to: Using Xbee Cellular Modem with ThingSpeak #15803
    Zeke Holloman
    Participant

      @vogelrnws Ok, thank you. If you need my email, zholloman54@gmail.com

      in reply to: Using Xbee Cellular Modem with ThingSpeak #15801
      Zeke Holloman
      Participant

        @vogelrnws I was spending some time looking at the cellular stuff and I decided I’d try to use the python example you used, but I can’t seem to access the files through the Google Drive. Also, I don’t think I currently have a python editor. What is a good one that you would suggest? Thanks

        in reply to: Using Xbee Cellular Modem with ThingSpeak #15780
        Zeke Holloman
        Participant

          @neilh20 Ok, that sounds good. I just sent the details to your email. Let me know if it still works.

          in reply to: Using Xbee Cellular Modem with ThingSpeak #15769
          Zeke Holloman
          Participant

            @vogelrnws Thank you for sending that. I’ll be sure to take a look at it if ThingSpeak doesn’t work.

             


            @neilh20
            I tried running the code with your ModularSensors library, and it still didn’t work. The apn I’m using is hologram. If I am using a Hologram SIM card, is that correct, or should I change the source to something else? Also, what is Tera-term with Timestamp, and is that something I should consider using?

            And also, one more question. Is ThingSpeak with API different that ThingSpeak with MQTT? Right now, it looks like I’m using the MQTT connection.

            in reply to: Using Xbee Cellular Modem with ThingSpeak #15764
            Zeke Holloman
            Participant

              Hi there @vogelrnws. Honestly, It’d be awesome if you could send that code. I’m still considering my options on the method to publish the data, but that could be helpful!

               


              @neilh20
              , ok! I’ll try that. For some reason (not really sure why), the code all of a sudden started saying that it couldn’t connect to the internet for clock sync. I’m looking into that, so I’ll get back to you once I fix that. Thank you again!

              in reply to: Using Xbee Cellular Modem with ThingSpeak #15761
              Zeke Holloman
              Participant

                Hey @neilh20. I just had a thought. The fact that the software works with the Digi WiFi S6B. Do you think that means its an issue with the actual cellular connection as opposed to the code?

                in reply to: Using Xbee Cellular Modem with ThingSpeak #15759
                Zeke Holloman
                Participant

                  Hi there @neilh20. Thanks for your response, sorry I couldn’t get to it until now. I spent some time on the code, and I tried the code with the 0.28.5 version of the EnviroDIY ModularSensors library just to see if anything changed. It still isn’t uploading to ThingSpeak though. I tried the 0.30.0 version of the ModularSensors library, alongside the StreamDebugger as well, here’s the output of the code (excluding the ThingSpeak data). It doesn’t look that much different.

                   

                  Windows PowerShell
                  Copyright (C) Microsoft Corporation. All rights reserved.

                  Try the new cross-platform PowerShell https://aka.ms/pscore6

                  PS C:\Users\waked\OneDrive – East Carolina University\Documents\PlatformIO\Projects\LearnEnviroDIYcode-master> pio device monitor –port COM10 –baud 115200
                  — Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
                  — More details at http://bit.ly/pio-monitor-filters
                  — Miniterm on COM10 115200,8,N,1 —
                  — Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
                  Now running logging_to_thingspeak5.ino on Logger logger

                  Using ModularSensors Library version TinyGSM Library version 0.11.4
                  Current RTC time is: 2021-08-02T12:16:53-05:00
                  CTDcond has a non-unique UUID!
                  CTDtemp has a non-unique UUID!
                  CTDdepth has a non-unique UUID!
                  Battery has a non-unique UUID!
                  12345678-abcd-1234-ef00-1234567890ab -> CTDcond
                  12345678-abcd-1234-ef00-1234567890ab -> CTDtemp
                  12345678-abcd-1234-ef00-1234567890ab -> CTDdepth
                  12345678-abcd-1234-ef00-1234567890ab -> Battery
                  12345678-abcd-1234-ef00-1234567890ab -> decibelMiliWatt

                  This logger has a variable array with 5 variables, of which 4 come from 2 sensors and 1 are calculated.

                   

                  Setting up sensors…
                  Attempting to connect to the internet and synchronize RTC with NIST
                  This may take up to two minutes!
                  OKCN163.97.697.6
                  OKCN163.97.6
                  OKCN163.97.6
                  OKCN163.97.6
                  OKCN163.97.6

                  Clock already within 5 seconds of time.
                  Putting modem to sleep
                  Setting up file on SD card
                  Data will be saved as logger_2021-08-02.csv
                  Putting processor to sleep
                  ——————————————

                  \/—- Line Saved to SD Card —-\/
                  2021-08-02 12:20:00,0.0,22.40,-3.2,4.897,-81

                   

                  OKCN3.23.121
                  Sending data to [ 0 ] mqtt.thingspeak.com
                  MQTT connection failed with state: -4: MQTT_CONNECTION_TIMEOUT

                  ——————————————

                  ——————————————

                  \/—- Line Saved to SD Card —-\/
                  2021-08-02 12:21:00,0.0,22.40,-2.7,4.897,0

                  OKCN3.23.121
                  Sending data to [ 0 ] mqtt.thingspeak.com
                  MQTT connection failed with state: -4: MQTT_CONNECTION_TIMEOUT

                   

                  Additionally, here’s the updated version of the code with the StreamDebugger stuff.

                  That’s very strange that the code worked with the Digi Wifi module. Any other suggestions are greatly appreciated! And if you see anything that I did wrong with the code, please let me know! I’m still rather new to this.

                  in reply to: Using Xbee Cellular Modem with ThingSpeak #15755
                  Zeke Holloman
                  Participant

                    Hi @neilh20, thanks for all your help! Yeah, I think I replaced the channel key in the trace with the thingSpeakChannelKey for the forum. I’m looking at the Topic [41] thing and I see the key in the topic channels/…

                     

                    Here’s the platformIO file.

                    [platformio]
                    src_dir = src/logging_to_thingspeak
                    ;src_dir = src/LTExBee_FirstConnection

                    description = ModularSensors example intended for DRWI users with CTD, turbidity, and 2G signal

                    [env:mayfly]
                    monitor_speed = 115200
                    board = mayfly
                    platform = atmelavr
                    framework = arduino
                    lib_ldf_mode = deep+
                    lib_ignore =
                    RTCZero
                    Adafruit NeoPixel
                    Adafruit GFX Library
                    Adafruit SSD1306
                    Adafruit ADXL343
                    Adafruit STMPE610
                    Adafruit TouchScreen
                    Adafruit ILI9341
                    build_flags =
                    -DSDI12_EXTERNAL_PCINT
                    -DNEOSWSERIAL_EXTERNAL_PCINT
                    -DMQTT_MAX_PACKET_SIZE=240
                    -DTINY_GSM_RX_BUFFER=64
                    -DTINY_GSM_YIELD_MS=2
                    -DMS_DATAPUBLISHERBASE_DEBUG
                    -DMS_THINGSPEAKPUBLISHER_DEBUG
                    lib_deps =
                    envirodiy/EnviroDIY_ModularSensors

                     

                    in reply to: Using Xbee Cellular Modem with ThingSpeak #15753
                    Zeke Holloman
                    Participant

                      @vogelrnws

                       

                      Hi there! Yeah I registered the MQTT device via ThingSpeak. I used the MQTT Explorer you suggested and I was able to post some data to Thingspeak by typing literal values into the Explorer. This leads me to think that it’s an issue with the Mayfly code.


                      @neilh20
                      I’m curious as to how you set up the ThingSpeak using POST. I’m not really committed to the MQTT platform, and I’m curious how you set your’s up.

                      in reply to: Using Xbee Cellular Modem with ThingSpeak #15744
                      Zeke Holloman
                      Participant

                        Hey @neilh20. Thanks for looking at. Yeah, I already had the keys and the channel ID in the code, I just took them out for the forum. Sorry, I understand that could have been confusing. Other than that, is there anything else you could see it being?

                      Viewing 10 posts - 11 through 20 (of 25 total)