Post
Topic
Board Hardware
Re: Announcing the FutureBit Apollo BTC - A Full Node/Mining Platform for the Home!
by
nullama
on 25/05/2022, 15:17:59 UTC
Hello

Does anyone know the proper command for attaching 2 USB board Apollo BTC devices to an Ubuntu linux machine?

Would it look something like this with both "/dev/ttyACM0 /dev/ttyACM1" being the devices connected to PC?


apollo-miner -host "*.pool.org" -port 3333 -user "wallet_address".Apollo -pswd x -comport /dev/ttyACM0 /dev/ttyACM1 -brd_ocp 75  -osc 50 -ao_mode 1



It looks like the miner software only can control one miner at a time, so you would need to execute two instances of it.

Here's what the official script does:

Quote from: miner_start_all.sh
#!/bin/bash
#This Script finds all your connected Apollo BTC Standard Hashboards and starts each one with the settings below in a screen session. Please see the miner_start.sh file for additional directions.

start_hashboards()
{
    while [ $1 ];
            do
            screen -dmS miner ./futurebit-miner -comport $1 -ao_mode 1 $settings
            sleep 1
            shift
    done
}

#find and start external hashboards


ports=$(ls /dev/ttyACM*)
start_hashboards $ports

echo "Started"

You could either do that, or simply run them manually, based on your command it would be something like this:

Code:
screen -dmS miner0 apollo-miner -host "*.pool.org" -port 3333 -user "wallet_address".Apollo -pswd x -comport /dev/ttyACM0 -brd_ocp 75  -osc 50 -ao_mode 1
sleep 1
screen -dmS miner1 apollo-miner -host "*.pool.org" -port 3333 -user "wallet_address".Apollo -pswd x -comport /dev/ttyACM1 -brd_ocp 75  -osc 50 -ao_mode 1

You can then do screen -r miner0 to go back to see the output of miner0. Same for miner1. To go back from that view, you can press Ctrl-A, then Ctrl-D. You can see what's running with screen -list