-
Notifications
You must be signed in to change notification settings - Fork 2
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.
- The user presses enters in the desired parameter values via checkboxes and sliders in the UI and presses the “Update Settings” button.
- www_wr_bconf_mbox.php reads the parameters out of the UI.
- 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.
- www_wr_bconf_mbox.php writes a ‘1’ to the write flag (wr_bconf_flag) to indicate a write request to user linaro.
- in_wr_launch.py under control of lin_wr_bconf_cron.sh samples the value in wr_bconf_flag.
- 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.
- lin_wr_bconf_mbox.py will read the JSON object out of wr_bconf_mbox.
- 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.
- lin_wr_bconf_mbox.py will store the reformatted into the Bitcoin and Bitseed configuration files.
- in_wr_bconf_mbox.py will write a ‘0’ to wr_bconf_flag indicating the end of the operation.
Figure 1.8 Writes to Bitcoin and Bitseed Configuration Files From the UI