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

    LoPy connected to Atom works but...

    Scheduled Pinned Locked Moved LoPy
    6 Posts 2 Posters 400 Views 2 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.
    • M Offline
      marcuso45
      last edited by

      Hi folks,
      I have the problem that my LoPy4 connected to my PC and Atom works more or less
      fine (simple loop to read temperature sensor).
      When I attach it to another PC just to run using the power of the USB hub (without being connected to Atom) it does not function at all.

      Any idea why?
      Thanks

      1 Reply Last reply Reply Quote 0
      • M Offline
        marcuso45
        last edited by

        I did another test, even using the same PC without Atom, the behavior is different. It stops quite immediately....what a mess....

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

          @marcuso45 Did you verify that you code was permanently uploaded to the LoPy4? You can do so by connecting a simple terminal emulator like Putty (take care to switch flow control off) and run from REPL the commands:

          import uos
          uos.listdir()
          

          You should get a list of file names on the device. You code should be either main.py, or in a file imported by main.py.

          1 Reply Last reply Reply Quote 0
          • M Offline
            marcuso45
            last edited by

            Thanks a lot robert-hh,
            I thought an upload on Atom puts all code into the memory permanently....isn't it like that ????

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

              @marcuso45 I do not work with the pymakr plugin of Atom or VSC. To much automatism. I prefer to have control over all details.
              If your code does not run without Atom, it is either not uploaded or not enabled to run.

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                marcuso45 @robert-hh
                last edited by

                @robert-hh
                hi Robert, thanks again for the response. The problem is in fact that it sometimes works, then after minutes or hours it stops. So the code is for sure uploaded, but it stops and not always at the same point. It is more stable connected to Atom but it stops anyway, but much later....

                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