Problem solved--test the serial port software on the virtual machine you will receive the error data

Source: Internet
Author: User

On Saturday, to test the gadget factory inspection, because I was Win7 64Bit system, so I used 32 bit original XP and WIN7 Reflector 2 virtual machine.

(The motherboard for more than one new computer is not a serial port, so install the USB Tour series.)

(fixed-length data, 120 look.) )

--------------the original reproduced in this article, please maintain the integrity and prominent references---------------

http://blog.csdn.net/wlsgzl/article/details/40517517

There was no problem in the development environment before. So be confident and daring to start testing.

But there was no success. You are prompted to receive the wrong data.

At first I thought it was Win7.64-bit system and VS2010 generated by the run file compatibility is not good, intend to copy and paste the code, in XP with VC6 compiled one. I don't have to finish the work.

Sunday, while playing the game. Thinking about the problem.

When Monday comes, install VS2010 on an alternate XP virtual machine, compile and debug the original project, succeed, execute failed.

So, I turned on the Level4 and all the debugging exceptions. Compile the link. Implementation, no obvious problem (MFC and other Microsoft components of the warning can only be masked).

After dozens of attempts on the XP test virtual machine, it succeeded once, which proves that my code is no problem. It starts with a single-step debug data cache on the XP virtual machine that installs VS2010.

Finally found that the received data did not cut correctly. Considering that I was using a fixed-length data format, I started to suspect the delay response problem.

So the XP system was made on an idle computer. Test to find that the data sent and received normal.

=============== Do you envy the double-entry pair of cutting lines ================

Summary: http://blog.csdn.net/wlsgzl/article/details/40517517

It is possible to simulate hardware and software on a virtual machine, but it does not have a real delay response.

(This is an opportunity, success really has a kind of strange to say!) )

Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.

Problem solved--test the serial port software on the virtual machine you will receive the error data

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.