Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Need help

    Scheduled Pinned Locked Moved LoPy
    9 Posts 4 Posters 31 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W Offline
      windwhite
      last edited by

      Hello
      I am blocked with my code, I cannot connect to my LoRA [main.py

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @windwhite
        last edited by

        @windwhite You can try a safe boot by either:

        • push Ctrl-F in the REPL by USB or Telnet
        • Connect P12 to 3.3V and push reset

        Safe boot will start the board without running boot.py or main.py. Then you can rename main.py. If you have a WiFi connection established, you can also connect with ftp and rename main.py.

        1 Reply Last reply Reply Quote 1
        • W Offline
          windwhite
          last edited by

          my problem is establishing the connection on my LoRa network, currently my project works locally, I want to send the data in lora,
          but also reduce electricity consumption

          1 Reply Last reply Reply Quote 0
          • G Offline
            Gijs
            last edited by Gijs

            When using LoRa (Im guessing you mean LoRaWAN, but not sure), make sure the keys are correct (dev_eui, app_eui etc.). Next, make sure there is active coverage in your area by either your own LoRaWAN gateway or a gateway provided in the area by someone else.

            With the limited information you provide its hard to help you. I would also suggest to use a more informational topic title about the actual issue you're experiencing. In your attached code I could not find any reference to the LoRa module. Perhaps have a look at the documentation here: https://docs.pycom.io/tutorials/networks/lora/ on how to set up a lora connection.

            W 1 Reply Last reply Reply Quote 0
            • W Offline
              windwhite @Gijs
              last edited by

              @Gijs loraconnection.py
              I have a private Lorawan network
              here is a link to my entire project
              https://we.tl/t-FqEJtcIQZL

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                livius @windwhite
                last edited by

                @windwhite
                probably noone will follow links on any forum ;-)
                pls describe your problem with details here.

                think about people first, then computers

                W 1 Reply Last reply Reply Quote 0
                • W Offline
                  windwhite @livius
                  last edited by

                  @livius I had some help for the start of my code, but in the main file I am missing the information on the connection on my private network, I am also trying to reduce the electricity consumption of my project

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    livius @windwhite
                    last edited by

                    @windwhite
                    Sorry but you still do not provide any details.
                    Please put you code or part of code, tell with which part do you have any problems.
                    Without this you do not help us to help you, we even do not know what problem do you have, we can only guess as above @robert-hh

                    think about people first, then computers

                    W 1 Reply Last reply Reply Quote 1
                    • W Offline
                      windwhite @livius
                      last edited by

                      try:
                          if(message_info > 0):
                              # CONNEXION LORA ICI
                              # message_info = 0
                              # Date = str(utime.mktime(utime.localtime()))
                              # global_message[Date] = current_message
                              # print("Current : " + str(global_message))
                      except Exception as e:
                          print("Update current message exception : " + str(e))
                      
                      time.sleep(1)
                      

                      I can't complete this part

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post

                      Pycom on Twitter

                      Pycom