You claim to have the TX and RX pins of the 328 and the Mega connected, and then you try to read from Serial1, which apparently has nothing connected to it. Why is that?
PaulS:
You claim to have the TX and RX pins of the 328 and the Mega connected, and then you try to read from Serial1, which apparently has nothing connected to it. Why is that?
oh ya, you remind me of not declaring port.
my bad, it is a typo, it is tx connected to rx1, I go change now.
You told the Serial1 instance that it could use the pin. Then you diddle with the pin. Why?
You are sending data to the 328's serial port faster than the mega can read it and print it. After a while the buffer fills up, and data gets lost.
I am really blur @@
Is there any way I can deal with the data handling?
Please help, thanks!
Is there any way I can deal with the data handling?
yesthereisyoucan'treadthiseasilybecauseIhavenotputinthecuesthattellyouwherewordsbeginandend.
But if you slip in some simple whitespace and punctuation, things are a lot easier.
Computers don't read junk either.
You need to be sure not to send data faster than the receiver can handle that. The point of sending "abcd" over and over as fast as possible escapes me.
You seem to have been trying to detect whether there was a problem with doing that, and you seem to have proven that there is.
Now, what do you intend to do to fix the problem? Or, is the problem that you don't know how to fix the problem?
AWOL:
yesthereisyoucan'treadthiseasilybecauseIhavenotputinthecuesthattellyouwherewordsbeginandend.
But if you slip in some simple whitespace and punctuation, things are a lot easier.
Computers don't read junk either.
You need to be sure not to send data faster than the receiver can handle that. The point of sending "abcd" over and over as fast as possible escapes me.
You seem to have been trying to detect whether there was a problem with doing that, and you seem to have proven that there is.
Now, what do you intend to do to fix the problem? Or, is the problem that you don't know how to fix the problem?
guys, really thanks a lot!
I will slip in the "junk" & try lower down the baud rate.