>>>>>>>>>>>> Changing Payload Board Address <<<<<<<<<<<<<<<<<<
If you find that the sub PIB is coming up on the same address as your OA payload (I think you said it's coming up on 0x100), you can change the address to 0x800 as follows:
1. Turn off the OA payload
2. Turn on the payload with the sub PIB and wait for it to enumerate
3. Send a Write Console Script to address 256 (0x100) function code 0 with the script set to "PIB -b 8" (this should be acknowledged)
4. Cycle power to the payload with the sub PIB and verify that it enumerates on 0x800 (2048)
5. Power up the OA payload and verify that both payloads are accessible (send a command to each one and verify response.)
Note that there is a Write Console Script function on the web page, or you can do the same thing on WGMS.
>>>>>>>>>>>>>>>>>> Working with the SMC <<<<<<<<<<<<<<<<<<<<<<
Connect Debug cable and USB or serial
Using a serial terminal (ex. teraterm), 115200 8N1
Apply power
login as user smc, passord 1329moffet
/home/smc
On a new SMC, the time/date will need to be set.
-sh-4.2# date -s "13 May 2014 11:47:30"
>>>>>>>>>>>> Some useful SMC commands <<<<<<<<<<<<<<<<<
4.1. sudo SetPowerSwitch 1 1
Note that the silkscreen starts with power port 0. The software does not. They are numbered 1-4. Thus “sudo SetPowerSwitch 1 0” turns power off on port 1.
4.2. ServerExec PayloadInterface dump
Lists all payloads and their address
4.3. ServerExec PayloadInterface getmodules
Lists all loaded modules as well as the address of the board.
smc@dm3730_torpedo:~$ ServerExec PayloadInterface getmodules
Address Readable Name
------- -------------
0x20F3 BenthosModem
0x2040 LuaWrapper
0x2000 PayloadInterface
0x2012 EcoSensor
My board address = 0x2000
Default board ID = 0x20
4.4. sudo Enable Ethernet
Activates Ethernet and dhcpcd. There is no network activation upon normal boot.
>>>>>>>>>2.2. Write Console Script <<<<<<<<<<<<<<<
This outlines the process of running a shell command on the SMC via WGMS.
1.) Open WGMS and select the “More Commands” link on the left side of the page
2.) Under the Command Type drop menu, select “Write Console Script”
3.) Board address is the address of the SMC to which you would like the command sent. This typically defaults to 0x2000 (decimal 8192). Enter decimal in the Board Address field.
4.) The function field will send the data back as payload if set to 0 (default) and a separate file if set to 1.
5.) In the script buffer field, add the command “runshell” ahead of any shell commands desired to be run. For instance, “runshell ls /home/smc” will display the contents of /home/smc.
6.) The payload response can be viewed in WGMS by selecting raw output from the blue start icon menu. Select the command ack and convert the hex payload data to ACII to view the response.
>>>>>>>>>>>>>>>>>> Setting up GPCTD <<<<<<<<<<<<<<<<<<<<<<<
-0.03, 26.4420, 0.00001, 4342.15
-0.03, 26.4414, 0.00001, 4342.00
-0.03, 26.4414, 0.00001, 4342.01
-0.03, 26.4412, 0.00001, 4342.10
-0.03, 26.4412, 0.00001, 4342.01
-0.03, 26.4402, 0.00001, 4342.06
-0.03, 26.4411, 0.00001, 4342.11
-0.03, 26.4407, 0.00001, 4341.98
-0.03, 26.4405, 0.00001, 4341.99
-0.03, 26.4395, 0.00001, 4341.98
-0.03, 26.4397, 0.00001, 4342.00
-0.03, 26.4405, 0.00001, 4341.82
-0.03, 26.4394, 0.00001, 4342.05
-0.03, 26.4387, 0.00001, 4341.96
-0.03, 26.4387, 0.00001, 4342.02
-0.03, 26.4389, 0.00001, 4341.96
-0.03, 26.4391, 0.00001, 4342.19
-0.03, 26.4386, 0.00001, 4342.20
-0.03, 26.4388, 0.00001, 4342.13
-0.03, 26.4383, 0.00001, 4342.28
-0.03, 26.4377, 0.00001, 4342.25
-0.03, 26.4373, 0.00001, 4342.28
-0.03, 26.4374, 0.00001, 4342.30
-0.03, 26.4376, 0.00001, 4342.15
-0.03, 26.4368, 0.00001, 4342.18
-0.03, 26.4372, 0.00000, 4342.12
-0.03, 26.4365, 0.00001, 4342.06
-0.03, 26.4358, 0.00001, 4342.06
-0.03, 26.4366, 0.00001, 4341.80
-0.03, 26.4359, 0.00001, 4341.87
-0.03, 26.4358, 0.00001, 4341.96
-0.03, 26.4354, 0.00001, 4341.81
-0.03, 26.4346, 0.00001, 4341.98
-0.03, 26.4347, 0.00001, 4341.93
-0.03, 26.4350, 0.00001, 4341.91
-0.03, 26.4350, 0.00001, 4342.02
-0.03, 26.4341, 0.00001, 4342.11
-0.03, 26.4334, 0.00001, 4342.07
-0.03, 26.4343, 0.00001, 4342.27
-0.03, 26.4338, 0.00001, 4342.09
-0.03, 26.4332, 0.00001, 4342.00
-0.03, 26.4334, 0.00001, 4342.19
-0.03, 26.4327, 0.00001, 4342.04
-0.03, 26.4329, 0.00001, 4342.21
-0.03, 26.4330, 0.00001, 4342.23
-0.03, 26.4328, 0.00001, 4341.96
-0.03, 26.4317, 0.00001, 4342.21
-0.03, 26.4321, 0.00001, 4342.15
-0.03, 26.4323, 0.00001, 4342.08
ts
-0.03, 26.4285, 0.00002, 4341.44
help
menu
s
ds
SBE Glider Payload CTD 1.2.1 SERIAL NO. 0118 06 Aug 2014 17:36:13
vMain = 12.83, vLith = 2.90
autorun = yes
samplenumber = 1077, free = 558163, profiles = 2
not logging, stop command
sample every 1 seconds
sample mode is continuous
data format = converted engineering
do not force on RS232 transmitter
transmit real time data
acquire SBE 43 oxygen
minimum conductivity frequency = 3000.0
custom pump mode disabled
autorun = no
Autorun=N
OutputExecutedTag=N
S>OutputFormat
S>OutputFormat=0
S>Interval=10
S>CustomPumpMode=Y
S>ResetLogging
this command will initialize memory
repeat the command to confirm
ResetLogging
S>ds
SBE Glider Payload CTD 1.2.1 SERIAL NO. 0118 06 Aug 2014 17:38:25
vMain = 12.82, vLith = 2.90
autorun = no
samplenumber = 0, free = 559240, profiles = 0
not logging, stop command
sample every 10 seconds
sample mode is interval, continuous pump
data format = HEX engineering
do not force on RS232 transmitter
transmit real time data
acquire SBE 43 oxygen
minimum conductivity frequency = 3000.0
custom pump mode enabled
S>