<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WiFi scan crashes lopy when WiFi connected to AP]]></title><description><![CDATA[<p dir="auto">Dear</p>
<p dir="auto">I'm trying to build an application which monitors the available APs in the area and keeps some statistics of them.</p>
<p dir="auto">When I run the scanning application (snippet below) without being connected to any AP it runs fine.<br />
for i in range(0, numberOfScans):<br />
nets = wlan.scan()<br />
for net in nets:<br />
PROCESS NET information</p>
<p dir="auto">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).</p>
<p dir="auto">I'm running the following firmware:<br />
(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')</p>
<p dir="auto">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.</p>
<p dir="auto">Anybody interested in helping?</p>
<p dir="auto">kind regards</p>
<p dir="auto">Lieven</p>
]]></description><link>https://forum.pycom.io/topic/1449/wifi-scan-crashes-lopy-when-wifi-connected-to-ap</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 07:35:50 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/1449.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Jul 2017 08:40:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WiFi scan crashes lopy when WiFi connected to AP on Tue, 04 Jul 2017 08:40:25 GMT]]></title><description><![CDATA[<p dir="auto">Dear</p>
<p dir="auto">I'm trying to build an application which monitors the available APs in the area and keeps some statistics of them.</p>
<p dir="auto">When I run the scanning application (snippet below) without being connected to any AP it runs fine.<br />
for i in range(0, numberOfScans):<br />
nets = wlan.scan()<br />
for net in nets:<br />
PROCESS NET information</p>
<p dir="auto">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).</p>
<p dir="auto">I'm running the following firmware:<br />
(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')</p>
<p dir="auto">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.</p>
<p dir="auto">Anybody interested in helping?</p>
<p dir="auto">kind regards</p>
<p dir="auto">Lieven</p>
]]></description><link>https://forum.pycom.io/post/9098</link><guid isPermaLink="true">https://forum.pycom.io/post/9098</guid><dc:creator><![CDATA[tytgatlieven]]></dc:creator><pubDate>Tue, 04 Jul 2017 08:40:25 GMT</pubDate></item></channel></rss>