hw-checkout-guide

MBARI DIC Controller Hardware Checkout Guide


Contents



Materials


Optional * Java (for Unified Host app if installing serial bootloader)

Resources


Board Preparation


       git clone git@bitbucket.org:mbari/carbonwg-pic.git
 $ cd carbonwg-pic
 $ git checkout feature/binlog
 $ dos2unix path/to/sdcard/*

Firmware Installation


There are two firmware options

procedure: Install stand-alone

[carbonwg project non-boot configuration]

procedure: Install serial bootloader version

Installing the serial bootloader version is a three step process:

Step 1: build and install the bootloader firmware
Step 2: build and install the carbonwg firmware (bootloadable configuration)
Step 3: Use the bootloader and Unified Host app to load the carbonwg firmware
[unified host serial configuration]
[unified host configuration]
[select firmware hex image]

Test Procedures


Pre-test


Console and Host Port


 >> reset

 serial IO [OK]
 sdc mount [OK]
 log_init  [OK]
 Loading config...cfg load  [OK]
 running boot script...
 00:00:03
 bootstrap [OK]

 CarbonWG build [Aug 12 2020, 14:20:08]
 SN: 0002
 status[x0044/0000]

Licor Serial Port

 >> con licor

[typed characters - should be echoed] * remove loopback connector
[typed characters - should not be echoed] * measure licor port power (pins 1,4 - ~11-12 V)

Set Real Time Clock


 >> set time 2019 11 20 14 20 0 
 >> get time 
 2019-11-20T14:27:20Z
 >> get time
 2019-11-20T14:32:20Z

Analog Inputs


 >> set bits a*
 >> GET AD 0 1
 ADC0 :  3.5547 V
 ADC1 :  4.9805 V 

Battery Voltage Input


 >> GET AD 2
 ADC0 :  11.4001 V 

Valve Ports

 >> set bits v* pa ps
 >> get bits
 >> clr bits v* pa ps
 >> get bits

Pump Ports

 >> set bits p*
 >> get bits
 >> clr bits p*
 >> get bits

SD Card

 >>dstat
 FAT type                    FAT32
 Bytes/Cluster               32768
 Number of FATs                  2
 Root DIR entries                0
 Sectors/FAT                  3834
 Number of clusters         490720
 Volume start (lba)           8192
 FAT start (lba)              8716
 DIR start (lba,clustor)         2
 Data start (lba)            16384
 
 768312 bytes in 71 files 16 directories
 15703040 KiB total   15700192 KiB available