Hi, I'm planning a project and was looking for some advice. New to Arduino and assessing if its the right solution...
I need to send and receive rs232 serial commands to a collection of devices. Either send the same command to all, and get a response back from all, or send a command to just one and get the response back.
I am writing a python app that will allow a user to select 1 or all devices, select the command and then send it and see the response.
Would an Arduino be able to support this - I saw the Mega has 4 UARTs. So this could hook up 4 devices, and then also connect the Arduino over usb to the computer?
I was thinking of a very simple program on the board that simply proxies the Serial command to the devices, but the first argument indicated which device, or all, to send it to.
The Arduino would then strip this first argument, and send the rest of the command to the device, or each device in turn. On response of one, or wait for all, it would append this first argument to the response and return it back to the computer.
Does this sound feasible? Or am I barking up the wrong tree!
Any pointers on where to look for more info on this kind of design would be much appreciated....