1 Reply Latest reply on Aug 30, 2017 2:22 AM by anks

    ppcli question

    froberts_2337091

      I'm having success using this software, but I don't understand the value the "GetPorts" command returns. What determines the value? Is it solely determined by the PSOC? From what I can tell it doesn't appear to be related to the silicon ID.

         

      Typically I'll get a value of  "KitProg/0E22154D00135400", but to use the OpenPort command I have to add a space and a period. I'm not sure why I have to do that either.  Any clarifications would be appreciated.

         

      The goal of this exercise is to automate programming of multiple devices, so its a key requirement to understand how this port stuff works.

         

       

         

      Thanks!

         

      Fre

        • 1. Re: ppcli question
          anks

          GetPorts(svector OUT ports)

          This API returns a list of ports, one for each line.

          Example:

          >GetPorts

          <LPT1

          LPT2

          LPT3

          MINIProg1/848E4756090B

          0 OK

          Perl:

          my @ports = $pp->GetPorts();

          Its not solely determined by the PSOC.

           

          OpenPort(string IN port, string IN homedir)

          This API opens the port. The port is one of the strings returned in GetPorts. homedir is the installation

          directory for PSoC Programmer. It contains the following files:

          ■ minifirmware.hex

          ■ cougar.vxd

          ■ badger.vxd

          ■ IceCubefirmware.fwm

          Note: Run the OpenPort command an additional time if you receive an error the first time.

          Example:

          >OpenPort MINIProg1/068900863114 .

          <

          0 OK

          >

          Perl:

          $pp->OpenPort($ports[3],$homedir);