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

    WiPy & Mobile App - How to?

    Scheduled Pinned Locked Moved WiPy 2&3
    10 Posts 7 Posters 553 Views 10 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.
    • D Offline
      dabal221
      last edited by

      Hello,
      I am writing this post because I have to make a mobile application which will be communicate with WiPy through Wifi. Wipy will be connected with GPS module (uBlox - 6M). The application has to talk with WiPy to get the data from GPS module and show the track on mobile phone through this app. I don't exactly know how to start with this project, I mean I had one idea. It was about getting the data from GPS, parse them to xml format to make it as .gpx file and send this file to mobile. Does anyone can say something about this idea, is it correct conception? Maybe, can you offer other ideas?
      Thanks for answer

      C J J 3 Replies Last reply Reply Quote 0
      • C Offline
        crumble @dabal221
        last edited by

        @dabal221

        Better let the phone pull. Android can act as a server, but all the power saving functions will make your life hard. Sockets will reconnect much slower when when you push to the phone.

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

          @dabal221 It's a pretty broad question, and there could be many different ways of achieving that, each with its own pros and cons.

          Options include:

          • having the WiPy broadcast the info over BLE
          • having the WiPy push the info to a server, and have your app connect to that server (ideally using a sockets to get the data without polling)
          • having the WiPy act as a server, and use TCP or UDP sockets
          • having the WiPy act as a server, and use WebSockets
          • having the app act as a server, and the WiPy connecting to it to push data
            and probably many more.

          But each as its own drawbacks, so without knowing more about your requirements, it's difficult to pick one...

          D 1 Reply Last reply Reply Quote 1
          • D Offline
            dabal221 @jcaron
            last edited by

            @jcaron This is a very helpful post, but would you be kind enough to point out what are the advantages and disadvantages of individual solutions because I am completely inexperienced in writing applications?

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

              @dabal221 It would be much easier if you described more precisely what you are trying to achieve and what your requirements are, including whether the phone and WiPy are necessarily close to each other (in BLE or WiFi range) or not, whether they are connected to the same WiFi network or not, what platforms you target, if it's for regular users or not, and a lot more.

              Unless you describe your scenario in much more detail, it's going to be difficult to tell you what is relevant or not for your purposes.

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                dabal221 @jcaron
                last edited by

                @jcaron Firstly, the intention is to create a geolocation system, in short, someone will have a WiPy module with GPS connected to it, and the other person must be able to locate a person who has WiPy with him or her thanks to a mobile application.
                (1) platform: IOS, Android - using Kivy Framework
                (2) as it will be a geolocation system, it must operate over long distances and thus also in different Wifi networks.
                (3) for everyday use, it is best that WiPy is put to sleep until it receives a request from the application to locate the object

                1 Reply Last reply Reply Quote 0
                • Y Offline
                  YolandaFowler
                  last edited by YolandaFowler

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    Jean Bikie @dabal221
                    last edited by

                    @dabal221 Hi did you arrive to find a solution for your geolocation project with wipy ?
                    if yes, can you share ? because I have to make a project like this, this year at school.

                    1 Reply Last reply Reply Quote 0
                    • Manuel WalkerM Offline
                      Manuel Walker
                      last edited by

                      Hey @dabal221,

                      I've recently worked on the location-aware app using WiPy, and found this guide pretty useful.
                      I would like to mention that high accuracy is a must, exclusively GPS data won't be enough, you'll need to use A-GPS technology, which collects data not only from GPS, but also from the closest cellular towers and Wi-Fi spots.

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        Flora Olivia 0 Banned
                        last edited by

                        This post is deleted!
                        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