I use the baud rate is 1000000, send the number of bytes is around 10000, in addition to the computer, the other is the same, but the time required for the Windows 7 system is ten seconds, and as long as win10 computer 0, 1 seconds, Windows 7 computer is configured as win10 ah, how to do, is there any way to make Windows 7 to set the baud rate, the code is written in c #,
CodePudding user response:
Code is no problem, try to replace Windows 7 communication port driver update with win10 version of the test,
CodePudding user response:
reference 1st floor duanzi_peng response: code is no problem, try to replace Windows 7 communication port driver update with win10 version test, Drive seems should be the same CodePudding user response:
reference 1st floor duanzi_peng response: code is no problem, try to replace Windows 7 communication port driver update with win10 version test, how drivers don't like to watch? CodePudding user response:
A bit of speculation, watch the.net framework version, I just met once, on the target machine to install and development when you choose consistent version CodePudding user response:
reference 4 floor hpygzhx520 response: a little guess, watch. The.net framework version, I just met once, on the target machine to install and development when you choose consistent version of this is the same CodePudding user response:
Will is in the update, Windows 7 system or run the security software, scanning to monitor what From simple task manager take a look at the performance distribution CodePudding user response:
refer to 6th floor From_TaiWan response: is the Windows 7 system in the update, or run the security software, scanning to monitor what From simple task manager take a look at the performance distribution I tested two Windows 7 and two win10, is this the result o CodePudding user response:
What kind of a serial port can support 1000000 BPS? In theory to pass the 10000 byte 1000000 BPS simply (10000 * 10)/1000000=0.1 seconds But you of the baud rate of serial port does not support is so high, will use the default 9600 baud rate, so the transmission time (10000 * 10)/9600=10.4 seconds I don't know why win10 can support to 1 MBPS (usually a serial port card maximum support to 256 KBPS) But through the phenomenon of deduction, apparently the problem on the device, rather than software CodePudding user response:
1000000??????? 9600 the majority of your this how is not so big... CodePudding user response:
I also met, it is not to drive, under the update CodePudding user response:
reference qq_37937666 reply: 3/f Quote: refer to 1st floor duanzi_peng response: Code is no problem, it is recommended that the attempt to the communication port driver updates for win10 version of Windows 7 test, how drivers don't like to watch? Windows 7 system, right-click the desktop computer "" -" attribute - "equipment management -" port - "right CodePudding user response:
refer to the eighth floor xuzuning response: what kind of a serial port can support 1000000 BPS? In theory to pass the 10000 byte 1000000 BPS simply (10000 * 10)/1000000=0.1 seconds But you of the baud rate of serial port does not support is so high, will use the default 9600 baud rate, so the transmission time (10000 * 10)/9600=10.4 seconds I don't know why win10 can support to 1 MBPS (usually a serial port card maximum support to 256 KBPS) But through the phenomenon of deduction, apparently the problem on the device, rather than software I was using a usb virtual serial port CodePudding user response:
Since this is the usb virtual serial port, it's time to check whether the driver CodePudding user response:
The elder brothers, that real serial testing, virtual serial port that nature is also a software, software compatibility performance it is hard to say CodePudding user response:
There is no specific win10 many software drivers, it is recommended that you choose on win10. Net class library, let like Windows 7 again see baud rate CodePudding user response:
I put the Data [1] to Data [10000] good, send the swishing CodePudding user response:
MDZZ, ha, ha, ha CodePudding user response:
The building Lord, please find out why, I also met the same problem, I win10 system with the Windows 7 system hardware configuration is similar, but turn on Windows 7 computer USB serial transmission data is far slower than win10, sending data, baud rate, program, was written by MFC framework, best not its horns CodePudding user response:
refer to the 18th floor DreadBoy response: the landlord to find out why, please excuse me, I also met the same problem, I win10 system with the Windows 7 system hardware configuration is similar, but turn on Windows 7 computer USB serial transmission Data is far slower than win10, sending Data, baud rate, program, was written by MFC framework, best may not be the Angle of settled, I had to send instruction is sent one by one, and serialPort1. Write (Data, 0, 1); Later I became serialPort1. Write (Data, 0, 100000), will send soon, because Windows 7 perform the serialPort1. Write statement needs 10 mm, so the hair of a byte of a slow death CodePudding user response:
references the 19th floor qq_2205140725 response: Quote: refer to the 18th floor DreadBoy response: The building Lord, please find out why, I also met the same problem, I win10 system with the Windows 7 system hardware configuration is similar, but turn on Windows 7 computer USB serial transmission Data is far slower than win10, sending Data, baud rate, program, was written by MFC framework, best may not be the Angle of settled, I had to send instruction is sent one by one, and serialPort1. Write (Data, 0, 1); Later I became serialPort1. Write (Data, 0, 100000), will send soon, because Windows 7 perform the serialPort1. Write statement needs 10 mm, so the hair of a byte of a slow death I am using this instruction, serialPort1. Write (data, 0, s.L ength/3); Send the length of the specified data on Windows 7 and win10 still have differences, Windows 7 is much slower than win10