Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Sample code for AirLift
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Sample code for AirLift

by ocpBerlin on Fri Apr 10, 2020 11:28 am

Hi,

I'm trying to setup an AirLift Wing connected to a Feather M4 Express.

I've tried the sample code "Internet Connect" (https://learn.adafruit.com/adafruit-metro-m4-express-airlift-wifi/internet-connect-2) and the AirLift connects to my AP but I get the following error message:

"Didn't receive full response, failing out"

Any ideas on how to solve this?

Thanks,

Oscar.

Note: I'm using CircuitPython 5.1.0 and the libraries from 20200407

ocpBerlin
 
Posts: 29
Joined: Fri Dec 07, 2018 6:22 am

Re: Sample code for AirLift

by brubell on Fri Apr 10, 2020 2:29 pm

Could you post the full output from your REPL?

brubell
 
Posts: 958
Joined: Fri Jul 17, 2015 10:33 pm

Re: Sample code for AirLift

by ocpBerlin on Sat Apr 11, 2020 3:14 pm

Here we go, thanks for the reply!

Oscar

code.py output:
ESP32 SPI webclient test
ESP32 found and in idle mode
Firmware vers. bytearray(b'1.2.2\x00')
MAC addr: ['0x60', '0xd1', '0x55', '0x12', '0xcf', '0xa4']
Bifi3 RSSI: -74
Bifi3 RSSI: -88
Bifi3 RSSI: -89
Bifi3 RSSI: -89
Connecting to AP...
could not connect to AP, retrying: ('No such ssid', b'Bifi3')
Connected to Bifi3 RSSI: -62
My IP address is 192.168.1.63
IP lookup adafruit.com: 104.20.39.240
Ping google.com: 20 ms
Fetching text from http://wifitest.adafruit.com/testwifi/index.html
Traceback (most recent call last):
File "code.py", line 58, in <module>
File "adafruit_requests.py", line 291, in get
File "adafruit_requests.py", line 251, in request
File "adafruit_requests.py", line 235, in request
File "adafruit_esp32spi/adafruit_esp32spi_socket.py", line 120, in readline
RuntimeError: Didn't receive full response, failing out

ocpBerlin
 
Posts: 29
Joined: Fri Dec 07, 2018 6:22 am

Re: Sample code for AirLift

by brubell on Wed Apr 15, 2020 11:53 am

Could you attempt to upgrade the ESP32 firmware per this guide: https://learn.adafruit.com/upgrading-es ... -one-board

brubell
 
Posts: 958
Joined: Fri Jul 17, 2015 10:33 pm

Re: Sample code for AirLift

by ocpBerlin on Thu Apr 16, 2020 1:40 pm

Ok. I tried to upgrade but I'm running into difficulties.

I've got the Airlift Featherwing and the Feather M4 Express mounted on the Feather tripler.
I double-click the rest button, LED on the Feather turns green, I copy the UF2 (Airlift-BitsyWing-FeatherWing-Passthru.UF2) and the LED turns white.
Device /dev/cu.usbmodem14201 appears in the list (I'm using a mac).
I then run the esptool with NINA_W102-1.6.0 but the tool fails to connect. The LEDS (neopixel and small red LED) turns red, but then I get the following error message:

esptool.py v2.8
Serial port /dev/cu.usbmodem14201
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header


I added pictures of the solder bridges, I don't think that should be an issue.
Do you have any suggestions?

Thanks.
Attachments
IMG_1435.jpg
IMG_1435.jpg (179.09 KiB) Viewed 39 times
IMG_1434.jpg
IMG_1434.jpg (125.41 KiB) Viewed 39 times

ocpBerlin
 
Posts: 29
Joined: Fri Dec 07, 2018 6:22 am

Re: Sample code for AirLift

by ocpBerlin on Fri Apr 17, 2020 4:03 am

From what I gathered from the internet, it looks like it might be related to macOS Catalina and the esptool.
I'll find another computer to run the FW update and report back.

ocpBerlin
 
Posts: 29
Joined: Fri Dec 07, 2018 6:22 am

Re: Sample code for AirLift

by ocpBerlin on Sat Apr 18, 2020 10:40 am

Ok, I have tried now with an older macOS version and with a Raspberry Pi.

In all cases, when running the esptool I see the LEDs on the Feather M4 turn red (it's the right port), but it cannot find the Airlift, same error message as reported above.

Any ideas what I could try?

I've ordered a new Airlift Featherwing with the hopes of getting a newer Firmware, but it would still be nice to update the one I have right now, if that is indeed the cause of my initial problem (= sample code not running).

Thanks,

Oscar.

ocpBerlin
 
Posts: 29
Joined: Fri Dec 07, 2018 6:22 am

Re: Sample code for AirLift

by brubell on Tue Apr 21, 2020 9:37 am

Device /dev/cu.usbmodem14201 appears in the list (I'm using a mac).
I then run the esptool with NINA_W102-1.6.0 but the tool fails to connect. The LEDS (neopixel and small red LED) turns red, but then I get the following error message:


Did you try running the following in your terminal

Code: Select all | TOGGLE FULL SIZE
esptool.py --port /dev/cu.usbmodem14201  --before no_reset --baud 115200 write_flash 0 NINA_W102-1.6.0.bin

brubell
 
Posts: 958
Joined: Fri Jul 17, 2015 10:33 pm

Re: Sample code for AirLift

by ocpBerlin on Tue Apr 21, 2020 9:48 am

Yes, I followed the instructions for the esptool and changed the device (/dev/...) to my particular device.

As mentioned, immediately following <enter> the M4 neopixel and on board LED turn red.

I've also tried with a Raspberry Pi (a different /dev/...) but got the same reaction, and I've also tried a slower speed (--baud 9600) but it didn't make a difference.

Can you confirm that you have been successfully using the esptool lately with a mac or a linux computer?

By the way: I had ordered a new Airlift Featherwing from an international distributor (mouser) and apparently the Airlifts are now banned from export from the US (to Germany), so my order got cancelled - in case you weren't aware of that.

ocpBerlin
 
Posts: 29
Joined: Fri Dec 07, 2018 6:22 am

Re: Sample code for AirLift

by brubell on Tue Apr 21, 2020 9:53 am

Can you confirm that you have been successfully using the esptool lately with a mac or a linux computer?

Yep, just upgraded my PyPortal's ESP32 on Friday.

Could you try using the Arduino passthru method listed here?
https://learn.adafruit.com/upgrading-es ... rough-3-16

brubell
 
Posts: 958
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.