Skip to content
DM
All case studies
Case study Dart 2026

SIMCom API: a typed modem service

A Dart service for SMS, GPS, calls, and modem state on Raspberry Pi.

Dart SIMCom REST Raspberry Pi SMS / PDU GPS
SIMCom API: a typed modem service illustration

The problem

Background and constraints.

Cellular modules expose many AT commands, asynchronous responses, timeouts, and formats such as PDU SMS. Without a shared layer, each application reimplements registration, transport, and error handling. This project provides one reusable boundary between the hardware and the applications.

The build

Implementation and design decisions.

01

Serial transport and command handling

The first layer opens the serial port, sends commands, waits for responses, and reports timeouts as explicit errors.

02

Typed modem resources

SMS, GPS, calls, and settings are modeled as resources with typed inputs and outputs. PDU encoding and modem-specific behavior stay in the modem layer.

03

Hardware-specific behavior at the edge

Deployment on a Raspberry Pi is treated as one environment rather than a core assumption. The HTTP API can be tested and changed independently of the modem layer.

04

Actionable errors

Cellular links are unreliable. The service returns the modem state and a likely next step instead of a generic failure when the modem is unregistered or the SIM is not ready.

What shipped

Delivered.

Dart modem library with serial transport and AT command handling

HTTP endpoints for SMS, GPS, calls, and modem settings

PDU SMS support and network registration state

Raspberry Pi deployment path

More case studies

Browse the other engineering case studies or the full project archive.