— 23 —
VII. Programming the Device
The internal disk of the Device contains the
boot.py
file (which initializes the libraries and configures the
Device's peripherals, including the speed of the NMEA 0183 ports) and the
main.py
file (which is empty
and intended for user code). These files are executed sequentially by the Device when it is powered on.
Your software supplier will provide these files, and the software supplied may also contain libraries (other
files with a .py filename extension). Some libraries may be in subfolders. Copy all files and folders from the
archive containing the software to the root of the internal disk of the Device and agree to replace all files
with new ones.
Switch off the Device (disconnect it from USB and from NMEA 2000). The next time you switch it on, the
new software will start. As the LED signals can be controlled by user code, ask your software supplier how
to check the how to check the program status with LED signals (see also Section V).
The USB serial port of the Device provides access to the Python interactive prompt (REPL). There you
can check the status of the running program, check for execution errors, or abort the program to run your
own code.
You can use the serial port with the terminal program. For Microsoft Windows, we recommend the
freeware Putty (also available for Linux, can be downloaded from
www.putty.org
). In Linux and Mac OS
X, the screen command can be used. For the configuration shown in Section III, you can use the following
commands to connect:
putty.exe -serial COM3
screen -a /dev/cu.usbmodem00690001
screen /dev/ttyACM0
Summary of Contents for YDPG-01
Page 22: ...22 Figure 10 YDPG 01 in the list of boat network devices on Simrad NSX MFD...
Page 33: ...33 NOTES...
Page 34: ......