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 IP Address

    Scheduled Pinned Locked Moved LoPy
    7 Posts 3 Posters 3.1k Views 3 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.
    • O Offline
      Oneillsite
      last edited by

      Hi All,
      I want to have 2 telnet session with 2 LoPy's from my PC.
      1st LoPy IP 192.168.4.1
      Then i have to change IP address of the second LoPy (192.168.4.2 ?)
      Is this correct ? Is it easy to do so.

      Thanks...

      1 Reply Last reply Reply Quote 0
      • S Offline
        stevie
        last edited by

        In general that's of course possible. It depends on the telnet program you are using if it does support multiple connections. Most do. On Linux for example just type "telnet 192.168.4.1". In another terminal type "telnet 192.168.4.2".

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

          @stevie
          He ask for changing IP adress of lopy to listen for Telnet connection different then default 192.168.4.1 not how to run two telnet software simultanously - wchich is simple as dbl clik and run

          think about people first, then computers

          1 Reply Last reply Reply Quote 0
          • S Offline
            stevie
            last edited by

            Could be, but I don't think so. The address is 192.168.4.1 only, if the LoPy acts as a base station. I that case the PC would have to connect to 2 WiFi networks (each LoPy opens one) at the same time. Which is not possible unless the PC has 2 WiFi interfaces in it.

            If both LoPys are connected to the same WiFi router as the PC, then in most cases they would have DHCP addresses, so the router would assign them different ones.

            1 Reply Last reply Reply Quote 0
            • O Offline
              Oneillsite
              last edited by

              Well yes indeed... 2 telnet sessions, each on for a LoPy.

              I would like to connect 2 LoPy's to make a mini-network using LoRa. The first (1) LoPy has a sensor and is located at @1.5 KM from the second (2)LoPy.
              LoPy (2) is inhouse and i can access to it with Wifi. So i will telnet (2) to monitor the data transmited from (1) to (2).

              Before to deploy, i want to be sure that the LoRa connection bewteen (1)-(2) is effective by Telnet each one.

              And... yes LOPy's will be ( for the configuration) connected to the same Wifi Router... I will check which the assignement done by the router.

              1 Reply Last reply Reply Quote 0
              • S Offline
                stevie
                last edited by stevie

                Okay, makes sense. In that case if you connect the 2 LoPys to your home router they will get different IP addresses in any case, unless you force a static IP address from the Python inside the LoPy (which you shouldn't).

                So just let them connect to the router, get their IP address and print the IP out over serial once. Next time you can use it for the telnet. In most cases they will always get the same address which is assigned to them by the router. You can also enforce that they always get the same address in most routers ("always use the same address" or similar).

                What I would also do is to put a kind of diagnostic mode in the LoPys. So that you can use telnet to your monitoring LoPy and give some command. That command would send a LoRa message to the sensor LoPy. That one would it turn answer with some acknowledgement message over LoRa which you can then display. That way you can test your connection to make sure it actually works.

                1 Reply Last reply Reply Quote 0
                • O Offline
                  Oneillsite
                  last edited by

                  Ok.
                  I will do this.
                  Thanks for your advises

                  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