Pages: 1 [2]   Go Down
Author Topic: Due native USB bidirectional I/O performance [Now with specific example]  (Read 3265 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Paul,  I upload it , then I run in command line "serial_read.exe COM8:"
my result :
on Win 7 64

Quote
C:\Users\Administrador\Downloads>serial_read.exe COM8:
Reading from COM8:
timeout reading from COM8:
Total bytes read: 0
Speed 0.00 kbytes/sec

C:\Users\Administrador\Downloads>

What I do wrong?
Logged

0
Offline Offline
God Member
*****
Karma: 26
Posts: 608
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What I do wrong?

I don't know from only this info.  Maybe your Due isn't running the test program?  Maybe you're opening the wrong COM port?  Maybe you're using the programming port instead of the native port?  Maybe the Windows serial driver is messed up, as it tends to be sometimes?  (Mac and Linux are much more reliable than Windows)

Did you try opening COM8 from the Arduino Serial Monitor?  You should see the 5 messages about the test beginning, then 10 seconds of rapid data, and "done" at the end.  Try opening the serial monitor a few times, letting the test run all 15 seconds each time.  Every time you open the serial monitor, the test should run again.  Once that's working, then close the serial monitor and run the serial_read.exe on COM8.
Logged

Laguna Hills, CA 92653
Offline Offline
Full Member
***
Karma: 0
Posts: 112
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To use the IDE Serial Monitor, one needs to output
using the Programming USB Port on the Due, right?

And, to direct the output to the Programming USB Port,
one needs to re-compile with Serial instead of SerialUSB,
right?

Or, can the Serial Monitor be used to monitor any Comm
Port? 
If so, how?
Perhaps by re-selecting a Comm Port after the program
download is finished, and before opening the Serial
Monitor?

Thanks, Gary
Logged

Cheers, Gary
Due for controlling Electric car charging.
Nissan LEAF - Mini Quick Charge (mQC)

Laguna Hills, CA 92653
Offline Offline
Full Member
***
Karma: 0
Posts: 112
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does the
while( !Serial ) ;
just wait for a Comm Port to be created in the PC,
or does it also wait for some program in
the PC to Open the port?

Thanks, Gary
Logged

Cheers, Gary
Due for controlling Electric car charging.
Nissan LEAF - Mini Quick Charge (mQC)

0
Offline Offline
God Member
*****
Karma: 26
Posts: 608
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or, can the Serial Monitor be used to monitor any Comm
Port?

Yes, it can open any serial port.
 
Quote
If so, how?

Select the port in Tools > Serial Ports, then open the serial monitor.

Quote
Does the
while( !Serial ) ;
just wait for a Comm Port to be created in the PC,
or does it also wait for some program in
the PC to Open the port?

It waits for a program to actually open the port.

Quote
Perhaps by re-selecting a Comm Port after the program
download is finished, and before opening the Serial
Monitor?

One simple approach is to program this sketch using the programming port.  After it's fully uploaded, physically unplug the USB cable from the programming port.  Look at the Tools > Serial ports menu while it's unplugged.  Then plug the cable into the native port.  When you look at the Tools > Serial Ports list again, the newly appearing port is the one for the native port, so choose it.

Then open the serial monitor.  You should see the test run in the serial monitor window for 15 seconds.  If that works, close the window and open it again.  Each time you reopen the serial monitor window, the test will run again.  Get that working before you try running serial_read.exe.


Logged

0
Offline Offline
God Member
*****
Karma: 26
Posts: 608
Always making something...
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you ever get the benchmark to run?

I'm curious to hear how it performs on other systems.  Not curious enough to actually go to the trouble of setting up and running those tests myself, but curious enough to ask here.....
Logged

Pages: 1 [2]   Go Up
Jump to: