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

    WiFi scan crashes lopy when WiFi connected to AP

    Scheduled Pinned Locked Moved Issues & Bugs
    crashwifiscan
    1 Posts 1 Posters 874 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.
    • T Offline
      tytgatlieven
      last edited by

      Dear

      I'm trying to build an application which monitors the available APs in the area and keeps some statistics of them.

      When I run the scanning application (snippet below) without being connected to any AP it runs fine.
      for i in range(0, numberOfScans):
      nets = wlan.scan()
      for net in nets:
      PROCESS NET information

      However, running exactly the same code while being connected to an AP results in a crash. It is not crashing immediately, but after some scans. The crash events seem to be statistically distributed hence I would assume that the cause is most likely based on an 'interrupt handling error' of on race conditions (locking errors).

      I'm running the following firmware:
      (sysname='LoPy', nodename='LoPy', release='1.7.5.b1', version='v1.8.6-689-g095792e0 on 2017-06-27', machine='LoPy with ESP32', lorawan='1.0.0')

      I'd love to assist in fixing this issue (I'm an embedded systems designer and this is a project for a customer of mine). However, I do not have much experience in the micropython kernel. Hence some guidance will be needed in order to not waist a gigantic amount of time.

      Anybody interested in helping?

      kind regards

      Lieven

      1 Reply Last reply Reply Quote 3

      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