Setup Guide

Listdevicenames output
Based from the output of --devicenames, you can decide if you must use the --devname= option in the read or write functions.
You can access CPLD1 being at deviceaddress 0, using the register value for the register you want, such as:
root@dell-diag-os:~# pltool -listdevicenames
0x0 : CPLD1
0x3e : CPLD2
0x3e : CPLD3
0x3e : CPLD4
0x0 : SMF_FPGA
Read output
root@dell-diag-os:~# pltool --read --devname=CPLD4 --dev=0x3e --reg=0x2
SW_SCRATCH : offset 0x02 = 0xde
7: 0 SW_SCRATCH = de
root@dell-diag-os:~#
Write output
root@dell-diag-os:~# pltool --write --devname=CPLD4 --dev=0x3e --reg=0x2 --val=0xff
Test output
root@dell-diag-os:~# pltool --test
Testing Programmable Devices:
PL Tool test:
CPLD1 .................... Passed
CPLD2: SW_SCRATCH.................... Passed
CPLD3: SW_SCRATCH.................... Passed
CPLD4: SW_SCRATCH.................... Passed
SMF_FPGA ............................ Passed
PL Tool: Overall test results ---- >>> Passed
poetool
To use the poetool, connect ports 1/13/25/37 to the device.
NOTE: The N2200-ON Series and N3200-ON Series platforms do not support this tool.
Tests
To enable POE+ power before testing, use the following poetool command:
Command: i2ctool -w -b /dev/i2c-0 -a 0x28 -R 0xe -V 0xff
Command 1: poetool -i This command is initial poetool.
Command 2: poetool -s -p 0 -m af_mode This sets the af mode.
Command 3: poetool -g -P This is the read value.
DIAG:/ # poetool -v
DellEmc Diag poetool - version x.x package x.xx.x.x-x 2018/02/08
DIAG:/ # i2ctool -w -b /dev/i2c-0 -a 0x28 0-R 0xe -V 0xff
DIAG:/ # i2ctool -r -b /dev/i2c-0 -a 0x28 0-R 0xe
[0000000e]: 0xff || .
DIAG:/ # poetool -i
DIAG:/ # poetool -s -p 0 -m disable
Dell EMC DIAG-OS tools
63