nerves-networking / qmi

Qualcomm MSM Interface in Elixir
Apache License 2.0
8 stars 4 forks source link

Messages can be split between device reads #157

Open fhunleth opened 8 months ago

fhunleth commented 8 months ago

The current driver code assumes that every data buffer read from the QMI driver can be completely decoded. Sentry crash reports picked up a serial number report being split across two reads, so this assumption is wrong. It looks like this has only happened a few times over a whole lot of devices. Everything recovers after parsing crashes and restart.

A fix to this will likely fix #100.