Search found 108 matches
- Fri Dec 16, 2016 2:01 pm
- Forum: ESP8266 boards
- Topic: Dowloading Gigabytes reloaded
- Replies: 11
- Views: 15082
Re: Dowloading Gigabytes reloaded
Now I'm on earlier version of things (by some weeks) with some of my own code glued on which ought not to matter but when I run the client.py it connects once, transfers OK and subsequently doesn't. I feel that there's some internal resource that's obviously not being released. It also shows why UDP...
- Fri Dec 16, 2016 1:20 pm
- Forum: ESP8266 boards
- Topic: Pin Toggle Performance
- Replies: 8
- Views: 14306
Re: Pin Toggle Performance
Since Micropython on this platform executes not much faster than BASIC on a BBC Micro if you want sub 1uS you'll need to write it in C. You could cheat and pretend it's an SPI device and clock out something using that.
Jon
Jon
- Thu Nov 24, 2016 11:50 am
- Forum: ESP8266 boards
- Topic: How can I trap socket errors?
- Replies: 13
- Views: 20479
Re: How can I trap socket errors?
It is far better to catch the thing you want to catch (socket.timeout and maybe other OSErrors) and leave other exceptions alone rather than the way you have written it for the simple reason is if you call this from something else in a loop you have now stopped the KeyboardInterrupt so the outer loo...
- Tue Nov 22, 2016 12:47 pm
- Forum: ESP8266 boards
- Topic: How can I trap socket errors?
- Replies: 13
- Views: 20479
Re: How can I trap socket errors?
Generally socket calls throw OSErrors or something derived from them.
As said don't catch everything or it'll include KeyboardInterrupts as well and that'll get annoying.
The other mistake is to catch exceptions and carry on silently as if everything is ok.
Jon
As said don't catch everything or it'll include KeyboardInterrupts as well and that'll get annoying.
The other mistake is to catch exceptions and carry on silently as if everything is ok.
Jon
- Tue Nov 22, 2016 12:13 pm
- Forum: ESP8266 boards
- Topic: Dowloading Gigabytes reloaded
- Replies: 11
- Views: 15082
Re: Dowloading Gigabytes reloaded
May I suggest the same test written in C to determine whether the problem is MicroPython (as implemented on the ESP).
Jon
Jon
- Mon Nov 21, 2016 2:18 pm
- Forum: ESP8266 boards
- Topic: Dowloading Gigabytes reloaded
- Replies: 11
- Views: 15082
Re: Dowloading Gigabytes reloaded
Dwight makes a good point. Do not use the term "crash". Say what happened where it deviates from what was expected. Would also be good if you confirmed the power supply arrangement and any local decoupling (which as I have said you really ought to have). How long (time and data) does it typically ru...
- Tue Nov 15, 2016 10:58 am
- Forum: ESP8266 boards
- Topic: random offtopic posts
- Replies: 11
- Views: 11518
Re: random offtopic posts
Yes of course TCP has transmission timeouts. I though it was to do with inactivity. My mistake. Yesterday was one of those days. I locked myself out due tue a keyring error later on. Anyway the problem with network code is that 1) it is tricky and often misunderstood anyway and 2) This device's netw...
- Mon Nov 14, 2016 3:54 pm
- Forum: ESP8266 boards
- Topic: random offtopic posts
- Replies: 11
- Views: 11518
Re: Downloading 1GB of data with MicroPython ESP8266 port
Hate to spoil things but TCP itself has no timeout unless you enable keepalives. SMBus is more about not paying royalties and maybe cranking up the speed a little. As is TWSI and PMBus. Once you've checked the voltage and frequency and (unlikely) 10-bit addressing they're all the same. Very few devi...
- Mon Nov 14, 2016 12:08 pm
- Forum: ESP8266 boards
- Topic: random offtopic posts
- Replies: 11
- Views: 11518
Re: Downloading 1GB of data with MicroPython ESP8266 port
The ESP consumes about 80mA and gets a little warm as expected and no problem at all even over a long cable and lots of hubs as long as there is a little local supply decoupling. If something is hot rather than warm there's something very wrong. (Most modern electronics for the most part works perfe...
- Mon Nov 14, 2016 10:33 am
- Forum: ESP8266 boards
- Topic: random offtopic posts
- Replies: 11
- Views: 11518
random offtopic posts
It's a very very sad state of affairs indeed when a device capable of transferring the odd gigabyte without keeling over is considered in anyway satisfactory. No wonder the banks are in the state they are. Perhaps I'm getting too old for this. (Supplying through USB is absolutely fine but you must h...