Thank you all for your replies,
I made another test, I used serial pins from the Mega connected to a TTL-USB adapter with PL2303 Chip, which should be suitable for higher baudrates than 115200bps. I tried on different values (taken from the dataseet) and tested in the serial pin ports (Serial.println()) and via SoftwareSerial on digital pins. And this time I used Real Term as Terminal.
The results were:
-Serial pins: Same result than using USB arduino cable (and its internal converter.)
-Digital pins with TTL adapter-Software Serial: Lower Baudrates than Serial pins and arduino cable.
regarding your replies:
Nick_Pyner:
OK, it sounds like I'm right about windows then? but if you had asked me "who the hell fed you that rubbish?"
Yes, after previous tests, this last test I have explained in this post, some COM device configuration changes, I am still thinking is a Windows limitation. But I think too, there sould be any kind of solution.
Nick_Pyner:
Define: hardware.
In this case: Hardware should be something that I can plug to the computer, acquire data, analyze and manage over there the obtained data.
For this requirements, should be some kind of microcontroller, with SPI/I2C connection for connectiong an accelerometer and obtain the data from X, Y and Z axis; and a Serial connection (Whith an TTL-USB as CH340/PL2303.......included inside-or not).
I decided to start this task with an Arduino (I have Raspberry, PIC microcontrollers, ATMEL...), so due it's an university project, I decided to use Arduino due it's for educational purposes.
Nick_Pyner:
The HC-05 has an AT config command for 1382400. The HC-06 is "only" good for 115200.
The NodeMCU is an ESP8266 development board. All ESPs are faster and have more memory than an Arduino - even a Mega.
I thought using HC-05 or ESP-01, but I think I will have the same issue at the time I receive the data to the PC. If it is not capable to reach that baudrates wired, unwired and in the same ports I directly tested, some data will be lost.
I will take a look to the NodeMCU on more detail, thank you very much for the information.
Paul_KD7HB:
Perhaps you are not aware that you can set any program in Windows, Linux, etc. to run at a higher priority than the standard mid-range priority. Increase the priority of your PC program and see if that helps.
Thank you for the idea, tried, but nothing changes.
Robin2:
Never mind Excel.
Post the Mega program and describe what you doing on the PC to collect the data and measure the time taken. And just provide the raw data - for 3 different baud rates there will just be 3 numbers (or maybe 9 if you repeat each test 3 times) so there is no need for spreadsheet.
...R
The program I am using for testing is on my first post.
The excel I attached has inside the RAW data obtained with arduino IDE, and the calculations I made for each test.
Thank you all.