sending exact serial monitor output of one arduino to another.

I have an arduino which is a slave arduino , this arduino is programmed to take pictures and send output to its serial monitor as well as to the serial monitor of the master , on the serial monitor of slave i am getting correct corresponding hex code of the image , but on transmitting the serial monitor 's output of slave to the master result in some ambiguous hex code.

fasihafazal:
I have an arduino which is a slave arduino , this arduino is programmed to take pictures and send output to its serial monitor as well as to the serial monitor of the master , on the serial monitor of slave i am getting correct corresponding hex code of the image , but on transmitting the serial monitor 's output of slave to the master result in some ambiguous hex code.

So, the problem is probably in your code.

but on transmitting the serial monitor 's output of slave to the master result in some ambiguous hex code.

I can see the problem, right off the bat!

#§_DISCOURSE_HOISTED_CODE_0_§^*!@#^%$
// You have no code

fasihafazal:
I have an arduino which is a slave arduino , this arduino is programmed to take pictures and send output to its serial monitor as well as to the serial monitor of the master , on the serial monitor of slave i am getting correct corresponding hex code of the image , but on transmitting the serial monitor 's output of slave to the master result in some ambiguous hex code.

I will help you if you can help me with my program that does not work.

You first.

UKHeliBob:
You first.

Gee ... I never realized you were shy

...R

UKHeliBob:

fasihafazal:

I will help you if you can help me with my program that does not work.

You first.

So what's the problem with your program? I will help if i can , but i will be highly thankful if you will help me .

So what's the problem with your program?

That's exactly what we want to know about your program.

You have not posted a good description of the problem.
You have not posted the code that causes the problem.
You have not said what the code actually does.
You have not said how what it does differs from what you want.

Your description of what is happening on the various Arduino just is NOT possible. The master Arduino can NOT possibly write to the Serial Monitor that the slave Arduino is connected to.

PaulS:

So what's the problem with your program?

Your description of what is happening on the various Arduino just is NOT possible. The master Arduino can NOT possibly write to the Serial Monitor that the slave Arduino is connected to.

There is a slave which is an arduino uno , jpeg serial camera is attached to the slave arduino and takes pictures and display the hex code on the serial monitor , what i want to do is , i wanna that hex code to be transmitted to the master arduino and display on its serial monitor , in between them i m also using SN75176 ic to make RS485 protocol for error free secure transmission over long distances .Here along with a master and slave code , in the code .initially i am just sending a byte from master to slave , slave then, if received that byte will start transmitting the output of camera .

master1.txt (1.55 KB)

slave1.txt (4.1 KB)

PaulS:

So what's the problem with your program?

That's exactly what we want to know about your program.

You have not posted a good description of the problem.
You have not posted the code that causes the problem.
You have not said what the code actually does.
You have not said how what it does differs from what you want.

Your description of what is happening on the various Arduino just is NOT possible. The master Arduino can NOT possibly write to the Serial Monitor that the slave Arduino is connected to.

and takes pictures and display the hex code on the serial monitor

How is that useful? Is the data that it sends to the serial monitor useful in generating a picture? I can't imagine that it is.

Here along with a master and slave code , in the code .initially i am just sending a byte from master to slave , slave then, if received that byte will start transmitting the output of camera .

OK. Now we have the code.

It does something. You still haven't said what it actually does. You still haven't described how what it actually does differs from what you want.

fasihafazal:
in between them i m also using SN75176 ic to make RS485 protocol for error free secure transmission over long distances

As @PaulS has said, a full description of how your code is supposed to work (including exactly how the SN75176 ic is used) and how it actually works will enable us to help you. I am not going to spend an hour or two trying to figure out your code.

Have you tried the communications directly over the Arduino serial links without any RS485 stuff? Does that work?

Have you tried the simple business of sending a few fixed bytes over the RS485 link without any of the camera code? Does that work?

...R

PS why didn't you just post your code as .ino files?

PaulS:
.It does something. You still haven't said what it actually does. You still haven't described how what it actually does differs from what you want.

I am also posting another master and slave code which is little bit easier , on the slave arduino , hardware connection are like 2,3 pins are connected to jpeg ttl serial camera ,
slave arduino sn75176-1
pin 10 pin 1
pin 11 pin4
5v pin 8
gnd pin 5

sn75176-1 sn75176-2
pin 6 pin 6
pin 7 pin 7

sn75176-2 master arduino
pin 1 pin 0
pin pin 1

slave is just transmitting and master is receiving and displaying on the serial monitor , on the slave serial monitor i m getting proper hex code ,i m attaching the output i m getting on slave serial monitor and that output ,when i m sending to the master it become totally different.I am also attaching the output on master 's serial monitor.
...I know how to convert the hex code into jpeg image which i m getting on slave side , i want this same hex code to be transmitted to master serial monitor .

serial monitor output on master.docx (14.8 KB)

serial monitor output on slave.docx (40.6 KB)

I am also posting another master and slave code which is little bit easier

When?

PaulS:

I am also posting another master and slave code which is little bit easier

When?

it is here..

sept24-master.txt (171 Bytes)

sept24-slave.txt (3.13 KB)

OK. It's quite obvious what the problem is. You are trying to use two software serial ports at the same time on the slave. That hasn't worked for anyone else. What makes you think you are special?

Use hardware that is appropriate for the task at hand. A Mega, for instance, with 4 hardware serial ports.

fasihafazal:
it is here..

Why are you still posting your attachments as .txt files after you were asked to post them as .ino files?

...R