pibdump(1) | Qualcomm Atheros Open Powerline Toolkit | pibdump(1) |
pibdump - Qualcomm Atheros Parameter Information Block Dump Utility
pibdump [options] file [>stdout]
Read a Qualcomm Atheros powerline parameter information block (PIB) file and print an object driven dump on stdout. This program replaces program odd because it distinguishes between legacy and current PIB file formats.
An object driven dump requires an object definition file that lists the size and name of data objects (ie; integers, arrays or structures) within the parameter file. Individual data members are presented as smaller, individual data dumps within a larger, overall data dump.
The following is an example object definition file for an Ethernet frame. Frame fields, like ODA, OSA and ETHTYPE, are defined by length in order of their appears in the frame. Array subscripts following object names are optional but, if present, become part of the object name. Fields having no length are headers and will be ignored. Comments and blank lines are also ignored.
# ========================================
#
# ----------------------------------------
0 header
6 ODA[6] Own Destination Address
6 OSA[6] Own Source Address
2 ETHTYPE Ethertype or frame length
# ========================================
#
# ----------------------------------------
0 body
1500 Payload[1500]
# ========================================
#
# ----------------------------------------
0 trailer
4 CRC Cyclical Redundancy Check
The following command uses object definition file ether.txt to identify and display member fields within binary file abc.bin in hexadecimal dump format.
# pibdump -f ether.txt abc.bin
chkpib(7), chkpib2(7), getpib(7), modpib(1), pib2xml(1), pibcomp(1), setpib(1), xml2pib(1)
Charles Maier
November 2013 | open-plc-utils-0.0.3 |