Various serial protocols which are used in the Siemens Mobile Phones.
Find a file
2026-09-28 16:22:13 +03:00
.github/workflows Automatic package publication 2026-09-28 15:47:30 +03:00
examples Refactor structure 2026-09-28 14:26:03 +03:00
patches Big changes 2025-03-14 00:31:26 +03:00
src Make tests works again 2026-09-28 16:22:13 +03:00
tests/obex Refactor structure 2026-09-28 14:26:03 +03:00
tools Refactor structure 2026-09-28 14:26:03 +03:00
.editorconfig Enhance BFB protoocol, more functions for display 2026-09-28 00:22:14 +03:00
.gitignore Add OBEX protocol support 2026-09-27 22:09:29 -05:00
LICENSE Initial commit 2024-04-11 22:20:54 +03:00
mmu.ts DWD: getSWVersion + auto key 2025-07-22 16:28:52 +03:00
package.json Make tests works again 2026-09-28 16:22:13 +03:00
pnpm-lock.yaml Make tests works again 2026-09-28 16:22:13 +03:00
pnpm-workspace.yaml Update deps 2026-09-27 21:09:48 +03:00
README.md Add OBEX protocol support 2026-09-27 22:09:29 -05:00
tsconfig.json Update typesccript, simplify imports 2026-09-28 14:39:33 +03:00
vitest.config.ts Make tests works again 2026-09-28 16:22:13 +03:00

NPM Version

Summary

Various serial protocols which are used in the Siemens Mobile Phones.

Install this package with npm:

npm i @sie-js/serial

Examples

Protocol Example Description
BFC examples/bfc.ts Siemens Debug protocol
CGSN examples/cgsn.ts ArmDebugger protocol
AT examples/atc.ts Modem AT commadns protocol
PPP examples/ppp.ts PPP over a modem data connection
BSL examples/bsl.ts Serial Bootstrap Loader protocol
DWD examples/dwd.ts APOXI debug protocol (DWDIO)
CHAOS examples/chaos.ts Chaos flasher protocol
OBEX examples/obex.ts FlexMem file system protocol

Tests

pnpm test                                             # unit tests
pnpm test:obex-emulator                               # OBEX against an emulated phone
OBEX_E2E_DEVICE=/dev/ttyUSB0 pnpm test:obex-hardware  # OBEX against a phone on a cable

The OBEX e2e tests run against a phone firmware in pmb887x-emu or against a real phone, and skip themselves when neither is configured. tests/obex/README.md explains what they need.

AI-assisted contributions

We are not against AI. We are against vibe coding, AI slop, and attempts to offload engineering work to a model. This project prioritizes quality, not development speed or results at any cost.

  1. Do not use AI-generated text in human-to-human communication.

    Write comments, discussions, PR descriptions, and responses to reviewers yourself.

  2. Do not let AI submit PRs or commits.

    The author must always be a human who has personally reviewed the changes and takes responsibility for them.

  3. Do not submit code primarily designed or written by AI.

    Architecture, algorithms, code organization, and the final implementation must be decided by a human. AI may only be used as an auxiliary tool.

  4. You must understand all the code you submit.

    You must be able to explain every change, justify your decisions, and fix any problems yourself. If you do not understand the code, open a feature request instead of a PR.

  5. Code must be simple, clear, and tested.

    Follow KISS, the project's coding style, and its existing architecture. Do not introduce unnecessary abstractions, dependencies, or untested changes.

AI slop PRs will be closed without review.