We got an testPC (server) which performs some tests on products, but is not capable to check on communication messages.
I would like to use an Arduino to checks these communication messages, on request of the testPC.
So the testPC sends data(text) to the Arduino by an ethernet connection, at which the Arduino checks for this data in the communication and if it is succeeded, than the arduinio will send a PASS back to the testPC.
My question is here how to setup this up.
For now I am new with the ethernet shield, but I cannot put my finger on how this type of communication is called. Will this be a good example 'Sending and Receiving String via UDP' of the arduino website?
Is this feasible?
Also I am thinking of using another shield to extend my testing range.
I would also like to use the CAN shield and for what I have read about this, the Arduino Uno will have a limited memory capacity, so would the Arduino Mega then be a better option?
ArduinoDroid:
I would also like to use the CAN shield and for what I have read about this, the Arduino Uno will have a limited memory capacity, so would the Arduino Mega then be a better option?
It depends on what you're doing, but the Ethernet code alone is going to use a good chunk of the memory on the Uno so you might struggle to fit the rest in. The Mega will give you plenty of memory to work with. If you're not very constrained by space or budget, I would go with the Mega.
Can I test this with a stand alone system (not connected to the outside world), like arduino & shield connected to a laptop, is this possible?
And if so, how?
What do you mean by "connected to a laptop"? Are you wanting to directly connect the shield to the laptop with an Ethernet cable, or are you connecting each to a router?
Which Ethernet controller chip do you have on your Ethernet shield? The common chips are W5100, W5200, W5500, and ENC28J60.
@pert:
I wanted to connect the arduino & ethernet shield directly to a laptop, without connecting the ethernet shield to a router.
I have tried it with my own laptop and then it will work, if you 'share' the internet connection (in properties), but I could not get it to work with another laptop, I am not sure why.
The chip my arduino ethernet shield uses, is the W5500.
Another question: The ethernet shield does not need DNS right (while only using the chatserver example)?
The W5500 does not have auto-MDIX functionality, which would permit you to use a standard Ethernet cable to connect directly between one device and another. Some PC Ethernet adapters do auto-MDIX, others don't. So it could be that the working laptop's Ethernet adapter has the auto-MDIX functionality and the non-working laptop's does not. If so, you should be able to connect to both laptop using an Ethernet crossover cable.
Not quite, for so far as I understand now, it links a webpage address to a IP address.
So for my understanding, this is not needed if I chat directly to a client by a IP address.
ArduinoDroid:
Not quite, for so far as I understand now, it links a webpage address to a IP address.
So for my understanding, this is not needed if I chat directly to a client by a IP address.
DNS stands for Domain Name Service. What a DNS server does is look up the IP address that corresponds to a domain name. google.com is a domain name. Nobody cares what its IP address is. But, computers can't use domain names. They need IP addresses. So, when a computer has a name, and needs an IP address, it contacts a DNS server to get the IP address corresponding to the name.
If you don't need to map names to IP addresses, you don't need to contact a DNS service, and you certainly don't want to create a DNS server.