Hi,
The first situation
I use sendcommand sending about 30 commands to virtual device per second and the base session will be suspended. The session will wait until the cmd is handeld.
The second situation
I use the writcurdata method to send data to the server and persist the data to a dat file. When the line starts, read and assign the dat file to curdata.
I use sendcommand sending about 30 commands to virtual device per second and the base session will be suspended. The session will wait until the cmd is handeld.
If commands require heavy processing, implement a queue to process them in background.
I use the writcurdata method to send data to the server and persist the data to a dat file.
To analyze the issue, you should use a debugger or log files.