REQUIREMENT


NOTE
If the software has to be run under a standard user, udev rules are required:
usb
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0dd4", GROUP="users", MODE="0666"
serialport
KERNEL=="ttyS[0-9]", GROUP="dialout", MODE="0666"

USAGE
usage: ./culinuxupg --version
usage: ./culinuxupg --usbdevlist [-v]
usage: ./culinuxupg -f [filename] -t [usb|eth|ser] -d [device] [-v] [-m 2]
        where [device] is:
              for usb: device name as returned by usbdevlist or ANY for first device in list
              for eth: <ip address>:<port>
              for ser: <uart device>:<baudrate>:<flow control>
                       flow control can be SW, HW or NONE
       -m:   timeout multiplier value
       -v:   enable debug verbosity
       -c:   if PFW select components to download can be
                        1: FW
                        2: MODULES
                        3: ALL [default]
usage: ./culinuxupg -t [usb|eth|ser] -d [device] -rtool [[toolnum][-][toolid]] [toolfilename] [-v/-lv/-lf]
       where [device] is:
              for usb: device name as returned by usbdevlist or ANY for first device in list
              for eth: [ip address]:[port]
              for ser: [uart device]:[baudrate]:[flow control]
                       flow control can be SW, HW or NONE
       [toolnum]        indicates the tool bitmask table
       [toolid]         indicates the id of the tool to call
       [toolfilename]   is the path of the file to read/write with specified tool and is mandatory only for the tools that required it

- Upgrade printer via serial port
Examples
$./culinuxupg -f /path/to/file/upgrade.psw -t ser -d "/dev/ttyS1:19200:SW" 
or
$./culinuxupg -f /path/to/file/upgrade.mod -t ser -d "/dev//dev/ttyAMA0:9600:HW" -v

-Upgreade printer via usb port
Get the proper name of the printer 
Example
$./culinuxupg --usbdevlist
ARGS: usbdevlist=1 filename= type= device=
LIST USB DEVICES:
0DD4|015D|VKP80 200Num.: 0
Perform upgrade
$./culinuxupg -f /path/to/file/upgrade.psw -t usb -d "0DD4|015D|VKP80 200Num.: 0" -v
or
$./culinuxupg -f /path/to/file/upgrade.mod -t usb -d "0DD4|015D|VKP80 200Num.: 0"

-Upgrade printer via ethernet port
$./culinuxupg -f /path/to/file/upgrade.psw -t eth -d "10.10.48.211:9100"  -v
or
$./culinuxupg -f /path/to/file/upgrade.mod -t eth -d "10.10.48.123:9100"  
