PaulS:
You know how to send data to this forum, and read replies. But you don't know how to determine if there are any replies available() from the modem, or how to read() them. Unbelievable.
Thanks, I understood what you meant here.
I seriously doubt that the hardware and all the processes involved will allow you to update a database, using a GSM modem, every 2 milliseconds, but feel free to try.
I tried it but even with this small amount of data, it cannot correctly reflect in the database.
During testing, sending more realistic data would certainly be in order.
Yes, the realistic data is coming continuously from another hardware. Processing it in 2ms or the latest 5ms is important.