Serial protocol - How to detect frame start/end - Modbus

I've been dabbling with Modbus recently, but have hit a bit of a problem with detecting the 3.5 character silence at the start/end of a modbus RTU packet.
I was thinking that as I know the baud rate, I could use something like the Extended_FDSerial object and the rxDecTime function within it to get fairly accurate timing..
I'm not convinced that this is the best (or even if this is a good/mediocre) way of detecting the silence.
Can anyone suggest an alternative? {sample code would be appreciated...}
Thanks in advance..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
=================
The future is in our hands.
Which way to the future?
=================
I was thinking that as I know the baud rate, I could use something like the Extended_FDSerial object and the rxDecTime function within it to get fairly accurate timing..
I'm not convinced that this is the best (or even if this is a good/mediocre) way of detecting the silence.
Can anyone suggest an alternative? {sample code would be appreciated...}
Thanks in advance..
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
=================
The future is in our hands.
Which way to the future?
=================
Comments
then check to see if last cnt > 3.5 character intervals, if so, new packet... regardless, save cnt to last cnt/
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com Please use mikronauts _at_ gmail _dot_ com to contact me off-forum, my PM is almost totally full
Morpheusdual Prop SBC w/ 512KB kit $119.95, Mem+2MB memory IO board kit $89.95, both kits $189.95
Propteus and Proteus for Propeller prototyping 6.250MHz custom Crystals run Propellers at 100MHz
Las - Large model assembler for the Propeller Largos - a feature full nano operating system for the Propeller
As previous said, here is my MODBUS protocol handler.
If you have any questions, you can ask me.
Best regards from France
Thanks again for publishing your creation,
Dave KI4PSR