Comments (10)
In case someone want the code I'm running here it is. It seems to be working great without any bad shares or close to zero for long runs. I have added WiFiMulti reconnection too. Btw, I have changed the baudrate too, it's 500K, the ESP32 can handle that speed nicely.
from duino-coin.
Really nicely explained! We will try to make use of these tips, @JoyBed should also take a look
from duino-coin.
Great! I hope it helps.
By the way there is a couple of things that I forgot, one is the flushing of the client, this should be done before sending any request to the server and after the reading of the buffer. Doing it like this would help preventing the mixing of messages (for example the server version could be merged with the actual job causing a bad share).
Yesterday I was making some tests and find out that there were a lot of bad shares, I was thinking that maybe it was the esp_sha function but playing with the yield and some delays I found out that somehow the esp_sha need some wait time before and after execution, I don't know why it behaves like that but when I put some delays before and after suddenly there were not one bad share. And it didn't affect the hashrate, the delays I use are 10 microseconds before and after each esp_sha call.
Finally another suggestion is to stop using the delay functions, I think the RTOS handles that well on the background, but this is just for the ESP32, it's a little bit messy to use the delay function on a task. This is somewhat of an opinion more than a fact actually haha.
Will be looking forward to any change in the future.
from duino-coin.
Tried your new code and it dies after several minutes every time, not sure why as I'm not saving the serial output.
from duino-coin.
I will post it without WiFiMulti, I think is making the code crash.
from duino-coin.
Try this one. I didn't remove the WiFiMulti (it is quite useful) I have change some lines and I think it works but let me know if you have some problems.
By the way, the server will always close the connection from time to time (could be several minutes or some hours), I think this behavior is expected and after that it should connect immediately. What it should not be expected is to disconnect from WiFi or don't connect to WiFi at all.
from duino-coin.
is not working
from duino-coin.
@joaquinbvw ....is not working.
from duino-coin.
@joaquinbvw ....is not working.
Ok, what do you see on the serial monitor? Is it connecting to WiFi or not connected at all? I think that code I posted had some issues with some boards and also I don't like it very much that's why I didn't put a request. Nevertheless I have requested a code change now, maybe you can try that code instead. Here it is:
from duino-coin.
I believe I have implemented all of these optimizations already on the latest version. Will close it now.
from duino-coin.
Related Issues (20)
- Error fetching node from poolpicker: connection failed HOT 1
- Arduino UNO R4 Wifi Not working
- Discord Ban HOT 3
- Cant pass the 100 share. HOT 2
- There is issue on website with the duco calculator HOT 1
- Cant send or wrap coins it says ¨You're using multiple accounts: Jaden360lols¨
- Missing MiningJob.h
- AVR_Miner.py asks for configuration again after executing with the absolute path specified HOT 2
- Raspberry pi New IOT feature: ip , user and customizable config from web wallet HOT 1
- Android app link doesnt work HOT 2
- Warnings during compilation of libducohash on Windows, with Python 3.12.2 HOT 1
- AVR_Miner.py error name 'accept' is not defined
- Add libducohash.tar.gz to the repository
- Esp32 constantly resetting the mining process HOT 1
- Multiple accounts on same IP. HOT 11
- [Feature Request] - Binary files with web interface for initial configuration HOT 2
- Once all boards are plugged out and both programs are closed the PC enforces the set local group policy for all users HOT 5
- Rust fails to compile the fasthash accelerations HOT 5
- KH/S not working to me. HOT 1
- Mining software not working on Raspberry Pi 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from duino-coin.