PAM Serial Data Recorder Option: 

Tern FlashCore- SDR

 

File Reference:          $PAM/doc/Systems/SDR_OEM_Tern.doc

          

 

How to View High-Rate Local Data Storage on Aster/Pam Base

Utilities located in: $PAM/scripts: These require ‘set_project’ and an appropriate $PAM/projects/$PROJECT/$OPS/channel_config file

sdr_data_stats file                  channel summary

sdr_show_date file                 simple display of date/ttag

convert_sdr stn files

dump_sdr file                        provides message-by-message look

Utility located in: $PAM/bin/[ SunOS5sparc/Linuxi686/]

f_sdrdata –h                          for help, channel, station, raw, etc.

 

 

Allowed Cards:            Use only Sandisk Compact Flash Cards, NOT microdrives!

 

Error Condition Indicator:

Normal Operation = LED blinks every second

Error Condition = LED blinks 'SOS' signal…when rebooting.

Recovery:        Under normal circumstances, the watchdog timer should recover the operation from spurious crashes.  However if there are problems with the CompactFlash (not inserted or it failed) the error condition will occur: (continuous rebooting).  In that case, remove power and check or replace the CF with a fresh, empty, known-working media

Note:                 Removal and re-insertion of a CF into the board will cause rebooting to occur.

 

 

System Setup to Program for NCAR use (Developer Note):

Board Preparation:

           Install J9 and shunt:             Used for WatchDog Timer

           Disable or remove regulator

           Install on EVE-WDReset Board

           Attach EVE-VME +5 to J2 pin2,  Gnd to J5 pin 1

Programming:

           Attach

           Run Paradigm C++ Lite-Tern on PC

           Open Project:       Mytest                 (this could change to something like `TernSDR’)

           Build AXE node

           Set Proper Baud Rates: below

           To Download Code, or Change to run Debugger on board:

                         Power down board

                         Remove boot jumper on J2-1/3

                         Power up

                         Select on Menu: ‘Tool-RTLOAD’

                         Hit ‘capslock

                         ‘M’        menu comes up if connected

                         ‘G08000’              to have auto goto and run application code from bootup.

                         ‘GE0000’             to enter Debugger so that you can download code

                         Power down

                         Install jumper on J2

                         Exit RTLOAD, F9

                         Power up             debug or run whichever…..

 

 

System Clock / Baud Rate (Developer Note):

There are 2 Serial Baud Rates based on the System Clock:

           40Mhz clock:        BootLoader=19200             Debugger=115kB

           20Mhz clock:        BootLoader=9600               Debugger=57600

           These are based upon the 'af_115_0.hex' debugger file located in: c\Tern\186\rom

Note you must change the output rate for the Debugger / project file before interacting and downloading

between these 2 FlashCore clock rate board options.

           Rt. Click on project.axe file: select 'Target Expert'

           Lft Click on experts 'configure settings': set correct baud, click 'ok' and 'ok'

           Rt. Click on project axe file: build node

           Then go back to the expert to make sure the baud setting 'sticks'

You must also adjust user software as well, specifically s0/s1_init.

For example, baud10=19.2 at 20Mhz but baud=9 at 40Mhz clock.

 

Power Consumption:

FlashCoreB: Regular, 40Mhz clock, LM7805

FlashCoreB: LowPower, 20Mhz clock, LDO.

Note that the meter reading was a bit inconsistent between running on the debug system and EVE. 

I believe the higher number based on the 40Mhz readings.

Note 1: Dividing clock saves power, down to min. divisor of 128, however, any interrupt will restore the clock,

and the 'serial-data-store' function utilizes serial interrupts.   Without revising the code to poll the sio, it'll be the full freq. power drain.

Measured consumption with Compact Flash inserted...

 

SysClk Oper. Freq.

 

40Mhz

LM7805, +13.5Vin

40Mhz

LM7805 cut, Regulated External +5in

20Mhz

LDO Version

+10Vin

20Mhz

LDO cut, Regulated External +5in

40Mhz

150mA ~= 2.03W

142mA ~= .75W

NA

NA

20Mhz

100=1.35W

84=.42W

90mA=.9W

(100) 65-83mA

10Mhz

60=.8W

55=.28W

60=.6W

(72) 42, or ?

5Mhz

50=.68W

40=.2W

44=.44W

(58) 31, or ?

2.5Mhz

 

 

36=.36W

(51) 24, or ?

.3Mhz

45 ~= .61W

25 ~= .125W

 

 

.15mHZ

na

na

28=.28W

(44) 18, or ?

 

 

 

 

 

 

Tern Board Wiring:


 

 

HOW-TO Change Tern Compact Flash Media:

 

Note: Basic Steps:

1)Setup PC to talk to EVE Console.

2)Stop Recording on Tern…see below, it is important to close the current file or recent data may be lost.

3)Remove Compact Flash, Copy Files to PC, then erase files.

4)Install CF back into Recorder....This reboots / restarts the recorder, make sure it's working.

 

 

Operator Steps:  green indicates operator entered values.   Comments are blue. 

 

From EVE Console Terminal Session.....

 

CSAT FASTSAVE TRH RMY P AD LOGR RAD CO2 STATUS

Eve> entersys

 

Environmental Variable Extractor (EVE) System Console

Date: Monday, 23-JUN-2003 JD174.

Time: 15:30:33.00

 

System EVE# talk

 

Choose one of the following ports for communications:

SIO Port        Comm    RTS/RS485/InUse/type   - name

 1=/tyCo/1  19200,N-8    Y    Y    Yes  FastOut

 2=/tyCo/2   9600,N-8    Y    N    Yes  CSAT - SONIC

 ….

Enter port selection (1 -- 6) or (<cr> to quit)-> 1

 

..Suspending task "Fastout"..

Opening "/tyCo/1".  Type <ctrl>D when done;  '\' to send <ctrl>D,C,orX

 

esc-esc-esc-esc-esc     5 escape characters not echoed.   Goes into Tern Menu Commands.

                        Notice automatic file-size-limit in bytes represents how many bytes the Tern

                        will received before closing and opening a new file.

 

FlashCoreB SerialDataRecorder:    filesizelimit=10000000

 c        Close Current File (DO THIS BEFORE EJECTING!)

 o        Open New File (DO AFTER CLOSING & BEFORE RESTARTING!)

 l         Change FileSizeLimit

 d        Show file directory listing.

 x         Delete file.

 m       Change file modification time.

 n        Change file name prefix.

 r         RTC test/function

 Q        Exit

Option: d

 

 

Displaying directory for PC Flash Card ...

       Name            Length  Start    Time     Date

-------------------------------------------------------------

   39 FAST1   .TXT          0      3  18:33:18 6/16/2003

   40 FAST2   .TXT          2      4   9:33:12 6/17/2003

   41 FAST3   .TXT      11264      5   9:40:46 6/17/2003

Volume label is: .

Current File being written: fast3.txt

Hit Enter to proceed <Enter>

 

FlashCoreB SerialDataRecorder:    filesizelimit=10000000

 c       Close Current File (DO THIS BEFORE EJECTING!)

 .....etc....

 Q       Exit

Option: c       Closing File: fast46.txt

 

REMOVE CompactFlash

TRANSFER Data Files PC:        Note Station Number X, and Note Date yymmdd

           On Linux/Base:               $PAM/projects/HVAMS03/raw_data/sX/yymmdd/..files..

           On Windows:                   c:\pam\projects\HVAMS03\sX\yymmdd\..files...

           You may need to create the 'date' directory before transferring the files.

ERASE Data Files on CF

(Make sure the CF stays/is formatted as a ‘FAT’ file structure!)

ReINSERT CF into Recorder...... This Reboots the Tern-SDR

 

esc-esc-esc-esc-esc     5 escape characters not echoed.   This presumes the EVE 'talk' session is still active when you re-inserted the compact flash.  If not, you must go back and perform the 'eve-talk' to port 1 as above.

 

FlashCoreB SerialDataRecorder:    filesizelimit=10000000

 d       Show file directory listing.

 .....etc....

 Q       Exit

Option: d                                                     Check current / new file directory after download to pc

 

Displaying directory for PC Flash Card ...

 

       Name            Length  Start    Time     Date

-------------------------------------------------------------

    4 MYTEST  .C        34566     18  18:18:54 6/16/2003

   88 FAST0   .TXT          0      2    9:36:8 6/23/2003

 

Volume label is: .

Current File being written: fast0.txt

Hit Enter to proceed <Enter>                    Note new file 'fast0' is being written.  If you get out of communication w/Tern and have fastout running, then when you go back to check the Tern file,  you should see its size increasing.

 

FlashCoreB SerialDataRecorder:    filesizelimit=10000000

 .....etc....

 Q       Exit

Option: q                                                      IMPORTANT!!! This exits Tern Menu commands, returns to record mode.

type ^D                                                     exits EVE talk

 

Closing communications

..Resuming task "Fastout"..

                 System EVE#                                           Finished!