Skip to content

1.3.1 Process Flow: Bitcoin and Bitseed Configuration Writes

John Light edited this page Jul 17, 2016 · 1 revision

Writes correspond to values being read out of the UI and written to the Bitcoin and Bitseed configuration files. The steps that are taken to perform a write operation are shown below in the order that they occur. These steps are also indicated in Figure 1.8 below.

  1. The user presses enters in the desired parameter values via checkboxes and sliders in the UI and presses the “Update Settings” button.
  2. www_wr_bconf_mbox.php reads the parameters out of the UI.
  3. www_wr_bconf_mbox.php writes these parameter key, value pairs to the write mailbox (wr_bconf_mbox) in the form of a JSON object.
  4. www_wr_bconf_mbox.php writes a ‘1’ to the write flag (wr_bconf_flag) to indicate a write request to user linaro.
  5. in_wr_launch.py under control of lin_wr_bconf_cron.sh samples the value in wr_bconf_flag.
  6. Upon detecting a ‘1’, it will launch lin_wr_launch.py will launch lin_wr_bconf_mbox.py to begin transfer of the data in wr_bconf_mbox to the Bitcoin and Bitseed configuration files.
  7. lin_wr_bconf_mbox.py will read the JSON object out of wr_bconf_mbox.
  8. lin_wr_bconf_mbox.py will extract the key, value pairs from the JSON object and reformat into a form that it suitable to be stored in the Bitcoin and Bitseed configuraton files.
  9. lin_wr_bconf_mbox.py will store the reformatted into the Bitcoin and Bitseed configuration files.
  10. in_wr_bconf_mbox.py will write a ‘0’ to wr_bconf_flag indicating the end of the operation.

Figure 1.8
Figure 1.8 Writes to Bitcoin and Bitseed Configuration Files From the UI