ppcli question

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
1 Solution
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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);

View solution in original post

0 Likes
1 Reply
AnkitaS_51
Employee
Employee
100 likes received 50 likes received 25 likes received

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);

0 Likes