---
updatedAt: 2025-02-12T22:17:52.000Z
agentTools:
  projectIndex: https://developers.melroselabs.com/llms.txt
---

# cSMPP

Melrose Labs cSMPP for narrowband applications

cSMPP is an optional alternative communication protocol that can be used with Message Hub.

# cSMPP PDU format

| PDU component        | Description                                                                                                                   | Length           |
| :------------------- | :---------------------------------------------------------------------------------------------------------------------------- | :--------------- |
| Length               | Overall length of PDU including the length component                                                                          | 2 bytes          |
| Command bit sequence | SMPP command as bit sequence (see [Command bit sequence](https://developers.melroselabs.com/docs/csmpp#command-bit-sequence)) | Variable (bits)  |
| Field bitmap         | Bitmap indicating presence of SMPP PDU fields in *fields* segment                                                             | Variable (bits)  |
| Fields               | SMPP fields indicated in field bitmap. All other fields are assumed to be set to default values and not included in PDU.      | Variable (bytes) |

*Command bit sequence* and *field bitmap* are a continuous sequence of bits that is padded to bytes (e.g. 5 bits *command bit sequence* + 25 bits *field bitmap* = 30 bits which is then padded to 32 bits = 4 bytes).

# Command bit sequence

| SMPP command            | Bit sequence |
| :---------------------- | :----------- |
| bind\_transceiver       | 000000       |
| bind\_transceiver\_resp | 000001       |
| bind\_transmitter       | 000010       |
| bind\_transmitter\_resp | 000011       |
| bind\_receiver          | 000100       |
| bind\_receiver\_resp    | 000101       |
| submit\_sm              | 100          |
| submit\_sm\_resp        | 101          |
| deliver\_sm             | 110          |
| deliver\_sm\_resp       | 111          |
| data\_sm                | 00110        |
| data\_sm\_resp          | 00111        |
| alert\_notification     | 000110       |
| enquire\_link           | 0110         |
| enquire\_link\_resp     | 0111         |
| query\_sm               | 010010       |
| query\_sm\_resp         | 010011       |
| cancel\_sm              | 010100       |
| cancel\_sm\_resp        | 010101       |
| replace\_sm             | 010110       |
| replace\_sm\_resp       | 010111       |
| unbind                  | 0001110      |
| unbind\_resp            | 0001111      |
| generic\_nack           | 010000       |

cSMPP supports all SMPP v3.4 and v5 standard commands except outbound/\_resp, submit\_multi/\_resp, broadcast\_sm/\_resp, query\_broadcast/\_resp and cancel\_broadcast\_sm/\_resp.

# Fields

Representation of fields in cSMPP PDUs is more closely aligned to type of field in favour of PDU size.

| Field                    |                                                                                                    |
| :----------------------- | :------------------------------------------------------------------------------------------------- |
| validity\_period         | Absolute value only supported. Stored as 32-bit unsigned integer representing seconds since epoch. |
| schedule\_delivery\_time | Absolute value only supported. Stored as 32-bit unsigned integer representing seconds since epoch. |