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

    Creating a WiFi network with a Fipy

    Scheduled Pinned Locked Moved FiPy
    fipywifi
    6 Posts 5 Posters 1.9k Views 5 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.
    • H Offline
      han
      last edited by

      Hello Pyoneers,
      I want to create a Wi-Fi network with my FiPy so I can give a few IoT sensors a network where over they can send measured data.
      The plan is to create a Wi-Fi network like I can do with my mobile phone. Here for I have a SIM card that I can use for this function.

      Are there people the have tried to do this with a Fipy? Or is there an example that I can use of a tutorial that I can follow?
      And maybe the most important qeustion, is it even possible to do?

      Kind regards, Han

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

        @han You can of course setup up the Fipy as WiFI access point, which is the default mode, and have other devices connect to it by WiFi, submitting data. And of course you can use the LTE modem of the FiPy to send that data to somewhere else. You'll need some kind of server, and I do not know how many nodes the FiPy can serve simultaneously. It is not trivial, but should be possible.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jcaron
          last edited by

          Note that there have been reports of issues with the simultaneous use of WiFi and LTE.

          Beyond that, AFAIK the firmware does not include anything like packet forwarding or NAT, so you would need to have a server on the FiPy which would relay the requests over LTE.

          1 Reply Last reply Reply Quote 0
          • H Offline
            han
            last edited by

            Hello, jcaron and robert-hh,

            Thanks for your replies and the tips.
            I read that I need to set up a sever on the FiPy.
            In the Pycom Documentation (chapter 6.2.2.6.1. Cat M1) is the Google Webserver programmed.

            For example to connect over LTE Cat M1 to Google's web server over secure SSL:


            import socket
            import ssl
            import time
            from network import LTE

            lte = LTE() # instantiate the LTE object
            lte.attach() # attach the cellular modem to a base station
            while not lte.isattached():
            time.sleep(0.25)
            lte.connect() # start a data session and obtain an IP address
            while not lte.isconnected():
            time.sleep(0.25)

            s = socket.socket()
            s = ssl.wrap_socket(s)
            s.connect(socket.getaddrinfo('www.google.com', 443)[0][-1])
            s.send(b"GET / HTTP/1.0\r\n\r\n")
            print(s.recv(4096))
            s.close()

            lte.disconnect()
            lte.dettach()


            Could I use that server of do I need a own server.
            My data is collected and presented with the IBM cloud server.

            Are there some examples for the FiPy that I can follow?
            I am pretty new with the FiPy.

            Are there more things that I need to know or have before I can set op a WiFi network and collect and send data from my devices?

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

              @han said in Creating a WiFi network with a Fipy:

              I read that I need to set up a sever on the FiPy.
              In the Pycom Documentation (chapter 6.2.2.6.1. Cat M1) is the Google Webserver programmed.

              They mean that if you need to have e.g. 3 nodes and 2 of them communicate with 3rd by only Wifi.
              On this 3rd node ("server node") you have LTE. It need socket(server) listen for request from that 2 nodes and forward messages throught LTE to whatever service you like.

              think about people first, then computers

              1 Reply Last reply Reply Quote 0
              • W Offline
                wghirakawa
                last edited by

                I would like to eventually do this as well. has anyone figured this out. how to allow fipy to act as wlan station and forward all data outbound via LTE?

                If everyone in the world could do their passion, the world would be an unbelievable place!

                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