/****************************************************************************************/
/* MiniOS7 API                                                                          */
/*                                                                                      */
/* MiniOS7 APIs support programmer to send MiniOS7 command or upload file from host PC. */
/* This utility is same as MiniOS7 Utility but without installation.Programmer can      */
/* integrate APIs into an application to let user set IP, update firmware and so on.    */
/****************************************************************************************/
[2018/8/8] v1.0.5 by Renee
  Bug Fixed: Can't set IP2, gateway2 and mask2.
  Change: The way to conver date and time to support more date and time format.
  Add: Add CRC calculating to code instead of calling CRC16.dll.
  Change: Compile the project using "x86" rather than AnyCPU.

[2014/2/5] V1.0.4 by Renee
  Adjustment[COM ver]: RunEEP() - get hardware type first
                       WriteEEPROM() & WriteAllEEPROM()
                          - If i-8000E or 7188E block 7 be written, send command to get original
                            network setting to avoid network setting being changed
                          - InStr(sRes, "write " & i) return value to get into following statement.
                       OpenCOM() - Get connection status.If connect error, return false.
-----------------------------------------------------------------------------------------
[2014/1/2] V1.0.3 by Renee
  Adjustment[COM ver]: RunEEP() - get OS type and set it as open path before load eep.exe
                       WriteEEPROM() - add an import value(index2), the API can write one block or multi blocks at one time
-----------------------------------------------------------------------------------------
[2013/12/10] by Renee
  Add: UDP Connection for C#.NET
-----------------------------------------------------------------------------------------
[2013/12/5]  V1.0.2 by Renee
  Add: UDP Connection for VB6
  Adjustment: GetIP, GetMask, GetGateway, GetDiskSize, GetDate and GetTime
              add default return value in case of not getting response
-----------------------------------------------------------------------------------------
[2013/11/11] V1.0.1 Release by Renee
  Support
  1.Set/Get date,time
  2.Set/Get network setting
  3.Set/Get disk size
  4.Get OS information
      a.OS version
      b.hardware
      c.Bulid
      d.OS type
      e.CPU
      f.Serial number
      g.SRAM
      h.Flash Memory(include DiskA, DiskB and Reserve)
      i.Init pin status
      j.Reset by WDT or Power on
      k.Prompt
      l.Date time
      m.slot numbers
      n.the module name on slot
      o.Comport setting
      p.Alias
      q.MAC address
      r.IP/IP2
      s.Mask/Mask2
      t.Gateway/Gateway2
  5.Get file list and available size
  6.SendCommand for command test
  7.Upload file
  8.Upload OS image
  9.Erase disk
	10.Reset
	11.Down/Upload EEPROM Config. (only support COMport)

	Download link
  For VB6 & C#.NET
  8000CD:\Napdos\MiniOS7\utility\source_code\
  http://ftp.icpdas.com/pub/cd/8000cd/napdos/minios7/utility/source_code/