Hi All,
I am working on Hardware automation . Where the hardware has various components and each component communicates via serial port(rs232).
my approach here for automating the devise is that, i will have hardware and component communicate to each other via my laptop, so that i can control the messages that flows in between the hardware(master) and component(slave)
for example, if you consider ATM , ATM is a master and say Reciept dispenser is a component (slave). Internally they are coomunicating through serial port. Now, i will connect the one end of the Master port(that connecting to Slave) to my Laptop using an USB-Serial port device(say to com1).
Same way i connect the Com2 of my laptop seria port to the Slave.
Now the design is that, when you perform a transaction at ATM, the ATM sends the message to my laptop at Com1 . And my software in laptop reads the message from com1 and writes to com2(ie the slave). And vice versa. This wayany communication that master does is written to slave, and response from slave is written to master)
Now, challenge here is that, with this approach, i am able to read and write data to the master and components. But i am not successfully able to bring up the hardware. it works sometimes, it doesnt works some times.
As of now, i would like to know if my approach is a possible way to establish the right communication between the master and slave?
if no, what could be the challenges, and can it be handled programmitically. Please help me solve the puzzle.Thanks in advance
Thanks