Problem with arduino mining
Hello, when i mine with arduino i have problems. When 15 minutes past, it types: no device on COM3, check if it is connected. I was trying plug out/in arduino and reset program, but sometimes its help,but sometimes not
I had this problem with ESP-01 devices (ESP8266). For me, it ended up being a two part issue:
First, my hardware USB port was loose. I had to bend the pins to grab a hold of the USB device a little more firm so that the slightest breeze / vibration wouldn't knock it loose, and;
Second, after about 20 accepted hashes it would start getting garbage responses back from the server. I was able to track it down to not disposing of previously received server responses; specifically, in most cases, the difficulty value of 75 that remained in the buffer. I modified the program to perform a client.flush() command before sending the new request. This did slow down the hash-rate (as the code comments say it would) but the reliability was greatly improved (several hundred accepted hashes before losing connection again).
As for the second, however, the new 2.3 version of the code (looks virtually the same to me) seems to have fixed it. My guess is that the upload process itself had somehow been affecting the execution code... I did change the download options (Arduino IDE) to clear the entire flash when uploading the code and can now get several thousand hashes before having any issues.
I hope this helps.
Thank you for your answer! I will test it with new version of code
I see an error: trouble connect avr on port, check if it connected. You told, that need to change download options. How to do that?
I'm using the ESP-01 device (ESP8266) and not an Arduino board - different source code.
Also, the ESP8266 has the option I mentioned above but the Arduino does not. Do you have another USB port? Have you tried connecting to it?
Yes, i tried a lot of ports. But every time, on 100 block, it wrote that board not connected.And i need to plug in/out board, then delete avr resources folder,and 50% it helps
Alright, if you have python installed then you can try running this version of the miner: https://github.com/revoxhere/duino-coin/blob/master/AVR_Miner.py - yanis made some corrections, maybe it'll work better. For more improvements, please stay tuned.
Okay, i was trying use Your new version. It works, i have this:
P.s : connection to server error, and then autorestart
I'll see what can be done about it
AVR Miner since commit https://github.com/revoxhere/duino-coin/commit/a1234cf5c8d7bf0937347882038ad729b4a0e310 should have no problems with automatically restarting if it encounters an error.