69Views9Replies

Author Options:

Can anyone help me with data transmission in serial communication through a hub? Answered

I need to write a c code, and using an Arduino uno, I should be able to transmit a short text to a recipient who is also connected to a hub. many other people are also connected to the same hub, but they should not be able to receive my text. Only the intended receiver is supposed to receive my text. As of now, I don't even know how to start the code. Is anyone out there who can help walk me through this project?

Tags:Coding

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
rickharris
rickharris

5 years ago

You ca do this fairly easily from PC to PC

http://ccm.net/faq/8666-send-pc-to-pc-message-on-a...

Your Arduino will have to appear on the local network so you will need a NET shield.

There should be many library routines around to help you at that point.

https://www.google.co.uk/#q=message+from+arduino+t...

lot of these look like they may be helpful.

it is very hard to be specific without seeing your set up, knowing more and understanding your current skills in programming (or for that matter your intended outcome from doing this)

0
laminceesay
laminceesay

Answer 5 years ago

I guess my question is; how do I send a text message from my arduino to another arduino that are connected through a wire?

0
rickharris
rickharris

Answer 5 years ago

Ok this is quite a different question to the original (guesses)

Although I don't personally use the Arduino Most microprocessor based systems have similar functions.

I prefer the simplicity of the Picaxe system which, by the by, can do this easily with built in commands.

Personally I think the Arduino system leads people to use ready made software that they don't really understand rather than trying to get a grip of programming.

I guess you going to have to look for information on:

Serial Arduino to Arduino communications

SPI buss

IC2 buss

There are suitable commands and this is so common you will certainly find suitable libraries now you know what the comms busses are called.

For a general understanding of microprocessors I strongly suggest you look at

http://www.picaxe.com/docs/picaxe_manual1.pdf

It isn't for the arduino but all the information is relevant.

Because it is Christmas here is a link to get you started

https://www.google.co.uk/#q=Arduino+to+Arduino+ser...

0
TheCoffeeDude
TheCoffeeDude

5 years ago

Most basic "serial" communication schemes over IP are just simple nntn (non-negotiated telnet) protocols, the best known of which is http. A good place to start would be looking at c libraries to help you code a listener on a specific port (for the clients), then coding a simple server that communicates to that port.

0
laminceesay
laminceesay

Answer 5 years ago

See that is my problem right now, I don't know how to create a listener or a server.

0
TheCoffeeDude
TheCoffeeDude

Answer 5 years ago

http://www.programminglogic.com/example-of-client-server-program-in-c-using-sockets-and-tcp/

0
Downunder35m
Downunder35m

Best Answer 5 years ago

How much experience in writing your own code do you have?

0
laminceesay
laminceesay

Answer 5 years ago

I basically have no experience in writing my own code. My guess is i will need a library or a header file to call, but i don't know which one. I have never done serial communications before.