The production_script.sh
file runs a complete factory programming and test process. It also allows the operator to focus the camera lens.
Currently the script only works in MacOS due to an issue within the python Bleak library.
-
Install the latest
python3
if you don't already have it. e.g. usingbrew
:brew install python
-
Install the following python packages:
pip3 install frameutils pillow sounddevice numpy
-
Make the production script executable:
chmod +x production_script.sh
-
Ensure you have a Frame board wired up for programming using a Black Magic v2.3 debugger. You will also need to provide 5V charging power to the board as well as assert the reset pin.
-
Run the script from the
production
directory:cd production ./production_script.sh
-
You should then see a prompt to start programming. Press Enter and allow the board to program:
Frame programming script ----------------------- Press Enter key to start, or Ctrl-C to quit 16/02/2024 - 14:26:48 - Unlocking chip 16/02/2024 - 14:26:48 - Erasing chip 16/02/2024 - 14:26:48 - Device ID: 0x5F1C733B69DD9882 16/02/2024 - 14:26:48 - Randomly Assigned Address: 0x82F93FCBA833 16/02/2024 - 14:26:48 - Programming chip. Please wait 16/02/2024 - 14:26:48 - Programmed successfully
-
After programming, the focusing and test scripts will run. Follow the instructions show to complete the process.
-
The
temp_focus_image.jpg
is continuously updated to show what the camera is seeing. This image can be kept open to help the operator focus the camera lens. -
The
log.txt
file will store a complete history of all programmed boards.