hello community
i have made a programme that reads GPS data from a gps module and then send it to my server via GPRS using a GSM module (a car tracking system) which can be pretty simple
the tracking is done by sending data frames every X second (this variable can be modified)
the thing is that i wanted to send commands from the server to my system so i can change some stuf remotly (like X second mentioned previosly)
and it worked fine but whene i put the two modes togather (the tracking mode + the waiting for commands mode) there was some bugs which are logical because of the interference of the two modes
PS : i am not using any delay function, i used the millis() function which is better then delay when multitasking but still the interference didn't go away
the reason is that sometimes whene i am sending commands from the server, at that same time my system is in the sending process which requires to read the gsm buffer to confirme that it is connected and the sending is good and with this informations comes the command that i sended so automaticly it is droped away to finish sending
here is a demonstration on how my system is working

so i am asking if it is possible to read the GSM buffer (UART) in a parallel way one for tracking and one for reading commands
thank you





