Fast Serial Communication For C# Real-Time Applications

While I’m working in AeroXtreme MAV Researching Project, i faced a serious problem in the serial communication in .NET C#. The standard C# serial component is too slow to handle fast serial communication for real-time applications. The MAV Main Computer send data over serial communication in high frequency and send a lot of data. When I used the standard C# serial library “Receiving Event” a huge lag of communication appeared and the buffers is jammed due to the high frequency of communication. After a lot of testing and debugging i found that the serial communication using the standard library will fail in such application so i tried to develop a Fast Serial Library to fulfill my requirement of real-time communication. My Library solve this problem and it can work with high frequency communication without any overhead on the processor due to the frequency control technique.

Continue reading

VMWare NAT Server Lag Solution (Windows)

In the last few months, my internet server connection was too bad and i was getting disconnect from it and after while the connection is getting back and internet too but the NAT Server don’t sense that and the Virtual Machines don’t get any internet connection, i tried to ping Google from the Virtual Machines and the same problem, no results and the only solution is to restart my pc to fix this problem.

But at last i found the solution to this problem without restarting your PC, just restart the NAT Service from Services Manager in Windows.

Steps

  • Goto Control Panel -> Administrative Tools -> Services.
  • At Services Manager Search for “VMware NAT Service” and Restart It.

Restarting the NAT Service from Service Manager Screenshot

That’s it and all connection will be restored in your Virtual Machines without Restarting your PC.