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

    New to LoPy4 developpement, having a lot of issues with Pymakr uploading

    Scheduled Pinned Locked Moved Pymakr
    1 Posts 1 Posters 18 Views 1 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.
    • V Offline
      Valentin Marquès
      last edited by

      Hi,

      I have a LoPy4 with Extension Board 3.1. I registered it on Pybytes to set wifi connection. It works.
      My goal is to make it communicate with Bluetooth Low Energy with my Android phone. I'm a complete begginer in Lopy4 developpement.

      My IDE of choice is VScode. I've setup the Pymakr extension, I have the bar at the bottom to upload / download / run code. I was able to send some test codes to it (hello world, make led blinking...) as well as updating its firmware. Now I'm trying to send some BLE related code to test it. The code I'm trying to send :

      import ubinascii
      import time
      from network import Bluetooth
      
      bt = Bluetooth()
      
      bt.init([id=0, mode=Bluetooth.BLE, antenna=Bluetooth.INT_ANT, modem_sleep=False, pin=None, privacy=False, secure_connections=False, mtu=200])
      bt.service('abc123')
      bt.set_advertisement(name="PolyPycom")
      bt.advertise(True)
      
      bt.start_scan(-1)
      

      But I can no longer upload anything to the Lopy. I constantly have this error :

      AutoConnect enabled, ignoring 'address' setting (see Global Settings)
      Searching for PyCom boards on serial...
      Connecting to COM5...
      

      I tried changing the COM port, the USB port, rebooting lopy + PC, I also tried on another PC, I tried setting the lopy to safe boot mode.... No way to upload anything now. My Lopy seems completely blocked. Am I doing something wrong ?

      Also, I would have another side question. I would like to have auto-completion / suggestions / intellisense on VScode so that when I type for example Bluetooth(). , it suggests all the methods associated with Bluetooth. I didn't find any way to do that. Is it possible ?

      Thanks in advance for any answer,
      Have a great day.

      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