SC4x0 Technical manual
Page 27 of 34
SeaCom
Rev
2.00
11. Serial monitor
The serial output is to be used only for production test or field test. All technical data is based on this interface is
not connected. The interface is NOT certified for field use e.i. EMC proof and absolutely great care should be take
not to connect any device to this interface besides an electrically isolated monitor device, and for limited test
purpose only.
Connecting to this interface poses a great risk of introducing noise as ground current may flow through internal 0
volt reference and cause disturbance, depending on the actual connection setup.
If connected in the field for testing, always use an isolated interface.
11.1 Function
This interface is used for factory test and device debugging. A number of commands are available for manual
control and test of audio path.
It is possible to start a tone signal generator for test of codec, amplifiers and line interface, thus testing can be
made without injecting signals.
It is possible to route signal from any audio input to any amplifier, thus it is possible to do a manual test of each
microphone input.
It is possible to monitor all input signals (line, light, PTT & Hook) for test.
It is possible to monitor control signal from the exchange.
It is possible to activate all audio switches and relays.
It is possible to partly or totally erase eeprom memory.
It is possible to readout error stack and temperature statistics (used for manufactory statistic material to improve
future designs)
Some commands require the device to set into a specific internal system state of operation for command to
succeed. E.g. erase of eeprom is not possible unless a specific state is set to prevent accidental erase.
11.2 Commands
Some commands require arguments and/or specific state, other will ask for arguments presenting a list of choices.
‘codec off’
-will cancel all audio processing and reset the codec hardware interface.
‘codec sine’
-will engage the codec to produce a 1kHz sine signal to amp and line.
‘codec pass’
-will engage the codec and pass audio from mic. to line, from line to speaker.
‘mirror on’ / ‘mirror off’
-will twist output channels on the codec on off. (used pass audio from mic to speaker)
‘sgts xx’
-will set gain to speaker to the step xx in gain table. (0-20)
‘sgtl xx’
-will set gain to line to the step xx in gain table. (0-20)
‘gsin’
-will display current system info. (software info, error info, re-boot statistic)
‘getb’
-will
display
statistic
about lifespan temperature statistics.
‘grly’
-will display current relay status.
‘glos’ / ‘gstk’
-will display info re. software and is used only for sw development/debug.
‘mban’
-will
display
content
of stated NOV memory bank ID.
‘minp’
-will monitor & display all inputs. ‘Enter’ will cause 1 sec. auto new line.
‘mlin’
-will monitor & display line values. ‘Enter’ will cause 1 sec. auto new line.
‘mcmd’
-will monitor & display 16kHz commands from exchange.
‘maus’
-will monitor & display audio switches. ‘Enter’ will cause 1 sec. auto new line.
‘mlos’
-will monitor loop speed values and is used for software development.
‘mb’, ‘mw’, ‘ml’, ‘mf’
-will monitor & display memory location values and is used for development.
‘mdmp’
-will display a memory block of 256 bytes and is used for software development.
‘state xxxx’
-will set operating state of software equal to argument. Used to gain manual control of
hardware
during
test.
‘smic’
-will select audio input from specified microphone. Used for hardware test.
‘sspk’
-will select audio to be connected to specified speaker. Used for hardware test.
‘sinp’
-will select audio input from specified line input. Used to test hardware.
‘srly’
-will set specified relay on or off. Used for hardware test.
‘spwm’
-will set specified PWM duty cycle. Used for test of dimmer, 16kHz hardware etc..
‘reset’
-will cause software to enter dead lock & test of MCU watch dog
‘wb’, ‘ww’, ‘wl’
-will write value of argument to specified memory address. Used for software test.
‘wdt’
-will cause software to enter dead lock & test of external watch dog.
‘help’ / ‘?’
-will show most available commands.
11.3 Commands use full for workshop testing
When tracing hardware errors, some commands like ‘codec sine’ is very use full for tracing the signal path. Using
this command in conjunction with ‘sspk’, ‘sgts’ & ‘srly’ (if testing external speaker), total control and test of