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

    Pymate: Understanding Virtual and Terminal Pins

    Scheduled Pinned Locked Moved Guides
    15 Posts 6 Posters 6.3k Views 7 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.
    • FridaF Offline
      Frida
      last edited by

      Pymate for Android downloaded.
      In Setup Wizard:
      Please select your router (2.4Ghz):

      Nothing hapens, what next?

      1 Reply Last reply Reply Quote 0
      • L Offline
        LoneTech
        last edited by

        Someone forgot the first step in the app. It demands a login to some unspecified account.

        1 Reply Last reply Reply Quote 0
        • FridaF Offline
          Frida
          last edited by

          I am logget in, and I can se my router and my Wipy2 from my PC, so nothing wrong there. But Pymate can't se anything, it is just scanning the network.

          R 1 Reply Last reply Reply Quote 0
          • L Offline
            LoneTech
            last edited by

            Sorry for the confusion, Frida. I didn't mean to imply that was your mistake; what I mean is, when I load this app, all it does is demand a login to an account. It doesn't say where that account is, or what happens if I sign up. It doesn't say a single word about what the app is for, for that matter. On top of that, the signup form is actively fighting back when you try to use it; on my tablet, it draws things on top of each other, and on my phone it covers fields with the on-screen keyboard and disables scrolling so you can't reach the lower fields. I haven't gotten as far as you.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              Roberto @LoneTech
              last edited by

              Hi @LoneTech,

              I'm sorry that you are having problems with the Login on Pymate.
              To answer your questions:

              1. The account is created in our server.
              2. The only information stored in our servers as for now is:
                a. User Account Details
                b. Device List (Name and DeviceID)
                c. Widgets (Types, positions, color, names and pins)
              3. User profile (if you provide one after you log into the app

              To solve your problem of overlapping object on the login please provide the following information

              1. Device Type: iOS / Android
              2. Device Model: (Ex. Samsung Galaxy Note 4 / iPad mini)
              3. Operative system: (Ex. Android 6.0 / iOS 10)
              4. Do you have the latest version of the app? (Yes / No)
              5. Please provide any other information / Screen you think might be relevant for fixing the issue.

              Best,
              Roberto

              1 Reply Last reply Reply Quote 0
              • R Offline
                Roberto @Frida
                last edited by

                Hello @Frida

                Really sorry that you are not able to connect to your device.
                To help you i will require the following information

                1. Device Type (Android/iOS):
                2. Device Model (Samsung Galaxy Note 4 / iPad Mini)
                3. OS Version (Ex. Android 6.0 / iOS 10)
                4. The device Type you are trying to use (WiPy / WiPy 2.0 / LoPy)
                5. Any other information that you think might be important

                As per your post i can tell you that after the setup process you should not be able to see the device anymore from your computer since it should be connected to your router and will no longer appear as an Access Point.
                Please answer the questions above so we can check in our side and provide you with further feedback. For now, please retry the device setup process since it seems that some files where not uploaded properly or you introduced the wrong Router/Password. Please notice that the router should be a 2.4Ghz router.

                One last note: We are aware of an issue with the setup in the Android Demo of the Pymate app, we are working hard on a fix and will let you know as soon as one is available.

                Best,
                Roberto

                1 Reply Last reply Reply Quote 0
                • FridaF Offline
                  Frida
                  last edited by

                  1. Device Type (Android/iOS):
                  2. Device Model (Samsung Galaxy Note 4 / iPad Mini)
                  3. OS Version (Ex. Android 6.0 / iOS 10)
                  4. The device Type you are trying to use (WiPy / WiPy 2.0 / LoPy)
                  5. Any other information that you think might be important

                  Phone:

                  1. Android
                  2. Motorola Moto G(2. generation) with 4G LTE
                  3. Android 6.0
                  4. Wipy 2.0

                  In my Mororola.
                  In Setup Wizard:
                  Please select your router (2.4Ghz):
                  In the right side there is a little round ring running, but I can't see any AP.

                  Phone: older

                  1. Android
                  2. LG
                  3. Android 4.1.2
                  4. Wipy 2.0

                  In my older LG.
                  In Setup Wizard:
                  Please select your router (2.4Ghz):
                  I can choose AP, and set my password, but when I press next my network disappear and it say's Could not connect to the specified network.

                  I tried

                  R 1 Reply Last reply Reply Quote 0
                  • R Offline
                    Roberto @Frida
                    last edited by

                    @Frida,

                    Thank you very much for your reply. As for now Pymate Android is in Beta stage, we are still polishing a few bugs, specially related to the Setup Stage.

                    We have uploaded a new version of the app. I'm not 100% sure that it might help you with your current issue since it SSID lookup was not addressed in that update, but some other bugs with the setup stage where.

                    We also detected that for devices using 6.0 + you will need to turn off your Network before going trough the setup stage. This is a problem caused by the fact that when Android detects that a Wifi has no internet connection (cant ping goole) it drops the Wifi connection ( ! or x mark on the wifi).

                    Please download the new Beta version and try setting up your device. I will check with the device models you told me to make sure that there are no other problems going on. As for now we support around more that 11.000 different android devices, so stabilising the app to get it production ready takes a little bit of time.

                    Thank you for your support during this Beta stage.

                    Best,
                    Roberto

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      Roberto
                      last edited by

                      @Frida,
                      Its also important that you accepted the right permissions for the app (specially in 6.0+) to check this go to your phone settings and check under apps the pymate app. Location permissions are required by google to be able to scan for wifi networks.

                      1 Reply Last reply Reply Quote 0
                      • FridaF Offline
                        Frida
                        last edited by

                        Thank you very much Roberto.

                        It is on.
                        In Settings Personal Location, It also have to be on, while I setup a new device.
                        Then I can put it off again.
                        Now I'm on.

                        But I have to reset the Wipy2 several times, until it gets stable.

                        Traceback (most recent call last):
                         File "boot.py", line 39, in <module>
                         File "/flash/lib/pymate_basic.py", line 13, in <module>
                         File "/flash/lib/pymate_library.py", line 402, in run
                         File "/flash/lib/pymate_library.py", line 377, in _close
                         File "/flash/lib/simple.py", line 109, in disconnect
                        OSError: 128
                        MicroPython v1.8.6-13-ge1a0670 on 2016-11-18; WiPy with ESP32
                        Type "help()" for more information.
                        >>> ets Jun  8 2016 00:22:57
                        
                        rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                        ets Jun  8 2016 00:22:57
                        
                        rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                        configsip: 0, SPIWP:0x00
                        clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                        mode:QIO, clock div:2
                        load:0x3fff9010,len:8
                        load:0x3fff9018,len:312
                        load:0x40078000,len:2348
                        ho 0 tail 12 room 4
                        load:0x4009f000,len:1364
                        entry 0x4009f2f8
                        rtc v112 Sep 26 2016 22:32:10
                        XTAL 40M
                        frc2_timer_task_hdl:3ffd9bd8, prio:22, stack:2048
                        tcpip_task_hdlxxx : 3ffde3a4, prio:18,stack:2048
                        phy_version: 123, Sep 13 2016, 20:01:58, 0
                        pp_task_hdl : 3ffdfbf0, prio:23, stack:8192
                        mode : softAP(24:0a:c4:00:70:c5)
                        dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
                        dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
                        mode : sta(24:0a:c4:00:70:c4)
                        n:13 0, o:6 0, ap:255 255, sta:13 0, prof:6
                        state: 0 -> 2 (b0)
                        state: 2 -> 3 (0)
                        state: 3 -> 5 (10)
                        add 0
                        
                        connected with Propeller, channel 13
                        Traceback (most recent call last):
                         File "boot.py", line 39, in <module>
                         File "/flash/lib/pymate_basic.py", line 13, in <module>
                         File "/flash/lib/pymate_library.py", line 402, in run
                         File "/flash/lib/pymate_library.py", line 377, in _close
                         File "/flash/lib/simple.py", line 109, in disconnect
                        OSError: 128
                        MicroPython v1.8.6-13-ge1a0670 on 2016-11-18; WiPy with ESP32
                        Type "help()" for more information.
                        >>> ets Jun  8 2016 00:22:57
                        
                        rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                        ets Jun  8 2016 00:22:57
                        
                        rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                        configsip: 0, SPIWP:0x00
                        clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                        mode:QIO, clock div:2
                        load:0x3fff9010,len:8
                        load:0x3fff9018,len:312
                        load:0x40078000,len:2348
                        ho 0 tail 12 room 4
                        load:0x4009f000,len:1364
                        entry 0x4009f2f8
                        rtc v112 Sep 26 2016 22:32:10
                        XTAL 40M
                        frc2_timer_task_hdl:3ffd9bd8, prio:22, stack:2048
                        tcpip_task_hdlxxx : 3ffde3a4, prio:18,stack:2048
                        phy_version: 123, Sep 13 2016, 20:01:58, 0
                        pp_task_hdl : 3ffdfbf0, prio:23, stack:8192
                        mode : softAP(24:0a:c4:00:70:c5)
                        dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
                        dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
                        mode : sta(24:0a:c4:00:70:c4)
                        n:13 0, o:6 0, ap:255 255, sta:13 0, prof:6
                        state: 0 -> 2 (b0)
                        state: 2 -> 3 (0)
                        state: 3 -> 5 (10)
                        add 0
                        
                        connected with Propeller, channel 13
                        

                        Then after some time, I lose the connection to my phone, and get the promt on the console. I then have to reset several times again, before I can connect.

                        Keep up the good work.

                        Happy Beta tester.

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          crankshaft
                          last edited by crankshaft

                          Hi;

                          I am testing wipy2 with the latest firmware and the latest version of pymate.

                          Using the slider / rgbled example, I am experiencing high latency and then crash / disconnect.

                          This is the error message, although I have seen other types than 57 & 70 but don't recall what they were.

                          Error: unknown message type 57, connection closed
                          Error: unknown message type 70, connection closed
                          

                          I am printing out the values received and there are intermittent pauses of 10 seconds or more when no data is received and then it all comes in and most times it will then crash.

                          I have 1 1GB Fibre network connection with excellent connectivity, and I have tried this on 2 different networks with the same result.

                          I have tried to ping mqtt.pycom.io to see if there was any latency in the connection but pings are understandably blocked by this server.

                          Any suggestions on the cause / solution ??

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            troy salt
                            last edited by

                            I'm struggling to get this to work.

                            After following the instructions seemingly exactly with a wipy2.0 running 1.18.2.r4, I run into an error:
                            "Warning: Virtual write to unregistered pin 1"

                            All I did was download the code from wipy2 after setting up pymate, and add:

                            import pycom
                            def set_led_color(params):
                                val = int(params[0])
                                if (val < 256):
                                    val = val & 0xFF
                                elif (val > 255 and val < 512):
                                    val = (val << 8) & 0xFF00
                                elif (val > 511):
                                    val = (val << 16) & 0xFF0000
                                pycom.rgbled(val)
                            
                            pymate_library.add_virtual_pin(1,None, set_led_color) 
                            

                            right under where it says "# Initialize Virtual Pins and Terminal Pins Here" in the Pymate_basic.py file in the lib.

                            I can't seem to figure out why this doesn't work since I am following this guide exactly.

                            Is the only way to upload code through FTP? I seem to be able to download, edit, and re-upload the code through REPL when booted in safe mode. Is this a no-no?

                            Please HELP!
                            thanks

                            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