It says (in ADL guide for R7.4) that 120 bytes is the maximum buffer size.
There’s no guarantee that there will be this many bytes in the data packet - only that there won’t be any more than this. As awneil says, additional data will be delivered in subsequent events.
OpenAT is an Event Driven API - you have to deal with asynchronous events as they arrive and keep checking until the API says that there’s no more {data or events}. You can’t assube that if you send 200 bytes that it will all be there at the same time. You may even get the data one byte per event (yep, it happened to me on a slow link).
Also, make sure that you’re using RS232 flow control on your UART device. If not, you may simple lose data when the Wavecom module can’t accept any more (for whatever reason).
Thanks for answers.
I did as you said, and it is working.
Thanks davidc for advice for using RS232 flow control on your UART. I am going to implement this as well in order to not to lose any data.