Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sending messages works only in one direction #3

Open
muesgit opened this issue Aug 12, 2021 · 1 comment
Open

Sending messages works only in one direction #3

muesgit opened this issue Aug 12, 2021 · 1 comment

Comments

@muesgit
Copy link

muesgit commented Aug 12, 2021

Hello Mr. Snigirev,

Ive done a simple test to send Information from an Arduino with Ethernet Shield to another Arduino via Serial TX/RX and back.
I was able to use netcat to send messages vie Ethernet to Serial. When i try to send a message back by typing into the Serial monitor of arduino (arduino without ethernet shield), i can only see the configuration in the serial monitors of both arduinos. My input message is not visible.
As i understood, everytime when i type something into the serial and send it to the Arduino with ethernet shield i get the information printed on the usb-channel. I guess i cant see anything because i am sharing the pin 0 and 1.
I wasnt able to see what and if anything is transferred to the ethernet port. I also tried to listen to the port 23 via netcat but it isnt possible.

Do u have any suggestions on how to solve this problem.?

@muesgit
Copy link
Author

muesgit commented Aug 12, 2021

I solved the problem. It was what i was already guessing that using pin 0 und 1 is not possible because they are reserved for USB. Since I have an MEGA I renamed Serial1 to Serial3, reattached the pins and voila its working.
I thought i must use SoftwareSerial but luckily I didnt have to change your code 👯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant