HeapCrash / Design rounds / Multi-drop RS-485 protocol for 32 sensors

Multi-drop RS-485 protocol for 32 sensors

A greenhouse controller polls 32 soil and climate sensor nodes on one RS-485 bus up to 600 m long. Each node is a small Cortex-M0+. You design the protocol and the firmware on both sides. Today they use ad-hoc ASCII commands and see random timeouts and garbled replies.

What the interviewer wants

Constraints

If you ask the interviewer

How it's graded

The rubric a senior interviewer would use. Each item is scored 0 to 3 and weighted.

Framing and integrityweight 3
Half-duplex timingweight 3
Throughput and polling budgetweight 2
Addressing and commissioningweight 2
Errors and recoveryweight 2
Validationweight 1

How to structure your answer

  1. Requirements and assumptions: the numbers that drive the design.
  2. Architecture: blocks, tasks, data flow, memory.
  3. Key decisions and trade-offs, with the alternatives you rejected.
  4. Failure modes and recovery.
  5. Testing and validation.

More design rounds

Write your design in five sections and get it graded against this rubric, with a follow-up question from the AI interviewer.

Answer this round