---
name: "bpcounter"
section: "1"
platform: "linux"
package: "ion"
version: "3.2.1+dfsg-1.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/bpcounter"
---

# bpcounter(1)

Bundle Protocol reception test program

## NAME

bpcounter - Bundle Protocol reception test program

## SYNOPSIS

**bpcounter** *ownEndpointId* \[*maxCount*\]

## DESCRIPTION

**bpcounter** uses Bundle Protocol to receive application data units from a remote **bpdriver** application task.  When the total number of application data units it has received exceeds *maxCount*, it terminates and prints its reception count.  If *maxCount* is omitted, the default limit is 2 billion application data units.

## EXIT STATUS

- "0"

  **bpcounter** has terminated.  Any problems encountered during operation will be noted in the **ion.log** log file.

## FILES

No configuration files are needed.

## ENVIRONMENT

No environment variables apply.

## DIAGNOSTICS

Diagnostic messages produced by **bpcounter** are written to the ION log file *ion.log*.

- Can't attach to BP.

  **bpadmin** has not yet initialized Bundle Protocol operations.

- Can't open own endpoint.

  Another application has already opened *ownEndpointId*.  Terminate that application and rerun.

- bpcounter bundle reception failed.

  BP system error.  Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun.

## BUGS

Report bugs to \<ion-bugs@korgano.eecs.ohiou.edu\>

## SEE ALSO

[*bpadmin*(1)](/bpadmin/1.md), [*bpdriver*(1)](/bpdriver/1.md), [*bpecho*(1)](/bpecho/1.md), [*bp*(3)](/bp/3.md)
