FCM set data receive amount

Good day,

I want to interface my Wavecom chip with an external device via UART2. The data packets from the device are always 6 bytes long, is there any way to tell the FCM to only call the datahandler once 6 bytes have been read?

Best regards

No, there isnt.

FCM will call the data handler when it feels like it, and will tell you how much data is available.

I suggest a State Machine to allow you to re-assemble the frames in case they get split…

Thank you for your reply, I implemented something of the sort to work around it.