WiFi Fixed Channel parameter

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: WiFi Fixed Channel parameter

Post by MMliam » Thu Dec 16, 2021 11:28 pm

So far there's a problem with my micropython build; while it has an "esp" module, the esp module does not contain espnow.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WiFi Fixed Channel parameter

Post by davef » Thu Dec 16, 2021 11:52 pm

Use his pre-built images:
https://github.com/glenn20/micropython- ... -g20-v1.17

There might instructions somewhere for building your own ... but I haven't tried them.
https://github.com/micropython/micropyt ... /README.md

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: WiFi Fixed Channel parameter

Post by MMliam » Fri Dec 17, 2021 12:49 am

Thanks, I'll check it out; this is the one I currently have: esp8266-1m-20210902-v1.17.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WiFi Fixed Channel parameter

Post by davef » Fri Dec 17, 2021 1:11 am

Building for ESP8266 is more difficult.

Start with his image and see if it does what you want then tackle building it yourself.

I ran ESPNow on ESP-01s originally but all my recent work is on the ESP32.

Good luck.

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: WiFi Fixed Channel parameter

Post by MMliam » Sat Dec 18, 2021 12:57 am

Hi dave,

Having an issue with the version of micropython you suggested. My test software requires MQTT which I normally install using upip; my procedure is as follows:

I load a boot.py that simply connects to my router; that works.
Next in REPL I enter:
>>> import upip #No Problem
Then to install MQTT I enter:
>>>upip install('micropython-umqtt.simple')
The normal response would be:
Installing to: /lib/
Warning: micropython.org SSL certificate is not validated
Installing micropython-umqtt.simple 1.3.4 from https://micropython.org/pi/umqtt.simple ... 3.4.tar.gz

But instead I get a syntax error.
I've even tried giving a path to a local .py file, but it keeps saying syntax error.
I notice there's another install method: 'install_tar'. Should I be using that one with the full path above?

UPDATE: Tried the install_tar and that didn't work either.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WiFi Fixed Channel parameter

Post by davef » Sat Dec 18, 2021 1:30 am

You will have to raise an issue and the guy who knows what you can and can not do will hopefully respond. Maybe something important for you has been left out of the ESP8266 image.

Did the channel assignment thing work?

viewtopic.php?f=18&t=9177&start=160 I see the words MQTT in the SMesh posting by Zoland.

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: WiFi Fixed Channel parameter

Post by MMliam » Sat Dec 18, 2021 2:03 am

Didn't get that far. My software first connects with the network, then it tries to establish a connection with the MQTT Broker. Soon as it hit the MQTT code it thru an error, because it's not in the LIB. I would need to disable MQTT functionality to just test the network, but I'd rather like to get the MQTT functionality.

Not sure who I'd try to contact on GitHub about the issue with this build. I've also noticed additional newer builds that appear to include ESPNow, I might try one of them.

Reviewing the link you posted; are these the guys that originally created the build you suggested?

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WiFi Fixed Channel parameter

Post by davef » Sat Dec 18, 2021 3:05 am

Early work on ESPNow was done by shawwwn https://github.com/micropython/micropython/pull/4115. I never tried ESPNow until glenn20 put up the images found at:
https://github.com/glenn20/micropython-espnow-images
The latest I see for the ESP8266 is:
https://github.com/glenn20/micropython- ... g26f058583

Near the top of that page you will see Issues (2). One is mine, which Glenn is currently working on. I see RSSI is the documentation.

Try raising an issue. If you don't want to register on Github I will do it for you.

MMliam
Posts: 121
Joined: Mon May 07, 2018 1:08 pm

Re: WiFi Fixed Channel parameter

Post by MMliam » Sat Dec 18, 2021 3:13 am

Given that they already know you, please post the issue:
Again I did the following:
>>> import upip #No Problem
>>>upip install('micropython-umqtt.simple')
Resulted in a syntax error.

Should have responded with:
Installing to: /lib/
Warning: micropython.org SSL certificate is not validated
Installing micropython-umqtt.simple 1.3.4 from https://micropython.org/pi/umqtt.simple ... 3.4.tar.gz

NOTE: The ESP-01S was connected to my WiFi network.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WiFi Fixed Channel parameter

Post by davef » Sat Dec 18, 2021 3:39 am

Done. Just checking you have been able to do upip install on the official image?

Post Reply