Various serial protocols which are used in the Siemens Mobile Phones.
Find a file
Kirill Zhumarin 8b050bee49
Some checks failed
Publish / publish (push) Failing after 2m55s
1.9.2
2026-11-23 06:43:23 +03:00
.github/workflows
examples ebl: update response checks 2026-11-23 06:43:19 +03:00
firmware
src ebl: update response checks 2026-11-23 06:43:19 +03:00
tests/obex
tools
.editorconfig
.gitignore
LICENSE
mmu.ts
package.json 1.9.2 2026-11-23 06:43:23 +03:00
pnpm-lock.yaml
pnpm-workspace.yaml
README.md
tsconfig.json
vitest.config.ts

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.