Embedded Systems · IoT · Notes

Learning Notes

Practical notes on capturing boot logs, framing TCP messages, and deduplicating MQTT events.

Embedded hardware concept

Capturing serial boot logs

Start recording in a serial terminal before resetting the board, so you can see output from both boot and application stages. Check the board manual for the connector, signal levels, and baud rate.

Read note

Handling split and combined messages

TCP provides an ordered byte stream. A length field can define message boundaries while a receive buffer holds bytes waiting for a complete message.

Read note

QoS 1 and deduplication

QoS 1 provides at-least-once delivery. Use application-level message identifiers when duplicate processing would affect a count or create extra records.

Read note