Go to advanced search

by RobinMosedale
Sat Oct 17, 2020 9:33 pm
Forum: General discussion
Topic: VSCode
Replies: 11
Views: 410

Re: VSCode

Thank you. Well the VS Code was to diagnose and probe an issue with a micropython esp32 target. Nothing more. So uncovered a second order issue with the platform. With no none destructive upgrade without trashing several hundred pieces of work or a faff of archiving and reinstalling app configs? Rea...
by RobinMosedale
Sat Oct 17, 2020 7:17 pm
Forum: General discussion
Topic: VSCode
Replies: 11
Views: 410

Re: VSCode

Jessie old. Thanks, advise how it is wisest to upgrade without losing all my work if possible
by RobinMosedale
Sat Oct 17, 2020 7:16 pm
Forum: General discussion
Topic: VSCode
Replies: 11
Views: 410

Re: VSCode

VSC from microsoft
Tried both 64 and 32. One fails obviously.
by RobinMosedale
Sat Oct 17, 2020 7:04 pm
Forum: General discussion
Topic: VSCode
Replies: 11
Views: 410

Re: VSCode

Raspbian 8 Jessie
Pi Model3B V1.2
by RobinMosedale
Sat Oct 17, 2020 3:56 pm
Forum: General discussion
Topic: VSCode
Replies: 11
Views: 410

Re: VSCode

Pi3
Sudo apt-get update and upgrade done
Download deb package from site. Double click, debian install completes
by RobinMosedale
Sat Oct 17, 2020 3:42 pm
Forum: General discussion
Topic: VSCode
Replies: 11
Views: 410

VSCode

I've downloaded the correct version and satisfactorily installed it, debian arm non-64 bit. opening it to run fails to get it to do anything, a slight increase on processor % to 2%, then nothing? Is there some magic that I'm missing? Successfully loaded on windows, but I need to access an esp32 and ...
by RobinMosedale
Sat Jul 27, 2019 2:53 pm
Forum: Python
Topic: ESP32 Micropython asyncio queue overflow
Replies: 4
Views: 908

Re: ESP32 Micropython asyncio queue overflow

Indeed, I've had a response from the micropython forum. As expected it's not a fault, but an overload. The original code is fine. On one esp32 it was purposely modified to publish a response to message received, itself providing +ve feedback and resonance. It coped splendidly. Soak tested for more t...
by RobinMosedale
Fri Jul 26, 2019 9:33 pm
Forum: Python
Topic: ESP32 Micropython asyncio queue overflow
Replies: 4
Views: 908

Re: ESP32 Micropython asyncio queue overflow

Thank you Blimpy. Astonishing. This will be the second fault report that I'll be posting on their GITHUB repository in so many weeks. This example is the most elementary use of asyncio co-routines built directly on the micro python example. Don't they test even the most elementary use. I'll try a di...
by RobinMosedale
Fri Jul 26, 2019 7:44 pm
Forum: Python
Topic: ESP32 Micropython asyncio queue overflow
Replies: 4
Views: 908

ESP32 Micropython asyncio queue overflow

Further to the endeavours to get the resilient asynchronous mqtt to work, I can with the single thread example It was modified in a minor manner to publish a message in acknowledgement of receiving a subscribed message, an added line in the flash blue led The whole was now set to add a concurrent th...
by RobinMosedale
Thu Jul 25, 2019 7:41 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

So versions all scrubbed and the test asyncio mqtt demo programme works A minor alteration to include a publish function worked. Good progress The a trvial asyncio function to switch an external LED. runs for a few seconds and then I get :- "IndexError: queue overflow" see below Can't see ...
by RobinMosedale
Sat Jul 20, 2019 7:01 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

That's really most generous MrYsLab.

Hold fire a little while, I'm in conversation with the author, Peter.

There's something odd with my version of uasyncio

Robin
by RobinMosedale
Sat Jul 20, 2019 12:14 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

An array of 6 esp32's. One acting as accesspoint 1 rpi3 running a large app in tkinter. mqtt broker on pi all will need to rx/tx interrupts in from esp32's time tagged (I know about the drift) Speeds calculated, commands tx to control Some non realtime pwm to control servos All need compatible comms...
by RobinMosedale
Fri Jul 19, 2019 8:32 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

I know now that it can be set non-blocking.
I'd be grateful for your example
by RobinMosedale
Fri Jul 19, 2019 8:01 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

I shall create a fault report.
Banyan?
Perhaps
However this mechanism is the third avenue that I've attempte.
So please do point my to where I might find the correct variant for the esp32 together with a compatible variant for the pi3
by RobinMosedale
Fri Jul 19, 2019 4:13 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

"import asyncmqtttest.py Traceback (most recent call last): File "<stdin>", line 1, in <module> File "asyncmqtttest.py", line 39 SyntaxError: invalid syntax" It's the "await client.connect()" in def main below Why oh for goodness why? from machine import Pin i...
by RobinMosedale
Mon Jul 01, 2019 6:38 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

I'm going to be quiet for a while. A major rethink is necessary. My esp32's aren't living up to sales hype of easy comms and low level monitoring/control in real time. The dilemma is that I've too much invested in the tkinter application on the Pi3, several thousand lines of code. The esp32's run mi...
by RobinMosedale
Sat Jun 29, 2019 7:25 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

@Robin, In your code examples from your first message, What locks down the thread (and async tasks are never executed) is using time.sleep() in eg: while True: print ("Running") time.sleep(.05) Should use asyncio.sleep() instead, that passes control back to the event loop which in turn ru...
by RobinMosedale
Sat Jun 29, 2019 1:10 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

I'm more than grateful for all the responses, so very cogent replies here. I've looked at MQQT. It's blocking. I'll reply later on the nature of the apps, but essentially as in the OP the esp's do low level interrupt handling around what may be called a track, IR sensor's triggering interrupts at kn...
by RobinMosedale
Thu Jun 27, 2019 11:29 am
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Re: Run a asyncio socket function a a thread

My thanks Blimpyway, I'm more than grateful. I'll certainly try this avenue. Before I do, I wonder if I could ask:- The critical issue here is 'real time'. The signals that my ESP32's are interrupted by are time critical:- they're used for calculating speed across the sensors distributed around the ...
by RobinMosedale
Wed Jun 26, 2019 7:48 pm
Forum: Python
Topic: Run a asyncio socket function a a thread
Replies: 21
Views: 2981

Run a asyncio socket function a a thread

I'm learning all about threads, asyncio, all because I wish to run a non blocking server. I'm conscious that there are several variants according to which version of python. I'm running on a Pi3 with python 3.4.2 or 2.7.9 I'm running micropython version 1.11 on several esp32's I'll constrain my exam...
by RobinMosedale
Mon Jun 03, 2019 12:19 pm
Forum: Python
Topic: Python3 network module seems not to have WLAN attribute
Replies: 13
Views: 2308

Re: Python3 network module seems not to have WLAN attribute

You are tring to run MicroPython code on a RPi. The network module of MicroPython is not a part of the standard Python language and it's not available (or necessary) on Raspbian Linux. Setting up a WLAN connection is handled entirely by the operating system: https://www.raspberrypi.org/documentatio...
by RobinMosedale
Mon Jun 03, 2019 12:09 pm
Forum: Python
Topic: Python3 network module seems not to have WLAN attribute
Replies: 13
Views: 2308

Re: Python3 network module seems not to have WLAN attribute

Note The indentation around:- "print("waiting to Connect") print (station.ifconfig()) time.sleep(1) " ........................... keeps being removed by this webpage no matter whether I substitute spaces or not. Be assured they are 'Python' indented Put your code in a 'code bloc...
by RobinMosedale
Sun Jun 02, 2019 7:58 pm
Forum: Python
Topic: Python3 network module seems not to have WLAN attribute
Replies: 13
Views: 2308

Re: Python3 network module seems not to have WLAN attribute

Here is the code:- import network import time station=network.WLAN(network.STA_IF) station.active(True) station.connect("TP-LINK_EB850C", "ju87bstuka") while (not (station.isconnected())): print("waiting to Connect") print (station.ifconfig()) time.sleep(1) station.ifco...
by RobinMosedale
Sun Jun 02, 2019 11:51 am
Forum: Python
Topic: Python3 network module seems not to have WLAN attribute
Replies: 13
Views: 2308

Re: Python3 network module seems not to have WLAN attribute

Downloaded the indicated module, inspected, and that doesn't contain the standard WLAN objects either. I am merely at this stage establishing a station and connecting to the Wifi. Nothing more at this stage. I'm puzzled. Nearly all the python examples that come up on searches use these objects 'WLAN...
by RobinMosedale
Sat Jun 01, 2019 10:25 pm
Forum: Python
Topic: Python3 network module seems not to have WLAN attribute
Replies: 13
Views: 2308

Re: Python3 network module seems not to have WLAN attribute

Thanks Dougie, I'll do a thorough check tomorrow

Go to advanced search