UART · SPI · I²C · CAN · ETHERNET

Connected Embedded Products

Embedded architectures for reliable communication between devices, controllers, sensors, networks and external systems.

Embedded products rarely operate alone

Modern embedded products often communicate with sensors, other controllers, host computers, cloud-connected gateways or industrial equipment.

The engineering challenge is not only establishing a physical connection. The system must also manage protocols, timing, error handling, state synchronization and recovery when communication fails.

Reliable connectivity is a system behavior, not just a working cable or interface.

Typical architecture

DEVICE Sensor / Peripheral
→
CONTROL MCU / ARM
→
PROTOCOL UART / SPI / CAN
→
NETWORK Ethernet / Gateway
→
EXTERNAL Host / System

Choosing the right interface

Different interfaces are optimized for different electrical, timing and system requirements.

UART Simple point-to-point communication

Useful for diagnostics, modules, configuration ports and lower-rate asynchronous communication.

SPI / I²C Local peripheral communication

Useful for sensors, converters, memory devices and board-level peripherals.

CAN / ETHERNET System-level connectivity

Useful when devices must communicate reliably across larger distributed systems.

UART communication

UART remains common because it is simple, widely supported and useful for both product communication and engineering diagnostics.

Reliable UART implementations often need more than transmitting bytes.

  • Packet framing
  • Checksums or CRC
  • Timeout handling
  • Receive buffering
  • Command parsing
  • Error recovery

SPI and I²C device integration

SPI and I²C are commonly used to connect processors with sensors, ADCs, DACs, displays, memory devices and control peripherals.

Software must account for device-specific timing, initialization sequences and failure behavior.

  • Bus initialization
  • Device addressing
  • Register configuration
  • Transaction sequencing
  • Interrupt-driven data readiness
  • Communication timeout handling

CAN-based embedded systems

CAN is useful in distributed control systems where multiple nodes need reliable communication in electrically noisy environments.

A complete CAN implementation may include:

  • Message identifiers
  • Periodic status frames
  • Command messages
  • Node state management
  • Error counters
  • Bus-off recovery

Ethernet and network-connected products

Ethernet extends an embedded device beyond local peripheral communication and allows integration with larger software systems.

Depending on the product, the embedded system may expose:

  • TCP or UDP services
  • REST APIs
  • Telemetry
  • Remote configuration
  • Firmware updates
  • Diagnostic interfaces

Protocol layers matter

A physical interface defines how bits move, but products need a higher-level protocol to define what those bits mean.

A robust protocol usually defines:

  • Message structure
  • Versioning
  • Commands and responses
  • Error codes
  • Timeout behavior
  • Retry rules
  • State synchronization
Good protocol design prevents device firmware and external software from becoming tightly coupled to implementation details.

Buffering and asynchronous communication

Communication does not always happen at the same rate as application processing.

Receive and transmit queues allow communication layers and product logic to operate independently without blocking each other unnecessarily.

  • Ring buffers
  • RTOS queues
  • DMA-backed transfers
  • Message queues
  • Producer / consumer patterns

Connection state management

Real systems experience cable disconnections, power cycles, unavailable remote devices and corrupted packets.

Firmware should know whether a connection is:

  • Initializing
  • Connected
  • Degraded
  • Timed out
  • Recovering
  • Offline

Diagnostics and observability

Communication bugs can be difficult to reproduce if firmware provides no visibility into what happened.

Useful diagnostic information includes:

  • Packet counters
  • CRC failures
  • Timeout counts
  • Queue occupancy
  • Reconnect attempts
  • Last known device state

Typical product areas

  • Industrial equipment
  • Robotics
  • Distributed sensor systems
  • Connected instrumentation
  • Automation systems
  • Embedded gateways
  • Smart devices

Engineering priorities

RELIABILITY Recover from communication faults

Temporary connection failures should not leave the product in an undefined state.

PROTOCOL Clear message contracts

Commands, responses and errors should remain predictable across firmware and external software.

OBSERVABILITY Make failures diagnosable

Counters, status and logs should make communication behavior visible during integration and field operation.

A connected embedded product is reliable when communication, control logic and recovery behavior are designed as one system.
← Back to Embedded Applications