Contact Sales

FAQ: Advanced

How to automatically change power limit based on time?

In some countries there is an electricity grid program and the electricity cost is different during the day, so if you want to power up your mining devices with low and high PSU power limit during the day/night you can follow the steps below.

Some power companies will offer alternative power schedules for peak and off peak energy rates.

For Zynq control boards from Braiins OS 22.08 and newer

0	9	*	*	*	/etc/init.d/bosminer stop && sed -i 's/^psu_power_limit = .*/psu_target = 960/' /etc/bosminer.toml && /etc/init.d/bosminer start

This will change the device tuner power limit from (anything) to 960w at 9:00AM

0	2	*	*	*	/etc/init.d/bosminer stop && sed -i 's/^psu_power_limit = .*/psu_target = 1280/' /etc/bosminer.toml && /etc/init.d/bosminer start

This will change the device tuner power limit from (anything) to 1280w at 9:00PM

If you want to make a more complex schedule, see crontab.guru to learn how.

  • If the scheduled task field was empty before this, make sure the following two lines appear on top before adding the other lines:
*/1	*	*	*	*	/usr/sbin/logrotate /etc/logrotate.conf 2>&1 | logger -t logrotate
0	0	*	*	*	/usr/sbin/bos_upgrade_at 2>&1 | logger -t upgrade
  • SSH again to the device and run the command below: /etc/init.d/cron restart
  • The end result should look like this:
*/1	*	*	*	*	/usr/sbin/logrotate /etc/logrotate.conf 2>&1 | logger -t logrotate
0	0	*	*	*	/usr/sbin/bos_upgrade_at 2>&1 | logger -t upgrade
0	9	*	*	*	/etc/init.d/bosminer stop && sed -i 's/^psu_power_limit = .*/psu_power_limit = 960/' /etc/bosminer.toml && /etc/init.d/bosminer start
0	21	*	*	*	/etc/init.d/bosminer stop && sed -i 's/^psu_power_limit = .*/psu_power_limit = 1280/' /etc/bosminer.toml && /etc/init.d/bosminer start
  • Navigate to (System > Status >) System > System and set the device time zone to your proper time zone

How to Start/Stop/Restart BOSminer?

ZYNQ control boards

# Via BOS Toolbox CLI - [You can use start - stop - restart commands]
./bos-toolbox command -o -p root IP.AD.RE.SS "/etc/init.d/bosminer start"

# Via SSH - [You can use start - stop - restart commands]
SSH root@IP.AD.RE.SS "/etc/init.d/bosminer start"

AML, BBB and CVITEK control boards

# Via BOS Toolbox CLI - [You can use start - stop - restart commands] for AML, BBB and CVITEK
./bos-toolbox command -o -p root IP.AD.RE.SS "/etc/init.d/S99bosminer start"

# Via SSH - [You can use start - stop - restart commands] for AML, BBB and CVITEK
SSH root@IP.AD.RE.SS "/etc/init.d/S99bosminer start"

Start/Stop BOSminer

Via Miner GUI - You can use start / stop / restart commands

MAC and IP Address

By default, the device's MAC address stays the same as it is inherited from firmware (stock or Braiins OS) stored in the device (NAND). That way, once the device boots with Braiins OS, it will have the same IP address as it had with the factory firmware. Alternatively, you can specify a MAC address of your choice by modifying the ethaddr= parameter in the uEnv.txt file (found in the first FAT partition of the SD card).


Was this helpful?