Pages:
Author

Topic: PiMiner - DIY mining controller/monitor with Raspberry Pi [v1.1] - page 2. (Read 35889 times)

member
Activity: 108
Merit: 100
anyone know of a case that will also accommodate the lcd?

also, I made a slight change to PiMinerInfo.py since if you have multiple pools, it doesn't actually know which one you are currently mining on
hero member
Activity: 588
Merit: 500
I like pi! half finished.

http://imgur.com/BiIMKJb


Have had 80+ on a single pi.

... ladies & gentlemen, I believe we have a new pi-hi-score

I can't ever see the poor little thing... Buried with hashpower Grin
full member
Activity: 140
Merit: 100
I like pi! half finished.

http://imgur.com/BiIMKJb


Have had 80+ on a single pi.

... ladies & gentlemen, I believe we have a new pi-hi-score
member
Activity: 60
Merit: 10
I like pi! half finished.

http://imgur.com/BiIMKJb


Have had 80+ on a single pi.
newbie
Activity: 19
Merit: 0
hmm … so the hubs are *not* connected in a series/chain, correct?
I haven't tested with more than six erupters myself, so you have me at a bit of a loss here.  
Shot in the dark, but have you tried specifying ttyUSB13 & ttyUSB14 even though they don't show with ls?

Thanks for the ideas and feedback.

To answer your question - you are correct, the hubs are not in series, but rather connected in a hub/spoke style.  (RPi -> Hub1. Then Hub1 connects to Hub2, 3 and 4 directly.)

I did not try specifying ttyUSB13 & 14, although that is a great suggestion.  

I'll try it in a few days when I get back in town, and post my results back here.

full member
Activity: 140
Merit: 100
Laserhorse,
Can a backup pool be put in the .conf? I added a pool while mining and hit 'S' and 'W' but it didn't change anything. What about other options can be added, like difficulty?

yup - add'l pools can be added to the conf file like so:

Code:
"pools" : [
        {
                "url" : "FIRST POOL ADDRESS:PORT",
                "user" : "WORKER NAME",
                "pass" : "PASSWORD"
        },
        {
                "url" : "SECOND POOL ADDRESS:PORT",
                "user" : "WORKER NAME",
                "pass" : "PASSWORD"
        },
]

And yes - you can add a pool or make other changes from within cgminer:
hit "S" to go to settings,
then "W" to write the config file
and save it by entering the following location: "/home/pi/cgminer.conf"
and enter "y" confirm that you wish to overwrite the preexisting file.


Thanks for the great project, LaserHorse.

My Pi Miner has been running great for the past week with 9 Erupters.   But, I'm having a problem adding more Erupters to it and hope that someone may be able to share some guidance.  

When trying to add 6 additional Erupters (for a total of 15), I discovered that it will only "see" 13 total.  i.e., typing "ls /dev/*USB*" only lists ttyUSB0 - ttyUSB12, even though there are 15 Erupters installed.

A few notes:
  • I built a second RPi Miner, with a newly imaged SD-card, and ran into the exact same issue.
  • The 15 Erupters were installed across 3 DLink DUB-H7 hubs, 5 in each hub.  So I don't think its power related.
  • These 3 hubs feed into a 4th hub which is connected to the RPi.
  • I'm using Raspbian, and followed the build process specified in your project walk-through.
  • The 2 Erupters that it wont see are running fine on a separate RPi miner.  So it doesn't appear to be a hardware problem with those Erupters.

Any recommendations for troubleshooting this?   Is there a default max number of USB serial devices that are enumerated in Raspbian?


hmm … so the hubs are *not* connected in a series/chain, correct?
I haven't tested with more than six erupters myself, so you have me at a bit of a loss here.  
Shot in the dark, but have you tried specifying ttyUSB13 & ttyUSB14 even though they don't show with ls?
newbie
Activity: 44
Merit: 0
Laserhorse,
Can a backup pool be put in the .conf? I added a pool while mining and hit 'S' and 'W' but it didn't change anything. What about other options can be added, like difficulty?
newbie
Activity: 19
Merit: 0
Thanks for the great project, LaserHorse.

My Pi Miner has been running great for the past week with 9 Erupters.   But, I'm having a problem adding more Erupters to it and hope that someone may be able to share some guidance.  

When trying to add 6 additional Erupters (for a total of 15), I discovered that it will only "see" 13 total.  i.e., typing "ls /dev/*USB*" only lists ttyUSB0 - ttyUSB12, even though there are 15 Erupters installed.

A few notes:
  • I built a second RPi Miner, with a newly imaged SD-card, and ran into the exact same issue.
  • The 15 Erupters were installed across 3 DLink DUB-H7 hubs, 5 in each hub.  So I don't think its power related.
  • These 3 hubs feed into a 4th hub which is connected to the RPi.
  • I'm using Raspbian, and followed the build process specified in your project walk-through.
  • The 2 Erupters that it wont see are running fine on a separate RPi miner.  So it doesn't appear to be a hardware problem with those Erupters.

Any recommendations for troubleshooting this?   Is there a default max number of USB serial devices that are enumerated in Raspbian?
full member
Activity: 140
Merit: 100
FYI, I also experienced issues with Block Erupter USB's on Raspbain. However I was successful at building and running cgminer from git (3.3.1) after dist-upgrading Raspbain from wheesy to jessie.  

Thnx - good to know!  I'll update the tutorial once jessie is considered stable.
newbie
Activity: 35
Merit: 0
Quote from: The tutorial
Note: this is not the latest version of cgminer, at the time of this writing, the current version (3.3.1) has issues communicating with Block Erupter USB on Raspbian

FYI, I also experienced issues with Block Erupter USB's on Raspbain. However I was successful at building and running cgminer from git (3.3.1) after dist-upgrading Raspbain from wheesy to jessie.  

JLM
full member
Activity: 164
Merit: 100
I'm totally in love with this project! Will be adapting it for BFL Jalapenos.
Post progress
full member
Activity: 140
Merit: 100
Hy, ok, but why i cant not use two IPs... so when i will check the miner over CGWatcher or anything...

In "cgminer.conf" try replacing this line:
Code:
        "api-allow" : "0/0",
with this:
Code:
        "api-allow" : "0/0, W:127.0.0.1, 192.168.0.142",
I don't use CGWatcher, so can't test it myself.


Another question : can i change the color on startup to green? And change the glow of the display ?
I am new in this Wink

You can edit the file named "PiMinerDisplay.py" to change which LCD colors can be selected.
The list of colors is defined starting at line #19:
Code:
		self.col = (self.lcd.ON,   self.lcd.OFF, self.lcd.YELLOW, self.lcd.OFF,
               self.lcd.GREEN, self.lcd.OFF, self.lcd.TEAL,   self.lcd.OFF,
                self.lcd.BLUE,  self.lcd.OFF, self.lcd.VIOLET, self.lcd.OFF,
                 self.lcd.RED,    self.lcd.OFF)

If you'd prefer to only use green, you can replace those 4 lines with this line:
Code:
		self.col = (self.lcd.GREEN, self.lcd.OFF)

EDIT: you'll also need to change line #51 in "PiMiner.py" from:
Code:
                lcd.backlight(lcd.ON)
to:
Code:
                lcd.backlight(lcd.GREEN)

Just remember to keep the indentations as seen above, or python may bite Wink

The only other LCD function which can be controlled is the display contrast, which can be altered using the onboard potentiometer


Hope that helps!
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
now its running. But, why? : Here is my old config file
[…]

comparing the files, I see the following differences:



likely the api-allow address
also cgminer 3.1.1 doesn't use hotplug

Hy, ok, but why i cant not use two IPs... so when i will check the miner over CGWatcher or anything...


Another question : can i change the color on startup to green? And change the glow of the display ?
I am new in this Wink
full member
Activity: 140
Merit: 100
now its running. But, why? : Here is my old config file
[…]

comparing the files, I see the following differences:



likely the api-allow address
also cgminer 3.1.1 doesn't use hotplug
full member
Activity: 164
Merit: 100
With 40 B.E. CPU occupation is at ~45%, so I think it can handle up to around 60 of them. The problem are USB hubs. For some reason the installed USB controller can't handle very well those hubs made with two cascaded hub internally. And I didn't find any (not expensive) solution to hook more than 20 devices reliably and 40 devices with stability problems. I would be happy to being able to connect 40 to 60 devices, I'm still looking for a serious USB HUB.
sr. member
Activity: 322
Merit: 250
Supersonic
Code:
"api-allow" : "W:127.0.0.1, 192.168.0.142",

maybe the space between the 2 ips?

cgminer 3.1.1 on my desktop accepted your old config without any fuss...
newbie
Activity: 44
Merit: 0
I'm certainly no expert, but I notice on line 8-9 the comma is in different place. When I had trouble with mine it was formatting errors like that. (I think)
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
Hy,

now its running. But, why? : Here is my old config file

Code:
{
"pools" : [
{
"url" : "eu-stratum.btcguild.com:3333",
"user" : "spacedevil_4",
"pass" : "egalo"
}
],

"api-port" : "4028",
"api-listen" : true,
"api-allow" : "W:127.0.0.1, 192.168.0.142",
"expiry" : "120",
"failover-only" : true,
"hotplug" : "5",
"log" : "5",
"no-pool-disable" : true,
"queue" : "2",
"scan-time" : "60",
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"icarus-options" : "115200:1:1",
"icarus-timing" : "3.0=100"
}

And the working one:

Code:
{
"pools" : [
{
"url" : "eu-stratum.btcguild.com:3333",
"user" : "spacedevil_4",
"pass" : "egalo"
}
]
,
"api-listen" : true,
"api-port" : "4028",
"expiry" : "120",
"failover-only" : true,
"log" : "5",
"no-pool-disable" : true,
"queue" : "2",
"scan-time" : "60",
"worktime" : true,
"shares" : "0",
"kernel-path" : "/usr/local/bin",
"api-allow" : "0/0",
"icarus-options" : "115200:1:1",
"icarus-timing" : "3.0=100"
}
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler


Strange, I'm unable to recreate this bug - PiMiner always manages to connect to cgminer for me, tho it can take up to ~30 seconds or so.
Which version of the RPi are you using - Model A or Model B?

I'll check a few more possible causes …

I have Raspi  Model B.

CG Miner 3.1.1

On one screen i become the message
"format
error"

when i push the up or down button.

i use german language config in raspi.

so in Germany we work with comma, for numbers eg. 1.000 in English is 1000 in German and the comma is for *,00 

i dont know if this the right way... but a idea.

newbie
Activity: 35
Merit: 0
Where can I buy assembled Adafruit 16x2 LCD display? Thank you.

Drop me a line if you're still looking. I'm selling assembled and tested ones for $45 shipped.
Pages:
Jump to: