I have try now for 3 days to do it alone - didn't work
so I will give you all the information to help me
in the first Arduino I have a byte array and I'm trying to send it to the 2nd Arduino by using
SendToArd.write(0x9E ) //this is for me to know that message start
SendToArd.write( msgAaray,sizeof(msgArray) ) // the message
SendToArd.write( 0x9F ) this is for message end
in the 2nd Arduino I have this simple reading code :
#include <SoftwareSerial.h>
SoftwareSerial ReadFromARD ( 8, 9); ///tx,Rx
void setup()
{
Serial.begin(4800);
ReadFromARD.begin(115200);
byte rc;
}
void loop()
{
while ( ReadFromARD.available() > 0)
{
rc = ReadFromARD.read();
Serial.print(rc , HEX);
Serial.print (" , ");
}
the output of the 2nd Arduino is this
F7 , F4 , E0 , 2D , FA , E5 , E2 , F1 , F4 , EC , 20 , 31 , 31 , 20 , E5 , F7 , 20 , 73 , 5C , 70 , 5C , 70 , 5C , 31 , 38 , 3A , 31 , 30 , 20 , 3A , E6 , E0 , E9 , F6 , E9 , 20 , EF , EE , E6 , 20 , 73 , 5C , 70 , 5C , 7C , 5C , 20 , 20 , 22 , ED , E9 , F7 , E9 , F4 , E0 , 22 , 20 , 28 , E4 , E7 , E5 , E8 , E1 , E5 , 30 , E4 , E1 , E5 , E8 , 20 , E4 , F2 , E9 , F1 , F0 , E9 , E3 , 9F ,
the full message been sent is (I have check it by connecting the 1st arduino to my computer and open putty to be sure what beeing sent)
9E F7 F4 E0 2D FA E5 E2 F1 F4 EC 20 31 31 20 E5 F7 20 73 5C 70 5C 70 5C
31 37 3A 35 36 20 3A E4 E0 E9 F6 E9 20 EF EE E6 20 73 5C 70 5C 70 5C 20
20 22 ED E9 F7 E9 F4 E0 22 20 20 E4 E7 E5 E8 E1 E5 20 E4 E1 E5 E8 20 E4
F2 E9 F1 F0 20 36 36 38 36 2A 20 E9 F6 F8 E0 20 F2 E3 E9 EE 20 E6 EB F8
EE 20 2E 2D 20 9F
why?
I can't seem to understand why he cut me the message
I have try all kind of messages , all of them got "cut"
so what could be the reason ?
between the Arduinos I have Tx\Rx\GND connected
- I can guess this if I had a electric\gnd problem I wouldn't get any data at all ,no ?
Thanks ,