Search found 230 matches

by cefn
Mon Apr 20, 2020 11:54 pm
Forum: ESP8266 boards
Topic: socket - ERR_CONNECTION_RESET on 4th connection
Replies: 13
Views: 3130

Re: socket - ERR_CONNECTION_RESET on 4th connection

Worth noting also that Chrome has developed a mind-of-its-own webserver resource hoarding strategy known as Preconnect. https://www.chromium.org/developers/design-documents/network-stack/preconnect This strategy makes extra spare parallel connections to a server you are accessing, in case your brows...
by cefn
Sat Apr 18, 2020 4:17 pm
Forum: Development of MicroPython
Topic: Porting Python3 HTTP server to Micropython
Replies: 0
Views: 623

Porting Python3 HTTP server to Micropython

Hi, all The commit linked below was everything needed for a python3 project to work in MicroPython v1.12-351-gbd5633778-dirty running on unix as a reference. https://github.com/vgkits/corequest/commit/0f94232056303002001c7ae5595aedb10d2c5a21?w=1 Thought it might be useful to share given this is a fa...
by cefn
Fri Nov 15, 2019 10:48 am
Forum: ESP8266 boards
Topic: socket - ERR_CONNECTION_RESET on 4th connection
Replies: 13
Views: 3130

Re: socket - ERR_CONNECTION_RESET on 4th connection

See the issue comment at https://github.com/micropython/micropython/issues/2299#issuecomment-264750573 which links to a workaround; using NPM's inliner package to turn any multi-file HTML resource into a single file by auto-inlining all resources. Not a direct answer to ESP8266 socket failings, but ...
by cefn
Tue Oct 22, 2019 6:18 pm
Forum: Drivers for External Components
Topic: KT403A MP3 : DFPlayer, GroveMP3
Replies: 1
Views: 708

Re: KT403A MP3 : DFPlayer, GroveMP3

See also https://github.com/ShrimpingIt/micropython-dfplayer/blob/master/README.md if you are trying to drive it from an ESP8266 (with a TX-only UART). The ScanPlayer uses a hack to monitor the 'playing' pin to scan for consecutive numerically named files and folders by trying to play them, so that ...
by cefn
Tue Oct 22, 2019 5:58 pm
Forum: General Discussion and Questions
Topic: Randomization, experimenting with my FIRST :) servo - trying to randomize an infinite loop
Replies: 2
Views: 489

Re: Randomization, experimenting with my FIRST :) servo - trying to randomize an infinite loop

Hi, PixelShady A while loop is just a set of steps which are repeated in sequence ( see https://github.com/cefn/group9/blob/master/vector/03-repeating.pdf ). The steps which are repeated are 'inside' the while block. The lines 'inside' the while block are immediately after the while line and are ind...
by cefn
Sun Jul 28, 2019 2:40 pm
Forum: Development of MicroPython
Topic: I think you guys should check this out....
Replies: 4
Views: 1162

Re: I think you guys should check this out....

Hi, John Given what you've written it would've consistent with quite a few PEBCAK (user) errors. For example maybe there's a complete copy of the files from the root in the www directory, or maybe this was all running in a session where ls, cd etc weren't defined by Quickies.py at all. You say you r...
by cefn
Sun Apr 07, 2019 7:13 am
Forum: General Discussion and Questions
Topic: Installation of esptool
Replies: 9
Views: 1968

Re: Installation of esptool

Well done for getting this far from a standing start! The problem you're facing is you are running a pip command INSIDE the python shell. 'pip' is a command, like 'python' which you should type directly into the Windows terminal. If you are in the python shell, press CTRL+C then type the python inst...
by cefn
Sat Mar 30, 2019 11:47 am
Forum: Programs, Libraries and Tools
Topic: New version of rshell with better startup for ESP8266 and ESP32
Replies: 9
Views: 3349

Re: New version of rshell with better startup for ESP8266 and ESP32

My suspicion is that some serial drivers send the reset on connect, as it only seems to affect some OS. Linux is unaffected by this behaviour. Mac OS is affected by the behaviour. Can't remember for Windows. It's a real pain since if there is a main.py I am used to interactively killing the micropyt...
by cefn
Thu Mar 28, 2019 8:44 pm
Forum: MicroPython pyboard
Topic: Why does my REPL session always have this output
Replies: 7
Views: 1321

Re: Why does my REPL session always have this output

Potentially could use 'vanguard shell' to connect.

It wraps pyserial's miniterm with a micropython-specific terminal configuration and has never spoken to a modem in its life :)

https://pypi.org/project/vgkits-vanguard/
by cefn
Thu Mar 28, 2019 5:50 pm
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 3602

Re: Neopixel RGBW

Assuming Microbit has full SPI support I speculate you could follow this implementation... https://github.com/nickovs/ws2812-SPI/blob/master/neoSPI.py ...since it just ships bytes out with the right timing. Perhaps that amount of python is too much for the microbit. A lot of it is to support address...